Class SoViewingMatrixElement


  • public class SoViewingMatrixElement
    extends SoReplacedElement
    Stores the current viewing matrix. This element stores the current viewing matrix - the non-projection part of the matrix set up by the camera. Because most operations on this matrix are atomic, it is considered a non-accumulating element.

    See Also:
    SoCamera, SoOrthographicCamera, SoPerspectiveCamera
    • Method Detail

      • set

        public static void set​(SoState state,
                               SoNode node,
                               SbMatrix matrix)
        Calls set(state, node, matrix, true).
      • set

        public static void set​(SoState state,
                               SoNode node,
                               SbMatrix matrix,
                               boolean sendToGL)
        Sets the view matrix to the given matrix. This method will (indirectly) call glLoadMatrix with the new matrix unless the 'sendToGL' parameter is explicitly false.
      • 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. ] *
      • get

        public static SbMatrix get​(SoState state)
        Returns current matrix from the state.