OpendTect-6_4  6.4
vispolyline.h
Go to the documentation of this file.
1 #ifndef vispolyline_h
2 #define vispolyline_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer Tingdahl
9  Date: 4-11-2002
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "visbasemod.h"
17 #include "visshape.h"
18 #include "position.h"
19 #include "draw.h"
20 
21 
22 namespace osgGeo {
23  class PolyLineNode;
24 }
25 
26 namespace visBase
27 {
28 
29 class DrawStyle;
30 
37 {
38 public:
39  static PolyLine* create()
41 
42  int size() const;
43  void addPoint( const Coord3& pos );
44  Coord3 getPoint( int ) const;
45  void setPoint( int, const Coord3& );
46  void removePoint( int );
47  void removeAllPoints();
48  void setLineStyle(const OD::LineStyle&);
49  const OD::LineStyle& lineStyle() const;
50 
51  void setDisplayTransformation( const mVisTrans* );
56 protected:
57  ~PolyLine();
58  DrawStyle* drawstyle_;
59  Geometry::RangePrimitiveSet* coordrange_;
60 };
61 
62 
63 
64 mExpClass(visBase) PolyLine3D : public VertexShape
65 {
66 public:
67  static PolyLine3D* create()
69 
70  void setLineStyle(const OD::LineStyle&);
71  const OD::LineStyle& lineStyle() const;
72  void setResolution(int);
73  int getResolution() const;
74  void addPrimitiveSetToScene(osg::PrimitiveSet*);
75  void removePrimitiveSetFromScene(const osg::PrimitiveSet*);
76  void touchPrimitiveSet(int);
77  void setCoordinates(Coordinates*);
78  void setDisplayTransformation( const mVisTrans* );
83  void setPixelDensity(float);
84  float getPixelDensity() const { return pixeldensity_;}
85 
86 protected:
87  void updateRadius();
88  osgGeo::PolyLineNode* osgpoly_;
91 };
92 
93 
94 }; // Namespace
95 
96 
97 #endif
#define mExpClass(module)
Definition: commondefs.h:160
static PolyLine3D * create()
Definition: vispolyline.h:67
OD::LineStyle lst_
Definition: vispolyline.h:89
Definition: draw.h:118
A collection of geoscientific extensions to OpenSceneGraph.
Definition: visannot.h:38
Definition: visdrawstyle.h:33
FixedString LineStyle()
Definition: keystrs.h:80
osgGeo::PolyLineNode * osgpoly_
Definition: vispolyline.h:88
#define mVisTrans
Definition: visdata.h:31
Definition: vispolyline.h:36
static PolyLine * create()
Definition: vispolyline.h:39
A cartesian coordinate in 3D space.
Definition: coord.h:72
A set of coordinates. The coordinates will be transformed by the transformation before given to Coin...
Definition: viscoord.h:46
Definition: visannot.h:43
float pixeldensity_
Definition: vispolyline.h:90
Open Scene Graph.
Definition: visannot.h:29
OpendTect.
Definition: commontypes.h:29
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visshape.h:83
Definition: vispolyline.h:64
Definition: arraytesselator.h:21

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