1 #ifndef COIN_SOMULTITEXTUREMATRIXELEMENT_H 2 #define COIN_SOMULTITEXTUREMATRIXELEMENT_H 36 #include <Inventor/elements/SoAccumulatedElement.h> 37 #include <Inventor/SbMatrix.h> 39 class SoMultiTextureMatrixElementP;
46 static void initClass(
void);
69 int getNumUnits()
const;
70 UnitData & getUnitData(
const int unit);
71 const UnitData & getUnitData(
const int unit)
const;
73 virtual void multElt(
const int unit,
const SbMatrix & matrix);
74 virtual void setElt(
const int unit,
const SbMatrix & matrix);
75 virtual const SbMatrix & getElt(
const int unit)
const;
78 SoMultiTextureMatrixElementP * pimpl;
81 static void makeIdentity(
SoState *
const state,
SoNode *
const node,
const int unit = 0) {
86 set(state, node, 0, matrix);
90 mult(state, node, 0, matrix);
92 static void translateBy(
SoState *
const state,
SoNode *
const node,
96 mult(state, node, 0, m);
98 static void rotateBy(
SoState *
const state,
SoNode *
const node,
102 mult(state, node, 0, m);
104 static void scaleBy(
SoState *
const state,
SoNode *
const node,
108 mult(state, node, 0, m);
112 #endif // !COIN_SOTEXTUREMATRIXELEMENT_H void setTranslate(const SbVec3f &t)
Definition: SbMatrix.cpp:890
virtual void init(SoState *state)
Definition: SoAccumulatedElement.cpp:76
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
SoElement is the abstract base class for all elements.
Definition: SoElement.h:43
void setScale(const float s)
Definition: SbMatrix.cpp:860
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44
The SoMultiTextureMatrixElement class is used to manage the texture matrix stack for texture units > ...
Definition: SoMultiTextureMatrixElement.h:41
Definition: SoMultiTextureMatrixElement.h:61
The SbRotation class represents a rotation in 3D space.
Definition: SbRotation.h:44
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:51
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition: SbMatrix.h:47
static SbMatrix identity(void)
Definition: SbMatrix.cpp:848
The SoAccumulatedElement class is an abstract class for storing accumulated state.
Definition: SoAccumulatedElement.h:39
virtual void push(SoState *state)
Definition: SoAccumulatedElement.cpp:84
void setRotate(const SbRotation &q)
Definition: SbMatrix.cpp:372