OpendTect-6_4  6.4
uiwelldisplay.h
Go to the documentation of this file.
1 #ifndef uiwelldisplay_h
2 #define uiwelldisplay_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bruno
9  Date: Dec 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiwellmod.h"
16 #include "uigroup.h"
17 #include "uimainwin.h"
18 #include "welldata.h"
19 #include "uigeom.h"
20 #include "uigraphicsview.h"
21 #include "welldisp.h"
22 
23 class uiWellDahDisplay;
24 class uiWellDispInfoPanel;
26 class uiWellLogDisplay;
27 class uiWellStratDisplay;
28 
29 namespace Well { class Data; }
30 
36 {
37 public:
38 
39  mStruct(uiWell) Setup
40  {
41  Setup()
42  : nobackground_(false)
43  , nologborder_(false)
44  , noxannot_(false)
45  , noyannot_(false)
46  , xaxisinpercents_(false)
47  , withcontrol_(true)
48  , takedisplayfrom3d_(false)
49  {}
50 
51  mDefSetupMemb(bool,nobackground)
52  mDefSetupMemb(bool,noxannot)
53  mDefSetupMemb(bool,xaxisinpercents)
54  mDefSetupMemb(bool,noyannot)
55  mDefSetupMemb(int,nologborder)
56  mDefSetupMemb(bool,withcontrol) //will add a control
57  mDefSetupMemb(bool,takedisplayfrom3d) //read 3d scene display pars
58 
59  void copyFrom(const Setup& su)
60  {
61  nobackground_ = su.nobackground_;
62  nologborder_ = su.nologborder_;
63  withcontrol_ = su.withcontrol_;
64  noxannot_ = su.noxannot_;
65  noyannot_ = su.noyannot_;
66  xaxisinpercents_ = su.xaxisinpercents_;
67  takedisplayfrom3d_ = su.takedisplayfrom3d_;
68  }
69  };
70 
72  const Setup& su );
73  ~uiWellDisplay();
74 
75  Interval<float> zRange() const { return zrg_; }
77  { zrg_ = zrg; setDahData(); }
78  void setZIsTime( bool yn )
79  { zistime_ = yn; setDahData(); }
80  void setZInFeet( bool yn )
81  { dispzinft_ = yn; setDahData(); }
82 
83  void setControl(uiWellDisplayControl&);
84  uiWellDisplayControl* control() { return control_; }
85  const uiWellDisplayControl* control() const { return control_; }
86  const Setup& setup() const { return setup_; }
87 
88  const uiWellStratDisplay* stratDisplay() const { return stratdisp_; }
89  bool hasStrat() const { return stratdisp_; }
90  int nrLogDisps() const { return logdisps_.size(); }
91 
92 protected:
93 
95 
97  bool dispzinft_;
98  bool zistime_;
99  bool use3ddisp_;
101  const Setup setup_;
102 
106 
107  void setDahData();
108  void setDisplayProperties();
109 
110  void applyWDChanges(CallBacker*);
111 };
112 
113 
119 {
120 public :
122 
123 protected:
124 
127 
128  void dispInfoMsg(CallBacker*);
129  void closeWin(CallBacker*);
130 };
131 
132 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
User interface main window.
Definition: uimainwin.h:36
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
FixedString Setup()
Definition: keystrs.h:116
#define mStruct(module)
Definition: commondefs.h:165
const Setup & setup() const
Definition: uiwelldisplay.h:86
int nrLogDisps() const
Definition: uiwelldisplay.h:90
Main window to display wells.
Definition: uiwelldisplay.h:118
uiWellDisplay * welldisp_
Definition: uiwelldisplay.h:126
Interval< float > zRange() const
Definition: uiwelldisplay.h:75
bool hasStrat() const
Definition: uiwelldisplay.h:89
const uiWellStratDisplay * stratDisplay() const
Definition: uiwelldisplay.h:88
Definition: uiwelldisplaycontrol.h:25
const uiWellDisplayControl * control() const
Definition: uiwelldisplay.h:85
Definition: uiparent.h:26
bool use3ddisp_
Definition: uiwelldisplay.h:99
Definition: uigeom.h:25
const Setup setup_
Definition: uiwelldisplay.h:101
ObjectSet< uiWellLogDisplay > logdisps_
Definition: uiwelldisplay.h:103
uiWellDisplayControl * control_
Definition: uiwelldisplay.h:104
bool dispzinft_
Definition: uiwelldisplay.h:97
void setZRange(Interval< float > zrg)
Definition: uiwelldisplay.h:76
Well display.
Definition: uiwelldisplay.h:35
Definition: directionalsurvey.h:19
Well depth/distance along hole display.
Definition: uiwelldahdisplay.h:57
bool zistime_
Definition: uiwelldisplay.h:98
Definition: uiwellstratdisplay.h:58
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Definition: repos.h:25
Well::Data & wd_
Definition: uiwelldisplay.h:125
Displays maximum two Well logs.
Definition: uiwelllogdisplay.h:28
uiWellStratDisplay * stratdisp_
Definition: uiwelldisplay.h:105
Interval< float > zrg_
Definition: uiwelldisplay.h:96
void setZIsTime(bool yn)
Definition: uiwelldisplay.h:78
The holder of all data concerning a certain well.
Definition: welldata.h:113
uiWellDisplayControl * control()
Definition: uiwelldisplay.h:84
void setZInFeet(bool yn)
Definition: uiwelldisplay.h:80
uiSize size_
Definition: uiwelldisplay.h:100
Well::Data & wd_
Definition: uiwelldisplay.h:94

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