sofa::component::visualmodel::DirectionalLight Class Reference

#include <Light.h>

Inheritance diagram for sofa::component::visualmodel::DirectionalLight:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::visualmodel::DirectionalLight:

Collaboration graph
[legend]

Public Member Functions

 DirectionalLight ()
virtual ~DirectionalLight ()
virtual void initVisual ()
 Initialize the textures, or other graphical resources.
virtual void drawLight ()
virtual void reinit ()
 Update method called when variables used in precomputation are modified.

Private Attributes

Data< Vector3 > direction

Detailed Description

Definition at line 76 of file Light.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::DirectionalLight::DirectionalLight (  ) 

Definition at line 119 of file Light.cpp.

sofa::component::visualmodel::DirectionalLight::~DirectionalLight (  )  [virtual]

Definition at line 125 of file Light.cpp.


Member Function Documentation

void sofa::component::visualmodel::DirectionalLight::drawLight (  )  [virtual]

void sofa::component::visualmodel::DirectionalLight::initVisual (  )  [virtual]

Initialize the textures, or other graphical resources.

Called once before the first frame is drawn, and if the graphical context has been recreated.

Reimplemented from sofa::component::visualmodel::Light.

Definition at line 130 of file Light.cpp.

Referenced by reinit().

void sofa::component::visualmodel::DirectionalLight::reinit (  )  [virtual]

Update method called when variables used in precomputation are modified.

Reimplemented from sofa::component::visualmodel::Light.

Definition at line 136 of file Light.cpp.

References initVisual().


Field Documentation

Definition at line 78 of file Light.h.

Referenced by drawLight().


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:21:43 2008 for Sofa by  doxygen 1.5.7.1