Stores information on lights. More...
#include <Inventor/elements/SoLightElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
virtual void | pop (SoState *, const SoElement *prevTopElement) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | add (SoState *state, SoLight *light, const SbMatrix &WCToVRCMatrix) |
static const SoNodeList & | getLights (SoState *state) |
static const SbMatrix & | getMatrix (SoState *state, int index) |
This element stores information on lights.
SoLight, SoDirectionalLight, SoPointLight, SoSpotLight
static void SoLightElement::add | ( | SoState * | state, | |
SoLight * | light, | |||
const SbMatrix & | WCToVRCMatrix | |||
) | [static] |
Add to the current light list and to the current matrix list.
static int SoLightElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoAccumulatedElement.
static SoType SoLightElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoAccumulatedElement.
static const SoNodeList& SoLightElement::getLights | ( | SoState * | state | ) | [static] |
Returns the current list of light nodes from the state.
Returns the matrix transform (WC to VRC) for the light i for an SoCallbackAction.
Returns the modelling matrix for other action.
Pop method.
virtual void SoLightElement::push | ( | SoState * | state | ) | [virtual] |
Overrides push() method to copy values from next instance in the stack.
Reimplemented from SoAccumulatedElement.