SoTextureMatrixElement Class Reference
[Elements]

Stores the current texture matrix. More...

#include <Inventor/elements/SoTextureMatrixElement.h>

Inheritance diagram for SoTextureMatrixElement:
SoAccumulatedElement SoElement SoTypedObject

List of all members.

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 set (SoState *state, SoNode *node, const SbMatrix &matrix)
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 SbMatrixget (SoState *state, int unit=0)

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


Member Function Documentation

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

Returns current matrix from the state.

static int SoTextureMatrixElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoAccumulatedElement.

static SoType SoTextureMatrixElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoAccumulatedElement.

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

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::set ( SoState state,
SoNode node,
const SbMatrix matrix 
) [static]

Sets the texture transform matrix to the given 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.


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

Open Inventor Toolkit reference manual, generated on 18 Apr 2021
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/