Stores the current texture matrix. More...
#include <Inventor/elements/SoTextureMatrixElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
Overrides push() method to copy values from next instance in the stack. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging). | |
Public Member Functions inherited from SoElement | |
virtual void | pop (SoState *state, const SoElement *prevTopElement) |
Pops element. | |
virtual SoType | getTypeId () const |
Returns type identifier for element instance. | |
Public Member Functions inherited from SoTypedObject | |
SbBool | isOfType (const SoType &type) const |
Returns TRUE if this object is of the type specified in type or is derived from that type. | |
template<typename TypedObjectClass > | |
SbBool | isOfType () const |
Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class. | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
static void | makeIdentity (SoState *state, SoNode *node) |
Sets the texture matrix to the identity matrix. | |
static void | set (SoState *state, SoNode *node, const SbMatrix &matrix) |
Sets the texture transform matrix to the given matrix. | |
static void | mult (SoState *state, SoNode *node, const SbMatrix &matrix) |
Multiplies the given matrix into the texture matrix. | |
static void | translateBy (SoState *state, SoNode *node, const SbVec3f &translation) |
Multiplies a matrix that performs the specified transformation into the texture matrix. | |
static void | rotateBy (SoState *state, SoNode *node, const SbRotation &rotation) |
Multiplies a matrix that performs the specified transformation into the texture matrix. | |
static void | scaleBy (SoState *state, SoNode *node, const SbVec3f &scaleFactor) |
Multiplies a matrix that performs the specified transformation into the texture matrix. | |
static const SbMatrix & | get (SoState *state, int unit=0) |
Returns current matrix from the state. | |
Static Public Member Functions inherited from SoAccumulatedElement | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
static int | getClassStackIndex () |
Returns the stack id for this element. | |
Static Public Member Functions inherited from SoElement | |
static SoType | getClassTypeId () |
Returns type identifier for SoElement class. | |
Static Public Member Functions inherited from SoTypedObject | |
static SoType | getClassTypeId () |
Returns the type identifier for this class. | |
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.
SoTexture2Transform, SoTexture3Transform, SoTextureMatrix
Definition at line 74 of file SoTextureMatrixElement.h.
Returns current matrix from the state.
|
static |
Returns the stack id for this element.
|
static |
Returns the type identifier for this class.
Sets the texture matrix to the identity matrix.
|
static |
Multiplies the given matrix into the texture matrix.
|
virtual |
Prints element (for debugging).
Reimplemented from SoAccumulatedElement.
|
virtual |
Overrides push() method to copy values from next instance in the stack.
Reimplemented from SoAccumulatedElement.
|
static |
Multiplies a matrix that performs the specified transformation into the texture matrix.
|
static |
Multiplies a matrix that performs the specified transformation into the texture matrix.
|
static |
Sets the texture transform matrix to the given matrix.
|
static |
Multiplies a matrix that performs the specified transformation into the texture matrix.