Class SoTextureMatrixElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoAccumulatedElement
-
- com.openinventor.inventor.elements.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 fromSoAccumulatedElement
. Theset()
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:
SoTexture2Transform
,SoTexture3Transform
,SoTextureMatrix
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SbMatrix
get(SoState state)
Calls get(state, (int)0).static SbMatrix
get(SoState state, int unit)
Returns current matrix from the state.static int
getClassStackIndex()
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
mult(SoState state, SoNode node, SbMatrix matrix)
Multiplies the given matrix into the texture matrix.void
push(SoState state)
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
scaleBy(SoState state, SoNode node, SbVec3f scaleFactor)
Multiplies a matrix that performs the specified transformation into the texture matrix.static void
set(SoState state, SoNode node, SbMatrix matrix)
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 Detail
-
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. ] *
-
makeIdentity
public static void makeIdentity(SoState state, SoNode node)
Sets the texture matrix to the identity matrix.
-
push
public void push(SoState state)
Overridespush()
method to copy values from next instance in the stack.- Overrides:
push
in classSoAccumulatedElement
-
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.
-
-