Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoAccumulatedElement Class Reference

Abstract base class for each state element whose value may be accumulated when it is set. More...

#include <Inventor/elements/SoAccumulatedElement.h>

+ Inheritance diagram for SoAccumulatedElement:

Public Member Functions

virtual void push (SoState *)
 Pushes element.
 
virtual void print (FILE *fp) const
 Prints element (for debugging).
 
- Public Member Functions inherited from SoElement
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Pops element.
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Detailed Description

Abstract base class for each state element whose value may be accumulated when it is set.

This is the abstract base class for each state element whose value may be accumulated when it is set. (This is rare.) Examples are transformations and profiles.

Subclasses may need to override the push() method to copy values from the next instance in the stack (using getNextInStack() ), if the new one has to accumulate values on top of the old ones.

This class defines the matches() method to compare lists of node-id's. The node-id's represent the states of all nodes that changed the value of the element. SoAccumulatedElement provides methods that maintain lists of node-id's of all nodes that affect an instance. Subclasses must call these methods to make sure the id's are up to date, if they plan to use the standard matches() method. Otherwise, they can define matches() differently, if they wish.

SEE ALSO

Referenced classes go here.

Definition at line 91 of file SoAccumulatedElement.h.

Member Function Documentation

◆ getClassStackIndex()

static int SoAccumulatedElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoAccumulatedElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ print()

virtual void SoAccumulatedElement::print ( FILE *  fp) const
virtual

Prints element (for debugging).

Reimplemented from SoElement.

Reimplemented in SoClipPlaneElement, SoModelMatrixElement, SoProfileElement, and SoTextureMatrixElement.

◆ push()


The documentation for this class was generated from the following file: