Open Inventor Reference
SoGLPolygonOffsetElement.h
Go to the documentation of this file.
1 // **InsertLicense** code
2 
3 #ifndef _SO_GL_POLYGON_OFFSET_ELEMENT_
4 #define _SO_GL_POLYGON_OFFSET_ELEMENT_
5 
8 
10 {
12 
14 
15  public:
16 
18  virtual void init(SoState *state);
19 
23  virtual void push(SoState *state);
24 
26  virtual void pop(SoState *state, const SoElement *childElt);
27 
30  return !(e1 == e2);
31  }
32 
33  protected:
34 
35  virtual void setElt(float factor, float units, Style styles, bool on);
36 
39 
40  SoINTERNAL public:
41 
43  static void initClass();
44 
45  private:
46 
53  bool _copiedFromParent;
54 
55  Style _currentstyles;
56  float _currentoffsetfactor;
57  float _currentoffsetunits;
58 
60  SoState *_state;
61 
63  void send();
64 };
65 
66 #endif // _SO_GL_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
INVENTOR_API bool operator!=(const SbBox3f &b1, const SbBox3f &b2)
Definition: SbBox.h:207
INVENTOR_API bool operator==(const SbBox3f &b1, const SbBox3f &b2)
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
Definition: SbSystem.h:81
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
Definition: SoSubElement.h:112
This is the abstract base class for all state elements.
Definition: SoElement.h:96
virtual void init(SoState *state)
Initializes element.
virtual ~SoGLPolygonOffsetElement()
Destructor.
static void initClass()
Initializes the SoGLPolygonOffsetElement class.
virtual void setElt(float factor, float units, Style styles, bool on)
virtual void push(SoState *state)
Override push() method to copy state pointer and value of previous element, to avoid sending GL comma...
virtual void pop(SoState *state, const SoElement *childElt)
Override pop() method so side effects can occur in GL.
An SoState collects and holds state while traversing a scene graph.
Definition: SoState.h:82