Class SoLightElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoAccumulatedElement
-
- com.openinventor.inventor.elements.SoLightElement
-
public class SoLightElement extends SoAccumulatedElement
Stores information on lights. This element stores information on lights.- See Also:
SoLight
,SoDirectionalLight
,SoPointLight
,SoSpotLight
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
add(SoState state, SoLight light, SbMatrix WCToVRCMatrix)
Add to the current light list and to the current matrix list.static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static java.util.Vector<SoNode>
getLights(SoState state)
Returns the current list of light nodes from the state.static SbMatrix
getMatrix(SoState state, int index)
Returns the matrix transform (WC to VRC) for the light i for anSoCallbackAction
.void
pop(SoState state, SoElement prevTopElement)
Pops element.void
push(SoState state)
Overridespush()
method to copy values from next instance in the stack.-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
add
public static void add(SoState state, SoLight light, SbMatrix WCToVRCMatrix)
Add to the current light list and to the current matrix list.
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
pop
public void pop(SoState state, SoElement prevTopElement)
Pops element. Allows for side effects to occur. Default methods do nothing.
-
push
public void push(SoState state)
Overridespush()
method to copy values from next instance in the stack.- Overrides:
push
in classSoAccumulatedElement
-
getMatrix
public static SbMatrix getMatrix(SoState state, int index)
Returns the matrix transform (WC to VRC) for the light i for anSoCallbackAction
. Returns the modelling matrix for other action.
-
-