.TH "SoTextureMatrixElement" 3 "Wed May 23 2012" "Version 3.1.3" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoTextureMatrixElement \- .PP The \fBSoTextureMatrixElement\fP class is used to manage the texture matrix stack\&. .PP The texture matrix is used to transform texture coordinates before being used to map textures onto polygons\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBSoAccumulatedElement\fP\&. .PP Inherited by \fBSoGLTextureMatrixElement\fP\&. .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 .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 \fBmakeIdentity\fP (\fBSoState\fP *const state, \fBSoNode\fP *const node)" .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 .ti -1c .RI "static const \fBSbMatrix\fP & \fBget\fP (\fBSoState\fP *const state)" .br .ti -1c .RI "static void \fBemptyMatrix\fP (\fBSoState\fP *const state)" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual \fB~SoTextureMatrixElement\fP ()" .br .ti -1c .RI "virtual void \fBmakeEltIdentity\fP (void)" .br .ti -1c .RI "virtual void \fBsetElt\fP (const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "virtual void \fBmultElt\fP (const \fBSbMatrix\fP &matrix)" .br .ti -1c .RI "virtual void \fBtranslateEltBy\fP (const \fBSbVec3f\fP &translation)" .br .ti -1c .RI "virtual void \fBrotateEltBy\fP (const \fBSbRotation\fP &rotation)" .br .ti -1c .RI "virtual void \fBscaleEltBy\fP (const \fBSbVec3f\fP &scaleFactor)" .br .ti -1c .RI "virtual const \fBSbMatrix\fP & \fBgetElt\fP (void) const " .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "\fBSbMatrix\fP \fBtextureMatrix\fP" .br .in -1c .SH "Detailed Description" .PP The \fBSoTextureMatrixElement\fP class is used to manage the texture matrix stack\&. .PP The texture matrix is used to transform texture coordinates before being used to map textures onto polygons\&. .SH "Constructor & Destructor Documentation" .PP .SS "SoTextureMatrixElement::~SoTextureMatrixElement (void)\fC [protected]\fP, \fC [virtual]\fP" The destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoTextureMatrixElement::getClassTypeId (void)\fC [static]\fP" This static method returns the class type\&. .PP Reimplemented from \fBSoAccumulatedElement\fP\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "int SoTextureMatrixElement::getClassStackIndex (void)\fC [static]\fP" This static method returns the state stack index for the class\&. .PP Reimplemented from \fBSoAccumulatedElement\fP\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void * SoTextureMatrixElement::createInstance (void)\fC [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 .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::initClass (void)\fC [static]\fP" Initialize relevant common data for all instances, like the type system\&. .PP Reimplemented from \fBSoAccumulatedElement\fP\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::init (\fBSoState\fP *state)\fC [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 \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::push (\fBSoState\fP *state)\fC [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\&. .SS "void SoTextureMatrixElement::makeIdentity (\fBSoState\fP *conststate, \fBSoNode\fP *constnode)\fC [static]\fP" Sets current texture matrix to identity\&. .SS "void SoTextureMatrixElement::set (\fBSoState\fP *conststate, \fBSoNode\fP *constnode, const \fBSbMatrix\fP &matrix)\fC [static]\fP" Sets the current texture matrix to \fImatrix\fP\&. .PP This method is an extension versus the Open Inventor API\&. .SS "void SoTextureMatrixElement::mult (\fBSoState\fP *conststate, \fBSoNode\fP *constnode, const \fBSbMatrix\fP &matrix)\fC [static]\fP" Multiplies \fImatrix\fP into the current texture matrix\&. .SS "void SoTextureMatrixElement::translateBy (\fBSoState\fP *conststate, \fBSoNode\fP *constnode, const \fBSbVec3f\fP &translation)\fC [static]\fP" Appends \fItranslation\fP to the current texture matrix\&. .SS "void SoTextureMatrixElement::rotateBy (\fBSoState\fP *conststate, \fBSoNode\fP *constnode, const \fBSbRotation\fP &rotation)\fC [static]\fP" Appends \fIrotation\fP to the current texture matrix\&. .SS "void SoTextureMatrixElement::scaleBy (\fBSoState\fP *conststate, \fBSoNode\fP *constnode, const \fBSbVec3f\fP &scaleFactor)\fC [static]\fP" Appends \fIscaleFactor\fP to the current texture matrix\&. .SS "const \fBSbMatrix\fP & SoTextureMatrixElement::get (\fBSoState\fP *conststate)\fC [static]\fP" Returns current texture matrix\&. .SS "void SoTextureMatrixElement::emptyMatrix (\fBSoState\fP *conststate)\fC [static]\fP" Provided for API compatibility only\&. Does nothing for the moment\&. .SS "void SoTextureMatrixElement::makeEltIdentity (void)\fC [protected]\fP, \fC [virtual]\fP" virtual method which is called from \fBmakeIdentity()\fP\&. Sets element matrix to identity\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::setElt (const \fBSbMatrix\fP &matrix)\fC [protected]\fP, \fC [virtual]\fP" virtual method which is called from \fBset()\fP\&. Sets the texture matrix to \fImatrix\fP\&. .PP This method is an extension versus the Open Inventor API\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::multElt (const \fBSbMatrix\fP &matrix)\fC [protected]\fP, \fC [virtual]\fP" virtual method which is called from \fBmult()\fP\&. Multiplies \fImatrix\fP into element matrix\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::translateEltBy (const \fBSbVec3f\fP &translation)\fC [protected]\fP, \fC [virtual]\fP" virtual method which is called from \fBtranslateBy()\fP\&. Appends \fItranslation\fP to the element matrix\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::rotateEltBy (const \fBSbRotation\fP &rotation)\fC [protected]\fP, \fC [virtual]\fP" virtual method which is called from \fBrotateBy()\fP\&. Appends \fIrotation\fP to the element matrix\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "void SoTextureMatrixElement::scaleEltBy (const \fBSbVec3f\fP &scaleFactor)\fC [protected]\fP, \fC [virtual]\fP" virtual method which is called from \fBscaleBy()\fP\&. Append \fIscaleFactor\fP to the element matrix\&. .PP Reimplemented in \fBSoGLTextureMatrixElement\fP\&. .SS "const \fBSbMatrix\fP & SoTextureMatrixElement::getElt (void) const\fC [protected]\fP, \fC [virtual]\fP" Returns element matrix\&. Called from \fBget()\fP\&. .SH "Member Data Documentation" .PP .SS "SoTextureMatrixElement::textureMatrix\fC [protected]\fP" The matrix\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.