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