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

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