00001 00002 00003 00005 00006 00011 00016 00021 // ColorInterpolator.h // 00023 00024 #ifndef COLORINTERPOLATOR 00025 #define COLORINTERPOLATOR 00026 00027 #include "X3DTypes.h" 00028 #include "X3DInterpolatorNode.h" 00029 00030 namespace X3DTK { 00031 namespace X3D { 00032 00037 00038 class ColorInterpolator : public X3DInterpolatorNode 00039 { 00040 public: 00042 ColorInterpolator(); 00044 ColorInterpolator(const MFFloat &key, 00045 const MFColor &keyValue); 00047 virtual SFNode clone() const; 00049 virtual ~ColorInterpolator(); 00050 00052 void setKeyValue(const MFColor &keyValue); 00053 00055 inline const MFColor &getKeyValue() const {return _keyValue;}; 00056 00058 virtual void load(const X3DFileElement *element); 00060 virtual SFString write() const; 00061 00062 protected: 00064 ColorInterpolator(const ColorInterpolator &N); 00065 00066 private: 00068 MFColor _keyValue; 00069 }; 00070 00071 } 00072 } 00073 00074 #endif