OpendTect  6.6
uiwellmarkersel.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: Bert
7 Date: Aug 2012
8 RCS: $Id$
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiwellmod.h"
14 
15 #include "uidialog.h"
16 #include "uigroup.h"
17 #include "uistring.h"
18 
19 #include "bufstringset.h"
20 
21 
22 class uiComboBox;
23 class uiIOObjSelGrp;
24 class uiListBox;
25 namespace Well { class Marker; class MarkerSet; }
26 
27 
32 public:
33 
34  mExpClass(uiWell) Setup
35  {
36  public:
37  Setup(bool one,const char* sel_txt=0);
38  // Pass an empty string ("") to get no label
39 
40  mDefSetupMemb(bool,single);
41  mDefSetupMemb(bool,allowsame);
42  mDefSetupMemb(bool,withudf);
43  mDefSetupMemb(bool,unordered);
44  mDefSetupMemb(bool,middef);
47  };
48 
50 
54 
55  void setInput(const Well::Marker&,bool top=true);
56  void setInput(const char*,bool top=true);
57 
58  const char* getText(bool top=true) const;
59  int getType(bool top=true) const;
62  void reset();
63 
64  void usePar(const IOPar&);
65  void fillPar(IOPar&) const;
66 
67  static const char* sKeyUdfLvl();
68  static const char* sKeyDataStart();
69  static const char* sKeyDataEnd();
70 
71  uiComboBox* getFld( bool top )
72  { return top ? topfld_ : botfld_; }
73 
75 
76 protected:
77 
78  const Setup setup_;
81 
84 
85 };
86 
87 
92 public:
93 
94  mExpClass(uiWell) Setup
95  {
96  public:
98  bool withwllfilt=true,
100  : markerschoicemode_(markerscm)
101  , withwellfilter_(withwllfilt)
102  , wellschoicemode_(wellscm) {}
103 
104  mDefSetupMemb(OD::ChoiceMode,markerschoicemode);
105  mDefSetupMemb(bool,withwellfilter);
106  mDefSetupMemb(OD::ChoiceMode,wellschoicemode);
107 
108  };
109 
111  const uiWellMarkersDlg::Setup&);
112 
113  //Available after dlg.go():
117 
118  uiIOObjSelGrp* wellSelGrp() { return wellselgrp_; }
119 
120 private:
121 
124 
126 };
127 
uiWellMarkersDlg::getWellNames
void getWellNames(BufferStringSet &)
uiWellMarkerSel::fillPar
void fillPar(IOPar &) const
uiWellMarkerSel::setMarkers
void setMarkers(const BufferStringSet &)
uiWellMarkersDlg::getNames
void getNames(BufferStringSet &)
uiWellMarkerSel::topfld_
uiComboBox * topfld_
Definition: uiwellmarkersel.h:79
uistring.h
uiWellMarkerSel::botfld_
uiComboBox * botfld_
Definition: uiwellmarkersel.h:80
uiWellMarkersDlg::mODTextTranslationClass
mODTextTranslationClass(uiWellMarkersDlg)
BufferStringSet
Set of BufferString objects.
Definition: bufstringset.h:26
uiComboBox
Combo box.
Definition: uicombobox.h:32
uiWellMarkersDlg::Setup::Setup
Setup(OD::ChoiceMode markerscm=OD::ChooseAtLeastOne, bool withwllfilt=true, OD::ChoiceMode wellscm=OD::ChooseAtLeastOne)
Definition: uiwellmarkersel.h:97
uiWellMarkerSel::Setup
Definition: uiwellmarkersel.h:35
uiWellMarkerSel::uiWellMarkerSel
uiWellMarkerSel(uiParent *, const Setup &)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiWellMarkerSel::sKeyUdfLvl
static const char * sKeyUdfLvl()
uiIOObjSelGrp
Basic group for letting the user select an object.
Definition: uiioobjselgrp.h:47
Well::Marker
Marker, should be attached to Strat level.
Definition: wellmarker.h:35
uiWellMarkersDlg::Setup::mDefSetupMemb
mDefSetupMemb(bool, withwellfilter)
uiWellMarkerSel::sKeyDataEnd
static const char * sKeyDataEnd()
uiWellMarkerSel::Setup::mDefSetupMemb
mDefSetupMemb(BufferString, seltxt)
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
uiWellMarkersDlg::uiWellMarkersDlg
uiWellMarkersDlg(uiParent *, const uiWellMarkersDlg::Setup &)
uigroup.h
uiWellMarkerSel::usePar
void usePar(const IOPar &)
Sets start to first marker, stop to last.
uiWellMarkerSel
Select one or two markers (i.e. a range)
Definition: uiwellmarkersel.h:31
uiWellMarkerSel::Setup::mDefSetupMemb
mDefSetupMemb(bool, withudf)
[true] udf or 'open' zones allowed
uiWellMarkerSel::getType
int getType(bool top=true) const
uiWellMarkersDlg::Setup::mDefSetupMemb
mDefSetupMemb(OD::ChoiceMode, wellschoicemode)
uiWellMarkerSel::setMarkers
void setMarkers(const Well::MarkerSet &)
uiWellMarkerSel::Setup::mDefSetupMemb
mDefSetupMemb(bool, unordered)
uiWellMarkerSel::Setup::Setup
Setup(bool one, const char *sel_txt=0)
Well
Definition: directionalsurvey.h:20
uiWellMarkersDlg::Setup
Definition: uiwellmarkersel.h:95
uiGroup
Definition: uigroup.h:54
uiWellMarkerSel::setup_
const Setup setup_
Definition: uiwellmarkersel.h:78
Well::MarkerSet
Set of Markers.
Definition: wellmarker.h:76
uiListBox
List Box.
Definition: uilistbox.h:75
uiWellMarkersDlg::Setup::mDefSetupMemb
mDefSetupMemb(OD::ChoiceMode, markerschoicemode)
Notifier< uiWellMarkerSel >
uidialog.h
uiWellMarkerSel::setInput
void setInput(const Well::Marker &, bool top=true)
uiWellMarkerSel::mrkSelDone
Notifier< uiWellMarkerSel > mrkSelDone
Definition: uiwellmarkersel.h:74
uiWellMarkerSel::reset
void reset()
BufferString
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
uiWellMarkersDlg::fltrMarkerNamesCB
void fltrMarkerNamesCB(CallBacker *)
sKey::Marker
FixedString Marker()
Definition: keystrs.h:98
uiWellMarkersDlg::getWellIDs
void getWellIDs(TypeSet< MultiID > &)
bufstringset.h
uiWellMarkersDlg::wellSelGrp
uiIOObjSelGrp * wellSelGrp()
Definition: uiwellmarkersel.h:118
uiWellMarkerSel::setMarkerColors
void setMarkerColors(const TypeSet< Color > &)
OD::ChoiceMode
ChoiceMode
What to choose from any list-type UI object.
Definition: oduicommon.h:42
uiWellMarkerSel::mrkSel
void mrkSel(CallBacker *)
OD::ChooseAtLeastOne
@ ChooseAtLeastOne
Definition: oduicommon.h:45
uiWellMarkerSel::Setup::mDefSetupMemb
mDefSetupMemb(bool, allowsame)
[true]
uiWellMarkersDlg::markersselgrp_
uiListBox * markersselgrp_
Definition: uiwellmarkersel.h:123
uiWellMarkerSel::setMarkers
void setMarkers(uiComboBox &, const BufferStringSet &)
uiWellMarkerSel::mODTextTranslationClass
mODTextTranslationClass(uiWellMarkerSel)
uiWellMarkerSel::Setup::mDefSetupMemb
mDefSetupMemb(bool, single)
false => two levels (a zone)
uiParent
Definition: uiparent.h:26
uiWellMarkerSel::getFld
uiComboBox * getFld(bool top)
Definition: uiwellmarkersel.h:71
uiWellMarkerSel::sKeyDataStart
static const char * sKeyDataStart()
uiWellMarkersDlg::wellselgrp_
uiIOObjSelGrp * wellselgrp_
Definition: uiwellmarkersel.h:122
uiDialog
Definition: uidialog.h:42
uiWellMarkersDlg
Select a list of markers from the well database.
Definition: uiwellmarkersel.h:91
IOPar
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:55
uiWellMarkerSel::setInput
void setInput(const char *, bool top=true)
uiWellMarkerSel::getText
const char * getText(bool top=true) const
TypeSet< Color >

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