Class SoTextureMatrixElement
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.elements.SoElement
com.openinventor.inventor.elements.SoAccumulatedElement
com.openinventor.inventor.elements.SoTextureMatrixElement
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic SbMatrix
Calls get(state, (int)0).static SbMatrix
Returns current matrix from the state.static int
Deprecated.As of Open Inventor 9.3.0.0.static void
makeIdentity
(SoState state, SoNode node) Sets the texture matrix to the identity matrix.static void
Multiplies the given matrix into the texture matrix.void
Overridespush()
method to copy values from next instance in the stack.static void
rotateBy
(SoState state, SoNode node, SbRotation rotation) Multiplies a matrix that performs the specified transformation into the texture matrix.static void
Multiplies a matrix that performs the specified transformation into the texture matrix.static void
Sets the texture transform matrix to the given matrix.static void
translateBy
(SoState state, SoNode node, SbVec3f translation) Multiplies a matrix that performs the specified transformation into the texture matrix.Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
get
Calls get(state, (int)0). -
getClassStackIndex
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] * -
get
Returns current matrix from the state. -
makeIdentity
Sets the texture matrix to the identity matrix. -
push
Overridespush()
method to copy values from next instance in the stack.- Overrides:
push
in classSoAccumulatedElement
-
rotateBy
Multiplies a matrix that performs the specified transformation into the texture matrix. -
scaleBy
Multiplies a matrix that performs the specified transformation into the texture matrix. -
set
Sets the texture transform matrix to the given matrix. -
mult
Multiplies the given matrix into the texture matrix. -
translateBy
Multiplies a matrix that performs the specified transformation into the texture matrix.
-