55#ifndef _SO_TEXTURE_MATRIX_ELEMENT
56#define _SO_TEXTURE_MATRIX_ELEMENT
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Class for representing a rotation.
This is the abstract base class for each state element whose value may be accumulated when it is set.
Abstract base class for all database nodes.
An SoState collects and holds state while traversing a scene graph.
Element that stores the current texture matrix - the cumulative transformation applied to subsequent ...
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack.
static const SbMatrix & get(SoState *state)
Returns current matrix from the state.
virtual const SbMatrix & getElt() const
Gets the matrix from an instance.
virtual ~SoTextureMatrixElement()
static void initClass()
Initializes the SoTextureMatrixElement class.
static void scaleBy(SoState *state, SoNode *node, const SbVec3f &scaleFactor)
virtual void print(FILE *fp) const
Prints element (for debugging)
static void translateBy(SoState *state, SoNode *node, const SbVec3f &translation)
Each of these multiplies a matrix that performs the specified transformation into the texture matrix.
static void rotateBy(SoState *state, SoNode *node, const SbRotation &rotation)
virtual void makeEltIdentity()
Sets the matrix in an instance to identity.
virtual void rotateEltBy(const SbRotation &translation)
static void makeIdentity(SoState *state, SoNode *node)
Sets the texture matrix to the identity matrix.
static void mult(SoState *state, SoNode *node, const SbMatrix &matrix)
Multiplies the given matrix into the texture matrix.
virtual void multElt(const SbMatrix &matrix)
Multiplies into the matrix in an instance.
virtual void init(SoState *state)
Initializes element.
virtual void scaleEltBy(const SbVec3f &scaleFactor)
virtual void translateEltBy(const SbVec3f &translation)
Each of these performs the appropriate operation on the matrix in an instance.