Class SoTextureMatrixElement


public class SoTextureMatrixElement extends SoAccumulatedElement
Stores the current texture matrix. This element stores the current texture matrix - the cumulative transformation applied to subsequent shapes. Because the matrix is cumulative, this class is derived from SoAccumulatedElement. The set() method replaces the current matrix, while all the others (mult(), translateBy(), etc.) multiply into it. Node id's of the nodes that affect the element are accumulated properly.

See Also:
  • Method Details

    • get

      public static SbMatrix get(SoState state)
      Calls get(state, (int)0).
    • 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, int unit)
      Returns current matrix from the state.
    • makeIdentity

      public static void makeIdentity(SoState state, SoNode node)
      Sets the texture matrix to the identity matrix.
    • push

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

      public static void rotateBy(SoState state, SoNode node, SbRotation rotation)
      Multiplies a matrix that performs the specified transformation into the texture matrix.
    • scaleBy

      public static void scaleBy(SoState state, SoNode node, SbVec3f scaleFactor)
      Multiplies a matrix that performs the specified transformation into the texture matrix.
    • set

      public static void set(SoState state, SoNode node, SbMatrix matrix)
      Sets the texture transform matrix to the given matrix.
    • mult

      public static void mult(SoState state, SoNode node, SbMatrix matrix)
      Multiplies the given matrix into the texture matrix.
    • translateBy

      public static void translateBy(SoState state, SoNode node, SbVec3f translation)
      Multiplies a matrix that performs the specified transformation into the texture matrix.