Open Inventor Reference
SoOverrideElement Class Reference

Element that stores a flag for each type of element which can be overridden. More...

#include <Inventor/elements/SoOverrideElement.h>

Inheritance diagram for SoOverrideElement:
SoElement

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
 
virtual bool matches (const SoElement *elt) const
 Comparison based on value of int32_ts.
 
virtual void push (SoState *state)
 Overrides push() method to copy values from next instance in the stack, and set up cache dependencies correctly.
 
virtual void print (FILE *fp) const
 Prints element (for debugging)
 
virtual SoElementcopyMatchInfo () const
 Copy method, copies flags.
 
- Public Member Functions inherited from SoElement
virtual void init (SoState *state)
 Initializes element.
 
virtual void push (SoState *state)
 Pushes/pops element.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 
virtual void print (FILE *fp) const
 Prints element (for debugging)
 
virtual bool matches (const SoElement *elt) const =0
 Returns TRUE if the element matches another element (of the same class, presumably) with respect to cache validity.
 
virtual SoElementcopyMatchInfo () const =0
 Create a copy that we can put in a cache used list and call matches() on later.
 
SoType getTypeId () const
 Returns type identifier for element instance.
 
int getStackIndex () const
 Returns the stack index for an element instance.
 
void setDepth (int dpth)
 Sets stuff in an element instance.
 
void setNext (SoElement *nxt)
 
void setNextInStack (SoElement *nxt)
 
void setNextFree (SoElement *nxt)
 
int getDepth () const
 Returns stuff from element instance.
 
SoElementgetNext () const
 
virtual ~SoElement ()
 Destructor.
 

Static Public Member Functions

static bool getAmbientColorOverride (SoState *state)
 "get" methods for each element which can be overridden.
 
static bool getComplexityOverride (SoState *state)
 Returns TRUE if SoComplexityElement is overridden.
 
static bool getComplexityTypeOverride (SoState *state)
 Returns TRUE if SoComplexityTypeElement is overridden.
 
static bool getCreaseAngleOverride (SoState *state)
 Returns TRUE if SoCreaseAngleElement is overridden.
 
static bool getDiffuseColorOverride (SoState *state)
 Returns TRUE if SoDiffuseColorElement is overridden.
 
static bool getDrawStyleOverride (SoState *state)
 Returns TRUE if SoDrawStyleElement is overridden.
 
static bool getEmissiveColorOverride (SoState *state)
 Returns TRUE if SoEmissiveColorElement is overridden.
 
static bool getFontNameOverride (SoState *state)
 Returns TRUE if SoFontNameElement is overridden.
 
static bool getFontSizeOverride (SoState *state)
 Returns TRUE if SoFontSizeElement is overridden.
 
static bool getLightModelOverride (SoState *state)
 Returns TRUE if SoLightModelElement is overridden.
 
static bool getLinePatternOverride (SoState *state)
 Returns TRUE if SoLinePatternElement is overridden.
 
static bool getLineWidthOverride (SoState *state)
 Returns TRUE if SoLineWidthElement is overridden.
 
static bool getMaterialBindingOverride (SoState *state)
 Returns TRUE if SoMaterialBindingElement is overridden.
 
static bool getPointSizeOverride (SoState *state)
 Returns TRUE if SoPointSizeElement is overridden.
 
static bool getPickStyleOverride (SoState *state)
 Returns TRUE if SoPickStyleElement is overridden.
 
static bool getShapeHintsOverride (SoState *state)
 Returns TRUE if SoShapeHintsElement is overridden.
 
static bool getShininessOverride (SoState *state)
 Returns TRUE if SoShininessElement is overridden.
 
static bool getSpecularColorOverride (SoState *state)
 Returns TRUE if SoSpecularColorElement is overridden.
 
static bool getTransparencyOverride (SoState *state)
 Returns TRUE if SoTransparencyElement is overridden.
 
static bool getPolygonOffsetOverride (SoState *state)
 Returns TRUE if SoPolygonOffsetElement is overridden.
 
static void setAmbientColorOverride (SoState *state, SoNode *, bool override)
 "set" methods for each element which can be overridden.
 
static void setComplexityOverride (SoState *state, SoNode *, bool override)
 set override flag for SoComplexityElement.
 
static void setComplexityTypeOverride (SoState *state, SoNode *, bool override)
 set override flag for SoComplexityTypeElement.
 
static void setCreaseAngleOverride (SoState *state, SoNode *, bool override)
 set override flag for SoCreaseAngleElement.
 
static void setDiffuseColorOverride (SoState *state, SoNode *, bool override)
 set override flag for SoDiffuseColorElement.
 
static void setDrawStyleOverride (SoState *state, SoNode *, bool override)
 set override flag for SoDrawStyleElement.
 
static void setEmissiveColorOverride (SoState *state, SoNode *, bool override)
 set override flag for SoEmissiveColorElement.
 
static void setFontNameOverride (SoState *state, SoNode *, bool override)
 set override flag for SoFontNameElement.
 
static void setFontSizeOverride (SoState *state, SoNode *, bool override)
 set override flag for SoFontSizeElement.
 
static void setLightModelOverride (SoState *state, SoNode *, bool override)
 set override flag for SoLightModelElement.
 
static void setLinePatternOverride (SoState *state, SoNode *, bool override)
 set override flag for SoLinePatternElement.
 
static void setLineWidthOverride (SoState *state, SoNode *, bool override)
 set override flag for SoLineWidthElement.
 
static void setMaterialBindingOverride (SoState *state, SoNode *, bool override)
 set override flag for SoMaterialBinding.
 
static void setPickStyleOverride (SoState *state, SoNode *, bool override)
 set override flag for SoPickStyleElement.
 
static void setPointSizeOverride (SoState *state, SoNode *, bool override)
 set override flag for SoPointSizeElement.
 
static void setShapeHintsOverride (SoState *state, SoNode *, bool override)
 set override flag for SoShapeHintsElement.
 
static void setShininessOverride (SoState *state, SoNode *, bool override)
 set override flag for SoShininessElement.
 
static void setSpecularColorOverride (SoState *state, SoNode *, bool override)
 set override flag for SoSpecularColorElement.
 
static void setTransparencyOverride (SoState *state, SoNode *, bool override)
 set override flag for SoTransparencyElement.
 
static void setPolygonOffsetOverride (SoState *state, SoNode *, bool override)
 set override flag for SoPolygonOffsetElement.
 
static void initClass ()
 Initializes the SoOverrideElement class.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
static void initElements ()
 Initialize ALL Inventor element classes.
 
static void initClass ()
 Initializes the SoElement class.
 
static int getNumStackIndices ()
 Returns the number of stack indices allocated.
 
static SoType getIdFromStackIndex (int stackIndex)
 Returns the id for the element with the given stack index.
 

Additional Inherited Members

- Protected Member Functions inherited from SoElement
 SoElement ()
 Constructor; use typeId.createInstance to create elements.
 
void capture (SoState *state) const
 Does whatever is necessary in state to capture this element for caching purposes.
 
virtual void captureThis (SoState *state) const
 Really captures this element, once it has been determined that a cache is open to capture it.
 
void setTypeId (SoType id)
 Sets typeId in instance.
 
void setStackIndex (int index)
 Sets stackIndex in instance.
 
SoElementgetNextInStack () const
 Returns next instance in specific element stack.
 
SoElementgetNextFree () const
 Returns next free element in a specific element stack.
 
- Static Protected Member Functions inherited from SoElement
static SoElementgetElement (SoState *state, int stackIndex)
 Returns an instance of an element from the stack with the given index in the given state.
 
static const SoElementgetConstElement (SoState *state, int stackIndex)
 Returns a read-only pointer to the top instance in the given element stack.
 
static int createStackIndex (SoType id)
 Creates and returns a new stack index.
 
- Static Protected Attributes inherited from SoElement
static int classStackIndex
 Stack index for SoElement class.
 

Detailed Description

Nodes implement override by setting the appropriate bit if their override flag is on, and ignoring overridden elements if the corresponding bit in the state's SoOverrideElement is set.

Definition at line 94 of file SoOverrideElement.h.

Member Function Documentation

◆ copyMatchInfo()

virtual SoElement * SoOverrideElement::copyMatchInfo ( ) const
virtual

Implements SoElement.

◆ getAmbientColorOverride()

static bool SoOverrideElement::getAmbientColorOverride ( SoState state)
inlinestatic

Returns TRUE if SoAmbientColorElement is overridden.

Definition at line 138 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getComplexityOverride()

static bool SoOverrideElement::getComplexityOverride ( SoState state)
inlinestatic

Definition at line 142 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getComplexityTypeOverride()

static bool SoOverrideElement::getComplexityTypeOverride ( SoState state)
inlinestatic

Definition at line 146 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getCreaseAngleOverride()

static bool SoOverrideElement::getCreaseAngleOverride ( SoState state)
inlinestatic

Definition at line 150 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getDiffuseColorOverride()

static bool SoOverrideElement::getDiffuseColorOverride ( SoState state)
inlinestatic

Definition at line 154 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getDrawStyleOverride()

static bool SoOverrideElement::getDrawStyleOverride ( SoState state)
inlinestatic

Definition at line 158 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getEmissiveColorOverride()

