X3D_PointLight.h

Go to the documentation of this file.
00001 #ifndef X3DTK_X3D_POINTLIGHT
00002 #define X3DTK_X3D_POINTLIGHT
00003 
00004 #include "X3DTypes.h"
00005 #include "X3D_X3DLightNode.h"
00006 
00007 namespace X3DTK {
00008 namespace X3D {
00009 
00018 class PointLight : public X3DLightNode
00019 {
00020 public:
00022   PointLight();
00024   virtual ~PointLight();
00025   
00027   void setAttenuation(const SFVec3f &attenuation);
00029   void setLocation(const SFVec3f &location);
00031   void setRadius(const SFFloat &radius);
00032 
00034   inline const SFVec3f &getAttenuation() const {return _attenuation;};
00036   inline const SFVec3f &getLocation() const {return _location;};
00038   inline const SFFloat getRadius() const {return _radius;};
00039 
00040 private:
00042   SFVec3f _attenuation;
00044   SFVec3f _location;
00046   SFFloat _radius;
00047 };
00048 
00049 }
00050 }
00051 
00052 #endif

Generated on Fri Aug 27 13:16:23 2004 for X3DToolKit by doxygen 1.3.6