Class SoProjectionMatrixElement


  • public class SoProjectionMatrixElement
    extends SoReplacedElement
    Stores the current projection matrix. This element stores the current projection matrix - the projective 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, SoDepthOffset
    • Method Detail

      • set

        public static void set​(SoState state,
                               SoNode node,
                               SbMatrix matrix)
        Sets the projection matrix to the given matrix.
      • get

        public static SbMatrix get​(SoState state)
        Returns current matrix from the state.
      • 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. ] *