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(); 00023 00025 void setAmbientIntensity(const SFFloat &ambientIntensity); 00027 void setColor(const SFColor &color); 00029 void setIntensity(const SFFloat &intensity); 00031 void setOn(const SFBool &on); 00032 00034 inline const SFFloat &getAmbientIntensity() const {return _ambientIntensity;}; 00036 inline const SFColor &getColor() const {return _color;}; 00038 inline const SFFloat &getIntensity() const {return _intensity;}; 00040 inline const SFBool &getOn() const {return _on;}; 00041 00042 private: 00044 SFFloat _ambientIntensity; 00046 SFColor _color; 00048 SFFloat _intensity; 00050 SFBool _on; 00051 }; 00052 00053 } 00054 } 00055 00056 #endif