.TH "SoMultiTextureMatrixElement" 3 "Fri Sep 6 2024 15:32:06" "Version 4.0.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoMultiTextureMatrixElement \- The \fBSoMultiTextureMatrixElement\fP class is used to manage the texture matrix stack for texture units > 0\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoAccumulatedElement\fP\&. .PP Inherited by \fBSoGLMultiTextureMatrixElement\fP\&. .SS "Classes" .in +1c .ti -1c .RI "class \fBUnitData\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "virtual void \fBinit\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpush\fP (\fBSoState\fP *state)" .br .in -1c Public Member Functions inherited from \fBSoAccumulatedElement\fP .in +1c .ti -1c .RI "virtual SbBool \fBmatches\fP (const \fBSoElement\fP *element) const" .br .in -1c Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "const \fBSoType\fP \fBgetTypeId\fP (void) const" .br .ti -1c .RI "int \fBgetStackIndex\fP (void) const" .br .ti -1c .RI "virtual void \fBpop\fP (\fBSoState\fP *state, const \fBSoElement\fP *prevTopElement)" .br .ti -1c .RI "void \fBsetDepth\fP (const int \fBdepth\fP)" .br .ti -1c .RI "int \fBgetDepth\fP (void) const" .br .ti -1c .RI "virtual void \fBprint\fP (FILE *file=stdout) const" .br .ti -1c .RI "virtual \fB~SoElement\fP ()" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void * \fBcreateInstance\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const int unit, const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "static void \fBmult\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const int unit, const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "static const \fBSbMatrix\fP & \fBget\fP (\fBSoState\fP *const state, const int unit=0)" .br .ti -1c .RI "static void \fBmakeIdentity\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const int unit=0)" .br .ti -1c .RI "static void \fBset\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "static void \fBmult\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "static void \fBtranslateBy\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const \fBSbVec3f\fP &translation)" .br .ti -1c .RI "static void \fBrotateBy\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const \fBSbRotation\fP &rotation)" .br .ti -1c .RI "static void \fBscaleBy\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node, const \fBSbVec3f\fP &scaleFactor)" .br .in -1c Static Public Member Functions inherited from \fBSoAccumulatedElement\fP .in +1c .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void \fBinitClass\fP (void)" .br .in -1c Static Public Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static void \fBinitClass\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetClassTypeId\fP (void)" .br .ti -1c .RI "static int \fBgetClassStackIndex\fP (void)" .br .ti -1c .RI "static void \fBinitElements\fP (void)" .br .ti -1c .RI "static int \fBgetNumStackIndices\fP (void)" .br .ti -1c .RI "static \fBSoType\fP \fBgetIdFromStackIndex\fP (const int \fBstackIndex\fP)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "\fBSoMultiTextureMatrixElement\fP (void)" .br .ti -1c .RI "virtual \fB~SoMultiTextureMatrixElement\fP ()" .br .ti -1c .RI "int \fBgetNumUnits\fP () const" .br .ti -1c .RI "\fBUnitData\fP & \fBgetUnitData\fP (const int unit)" .br .ti -1c .RI "const \fBUnitData\fP & \fBgetUnitData\fP (const int unit) const" .br .ti -1c .RI "virtual void \fBmultElt\fP (const int unit, const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "virtual void \fBsetElt\fP (const int unit, const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "virtual const \fBSbMatrix\fP & \fBgetElt\fP (const int unit) const" .br .in -1c Protected Member Functions inherited from \fBSoAccumulatedElement\fP .in +1c .ti -1c .RI "virtual \fB~SoAccumulatedElement\fP ()" .br .ti -1c .RI "void \fBclearNodeIds\fP (void)" .br .ti -1c .RI "void \fBaddNodeId\fP (const \fBSoNode\fP *const node)" .br .ti -1c .RI "void \fBsetNodeId\fP (const \fBSoNode\fP *const node)" .br .ti -1c .RI "void \fBcopyNodeIds\fP (const \fBSoAccumulatedElement\fP *copyfrom)" .br .ti -1c .RI "virtual \fBSoElement\fP * \fBcopyMatchInfo\fP (void) const" .br .ti -1c .RI "virtual void \fBcaptureThis\fP (\fBSoState\fP *state) const" .br .in -1c Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoElement\fP (void)" .br .ti -1c .RI "void \fBcapture\fP (\fBSoState\fP *const state) const" .br .ti -1c .RI "void \fBsetTypeId\fP (const \fBSoType\fP \fBtypeId\fP)" .br .ti -1c .RI "void \fBsetStackIndex\fP (const int index)" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextInStack\fP (void) const" .br .ti -1c .RI "\fBSoElement\fP * \fBgetNextFree\fP (void) const" .br .in -1c .SS "Additional Inherited Members" Static Protected Member Functions inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static \fBSoElement\fP * \fBgetElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static const \fBSoElement\fP * \fBgetConstElement\fP (\fBSoState\fP *const state, const int \fBstackIndex\fP)" .br .ti -1c .RI "static int \fBcreateStackIndex\fP (const \fBSoType\fP id)" .br .in -1c Protected Attributes inherited from \fBSoAccumulatedElement\fP .in +1c .ti -1c .RI "\fBSbList\fP< SbUniqueId > \fBnodeIds\fP" .br .in -1c Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "\fBSoType\fP \fBtypeId\fP" .br .ti -1c .RI "int \fBstackIndex\fP" .br .ti -1c .RI "int \fBdepth\fP" .br .in -1c Static Protected Attributes inherited from \fBSoElement\fP .in +1c .ti -1c .RI "static int \fBclassStackIndex\fP" .br .ti -1c .RI "static \fBSoTypeList\fP * \fBstackToType\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoMultiTextureMatrixElement\fP class is used to manage the texture matrix stack for texture units > 0\&. The texture matrix is used to transform texture coordinates before being used to map textures onto polygons\&. .PP \fBSince\fP .RS 4 Coin 2\&.2 .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoMultiTextureMatrixElement::SoMultiTextureMatrixElement (void )\fR [protected]\fP" Constructor\&. .SS "SoMultiTextureMatrixElement::~SoMultiTextureMatrixElement (void )\fR [protected]\fP, \fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoMultiTextureMatrixElement::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .br .SS "int SoMultiTextureMatrixElement::getClassStackIndex (void )\fR [static]\fP" This static method returns the state stack index for the class\&. .br .SS "void * SoMultiTextureMatrixElement::createInstance (void )\fR [static]\fP" \fIThis API member is considered internal to the library, as it is not likely to be of interest to the application programmer\&.\fP .br .br Creates a new instance of the class type corresponding to the \fBSoType\fP object\&. .br .SS "void SoMultiTextureMatrixElement::initClass (void )\fR [static]\fP" Initialize relevant common data for all instances, like the type system\&. .SS "void SoMultiTextureMatrixElement::init (\fBSoState\fP * state)\fR [virtual]\fP" This function initializes the element type in the given \fBSoState\fP\&. It is called for the first element of each enabled element type in \fBSoState\fP objects\&. .PP Reimplemented from \fBSoAccumulatedElement\fP\&. .PP Reimplemented in \fBSoGLMultiTextureMatrixElement\fP\&. .SS "void SoMultiTextureMatrixElement::push (\fBSoState\fP * state)\fR [virtual]\fP" This method is called every time a new element is required in one of the stacks\&. This happens when a writable element is requested, using \fBSoState::getElement()\fP or indirectly \fBSoElement::getElement()\fP, and the depth of the current element is less than the state depth\&. .PP Override this method if your element needs to copy data from the previous top of stack\&. The \fBpush()\fP method is called on the new element, and the previous element can be found using \fBSoElement::getNextInStack()\fP\&. .PP Reimplemented from \fBSoAccumulatedElement\fP\&. .PP Reimplemented in \fBSoGLMultiTextureMatrixElement\fP\&. .SS "void SoMultiTextureMatrixElement::mult (\fBSoState\fP *const state, \fBSoNode\fP *const node, const int unit, const \fBSbMatrix\fP & matrix)\fR [static]\fP" Multiplies \fImatrix\fP into the current texture matrix\&. .SS "const \fBSbMatrix\fP & SoMultiTextureMatrixElement::get (\fBSoState\fP *const state, const int unit = \fR0\fP)\fR [static]\fP" Returns current texture matrix\&. .SS "void SoMultiTextureMatrixElement::multElt (const int unit, const \fBSbMatrix\fP & matrix)\fR [protected]\fP, \fR [virtual]\fP" virtual method which is called from \fBmult()\fP\&. Multiplies \fImatrix\fP into element matrix\&. .PP Reimplemented in \fBSoGLMultiTextureMatrixElement\fP\&. .SS "void SoMultiTextureMatrixElement::setElt (const int unit, const \fBSbMatrix\fP & matrix)\fR [protected]\fP, \fR [virtual]\fP" virtual method which is called from set()\&. Sets \fImatrix\fP into element matrix\&. .PP Reimplemented in \fBSoGLMultiTextureMatrixElement\fP\&. .SS "const \fBSbMatrix\fP & SoMultiTextureMatrixElement::getElt (const int unit) const\fR [protected]\fP, \fR [virtual]\fP" Returns element matrix\&. Called from \fBget()\fP\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.