OpendTect-6_4  6.4
visscalebar.h
Go to the documentation of this file.
1 #ifndef visscalebar_h
2 #define visscalebar_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: N. Hemstra
9  Date: January 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 #include "visbasemod.h"
16 
17 #include "visobject.h"
18 
19 class Color;
20 namespace Pick { class Location; }
21 
22 namespace visBase
23 {
24  class DrawStyle;
25  class Lines;
26  class MarkerSet;
27  class DataObjectGroup;
28  class Transformation;
29 
35 {
36 public:
37  static ScaleBar* create()
39 
40  void setPick(const Pick::Location&);
41 
42  void setLineWidth(int);
43  void setLength(double);
44 
45  void setOnInlCrl(bool);
46  void setOrientation(int);
47  void setColor(Color c);
48  Coord3 getPos() const { return pos_; }
49 
50  void setDisplayTransformation(const mVisTrans*);
51 
52 protected:
53  ~ScaleBar();
54 
55  Coord3 getSecondPos(const Pick::Location&) const;
56  void updateVis(const Pick::Location&);
57 
62 
63  bool oninlcrl_;
64  double length_;
68 };
69 
70 } //visBase
71 
72 #endif
#define mExpClass(module)
Definition: commondefs.h:160
ScaleBar base object.
Definition: visscalebar.h:34
Definition: vislines.h:23
const visBase::Transformation * displaytrans_
Definition: visscalebar.h:61
Pick location in space,.
Definition: picklocation.h:46
Definition: visdrawstyle.h:33
double length_
Definition: visscalebar.h:64
visBase::Lines * lines_
Definition: visscalebar.h:59
visBase::MarkerSet * markers_
Definition: visscalebar.h:58
static ScaleBar * create()
Definition: visscalebar.h:37
#define mVisTrans
Definition: visdata.h:31
Coord3 pos_
Definition: visscalebar.h:66
bool oninlcrl_
Definition: visscalebar.h:63
Pick::Location & firstloc_
Definition: visscalebar.h:67
int orientation_
Definition: visscalebar.h:65
A cartesian coordinate in 3D space.
Definition: coord.h:72
visBase::DrawStyle * linestyle_
Definition: visscalebar.h:60
Definition: visannot.h:43
Definition: picklocation.h:21
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72
MarkerSet is a set of basic pickmarker with a constant size on screen. Size and shape are settable...
Definition: vismarkerset.h:36

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