Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

X3D_DirectionalLight.h

Go to the documentation of this file.
00001 
00002 //                            X3D_DirectionalLight.h                          //
00004 
00005 #ifndef DIRECTIONALLIGHT
00006 #define DIRECTIONALLIGHT
00007 
00008 #include "X3DTypes.h"
00009 #include "X3D_X3DLightNode.h"
00010 
00011 namespace X3DTK {
00012 namespace X3D {
00013 
00018 
00019 class DirectionalLight : public X3DLightNode
00020 {
00021 public:
00023   DirectionalLight();
00025   DirectionalLight(const SFFloat       &ambientIntensity,
00026                    const SFColor &color,
00027                    const SFVec3f &direction,
00028                    const SFFloat       &intensity,
00029                    const SFBool        &on);
00031   virtual SFAbstractNode clone() const;
00033   virtual ~DirectionalLight();
00034 
00036   void setDirection(const SFVec3f &direction);
00037 
00039   inline const SFVec3f &getDirection() const {return _direction;};
00040 
00042   virtual void load(const X3DFileElement *element);
00044   virtual SFString &write(SFString &output) const;
00045 
00046 protected:
00048   DirectionalLight(const DirectionalLight &N);
00049 
00050 private:
00052   SFVec3f _direction;
00053 };
00054 
00055 }
00056 }
00057 
00058 #endif

Generated on Thu Dec 4 13:25:48 2003 for X3DToolKit by doxygen1.2.18