Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoTextureMatrixElement Class Reference

Stores the current texture matrix. More...

#include <Inventor/elements/SoTextureMatrixElement.h>

+ Inheritance diagram for SoTextureMatrixElement:

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 SbMatrixget (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.
 

Detailed Description

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

SoTexture2Transform, SoTexture3Transform, SoTextureMatrix

Definition at line 74 of file SoTextureMatrixElement.h.

Member Function Documentation

◆ get()

static const SbMatrix & SoTextureMatrixElement::get ( SoState state,
int  unit = 0 
)
static

Returns current matrix from the state.

◆ getClassStackIndex()

static int SoTextureMatrixElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoTextureMatrixElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ makeIdentity()

static void SoTextureMatrixElement::makeIdentity ( SoState state,
SoNode node 
)
static

Sets the texture matrix to the identity matrix.

◆ mult()

static void SoTextureMatrixElement::mult ( SoState state,
SoNode node,
const SbMatrix matrix 
)
static

Multiplies the given matrix into the texture matrix.

◆ print()

virtual void SoTextureMatrixElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoAccumulatedElement.

◆ push()

virtual void SoTextureMatrixElement::push ( SoState state)
virtual

Overrides push() method to copy values from next instance in the stack.

Reimplemented from SoAccumulatedElement.

◆ rotateBy()

static void SoTextureMatrixElement::rotateBy ( SoState state,
SoNode node,
const SbRotation rotation 
)
static

Multiplies a matrix that performs the specified transformation into the texture matrix.

◆ scaleBy()

static void SoTextureMatrixElement::scaleBy ( SoState state,
SoNode node,
const SbVec3f scaleFactor 
)
static

Multiplies a matrix that performs the specified transformation into the texture matrix.

◆ set()

static void SoTextureMatrixElement::set ( SoState state,
SoNode node,
const SbMatrix matrix 
)
static

Sets the texture transform matrix to the given matrix.

◆ translateBy()

static void SoTextureMatrixElement::translateBy ( SoState state,
SoNode node,
const SbVec3f translation 
)
static

Multiplies a matrix that performs the specified transformation into the texture matrix.


The documentation for this class was generated from the following file: