OpendTect  6.3
visdrawstyle.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: Jan 2002
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "visdata.h"
14 #include "visnodestate.h"
15 #include "draw.h"
16 
17 namespace osg {
18  class Point;
19  class LineStipple;
20  class LineWidth;
21 };
22 
23 
24 namespace visBase
25 {
31 {
32 public:
33  DrawStyle();
34  enum Style { Filled, Lines, Points, Invisible };
35 
36  void setDrawStyle( Style );
37  Style getDrawStyle() const;
38 
39  void setPointSize( float );
40  float getPointSize() const;
41 
42  void setLineStyle( const OD::LineStyle& );
47  void setLineWidth(int);
48  const OD::LineStyle& lineStyle() const { return linestyle_; }
49 
50  void setPixelDensity(float);
51 
52 protected:
53 
54  void updateLineStyle();
55 
57  float pointsize_;
59 
61  osg::LineStipple* linestippleattrib_;
62  osg::LineWidth* linewidthattrib_;
63 };
64 
65 };
#define mExpClass(module)
Definition: commondefs.h:157
Definition: vislines.h:21
Definition: draw.h:119
Definition: visdrawstyle.h:30
osg::LineWidth * linewidthattrib_
Definition: visdrawstyle.h:62
Definition: visnodestate.h:25
float pixeldensity_
Definition: visdrawstyle.h:58
Definition: vishorizonsectiondef.h:30
Style
Definition: visdrawstyle.h:34
Definition: visannot.h:40
Open Scene Graph.
Definition: visannot.h:26
float pointsize_
Definition: visdrawstyle.h:57
const OD::LineStyle & lineStyle() const
Definition: visdrawstyle.h:48
osg::LineStipple * linestippleattrib_
Definition: visdrawstyle.h:61
osg::Point * pointsizeattrib_
Definition: visdrawstyle.h:60
OD::LineStyle linestyle_
Definition: visdrawstyle.h:56

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