Open Inventor Reference
SoOverrideElement.h File Reference

Go to the source code of this file.

Classes

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

Macros

#define SO_GET_OVERRIDE(flag)
 Macro to implement get*Override inline methods.
 
#define SO_SET_OVERRIDE(flag)
 Implement set*Override methods.
 

Macro Definition Documentation

◆ SO_GET_OVERRIDE

#define SO_GET_OVERRIDE (   flag)
Value:
const SoOverrideElement *elt; \
elt = (const SoOverrideElement *) \
getConstElement(state, classStackIndex); \
return (elt->flags & flag) != 0;
Element that stores a flag for each type of element which can be overridden.

There are a lot of these methods, each of which has an identical implementation and which needs to be inline to keep traversal fast.

Definition at line 65 of file SoOverrideElement.h.

◆ SO_SET_OVERRIDE

#define SO_SET_OVERRIDE (   flag)
Value:
elt = (SoOverrideElement *)getElement(state, classStackIndex); \
if (override) \
elt->flags |= flag; \
else \
elt->flags &= ~flag;

Definition at line 74 of file SoOverrideElement.h.