Stores the current texture matrix. More...
#include <Inventor/elements/SoTextureMatrixElement.h>
Public Member Functions | |
virtual void | push (SoState *state) |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | makeIdentity (SoState *state, SoNode *node) |
static void | mult (SoState *state, SoNode *node, const SbMatrix &matrix) |
static void | translateBy (SoState *state, SoNode *node, const SbVec3f &translation) |
static void | rotateBy (SoState *state, SoNode *node, const SbRotation &rotation) |
static void | scaleBy (SoState *state, SoNode *node, const SbVec3f &scaleFactor) |
static const SbMatrix & | get (SoState *state, int unit=0) |
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, SoVRMLTextureTransform
Returns current matrix from the state.
static int SoTextureMatrixElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoAccumulatedElement.
Reimplemented in SoGLTextureMatrixElement.
static SoType SoTextureMatrixElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoAccumulatedElement.
Reimplemented in SoGLTextureMatrixElement.
Sets the texture matrix to the identity matrix.
static void SoTextureMatrixElement::mult | ( | SoState * | state, | |
SoNode * | node, | |||
const SbMatrix & | matrix | |||
) | [static] |
Multiplies the given matrix into the texture matrix.
virtual void SoTextureMatrixElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoAccumulatedElement.
virtual void SoTextureMatrixElement::push | ( | SoState * | state | ) | [virtual] |
Overrides push() method to copy values from next instance in the stack.
Reimplemented from SoAccumulatedElement.
static void SoTextureMatrixElement::rotateBy | ( | SoState * | state, | |
SoNode * | node, | |||
const SbRotation & | rotation | |||
) | [static] |
Multiplies a matrix that performs the specified transformation into the texture matrix.
static void SoTextureMatrixElement::scaleBy | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec3f & | scaleFactor | |||
) | [static] |
Multiplies a matrix that performs the specified transformation into the texture matrix.
static void SoTextureMatrixElement::translateBy | ( | SoState * | state, | |
SoNode * | node, | |||
const SbVec3f & | translation | |||
) | [static] |
Multiplies a matrix that performs the specified transformation into the texture matrix.