![]() |
http://www.sim.no/ http://www.coin3d.org/ |
The SoReplacedElement class is an abstract element superclass.This is the superclass of all elements where the new element data replaces the old data, and where the data the element stores is not just a simple float or integer value. More...
#include <Inventor/elements/SoReplacedElement.h>
Public Member Functions | |
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 Member Functions | |
static void | initClass (void) |
Protected Member Functions | |
virtual | ~SoReplacedElement () |
Static Protected Member Functions | |
static SoElement * | getElement (SoState *const state, const int stackIndex, SoNode *const node) |
Protected Attributes | |
uint32_t | nodeId |
The SoReplacedElement class is an abstract element superclass.
This is the superclass of all elements where the new element data replaces the old data, and where the data the element stores is not just a simple float or integer value.
Apart from this conceptual difference from its 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.
SoReplacedElement::~SoReplacedElement | ( | void | ) | [protected, virtual] |
Destructor.
void SoReplacedElement::initClass | ( | void | ) | [static] |
Initialize relevant common data for all instances, like the type system.
Reimplemented from SoElement.
Reimplemented in SoAmbientColorElement, SoBumpMapCoordinateElement, SoCoordinateElement, SoDiffuseColorElement, SoEmissiveColorElement, SoEnvironmentElement, SoFontNameElement, SoGLColorIndexElement, SoGLCoordinateElement, SoGLEnvironmentElement, SoGLNormalElement, SoGLPolygonOffsetElement, SoGLProjectionMatrixElement, SoGLTextureCoordinateElement, SoGLTextureImageElement, SoGLViewingMatrixElement, SoGeoElement, SoLightAttenuationElement, SoListenerDopplerElement, SoListenerOrientationElement, SoListenerPositionElement, SoNormalElement, SoPolygonOffsetElement, SoProfileCoordinateElement, SoShininessElement, SoSoundElement, SoSpecularColorElement, SoTextureCoordinateElement, SoTextureImageElement, SoTransparencyElement, SoViewVolumeElement, and SoViewingMatrixElement.
SoElement * SoReplacedElement::copyMatchInfo | ( | void | ) | const [virtual] |
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.
Implements SoElement.
Reimplemented in SoFontNameElement, and SoLightAttenuationElement.
uint32_t SoReplacedElement::getNodeId | ( | void | ) | const |
Returns the node identifier for the node that previously updated the SoReplacedElement.
void SoReplacedElement::print | ( | FILE * | file | ) | const [virtual] |
This function is for printing element information, and is used mostly for debugging purposes.
Reimplemented from SoElement.
Reimplemented in SoCoordinateElement, SoEnvironmentElement, SoFontNameElement, SoLightAttenuationElement, SoListenerDopplerElement, SoListenerOrientationElement, SoListenerPositionElement, and SoSoundElement.
SoElement * SoReplacedElement::getElement | ( | SoState *const | state, |
const int | stackIndex, | ||
SoNode *const | node | ||
) | [static, protected] |
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.
uint32_t SoReplacedElement::nodeId [protected] |
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.7.3.