Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
SoLightElement Class Reference

VSG extension Stores information on lights. More...

#include <Inventor/elements/SoLightElement.h>

+ Inheritance diagram for SoLightElement:

Public Member Functions

virtual void push (SoState *state)
 Overrides push() method to copy values from next instance in the stack.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
- Public Member Functions inherited from SoAccumulatedElement
virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void add (SoState *state, SoLight *light, const SbMatrix &WCToVRCMatrix)
 Add to the current light list and to the current matrix list.
 
static const SoNodeListgetLights (SoState *state)
 Returns the current list of light nodes from the state.
 
static const SbMatrixgetMatrix (SoState *state, int index)
 Returns the matrix transform (WC to VRC) for the light i for an SoCallbackAction.
 
- Static Public Member Functions inherited from SoAccumulatedElement
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Detailed Description

VSG extension Stores information on lights.

This element stores information on lights.

SEE ALSO

SoLight, SoDirectionalLight, SoPointLight, SoSpotLight

Definition at line 48 of file SoLightElement.h.

Member Function Documentation

◆ add()

static void SoLightElement::add ( SoState state,
SoLight light,
const SbMatrix WCToVRCMatrix 
)
static

Add to the current light list and to the current matrix list.

◆ getClassStackIndex()

static int SoLightElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoLightElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getLights()

static const SoNodeList & SoLightElement::getLights ( SoState state)
static

Returns the current list of light nodes from the state.

◆ getMatrix()

static const SbMatrix & SoLightElement::getMatrix ( SoState state,
int  index 
)
static

Returns the matrix transform (WC to VRC) for the light i for an SoCallbackAction.

Returns the modelling matrix for other action.

◆ pop()

virtual void SoLightElement::pop ( SoState state,
const SoElement prevTopElement 
)
virtual

Pops element.

Allows for side effects to occur. Default methods do nothing.

Reimplemented from SoElement.

◆ push()

virtual void SoLightElement::push ( SoState state)
virtual

Overrides push() method to copy values from next instance in the stack.

Reimplemented from SoAccumulatedElement.


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