.TH "SoAccumulatedElement" 3 "Tue Jun 23 2026 23:48:38" "Version 4.0.10" "Coin" \" -*- nroff -*- .ad l .nh .SH NAME SoAccumulatedElement \- The \fBSoAccumulatedElement\fP class is an abstract class for storing accumulated state\&. .SH SYNOPSIS .br .PP .PP \fR#include \fP .PP Inherits \fBSoElement\fP\&. .PP Inherited by \fBSoBumpMapMatrixElement\fP, \fBSoClipPlaneElement\fP, \fBSoLightElement\fP, \fBSoModelMatrixElement\fP, \fBSoMultiTextureMatrixElement\fP, \fBSoProfileElement\fP, and \fBSoVertexAttributeElement\fP\&. .SS "Public Member Functions" .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 \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 "virtual \fB~SoAccumulatedElement\fP ()" .br .ti -1c .RI "virtual void \fBinit\fP (\fBSoState\fP *state)" .br .ti -1c .RI "virtual void \fBpush\fP (\fBSoState\fP *state)" .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 "Protected Attributes" .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 .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 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 \fBSoAccumulatedElement\fP class is an abstract class for storing accumulated state\&. This is the superclass of elements where new element data \fIaccumulates\fP with older data\&. .PP The element stores node id values for all nodes accumulated during traversal for the current state\&. These id values are used to determine when to invalidate caches\&. .PP \fBSee also\fP .RS 4 \fBSoReplacedElement\fP, \fBSoFloatElement\fP, \fBSoInt32Element\fP .RE .PP .SH "Constructor & Destructor Documentation" .PP .SS "SoAccumulatedElement::~SoAccumulatedElement (void )\fR [protected]\fP, \fR [virtual]\fP" Destructor\&. .SH "Member Function Documentation" .PP .SS "\fBSoType\fP SoAccumulatedElement::getClassTypeId (void )\fR [static]\fP" This static method returns the \fBSoType\fP object associated with objects of this class\&. .SS "int SoAccumulatedElement::getClassStackIndex (void )\fR [static]\fP" This static method returns the state stack index for the class\&. .SS "void SoAccumulatedElement::initClass (void )\fR [static]\fP" Initialize relevant common data for all instances, like the type system\&. .SS "SbBool SoAccumulatedElement::matches (const \fBSoElement\fP * element) const\fR [virtual]\fP" This function returns \fRTRUE\fP is the element matches another element (of the same class), with respect to cache validity\&. .PP If the application programmer's extension element has a \fBmatches()\fP function, it should also have a \fBcopyMatchInfo()\fP function\&. .PP Implements \fBSoElement\fP\&. .PP Reimplemented in \fBSoModelMatrixElement\fP\&. .SS "void SoAccumulatedElement::init (\fBSoState\fP * state)\fR [protected]\fP, \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 \fBSoElement\fP\&. .PP Reimplemented in \fBSoBBoxModelMatrixElement\fP, \fBSoBumpMapMatrixElement\fP, \fBSoClipPlaneElement\fP, \fBSoGLClipPlaneElement\fP, \fBSoGLModelMatrixElement\fP, \fBSoGLMultiTextureMatrixElement\fP, \fBSoGLVertexAttributeElement\fP, \fBSoLightElement\fP, \fBSoModelMatrixElement\fP, \fBSoMultiTextureMatrixElement\fP, \fBSoProfileElement\fP, and \fBSoVertexAttributeElement\fP\&. .SS "void SoAccumulatedElement::push (\fBSoState\fP * state)\fR [protected]\fP, \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 \fBSoElement\fP\&. .PP Reimplemented in \fBSoBBoxModelMatrixElement\fP, \fBSoBumpMapMatrixElement\fP, \fBSoClipPlaneElement\fP, \fBSoGLModelMatrixElement\fP, \fBSoGLMultiTextureMatrixElement\fP, \fBSoLightElement\fP, \fBSoModelMatrixElement\fP, \fBSoMultiTextureMatrixElement\fP, \fBSoProfileElement\fP, and \fBSoVertexAttributeElement\fP\&. .SS "void SoAccumulatedElement::clearNodeIds (void )\fR [protected]\fP" Empty the list of node ids\&. .SS "void SoAccumulatedElement::addNodeId (const \fBSoNode\fP *const node)\fR [protected]\fP" Add the node id of \fInode\fP to the list of node ids\&. .SS "void SoAccumulatedElement::setNodeId (const \fBSoNode\fP *const node)\fR [protected]\fP" Empty the list of node ids, and add the id of \fInode\fP\&. .SS "void SoAccumulatedElement::copyNodeIds (const \fBSoAccumulatedElement\fP * copyfrom)\fR [protected]\fP" Convenience method which copies the node ids from \fIcopyfrom\fP to this element\&. .PP This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2\&.1 API\&. .br .SS "\fBSoElement\fP * SoAccumulatedElement::copyMatchInfo (void ) const\fR [protected]\fP, \fR [virtual]\fP" This function creates a copy of the element that contains enough information to enable the \fBmatches()\fP function to work\&. .PP Used to help with scene graph traversal caching operations\&. .PP Implements \fBSoElement\fP\&. .SS "void SoAccumulatedElement::captureThis (\fBSoState\fP * state) const\fR [protected]\fP, \fR [virtual]\fP" Adds the element to the cache\&. .PP Reimplemented from \fBSoElement\fP\&. .SH "Member Data Documentation" .PP .SS "\fBSbList\fP SoAccumulatedElement::nodeIds\fR [protected]\fP" Stores the internal list of node id values for nodes accumulated on the stack for the element\&. .SH "Author" .PP Generated automatically by Doxygen for Coin from the source code\&.