#include <Inventor/elements/SoReplacedElement.h>
Inheritance diagram for SoReplacedElement::
Public Methods | |
virtual void | init (SoState *state) |
virtual SbBool | matches (const SoElement *element) const |
virtual SoElement * | copyMatchInfo () const |
uint32_t | getNodeId () const |
virtual void | print (FILE *file) const |
Static Public Methods | |
void | initClass (void) |
Protected Methods | |
virtual | ~SoReplacedElement () |
Static Protected Methods | |
SoElement * | getElement (SoState *const state, const int stackIndex, SoNode *const node) |
Protected Attributes | |
uint32_t | nodeId |
This is the superclass of all elements where the new element value replaces the old value. Most elements in the Coin library is in this category.
Apart from this conceptual difference from it's superclass, the SoReplacedElement class also overloads the default getElement() method to include a node reference. This reference is used to fetch the unique node identification number of the node that last changed the element.
The identifier values of nodes in the scenegraph is updated upon any kind of change to a node, so this technique plays an important role in the construction, validation and destruction of internal scenegraph caches.
|
Destructor. |
|
Initialize relevant common data for all instances, like the type system. Reimplemented from SoElement. Reimplemented in SoGLColorIndexElement. |
|
This function initializes the element type in the given SoState. It is called for the first element of each enabled element type in SoState objects. Reimplemented from SoElement. Reimplemented in SoGLColorIndexElement. |
|
This function returns If the application programmer's extension element has a matches() function, it should also have a copyMatchInfo() function. Reimplemented from SoElement. |
|
This function creates a copy of the element that contains enough information to enable the matches() function to work. Used to help with scenegraph traversal caching operations. Reimplemented from SoElement. |
|
Returns the node identifier for the node that previously updated the SoReplacedElement. |
|
This function is for printing element information, and is used mostly for debugging purposes. Reimplemented from SoElement. |
|
This function overloads SoElement::getElement() with an extra node parameter, to let us set the SoReplacedElement::nodeId in the element instance before returning. SoReplacedElement subclasses should use this method to get writable instances. The identifier values of nodes in the scenegraph is updated upon any kind of change to a node, so this technique plays an important role in the construction, validation and destruction of internal scenegraph caches.
|
|
For internal use only. |