00001 #ifndef X3DTK_X3D_X3DLIGHTNODE 00002 #define X3DTK_X3D_X3DLIGHTNODE 00003 00004 #include "X3DTypes.h" 00005 #include "X3D_X3DChildNode.h" 00006 00007 namespace X3DTK { 00008 namespace X3D { 00009 00018 class X3DLightNode : public X3DChildNode 00019 { 00020 public: 00022 X3DLightNode(); 00024 virtual ~X3DLightNode(); 00025 00027 void setAmbientIntensity(const SFFloat &ambientIntensity); 00029 void setColor(const SFColor &color); 00031 void setIntensity(const SFFloat &intensity); 00033 void setOn(const SFBool &on); 00034 00036 inline const SFFloat &getAmbientIntensity() const {return _ambientIntensity;}; 00038 inline const SFColor &getColor() const {return _color;}; 00040 inline const SFFloat &getIntensity() const {return _intensity;}; 00042 inline const SFBool &getOn() const {return _on;}; 00043 00044 private: 00046 SFFloat _ambientIntensity; 00048 SFColor _color; 00050 SFFloat _intensity; 00052 SFBool _on; 00053 }; 00054 00055 } 00056 } 00057 00058 #endif