sofa::component::visualmodel::PositionalLight Class Reference

#include <Light.h>

Inheritance diagram for sofa::component::visualmodel::PositionalLight:

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

Collaboration graph
[legend]

Public Member Functions

 PositionalLight ()
virtual ~PositionalLight ()
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 > position
Data< float > attenuation

Detailed Description

Definition at line 91 of file Light.h.


Constructor & Destructor Documentation

sofa::component::visualmodel::PositionalLight::PositionalLight (  ) 

Definition at line 154 of file Light.cpp.

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

Definition at line 161 of file Light.cpp.


Member Function Documentation

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

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

Reimplemented in sofa::component::visualmodel::SpotLight.

Definition at line 166 of file Light.cpp.

Referenced by reinit().

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

Update method called when variables used in precomputation are modified.

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

Reimplemented in sofa::component::visualmodel::SpotLight.

Definition at line 172 of file Light.cpp.

References initVisual().


Field Documentation

Definition at line 94 of file Light.h.

Referenced by drawLight().

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