OpendTect  6.6
uimultiwelllogsel.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 RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiwellmod.h"
14 #include "uigroup.h"
15 #include "bufstringset.h"
16 #include "wellmarker.h"
17 #include "wellextractdata.h"
18 #include "uistring.h"
19 
20 class IOObj;
21 class uiCheckBox;
22 class uiGenInput;
23 class uiLabel;
24 class uiListBox;
25 class uiListBoxChoiceIO;
26 
27 namespace Well { class MarkerSet; }
28 
33 public:
34  mExpClass(uiWell) Setup
35  {
36  public:
38  : withzintime_(true)
39  , withzvalsel_(true)
40  , txtofmainfld_("Extract Between")
41  {}
42 
43  mDefSetupMemb(bool,withzintime)
44  mDefSetupMemb(bool,withzvalsel)
45  mDefSetupMemb(BufferString,txtofmainfld)
46  };
47 
50 
51  virtual void clear();
52 
55 
56  void setTopMarker(const char* mrk,float shift)
57  { params_->setTopMarker(mrk,shift); putToScreen(); }
58  void setBotMarker(const char* mrk,float shift)
59  { params_->setBotMarker(mrk,shift); putToScreen(); }
60  void setRangeSel( const Well::ZRangeSelector& sel )
61  { *params_ = sel; putToScreen(); }
62  void setRange(Interval<float> rg, bool istime);
63 
64  Well::ZRangeSelector& zRangeSel() { return *params_; }
65 
66 protected:
67 
70 
74 
75  int selidx_;
76  float ztimefac_;
78 
79  virtual void putToScreen();
80  virtual void getFromScreen(CallBacker*);
81  virtual void updateDisplayFlds();
82  virtual void onFinalise(CallBacker*);
83 };
84 
85 
88 public:
90  {
91  public:
93  : withzstep_(false)
94  , defmeterstep_(1)
95  , withsampling_(false)
96  , singlelog_(false)
97  , withextractintime_(SI().zIsTime())
98  {
99  if ( SI().depthsInFeet() )
100  defmeterstep_ =
101  0.5f*mFromFeetFactorF;
102 
103  }
104 
105  mDefSetupMemb(bool,withzstep)
106  mDefSetupMemb(bool,withsampling)
107  mDefSetupMemb(bool,withextractintime)
108  mDefSetupMemb(float,defmeterstep)
109  mDefSetupMemb(bool,singlelog)
110  mDefSetupMemb(BufferString,prefpropnm)
111  };
112 
114 
115  Well::ExtractParams& params()
116  { return static_cast<Well::ExtractParams&>(*params_); }
118  {
119  params() = param;
120  putToScreen();
121  }
122 
123 
124 protected:
125 
126  bool dostep_;
129 
134 
135  virtual void updateDisplayFlds();
136  virtual void putToScreen();
137  virtual void getFromScreen(CallBacker*);
138  virtual void onFinalise(CallBacker*);
139 };
140 
141 
142 
145 public:
147  const BufferStringSet* wellnms=0,
148  const BufferStringSet* lognms=0);
150  const MultiID& singlewid);
152 
154 
159 
164 
165  void update(); //call this when data changed
166 
167 protected:
168 
170 
172 
176 
177  void init();
179 
183 };
184 
Well::ZRangeSelector
Parameters (zrg, sampling method) to extract well data.
Definition: wellextractdata.h:47
uiWellZRangeSelector::putToScreen
virtual void putToScreen()
uiMultiWellLogSel::wellschoiceio_
uiListBoxChoiceIO * wellschoiceio_
Definition: uimultiwelllogsel.h:175
uiWellZRangeSelector::setRangeSel
void setRangeSel(const Well::ZRangeSelector &sel)
Definition: uimultiwelllogsel.h:60
uiWellExtractParams::setWellExtractParams
void setWellExtractParams(Well::ExtractParams param)
Definition: uimultiwelllogsel.h:117
uiMultiWellLogSel::setSelLogNames
void setSelLogNames(const BufferStringSet &)
uiMultiWellLogSel::wellobjs_
ObjectSet< IOObj > wellobjs_
Definition: uimultiwelllogsel.h:169
uistring.h
uiWellExtractParams::onFinalise
virtual void onFinalise(CallBacker *)
uiMultiWellLogSel::writeWellChoiceReq
void writeWellChoiceReq(CallBacker *)
uiMultiWellLogSel::getSelLogNames
void getSelLogNames(BufferStringSet &) const
ObjectSet< uiGroup >
uiMultiWellLogSel::mODTextTranslationClass
mODTextTranslationClass(uiMultiWellLogSel)
uiWellZRangeSelector::getFromScreen
virtual void getFromScreen(CallBacker *)
uiWellZRangeSelector::setMarkers
void setMarkers(const Well::MarkerSet &)
uiWellExtractParams::depthstepfld_
uiGenInput * depthstepfld_
Definition: uimultiwelllogsel.h:130
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
uiListBoxChoiceIO
Allows save/restore of chosen items for a uiListBox.
Definition: uilistboxchoiceio.h:36
uiWellZRangeSelector::belowfld_
uiGenInput * belowfld_
Definition: uimultiwelllogsel.h:69
wellextractdata.h
Well::ExtractParams
ZRangeSelector to extract parameters.
Definition: wellextractdata.h:120
uiMultiWellLogSel::singlewid_
const MultiID * singlewid_
Definition: uimultiwelllogsel.h:171
uiMultiWellLogSel::uiMultiWellLogSel
uiMultiWellLogSel(uiParent *, const Setup &, const MultiID &singlewid)
uiWellZRangeSelector::setMarkers
void setMarkers(const BufferStringSet &)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiCheckBox
Definition: uibutton.h:167
uiMultiWellLogSel::onFinalise
void onFinalise(CallBacker *)
uiWellExtractParams::singlelog_
bool singlelog_
Definition: uimultiwelllogsel.h:127
mDefSetupMemb
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:154
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
mFromFeetFactorF
#define mFromFeetFactorF
Definition: commondefs.h:123
sKey::Setup
FixedString Setup()
Definition: keystrs.h:139
uiWellZRangeSelector::clear
virtual void clear()
uigroup.h
uiWellZRangeSelector::ztimefac_
float ztimefac_
Definition: uimultiwelllogsel.h:76
uiGenInput
General Input Element.
Definition: uigeninput.h:59
uiMultiWellLogSel::setSelWellIDs
void setSelWellIDs(const TypeSet< MultiID > &)
Well
Definition: directionalsurvey.h:20
uiMultiWellLogSel::getSelWellIDs
void getSelWellIDs(BufferStringSet &) const
uiMultiWellLogSel::wellsfld_
uiListBox * wellsfld_
Definition: uimultiwelllogsel.h:173
uiWellZRangeSelector::selidx_
int selidx_
Definition: uimultiwelllogsel.h:75
uiMultiWellLogSel::getSelWellIDs
void getSelWellIDs(TypeSet< MultiID > &) const
uiGroup
Definition: uigroup.h:54
SI
const SurveyInfo & SI()
Well::MarkerSet
Set of Markers.
Definition: wellmarker.h:76
uiWellZRangeSelector::abovefld_
uiGenInput * abovefld_
Definition: uimultiwelllogsel.h:68
uiListBox
List Box.
Definition: uilistbox.h:75
uiWellZRangeSelector::params_
Well::ZRangeSelector * params_
Definition: uimultiwelllogsel.h:77
uiWellZRangeSelector::setTopMarker
void setTopMarker(const char *mrk, float shift)
Definition: uimultiwelllogsel.h:56
uiWellZRangeSelector::uiWellZRangeSelector
uiWellZRangeSelector(uiParent *, const Setup &)
IOObj
Definition: ioobj.h:58
uiWellZRangeSelector
Definition: uimultiwelllogsel.h:32
uiWellExtractParams::Setup::Setup
Setup()
Definition: uimultiwelllogsel.h:92
uiWellZRangeSelector::Setup::mDefSetupMemb
mDefSetupMemb(bool, withzintime) mDefSetupMemb(bool
uiMultiWellLogSel::uiMultiWellLogSel
uiMultiWellLogSel(uiParent *, const Setup &, const BufferStringSet *wellnms=0, const BufferStringSet *lognms=0)
uiWellZRangeSelector::zselectionflds_
ObjectSet< uiGroup > zselectionflds_
Definition: uimultiwelllogsel.h:71
uiWellExtractParams::mODTextTranslationClass
mODTextTranslationClass(uiWellExtractParams)
MultiID
Compound key consisting of ints.
Definition: multiid.h:24
uiMultiWellLogSel::updateLogsFldCB
void updateLogsFldCB(CallBacker *)
uiWellExtractParams::Setup::mDefSetupMemb
mDefSetupMemb(bool, withzstep) mDefSetupMemb(bool
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiWellZRangeSelector::setRange
void setRange(Interval< float > rg, bool istime)
uiWellExtractParams
Definition: uimultiwelllogsel.h:87
uiWellZRangeSelector::setBotMarker
void setBotMarker(const char *mrk, float shift)
Definition: uimultiwelllogsel.h:58
uiWellExtractParams::Setup
Definition: uimultiwelllogsel.h:90
uiWellZRangeSelector::zlabelflds_
ObjectSet< uiLabel > zlabelflds_
Definition: uimultiwelllogsel.h:72
uiMultiWellLogSel::selectOnlyWritableWells
void selectOnlyWritableWells()
uiWellExtractParams::updateDisplayFlds
virtual void updateDisplayFlds()
bufstringset.h
uiWellZRangeSelector::~uiWellZRangeSelector
virtual ~uiWellZRangeSelector()
uiWellZRangeSelector::zchoicefld_
uiGenInput * zchoicefld_
Definition: uimultiwelllogsel.h:73
uiWellZRangeSelector::Setup
Definition: uimultiwelllogsel.h:35
uiMultiWellLogSel::setSelWellNames
void setSelWellNames(const BufferStringSet &)
uiMultiWellLogSel::~uiMultiWellLogSel
~uiMultiWellLogSel()
uiWellExtractParams::dostep_
bool dostep_
Definition: uimultiwelllogsel.h:126
uiMultiWellLogSel::getSelWellNames
void getSelWellNames(BufferStringSet &) const
uiLabel
Definition: uilabel.h:24
uiWellZRangeSelector::onFinalise
virtual void onFinalise(CallBacker *)
uiMultiWellLogSel::readWellChoiceDone
void readWellChoiceDone(CallBacker *)
uiMultiWellLogSel::logsfld_
uiListBox * logsfld_
Definition: uimultiwelllogsel.h:174
uiWellZRangeSelector::zRangeSel
Well::ZRangeSelector & zRangeSel()
Definition: uimultiwelllogsel.h:64
uiMultiWellLogSel::setSelWellIDs
void setSelWellIDs(const BufferStringSet &)
uiParent
Definition: uiparent.h:26
uiWellExtractParams::sampfld_
uiGenInput * sampfld_
Definition: uimultiwelllogsel.h:133
uiWellZRangeSelector::updateDisplayFlds
virtual void updateDisplayFlds()
uiWellExtractParams::timestepfld_
uiGenInput * timestepfld_
Definition: uimultiwelllogsel.h:131
wellmarker.h
uiMultiWellLogSel::update
void update()
uiWellExtractParams::prefpropnm_
BufferString prefpropnm_
Definition: uimultiwelllogsel.h:128
Interval< float >
uiMultiWellLogSel
Definition: uimultiwelllogsel.h:144
uiWellZRangeSelector::mODTextTranslationClass
mODTextTranslationClass(uiWellZRangeSelector)
uiWellExtractParams::putToScreen
virtual void putToScreen()
uiWellZRangeSelector::Setup::Setup
Setup()
Definition: uimultiwelllogsel.h:37
uiWellExtractParams::zistimefld_
uiCheckBox * zistimefld_
Definition: uimultiwelllogsel.h:132
TypeSet< MultiID >
uiMultiWellLogSel::init
void init()
uiWellExtractParams::getFromScreen
virtual void getFromScreen(CallBacker *)

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