OpendTect-6_4  6.4
vispolygonoffset.h
Go to the documentation of this file.
1 #ifndef vispolygonoffset_h
2 #define vispolygonoffset_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kris Tingdahl
9  Date: June 2006
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "visbasemod.h"
17 #include "visnodestate.h"
18 
19 namespace osg { class PolygonOffset; }
20 
21 namespace visBase
22 {
26 {
27 public:
28  PolygonOffset();
29 
30  void setFactor(float);
31  float getFactor() const;
32 
33  void setUnits(float);
34  float getUnits() const;
35  enum Mode
36  { Off=0,On=1,Override=2,Protected=4,Inherit=8 };
37  void setMode(unsigned int);
41  osg::PolygonOffset* osgPolygonOffset() { return offset_; }
42  unsigned int getMode() {return mode_; }
43 
44 protected:
45  ~PolygonOffset();
46 
47  osg::PolygonOffset* offset_;
48  unsigned int mode_;
49 
50 private:
51  void applyAttribute(
52  osg::StateSet*, osg::StateAttribute*);
53 
54 };
55 
56 };
57 
58 #endif
#define mExpClass(module)
Definition: commondefs.h:160
osg::PolygonOffset * offset_
Definition: vispolygonoffset.h:47
Definition: visnodestate.h:27
Mode
Definition: vispolygonoffset.h:35
unsigned int getMode()
Definition: vispolygonoffset.h:42
Definition: visannot.h:43
unsigned int mode_
Definition: vispolygonoffset.h:48
Open Scene Graph.
Definition: visannot.h:29
Definition: vispolygonoffset.h:25
osg::PolygonOffset * osgPolygonOffset()
Definition: vispolygonoffset.h:41

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019