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();
00023 
00025   void setAttenuation(const SFVec3f &attenuation);
00027   void setLocation(const SFVec3f &location);
00029   void setRadius(const SFFloat &radius);
00030 
00032   inline const SFVec3f &getAttenuation() const {return _attenuation;};
00034   inline const SFVec3f &getLocation() const {return _location;};
00036   inline const SFFloat getRadius() const {return _radius;};
00037 
00038 private:
00040   SFVec3f _attenuation;
00042   SFVec3f _location;
00044   SFFloat _radius;
00045 };
00046 
00047 }
00048 }
00049 
00050 #endif

Generated on Mon Jul 12 09:40:01 2004 for X3DToolKit by doxygen 1.3.6