OpendTect  6.3
uiwelllogtools.h
Go to the documentation of this file.
1 #pragma once
2 /*+
3 ________________________________________________________________________
4 
5 (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
6 Author: Bruno
7 Date: Jan 2011
8 ________________________________________________________________________
9 
10 -*/
11 
12 
13 #include "uiwellmod.h"
14 #include "uiwellmod.h"
15 #include "uidialog.h"
16 #include "bufstringset.h"
17 #include "dbkey.h"
18 #include "uistring.h"
19 
20 class uiCheckBox;
21 class uiComboBox;
23 class uiGenInput;
24 class uiMultiWellLogSel;
25 class uiLabel;
26 class uiLabeledComboBox;
27 class uiLabeledSpinBox;
28 class uiButton;
29 class uiSpinBox;
30 class uiTable;
31 class uiWellLogDisplay;
32 
33 
34 namespace Well
35 { class Data; class Log; class LogSet; class D2TModel; class Track; }
36 
37 
40 public:
41 
42  mStruct(uiWell) LogData
43  {
44  LogData(const Well::LogSet&,
45  const Well::D2TModel*,
46  const Well::Track*);
47  ~LogData();
48 
49  DBKey wellid_;
50  BufferString wellname_;
51  Interval<float> dahrg_;
52 
53  int setSelectedLogs(BufferStringSet&);
54  void getOutputLogs(Well::LogSet& ls) const;
55  static uiString sAtWell() { return tr("at well"); }
56 
57  protected:
58 
59  Well::LogSet& logs_;
60 
62  ObjectSet<Well::Log> outplogs_;
63 
64  const Well::D2TModel* d2t_;
65  const Well::Track* track_;
66 
67  friend class uiWellLogToolWin;
68  };
69 
72 
73  bool needSave() const { return needsave_; }
74 
76  { lds = logdatas_; }
77 
78 protected:
79 
89  uiButton* applybut_;
90  uiButton* okbut_;
91  uiButton* cancelbut_;
93 
96  bool needsave_;
97 
98  void displayLogs();
99 
100  void actionSelCB(CallBacker*);
102  void overWriteCB(CallBacker*);
103  void applyPushedCB(CallBacker*);
104  void okPushedCB(CallBacker*);
105  void cancelPushedCB(CallBacker*);
106 };
107 
108 
111 public:
113  const BufferStringSet* welllnms=0,
114  const BufferStringSet* lognms=0);
115 protected:
116 
118 
119  bool acceptOK();
120  void winClosed(CallBacker*);
121 };
122 
123 
126 public:
128  ~uiWellLogEditor();
129 
130  void selectMD(float md);
131  bool isLogChanged() const { return changed_; }
132 
134 
135 protected:
136  void fillTable();
137  void valChgCB(CallBacker*);
138  bool acceptOK();
139  void rowDelCB(CallBacker*);
140  void rowInsertCB(CallBacker*);
141 
144 
145  bool changed_;
146 };
#define mExpClass(module)
Definition: commondefs.h:157
User interface main window.
Definition: uimainwin.h:34
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
bool isLogChanged() const
Definition: uiwelllogtools.h:131
Depth to time model.
Definition: welld2tmodel.h:25
Definition: uiwelllogtools.h:38
#define mStruct(module)
Definition: commondefs.h:162
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
bool needsave_
Definition: uiwelllogtools.h:96
uiButton * cancelbut_
Definition: uiwelllogtools.h:91
uiGenInput * replacespikevalfld_
Definition: uiwelllogtools.h:87
Definition: uiwelllogtools.h:124
uiButton * applybut_
Definition: uiwelllogtools.h:89
Well log.
Definition: welllog.h:40
uiWellLogToolWin(uiParent *, ObjectSet< LogData > &)
uiCheckBox * overwritefld_
Definition: uiwelllogtools.h:81
Definition: uitable.h:29
ObjectSet< uiWellLogDisplay > logdisps_
Definition: uiwelllogtools.h:95
Definition: file.h:109
Set of Well::Log&#39;s.
Definition: welllogset.h:24
uiTable * table_
Definition: uiwelllogtools.h:143
Combo box.
Definition: uicombobox.h:30
Definition: uistring.h:88
Definition: uiparent.h:24
Set of BufferString objects.
Definition: bufstringset.h:25
bool needSave() const
Definition: uiwelllogtools.h:73
Definition: uidialog.h:40
void actionSelCB(CallBacker *)
Set of pointers to objects.
Definition: commontypes.h:28
void handleSpikeSelCB(CallBacker *)
uiComboBox * actionfld_
Definition: uiwelllogtools.h:80
Notifier< uiWellLogEditor > valueChanged
Definition: uiwelllogtools.h:133
uiLabel * gatelbl_
Definition: uiwelllogtools.h:84
Definition: uispinbox.h:123
Well::Log & log_
Definition: uiwelllogtools.h:142
Definition: wellcommon.h:16
Well track.
Definition: welltrack.h:22
General Input Element.
Definition: uigeninput.h:56
bool changed_
Definition: uiwelllogtools.h:145
uiFreqFilterSelFreq * freqfld_
Definition: uiwelllogtools.h:88
Definition: uiwelllogtools.h:109
Definition: uicombobox.h:137
Definition: uispinbox.h:22
uiGenInput * savefld_
Definition: uiwelllogtools.h:82
Definition: uimultiwelllogsel.h:29
uiLabeledComboBox * replacespikefld_
Definition: uiwelllogtools.h:86
Definition: repos.h:23
uiSpinBox * gatefld_
Definition: uiwelllogtools.h:83
uiMultiWellLogSel * welllogselfld_
Definition: uiwelllogtools.h:117
void cancelPushedCB(CallBacker *)
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
Definition: uilabel.h:22
Displays maximum two Well logs.
Definition: uiwelllogdisplay.h:27
void getLogDatas(ObjectSet< LogData > &lds) const
Definition: uiwelllogtools.h:75
Interval< float > zdisplayrg_
Definition: uiwelllogtools.h:92
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
Definition: uifreqfilter.h:20
void okPushedCB(CallBacker *)
Definition: uibutton.h:130
ObjectSet< LogData > logdatas_
Definition: uiwelllogtools.h:94
void overWriteCB(CallBacker *)
uiLabeledSpinBox * thresholdfld_
Definition: uiwelllogtools.h:85
void applyPushedCB(CallBacker *)
uiButton * okbut_
Definition: uiwelllogtools.h:90

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