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);
64 UnitData(
const UnitData & org) : textureMatrix(org.textureMatrix) {}
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:889
virtual void init(SoState *state)
Definition: SoAccumulatedElement.cpp:75
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
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:859
The SoState class manages the Coin scenegraph traversal state data.The SoState class is used by actio...
Definition: SoState.h:44
The SoMultiTextureMatrixElement class is used to manage the texture matrix stack for texture units > ...
Definition: SoMultiTextureMatrixElement.h:41
The SbRotation class represents a rotation in 3D space.SbRotation is used extensively throughout the ...
Definition: SbRotation.h:44
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:51
The SbMatrix class is a 4x4 dimensional representation of a matrix.SbMatrix is used by many other cla...
Definition: SbMatrix.h:46
static SbMatrix identity(void)
Definition: SbMatrix.cpp:847
The SoAccumulatedElement class is an abstract class for storing accumulated state.This is the superclass of elements where new element data accumulates with older data.
Definition: SoAccumulatedElement.h:39
virtual void push(SoState *state)
Definition: SoAccumulatedElement.cpp:83
void setRotate(const SbRotation &q)
Definition: SbMatrix.cpp:371