Class SoLightElement


public class SoLightElement extends SoAccumulatedElement
Stores information on lights. This element stores information on lights.

See Also:
  • Method Details Link icon

    • add Link icon

      public static void add(SoState state, SoLight light, SbMatrix WCToVRCMatrix)
      Add to the current light list and to the current matrix list.
    • getClassStackIndex Link icon

      @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 Link icon

      public void pop(SoState state, SoElement prevTopElement)
      Pops element. Allows for side effects to occur. Default methods do nothing.
      Overrides:
      pop in class SoElement
    • push Link icon

      public void push(SoState state)
      Overrides push() method to copy values from next instance in the stack.
      Overrides:
      push in class SoAccumulatedElement
    • getMatrix Link icon

      public static SbMatrix getMatrix(SoState state, int index)
      Returns the matrix transform (WC to VRC) for the light i for an SoCallbackAction. Returns the modelling matrix for other action.
    • getLights Link icon

      public static Vector<SoNode> getLights(SoState state)
      Returns the current list of light nodes from the state.