1 #ifndef COIN_SOOVERRIDEELEMENT_H 2 #define COIN_SOOVERRIDEELEMENT_H 36 #include <Inventor/elements/SoSubElement.h> 37 #include <Inventor/system/inttypes.h> 52 AMBIENT_COLOR = 0x00000001,
53 COLOR_INDEX = 0x00000002,
54 COMPLEXITY = 0x00000004,
55 COMPLEXITY_TYPE = 0x00000008,
56 CREASE_ANGLE = 0x00000010,
57 DIFFUSE_COLOR = 0x00000020,
58 DRAW_STYLE = 0x00000040,
59 EMISSIVE_COLOR = 0x00000080,
60 FONT_NAME = 0x00000100,
61 FONT_SIZE = 0x00000200,
62 LIGHT_MODEL = 0x00000400,
63 LINE_PATTERN = 0x00000800,
64 LINE_WIDTH = 0x00001000,
65 MATERIAL_BINDING = 0x00002000,
66 POINT_SIZE = 0x00004000,
67 PICK_STYLE = 0x00008000,
68 SHAPE_HINTS = 0x00010000,
69 SHININESS = 0x00020000,
70 SPECULAR_COLOR = 0x00040000,
71 POLYGON_OFFSET = 0x00080000,
72 TRANSPARENCY = 0x00100000,
73 TRANSPARENCY_TYPE = 0x00200000,
74 NORMAL_VECTOR = 0x00400000,
75 NORMAL_BINDING = 0x00800000
85 static uint32_t getFlags(
SoState *
const state) {
86 return (static_cast<const SoOverrideElement*>(
getConstElement(state, classStackIndex)))->flags;
89 static SbBool getAmbientColorOverride(
SoState *
const state);
90 static SbBool getColorIndexOverride(
SoState *
const state);
91 static SbBool getComplexityOverride(
SoState *
const state);
92 static SbBool getComplexityTypeOverride(
SoState *
const state);
93 static SbBool getCreaseAngleOverride(
SoState *
const state);
94 static SbBool getDiffuseColorOverride(
SoState *
const state);
95 static SbBool getDrawStyleOverride(
SoState *
const state);
96 static SbBool getEmissiveColorOverride(
SoState *
const state);
97 static SbBool getFontNameOverride(
SoState *
const state);
98 static SbBool getFontSizeOverride(
SoState *
const state);
99 static SbBool getLightModelOverride(
SoState *
const state);
100 static SbBool getLinePatternOverride(
SoState *
const state);
101 static SbBool getLineWidthOverride(
SoState *
const state);
102 static SbBool getMaterialBindingOverride(
SoState *
const state);
103 static SbBool getPickStyleOverride(
SoState *
const state);
104 static SbBool getPointSizeOverride(
SoState *
const state);
105 static SbBool getPolygonOffsetOverride(
SoState *
const state);
106 static SbBool getShapeHintsOverride(
SoState *
const state);
107 static SbBool getShininessOverride(
SoState *
const state);
108 static SbBool getSpecularColorOverride(
SoState *
const state);
109 static SbBool getTransparencyOverride(
SoState *
const state);
110 static SbBool getTransparencyTypeOverride(
SoState *
const state);
111 static SbBool getNormalVectorOverride(
SoState *
const state);
112 static SbBool getNormalBindingOverride(
SoState *
const state);
114 static void setAmbientColorOverride(
SoState *
const state,
116 const SbBool
override);
117 static void setColorIndexOverride(
SoState *
const state,
119 const SbBool
override);
120 static void setComplexityOverride(
SoState *
const state,
122 const SbBool
override);
123 static void setComplexityTypeOverride(
SoState *
const state,
125 const SbBool
override);
126 static void setCreaseAngleOverride(
SoState *
const state,
128 const SbBool
override);
129 static void setDiffuseColorOverride(
SoState *
const state,
131 const SbBool
override);
132 static void setDrawStyleOverride(
SoState *
const state,
134 const SbBool
override);
135 static void setEmissiveColorOverride(
SoState *
const state,
137 const SbBool
override);
138 static void setFontNameOverride(
SoState *
const state,
140 const SbBool
override);
141 static void setFontSizeOverride(
SoState *
const state,
143 const SbBool
override);
144 static void setLightModelOverride(
SoState *
const state,
146 const SbBool
override);
147 static void setLinePatternOverride(
SoState *
const state,
149 const SbBool
override);
150 static void setLineWidthOverride(
SoState *
const state,
152 const SbBool
override);
153 static void setMaterialBindingOverride(
SoState *
const state,
155 const SbBool
override);
156 static void setPickStyleOverride(
SoState *
const state,
158 const SbBool
override);
159 static void setPointSizeOverride(
SoState *
const state,
161 const SbBool
override);
162 static void setPolygonOffsetOverride(
SoState *
const state,
164 const SbBool
override);
165 static void setShapeHintsOverride(
SoState *
const state,
167 const SbBool
override);
168 static void setShininessOverride(
SoState *
const state,
170 const SbBool
override);
171 static void setSpecularColorOverride(
SoState *
const state,
173 const SbBool
override);
174 static void setTransparencyOverride(
SoState *
const state,
176 const SbBool
override);
177 static void setTransparencyTypeOverride(
SoState *
const state,
179 const SbBool
override);
180 static void setNormalVectorOverride(
SoState *
const state,
182 const SbBool
override);
183 static void setNormalBindingOverride(
SoState *
const state,
185 const SbBool
override);
187 virtual void print(FILE * file)
const;
194 #endif // !COIN_SOOVERRIDEELEMENT_H FlagBits
Definition: SoOverrideElement.h:51
static const SoElement * getConstElement(SoState *const state, const int stackIndex)
Definition: SoElement.h:123
static void initClass(void)
Definition: SoElement.cpp:506
virtual SbBool matches(const SoElement *element) const =0
Definition: SoElement.cpp:608
virtual void push(SoState *state)
Definition: SoElement.cpp:569
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:56
SoElement is the abstract base class for all elements.
Definition: SoElement.h:43
The SoOverrideElement maintains a list of overridable elements and a list over which elements should ...
Definition: SoOverrideElement.h:41
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:44
virtual void init(SoState *state)
Definition: SoElement.cpp:552
virtual SoElement * copyMatchInfo(void) const =0
virtual void print(FILE *file=stdout) const
Definition: SoElement.cpp:594
The SoType class is the basis for the run-time type system in Coin.
Definition: SoType.h:59