OpendTect-6_4  6.4
visdrawstyle.h
Go to the documentation of this file.
1 #ifndef visdrawstyle_h
2 #define visdrawstyle_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kris Tingdahl
9  Date: Jan 2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "visbasemod.h"
16 #include "visdata.h"
17 #include "draw.h"
18 #include "visnodestate.h"
19 
20 namespace osg {
21  class Point;
22  class LineStipple;
23  class LineWidth;
24 };
25 
26 
27 namespace visBase
28 {
34 {
35 public:
36  DrawStyle();
37  enum Style { Filled, Lines, Points, Invisible };
38 
39  void setDrawStyle( Style );
40  Style getDrawStyle() const;
41 
42  void setPointSize( float );
43  float getPointSize() const;
44 
45  void setLineStyle(const OD::LineStyle&);
50  void setLineWidth(int);
51  const OD::LineStyle& lineStyle() const { return linestyle_; }
52 
53  void setPixelDensity(float);
54  osg::LineStipple* getLineStipple() { return linestippleattrib_; }
55 
56 
57 protected:
58 
59  void updateLineStyle();
60 
62  float pointsize_;
64 
66  osg::LineStipple* linestippleattrib_;
67  osg::LineWidth* linewidthattrib_;
68 };
69 
70 };
71 
72 
73 #endif
#define mExpClass(module)
Definition: commondefs.h:160
Definition: vislines.h:23
Definition: draw.h:118
Definition: visdrawstyle.h:33
osg::LineWidth * linewidthattrib_
Definition: visdrawstyle.h:67
Definition: visnodestate.h:27
float pixeldensity_
Definition: visdrawstyle.h:63
Definition: vishorizonsectiondef.h:31
Style
Definition: visdrawstyle.h:37
Definition: visannot.h:43
osg::LineStipple * getLineStipple()
Definition: visdrawstyle.h:54
Open Scene Graph.
Definition: visannot.h:29
float pointsize_
Definition: visdrawstyle.h:62
const OD::LineStyle & lineStyle() const
Definition: visdrawstyle.h:51
osg::LineStipple * linestippleattrib_
Definition: visdrawstyle.h:66
osg::Point * pointsizeattrib_
Definition: visdrawstyle.h:65
OD::LineStyle linestyle_
Definition: visdrawstyle.h:61

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