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

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