Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ColorInterpolator.h

Go to the documentation of this file.
00001 
00002 //                            ColorInterpolator.h                             //
00004 
00005 #ifndef COLORINTERPOLATOR
00006 #define COLORINTERPOLATOR
00007 
00008 #include "X3DTypes.h"
00009 #include "X3DInterpolatorNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class ColorInterpolator : public X3DInterpolatorNode
00020 {
00021 public:
00023   ColorInterpolator();
00025   ColorInterpolator(const MFFloat &key,
00026                     const MFColor &keyValue);
00028   virtual SFNode clone() const;
00030   virtual ~ColorInterpolator();
00031 
00033   void setKeyValue(const MFColor &keyValue);
00034 
00036   inline const MFColor &getKeyValue() const {return _keyValue;};
00037 
00039   virtual void load(const X3DFileElement *element);
00041   virtual SFString write() const;
00042 
00043 protected:
00045   ColorInterpolator(const ColorInterpolator &N);
00046 
00047 private:
00049   MFColor _keyValue;
00050 };
00051 
00052 }
00053 }
00054 
00055 #endif

Generated on Thu Oct 9 13:50:52 2003 for X3DToolKit by doxygen1.2.18