OpendTect-6_4  6.4
visgridlines.h
Go to the documentation of this file.
1 #ifndef visgridlines_h
2 #define visgridlines_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: N. Hemstra
9  Date: December 2005
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 
14 -*/
15 
16 #include "visbasemod.h"
17 #include "visobject.h"
18 #include "trckeyzsampling.h"
19 
20 namespace OD { class LineStyle; }
21 
22 namespace visBase
23 {
24 
28 class DrawStyle;
29 class PolyLine;
30 class Transformation;
31 
33 {
34 public:
35  static GridLines* create()
37  ~GridLines();
38 
39  void setDisplayTransformation(const mVisTrans*);
40 
41  void setLineStyle(const OD::LineStyle&);
42  void getLineStyle(OD::LineStyle&) const;
43 
44  void adjustGridCS();
45  void setGridTrcKeyZSampling(const TrcKeyZSampling&);
46  void setPlaneTrcKeyZSampling(const TrcKeyZSampling&);
47  const TrcKeyZSampling& getGridTrcKeyZSampling() { return gridcs_; }
48  const TrcKeyZSampling& getPlaneTrcKeyZSampling() { return planecs_; }
49 
50  void showInlines(bool);
51  bool areInlinesShown() const;
52  void showCrosslines(bool);
53  bool areCrosslinesShown() const;
54  void showZlines(bool);
55  bool areZlinesShown() const;
56  virtual void setPixelDensity(float);
57 
58 protected:
59 
65 
70 
75 
76  void emptyLineSet(PolyLine*);
77  PolyLine* addLineSet();
78  void addLine(PolyLine&,const Coord3& start,
79  const Coord3& stop);
80 
81  void drawInlines();
82  void drawCrosslines();
83  void drawZlines();
84 
85  static const char* sKeyLineStyle();
86  static const char* sKeyInlShown();
87  static const char* sKeyCrlShown();
88  static const char* sKeyZShown();
89 };
90 
91 } // Namespace visBase
92 
93 #endif
#define mExpClass(module)
Definition: commondefs.h:160
TrcKeyZSampling planecs_
Definition: visgridlines.h:61
PolyLine * inlines_
Definition: visgridlines.h:66
bool cscrlchanged_
Definition: visgridlines.h:63
PolyLine * trcnrlines_
Definition: visgridlines.h:69
const visBase::Transformation * transformation_
Definition: visgridlines.h:73
Definition: visdrawstyle.h:33
FixedString LineStyle()
Definition: keystrs.h:80
TrcKeyZSampling gridcs_
Definition: visgridlines.h:60
bool cszchanged_
Definition: visgridlines.h:64
Set of pointers to objects.
Definition: commontypes.h:32
DrawStyle * drawstyle_
Definition: visgridlines.h:72
#define mVisTrans
Definition: visdata.h:31
Definition: visgridlines.h:32
Definition: vispolyline.h:36
Material * linematerial_
Definition: visgridlines.h:74
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Definition: vismaterial.h:37
PolyLine * zlines_
Definition: visgridlines.h:68
static GridLines * create()
Definition: visgridlines.h:35
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: visannot.h:43
ObjectSet< PolyLine > polylineset_
Definition: visgridlines.h:71
OpendTect.
Definition: commontypes.h:29
const TrcKeyZSampling & getPlaneTrcKeyZSampling()
Definition: visgridlines.h:48
#define mCreateDataObj(clss)
Definition: visdata.h:209
Definition: visobject.h:72
PolyLine * crosslines_
Definition: visgridlines.h:67
bool csinlchanged_
Definition: visgridlines.h:62

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