OpendTect-6_4  6.4
uiwelldlgs.h
Go to the documentation of this file.
1 #ifndef uiwelldlgs_h
2 #define uiwelldlgs_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Nanne Hemstra
9  Date: October 2003
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiwellmod.h"
16 #include "uiselsimple.h"
17 #include "multiid.h"
18 #include "ranges.h"
19 #include "position.h"
20 #include "uistring.h"
21 
22 class uiButtonGroup;
23 class uiCheckBox;
24 class uiD2TModelGroup;
25 class uiFileInput;
26 class uiGenInput;
27 class uiLabel;
28 class uiMultiWellSel;
29 class uiPushButton;
30 class uiTable;
31 class uiTableImpDataSel;
32 class uiUnitSel;
33 class uiWellSel;
34 class BufferStringSet;
35 
36 namespace Table { class FormatDesc; }
37 namespace Well { class Data; class Track; class D2TModel; class Log;
38  class LogSet;}
39 
40 
41 
46 public:
48  ~uiWellTrackDlg();
49 
50  static const uiString sCkShotData();
51  static const uiString sTimeDepthModel();
52 
53 protected:
54 
58  bool writable_;
59 
67 
69  float origgl_;
70 
71  bool fillTable(CallBacker* cb=0);
72  void fillSetFields(CallBacker* cb=0);
73  bool updNow(CallBacker*);
74  void readNew(CallBacker*);
75  bool rejectOK(CallBacker*);
76  bool acceptOK(CallBacker*);
77  void exportCB(CallBacker*);
78  void updateXpos(CallBacker*);
79  void updateYpos(CallBacker*);
80  void updateKbElev(CallBacker*);
81 
82  double getX(int row) const;
83  double getY(int row) const;
84  double getZ(int row) const;
85  float getMD(int row) const;
86  void setX(int row,double);
87  void setY(int row,double);
88  void setZ(int row,double);
89  void setMD(int row,float);
90 
91  void updatePos(bool isx);
92  bool rowIsIncomplete(int) const;
93  bool rowIsNotSet(int) const;
94 };
95 
96 
100 public:
101  uiD2TModelDlg(uiParent*,Well::Data&,bool chksh);
102  ~uiD2TModelDlg();
103 
104 protected:
105 
107  bool cksh_;
108  bool writable_;
109  Well::D2TModel* orgd2t_; // Must be declared *below* others
111 
116 
117  void fillTable(CallBacker*);
118  void fillReplVel(CallBacker*);
119  bool getFromScreen();
120  void updNow(CallBacker*);
121  void updReplVelNow(CallBacker*);
122  void dtpointChangedCB(CallBacker*);
123  void dtpointRemovedCB(CallBacker*);
124  bool updateDtpointDepth(int row);
125  bool updateDtpointTime(int row);
126  bool updateDtpoint(int row,float oldval);
127  void readNew(CallBacker*);
128  bool rejectOK(CallBacker*);
129  bool acceptOK(CallBacker*);
130  void expData(CallBacker*);
131  void getModel(Well::D2TModel&);
132  void correctD2TModelIfInvalid();
133 
134  void getColLabels(BufferStringSet&) const;
135  int getTVDGLCol() const;
136  int getTVDSDCol() const;
137  int getTVDSSCol() const;
138  int getTimeCol() const;
139  int getVintCol() const;
140  bool rowIsIncomplete(int row) const;
141  int getPreviousCompleteRowIdx(int row) const;
142  int getNextCompleteRowIdx(int row) const;
143  void setDepthValue(int irow,int icol,float);
144  float getDepthValue(int irow,int icol) const;
145  void setTimeValue(int irow,float);
146  float getTimeValue(int irow) const;
147 };
148 
149 
152 class uiColorInput;
153 
156 public:
158  ~uiNewWellDlg();
159 
160  const Color& getWellColor();
161  const char* getName() const { return name_; }
162 
163 protected:
164 
168 
169  virtual bool acceptOK(CallBacker*);
170  const BufferStringSet& mkWellNms();
171 };
172 
173 
174 /* brief Dialog for editing the logs's unit of measure */
175 
178 public:
180  const BufferStringSet wellnms,
181  const BufferStringSet lognms);
182 
183 protected:
184 
188 
189  bool acceptOK(CallBacker*);
190 
191  void fillTable(ObjectSet<Well::LogSet> wls,
192  const BufferStringSet& wellnms,
193  const BufferStringSet& lognms);
194  bool setUoMValues();
195 };
196 
197 
198 
199 /* brief Dialog to set Depth-to-Time model to selected wells */
200 
203 public:
206 
207  void setSelected(const TypeSet<MultiID>&);
208 
209 protected:
210 
211  bool acceptOK(CallBacker*);
212 
215 };
216 
217 #endif
uiColorInput * colsel_
Definition: uiwelldlgs.h:165
#define mExpClass(module)
Definition: commondefs.h:160
Well::Track * orgtrack_
Definition: uiwelldlgs.h:57
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
ObjectSet< uiUnitSel > unflds_
Definition: uiwelldlgs.h:186
Definition: uiwelldlgs.h:201
Depth to time model.
Definition: welld2tmodel.h:34
Definition: uiwelldlgs.h:176
is the base class for all buttons.
Definition: uibutton.h:83
Table::FormatDesc & fd_
Definition: uiwelldlgs.h:60
Selector for UnitOfMeasure&#39;s.
Definition: uiunitsel.h:38
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiGenInput * replvelfld_
Definition: uiwelldlgs.h:115
uiTable * uominfotbl_
Definition: uiwelldlgs.h:187
bool writable_
Definition: uiwelldlgs.h:58
uiGenInput * wellheadxfld_
Definition: uiwelldlgs.h:64
BufferString name_
Definition: uiwelldlgs.h:166
A file-name input.
Definition: uifileinput.h:34
uiGenInput * uwifld_
Definition: uiwelldlgs.h:62
Definition: uitable.h:30
Definition: file.h:99
float origreplvel_
Definition: uiwelldlgs.h:110
Definition: uiwellsel.h:64
uiGenInput * kbelevfld_
Definition: uiwelldlgs.h:66
description of input our output data content
Definition: tabledef.h:220
Dialog for Well track editing.
Definition: uiwelldlgs.h:44
Coord3 origpos_
Definition: uiwelldlgs.h:68
Get a name from user, whilst displaying names that already exist.
Definition: uiselsimple.h:80
Definition: uistring.h:89
Definition: uiparent.h:26
Set of BufferString objects.
Definition: bufstringset.h:28
uiGenInput * wellheadyfld_
Definition: uiwelldlgs.h:65
Definition: uidialog.h:42
const char * getName() const
Definition: uiwelldlgs.h:161
bool writable_
Definition: uiwelldlgs.h:108
Set of pointers to objects.
Definition: commontypes.h:32
Definition: geom2dascio.h:21
Well::Data & wd_
Definition: uiwelldlgs.h:55
Definition: directionalsurvey.h:19
Well track.
Definition: welltrack.h:29
General Input Element.
Definition: uigeninput.h:58
uiTable * tbl_
Definition: uiwelldlgs.h:112
Definition: uibuttongroup.h:30
A cartesian coordinate in 3D space.
Definition: coord.h:72
Definition: repos.h:25
uiCheckBox * timefld_
Definition: uiwelldlgs.h:114
uiCheckBox * zinftfld_
Definition: uiwelldlgs.h:113
Definition: uiwelldlgs.h:154
ObjectSet< Well::Log > logs_
Definition: uiwelldlgs.h:185
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiMultiWellSel * wellfld_
Definition: uiwelldlgs.h:214
small element for color selection. Has no text label.
Definition: uicolor.h:44
Well::Data & wd_
Definition: uiwelldlgs.h:106
Definition: uilabel.h:24
uiWellSel * inpwellfld_
Definition: uiwelldlgs.h:213
uiCheckBox * zinftfld_
Definition: uiwelldlgs.h:63
float origgl_
Definition: uiwelldlgs.h:69
Definition: uid2tmodelgrp.h:24
Table-based data import selection.
Definition: uitblimpexpdatasel.h:38
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
bool cksh_
Definition: uiwelldlgs.h:107
Definition: uiwellsel.h:22
The holder of all data concerning a certain well.
Definition: welldata.h:113
Dialog for D2T Model editing.
Definition: uiwelldlgs.h:98
Well::Track & track_
Definition: uiwelldlgs.h:56
Definition: uibutton.h:134
BufferStringSet * nms_
Definition: uiwelldlgs.h:167
Well::D2TModel * orgd2t_
Definition: uiwelldlgs.h:109
uiTable * tbl_
Definition: uiwelldlgs.h:61

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