sofa::component::visualmodel::SpotLight Class Reference

#include <Light.h>

Inheritance diagram for sofa::component::visualmodel::SpotLight:

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

Collaboration graph
[legend]

Public Member Functions

 SpotLight ()
virtual ~SpotLight ()
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.

Protected Attributes

Data< Vector3 > direction
Data< float > cutoff
Data< float > exponent

Detailed Description

Definition at line 106 of file Light.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::SpotLight::SpotLight (  ) 

Definition at line 194 of file Light.cpp.

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

Definition at line 202 of file Light.cpp.


Member Function Documentation

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

void sofa::component::visualmodel::SpotLight::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::PositionalLight.

Definition at line 207 of file Light.cpp.

Referenced by reinit().

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

Update method called when variables used in precomputation are modified.

Reimplemented from sofa::component::visualmodel::PositionalLight.

Definition at line 213 of file Light.cpp.

References initVisual().


Field Documentation

Definition at line 109 of file Light.h.

Referenced by drawLight().

Definition at line 108 of file Light.h.

Referenced by drawLight().

Definition at line 110 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