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

        public static int getClassStackIndex()
        As of Open Inventor replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *