55#ifndef _SO_OVERRIDE_ELEMENT
56#define _SO_OVERRIDE_ELEMENT
65#define SO_GET_OVERRIDE(flag) \
66 const SoOverrideElement *elt; \
67 elt = (const SoOverrideElement *) \
68 getConstElement(state, classStackIndex); \
69 return (elt->flags & flag) != 0;
74#define SO_SET_OVERRIDE(flag) \
75 SoOverrideElement *elt; \
76 elt = (SoOverrideElement *)getElement(state, classStackIndex); \
102 COMPLEXITY_TYPE = 0x8,
104 DIFFUSE_COLOR = 0x20,
107 EMISSIVE_COLOR = 0x80,
111 LINE_PATTERN = 0x800,
113 MATERIAL_BINDING= 0x2000,
116 SHAPE_HINTS = 0x10000,
118 SPECULAR_COLOR = 0x40000,
119 POLYGON_OFFSET = 0x80000
330 void pFlag(FILE *,
const char *,
int)
const;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_GET_OVERRIDE(flag)
Macro to implement get*Override inline methods.
#define SO_SET_OVERRIDE(flag)
Implement set*Override methods.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
This is the abstract base class for all state elements.
Abstract base class for all database nodes.
Element that stores a flag for each type of element which can be overridden.
static bool getDiffuseColorOverride(SoState *state)
Returns TRUE if SoDiffuseColorElement is overridden.
static void setComplexityOverride(SoState *state, SoNode *, bool override)
set override flag for SoComplexityElement.
static void setPointSizeOverride(SoState *state, SoNode *, bool override)
set override flag for SoPointSizeElement.
static bool getFontNameOverride(SoState *state)
Returns TRUE if SoFontNameElement is overridden.
static bool getTransparencyOverride(SoState *state)
Returns TRUE if SoTransparencyElement is overridden.
static bool getComplexityTypeOverride(SoState *state)
Returns TRUE if SoComplexityTypeElement is overridden.
static void setLineWidthOverride(SoState *state, SoNode *, bool override)
set override flag for SoLineWidthElement.
static bool getShapeHintsOverride(SoState *state)
Returns TRUE if SoShapeHintsElement is overridden.
virtual bool matches(const SoElement *elt) const
Comparison based on value of int32_ts.
static bool getEmissiveColorOverride(SoState *state)
Returns TRUE if SoEmissiveColorElement is overridden.
static void setFontSizeOverride(SoState *state, SoNode *, bool override)
set override flag for SoFontSizeElement.
static void initClass()
Initializes the SoOverrideElement class.
static bool getAmbientColorOverride(SoState *state)
"get" methods for each element which can be overridden.
static void setSpecularColorOverride(SoState *state, SoNode *, bool override)
set override flag for SoSpecularColorElement.
static void setLinePatternOverride(SoState *state, SoNode *, bool override)
set override flag for SoLinePatternElement.
static void setAmbientColorOverride(SoState *state, SoNode *, bool override)
"set" methods for each element which can be overridden.
static bool getComplexityOverride(SoState *state)
Returns TRUE if SoComplexityElement is overridden.
static void setTransparencyOverride(SoState *state, SoNode *, bool override)
set override flag for SoTransparencyElement.
static void setFontNameOverride(SoState *state, SoNode *, bool override)
set override flag for SoFontNameElement.
static void setComplexityTypeOverride(SoState *state, SoNode *, bool override)
set override flag for SoComplexityTypeElement.
virtual void init(SoState *state)
Initializes element.
static bool getPickStyleOverride(SoState *state)
Returns TRUE if SoPickStyleElement is overridden.
static void setShininessOverride(SoState *state, SoNode *, bool override)
set override flag for SoShininessElement.
static void setPickStyleOverride(SoState *state, SoNode *, bool override)
set override flag for SoPickStyleElement.
static bool getPointSizeOverride(SoState *state)
Returns TRUE if SoPointSizeElement is overridden.
static void setLightModelOverride(SoState *state, SoNode *, bool override)
set override flag for SoLightModelElement.
static bool getShininessOverride(SoState *state)
Returns TRUE if SoShininessElement is overridden.
virtual void push(SoState *state)
Overrides push() method to copy values from next instance in the stack, and set up cache dependencies...
virtual SoElement * copyMatchInfo() const
Copy method, copies flags.
static void setShapeHintsOverride(SoState *state, SoNode *, bool override)
set override flag for SoShapeHintsElement.
static void setMaterialBindingOverride(SoState *state, SoNode *, bool override)
set override flag for SoMaterialBinding.
static bool getDrawStyleOverride(SoState *state)
Returns TRUE if SoDrawStyleElement is overridden.
static bool getLineWidthOverride(SoState *state)
Returns TRUE if SoLineWidthElement 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 getCreaseAngleOverride(SoState *state)
Returns TRUE if SoCreaseAngleElement is overridden.
static void setPolygonOffsetOverride(SoState *state, SoNode *, bool override)
set override flag for SoPolygonOffsetElement.
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 bool getPolygonOffsetOverride(SoState *state)
Returns TRUE if SoPolygonOffsetElement is overridden.
static bool getFontSizeOverride(SoState *state)
Returns TRUE if SoFontSizeElement is overridden.
static bool getMaterialBindingOverride(SoState *state)
Returns TRUE if SoMaterialBindingElement is overridden.
static void setCreaseAngleOverride(SoState *state, SoNode *, bool override)
set override flag for SoCreaseAngleElement.
static bool getSpecularColorOverride(SoState *state)
Returns TRUE if SoSpecularColorElement is overridden.
virtual void print(FILE *fp) const
Prints element (for debugging)
static void setEmissiveColorOverride(SoState *state, SoNode *, bool override)
set override flag for SoEmissiveColorElement.
An SoState collects and holds state while traversing a scene graph.