Open Inventor Reference
SoPolygonOffsetElement.h
Go to the documentation of this file.
1// **InsertLicense** code
2
3#ifndef _SO_POLYGON_OFFSET_ELEMENT_
4#define _SO_POLYGON_OFFSET_ELEMENT_
5
8
10{
12
14
15 public:
16
17 enum Style {
18 FILLED = 0x01,
19 LINES = 0x02,
20 POINTS = 0x04,
21 ALL = 0xff
22 };
23
25 virtual void init(SoState * state);
26
27 static void set(SoState *state, SoNode *node, float factor, float units, Style styles, bool on);
28
29 static void get(SoState *state, float &factor, float &units, Style &styles, bool &on);
30
31 static Style getStyle(SoState *state);
32
33 static void getDefault(float &factor, float &units, Style &styles, bool &on);
34
35 protected:
36
38 bool _active;
41
44
45 virtual void setElt(float factor, float units, Style styles, bool on);
46
47 SoINTERNAL public:
48
50 static void initClass();
51};
52
53#endif // _SO_POLYGON_OFFSET_ELEMENT_
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
Definition SbBasic.h:154
#define SoINTERNAL
Definition SbBasic.h:155
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Definition SbSystem.h:77
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Abstract base class for all database nodes.
Definition SoNode.h:103
virtual ~SoPolygonOffsetElement()
Destructor.
static void get(SoState *state, float &factor, float &units, Style &styles, bool &on)
virtual void init(SoState *state)
Initializes element.
static void getDefault(float &factor, float &units, Style &styles, bool &on)
static void set(SoState *state, SoNode *node, float factor, float units, Style styles, bool on)
virtual void setElt(float factor, float units, Style styles, bool on)
static Style getStyle(SoState *state)
static void initClass()
Initializes the SoPolygonOffsetElement class.
This is the abstract base class for each state element whose value is replaced whenever it is set.
An SoState collects and holds state while traversing a scene graph.
Definition SoState.h:82