libvrml1++/DirectionalLight.hh

Go to the documentation of this file.
00001 
00020 #ifndef VRML1DIRECTIONALLIGHT_HH_
00021 #define VRML1DIRECTIONALLIGHT_HH_
00022 
00023 #include "Node.hh"
00024 #include "Attribute.hh"
00025 #include "SFVec3f.hh"
00026 
00027 namespace vrml1
00028 {
00029 
00030 class DirectionalLight : public vrml1::Node
00031 {
00032 public:
00033         DirectionalLight();
00034 
00035         void setOn(bool on);
00036         bool on() const;
00037         
00038         void setIntensity(float intensity);
00039         float intensity() const;
00040         
00041         void setColor(SFColor color);
00042         SFColor color() const;
00043         
00044         void setDirection(SFVec3f direction);
00045         SFVec3f direction() const;
00046         
00047         virtual void setAttribute(Attribute *A);
00048         
00049 private:
00050         bool m_on;
00051         float m_intensity;
00052         SFColor m_color;
00053         SFVec3f m_direction;
00054 };
00055 
00056 }
00057 
00058 #endif /*VRML1SPOTLIGHT_HH_*/

Generated on Mon Jul 21 23:57:09 2008 for libvrml1++ by  doxygen 1.5.4