OpendTect-6_4  6.4
uiwelltiecheckshotedit.h
Go to the documentation of this file.
1 #ifndef uiwelltiecheckshotedit_h
2 #define uiwelltiecheckshotedit_h
3 
4 /*+
5 ________________________________________________________________________
6 
7 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8 Author: Bruno
9 Date: Oct 2011
10 RCS: $Id: uiwellwelltiecheckshotedit.h,v 1.1 2009-01-19 13:02:33 cvsbruno Exp
11 $
12 ________________________________________________________________________
13 
14 -*/
15 
16 #include "uiwellattribmod.h"
17 #include "uidialog.h"
18 #include "welldahobj.h"
19 #include "undo.h"
20 #include "uistring.h"
21 
22 namespace Well { class D2TModel; class Data; class DahObj;}
23 class uiWellDahDisplay;
24 class uiCheckBox;
25 class uiComboBox;
26 class uiPolyLineItem;
27 class uiToolBar;
28 class uiToolButton;
30 
31 namespace WellTie
32 {
33 
34 class Server;
35 
36 mExpClass(uiWellAttrib) DahObjUndoEvent : public UndoEvent
38 public:
39  DahObjUndoEvent(float dah,float val,
40  Well::DahObj&,bool isadd);
41 
42  const char* getStandardDesc() const;
43  bool unDo();
44  bool reDo();
45 
46 protected:
47 
48  bool isadd_;
50  float dah_;
51  float val_;
52 };
53 
54 
55 mExpClass(uiWellAttrib) uiCheckShotEdit : public uiDialog
57 public:
59  ~uiCheckShotEdit();
60 
61  mExpClass(uiWellAttrib) DriftCurve : public Well::DahObj
62  {
63  public:
64  DriftCurve() : DahObj("Drift Curve") {}
65 
66  void add( float dh, float val ) { dah_ += dh; val_ += val; }
67  float value( int idx ) const { return val_[idx]; }
68  bool insertAtDah(float dh,float v);
69 
70  int indexOfCurrentPoint(float dah,float val) const;
71 
72  protected:
74 
75  void removeAux(int idx) { val_.removeSingle( idx ); }
76  void eraseAux() { val_.erase(); }
77  };
78 
79 protected:
82 
89 
95 
97 
98  bool isedit_;
99 
104 
107 
108  void draw();
109  void drawDahObj(const Well::DahObj* d,bool,bool);
110  void drawDrift();
111  void drawPoints();
112  void movePt();
113  void doInsertRemovePt();
114 
115  void applyCB(CallBacker*);
116  void editCSPushed(CallBacker*);
117  void editCB(CallBacker*);
118  void undoCB(CallBacker*);
119  void redoCB(CallBacker*);
120  void mousePressedCB(CallBacker*);
121  void mouseReleasedCB(CallBacker*);
122  void mouseMovedCB(CallBacker*);
123  void setInfoMsg(CallBacker*);
124 
125  bool acceptOK(CallBacker*);
126  bool rejectOK(CallBacker*);
127  void reSizeCB(CallBacker*);
128 };
129 
130 } // namespace WellTie
131 
132 #endif
Definition: uitoolbar.h:31
uiComboBox * driftchoicefld_
Definition: uiwelltiecheckshotedit.h:96
DriftCurve()
Definition: uiwelltiecheckshotedit.h:64
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Well::Data & wd_
Definition: uiwelltiecheckshotedit.h:81
Definition: uiwelltiecheckshotedit.h:61
Depth to time model.
Definition: welld2tmodel.h:34
uiToolButton * undobut_
Definition: uiwelltiecheckshotedit.h:92
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Undo undo_
Definition: uiwelltiecheckshotedit.h:105
Definition: uiwelltiecheckshotedit.h:36
void removeAux(int idx)
Definition: uiwelltiecheckshotedit.h:75
bool isadd_
Definition: uiwelltiecheckshotedit.h:48
Well::D2TModel * orgcs_
Definition: uiwelltiecheckshotedit.h:86
DriftCurve driftcurve_
Definition: uiwelltiecheckshotedit.h:87
Definition: uiwelldisplaycontrol.h:25
Combo box.
Definition: uicombobox.h:32
Definition: uiparent.h:26
Definition: welltiecshot.h:21
Well::DahObj & dahobj_
Definition: uiwelltiecheckshotedit.h:49
Definition: uidialog.h:42
float value(int idx) const
Definition: uiwelltiecheckshotedit.h:67
Class to handle undo/redo information.
Definition: undo.h:42
uiToolButton * editbut_
Definition: uiwelltiecheckshotedit.h:91
void eraseAux()
Definition: uiwelltiecheckshotedit.h:76
Well::D2TModel * orgd2t_
Definition: uiwelltiecheckshotedit.h:84
float val_
Definition: uiwelltiecheckshotedit.h:51
int movingpointidx_
Definition: uiwelltiecheckshotedit.h:106
void add(float dh, float val)
Definition: uiwelltiecheckshotedit.h:66
Server & server_
Definition: uiwelltiecheckshotedit.h:80
Definition: directionalsurvey.h:19
Depth/Distance along hole object.
Definition: welldahobj.h:28
Well depth/distance along hole display.
Definition: uiwelldahdisplay.h:57
Holds the information on how to undo/redo something.
Definition: undo.h:104
Definition: uiwelltiecheckshotedit.h:55
DriftCurve newdriftcurve_
Definition: uiwelltiecheckshotedit.h:88
uiToolBar * toolbar_
Definition: uiwelltiecheckshotedit.h:90
uiCheckBox * viewcorrd2t_
Definition: uiwelltiecheckshotedit.h:94
uiWellDahDisplay * driftdisplay_
Definition: uiwelltiecheckshotedit.h:101
Definition: repos.h:25
uiToolButton * redobut_
Definition: uiwelltiecheckshotedit.h:93
Definition: uigraphicsitemimpl.h:214
bool isedit_
Definition: uiwelltiecheckshotedit.h:98
TypeSet< float > val_
Definition: uiwelltiecheckshotedit.h:73
Well::D2TModel * tkzs_
Definition: uiwelltiecheckshotedit.h:85
virtual void erase()
Definition: typeset.h:339
Definition: uitoolbutton.h:22
float dah_
Definition: uiwelltiecheckshotedit.h:50
Well::D2TModel * d2t_
Definition: uiwelltiecheckshotedit.h:83
uiWellDahDisplay * d2tdisplay_
Definition: uiwelltiecheckshotedit.h:100
virtual void removeSingle(size_type, bool preserver_order=true)
Definition: typeset.h:500
The holder of all data concerning a certain well.
Definition: welldata.h:113
uiPolyLineItem * d2tlineitm_
Definition: uiwelltiecheckshotedit.h:103
Definition: uibutton.h:134
Definition: welltiedata.h:236
uiWellDisplayControl * control_
Definition: uiwelltiecheckshotedit.h:102

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