00001 #ifndef X3DTK_X3D_COLORINTERPOLATOR 00002 #define X3DTK_X3D_COLORINTERPOLATOR 00003 00004 #include "X3DTypes.h" 00005 #include "X3D_X3DInterpolatorNode.h" 00006 00007 namespace X3DTK { 00008 namespace X3D { 00009 00018 class ColorInterpolator : public X3DInterpolatorNode 00019 { 00020 public: 00022 ColorInterpolator(); 00024 ColorInterpolator(const MFFloat &key, 00025 const MFColor &keyValue); 00027 virtual SFAbstractNode clone() const; 00029 virtual ~ColorInterpolator(); 00030 00032 void setKeyValue(const MFColor &keyValue); 00033 00035 inline const MFColor &getKeyValue() const {return _keyValue;}; 00036 00038 virtual void load(const X3DFileElement *element); 00040 virtual SFString &write(SFString &output) const; 00041 00042 protected: 00044 ColorInterpolator(const ColorInterpolator &N); 00045 00046 private: 00048 MFColor _keyValue; 00049 }; 00050 00051 } 00052 } 00053 00054 #endif