static bool SoOverrideElement::getEmissiveColorOverride ( SoState state)
inlinestatic

Definition at line 162 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getFontNameOverride()

static bool SoOverrideElement::getFontNameOverride ( SoState state)
inlinestatic

Definition at line 166 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getFontSizeOverride()

static bool SoOverrideElement::getFontSizeOverride ( SoState state)
inlinestatic

Definition at line 170 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getLightModelOverride()

static bool SoOverrideElement::getLightModelOverride ( SoState state)
inlinestatic

Definition at line 174 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getLinePatternOverride()

static bool SoOverrideElement::getLinePatternOverride ( SoState state)
inlinestatic

Definition at line 178 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getLineWidthOverride()

static bool SoOverrideElement::getLineWidthOverride ( SoState state)
inlinestatic

Definition at line 182 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getMaterialBindingOverride()

static bool SoOverrideElement::getMaterialBindingOverride ( SoState state)
inlinestatic

Definition at line 186 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getPickStyleOverride()

static bool SoOverrideElement::getPickStyleOverride ( SoState state)
inlinestatic

Definition at line 194 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getPointSizeOverride()

static bool SoOverrideElement::getPointSizeOverride ( SoState state)
inlinestatic

Definition at line 190 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getPolygonOffsetOverride()

static bool SoOverrideElement::getPolygonOffsetOverride ( SoState state)
inlinestatic

Definition at line 214 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getShapeHintsOverride()

static bool SoOverrideElement::getShapeHintsOverride ( SoState state)
inlinestatic

Definition at line 198 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getShininessOverride()

static bool SoOverrideElement::getShininessOverride ( SoState state)
inlinestatic

Definition at line 202 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getSpecularColorOverride()

static bool SoOverrideElement::getSpecularColorOverride ( SoState state)
inlinestatic

Definition at line 206 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ getTransparencyOverride()

static bool SoOverrideElement::getTransparencyOverride ( SoState state)
inlinestatic

Definition at line 210 of file SoOverrideElement.h.

References SO_GET_OVERRIDE.

◆ init()

virtual void SoOverrideElement::init ( SoState state)
virtual

Reimplemented from SoElement.

◆ initClass()

static void SoOverrideElement::initClass ( )
static

◆ matches()

virtual bool SoOverrideElement::matches ( const SoElement elt) const
virtual

Implements SoElement.

◆ print()

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

Reimplemented from SoElement.

◆ push()

virtual void SoOverrideElement::push ( SoState state)
virtual

Reimplemented from SoElement.

◆ setAmbientColorOverride()

static void SoOverrideElement::setAmbientColorOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

set override flag for SoAmbientColorElement.

Definition at line 222 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setComplexityOverride()

static void SoOverrideElement::setComplexityOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 227 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setComplexityTypeOverride()

static void SoOverrideElement::setComplexityTypeOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 232 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setCreaseAngleOverride()

static void SoOverrideElement::setCreaseAngleOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 237 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setDiffuseColorOverride()

static void SoOverrideElement::setDiffuseColorOverride ( SoState state,
SoNode ,
bool  override 
)
static

◆ setDrawStyleOverride()

static void SoOverrideElement::setDrawStyleOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 246 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setEmissiveColorOverride()

static void SoOverrideElement::setEmissiveColorOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 251 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setFontNameOverride()

static void SoOverrideElement::setFontNameOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 256 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setFontSizeOverride()

static void SoOverrideElement::setFontSizeOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 261 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setLightModelOverride()

static void SoOverrideElement::setLightModelOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 266 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setLinePatternOverride()

static void SoOverrideElement::setLinePatternOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 271 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setLineWidthOverride()

static void SoOverrideElement::setLineWidthOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 276 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setMaterialBindingOverride()

static void SoOverrideElement::setMaterialBindingOverride ( SoState state,
SoNode ,
bool  override 
)
static

◆ setPickStyleOverride()

static void SoOverrideElement::setPickStyleOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 285 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setPointSizeOverride()

static void SoOverrideElement::setPointSizeOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 290 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setPolygonOffsetOverride()

static void SoOverrideElement::setPolygonOffsetOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 314 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setShapeHintsOverride()

static void SoOverrideElement::setShapeHintsOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 295 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setShininessOverride()

static void SoOverrideElement::setShininessOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 300 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setSpecularColorOverride()

static void SoOverrideElement::setSpecularColorOverride ( SoState state,
SoNode ,
bool  override 
)
inlinestatic

Definition at line 305 of file SoOverrideElement.h.

References SO_SET_OVERRIDE.

◆ setTransparencyOverride()

static void SoOverrideElement::setTransparencyOverride ( SoState state,
SoNode ,
bool  override 
)
static

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