OpendTect  6.3
uiseislinesel.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: Umesh Sinha
8  Date: Nov 2008
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uiseismod.h"
14 #include "uicompoundparsel.h"
15 #include "uidialog.h"
16 #include "uistring.h"
17 #include "bufstring.h"
18 #include "bufstringset.h"
19 #include "dbkey.h"
20 #include "ranges.h"
21 #include "posinfo2dsurv.h"
22 
23 class uiComboBox;
24 class uiGenInput;
25 class uiIOObjInserter;
26 class uiListBox;
27 class uiListBoxChoiceIO;
28 class uiListBoxFilter;
29 class uiSeisSel;
30 class uiSelNrRange;
31 class uiSelZRange;
32 class uiSeis2DLineSel;
33 
34 class CtxtIOObj;
35 class IOObj;
36 
37 
40 public:
41 
45 
46  void getChosen(TypeSet<Pos::GeomID>&) const;
47  void getChosen(BufferStringSet&) const;
48  void setChosen(const TypeSet<Pos::GeomID>&);
49  void setChosen(const BufferStringSet&);
50  void chooseAll(bool yn=true);
51 
52 protected:
53 
56 
60 
63 
64  void readChoiceDone(CallBacker*);
65  void writeChoiceReq(CallBacker*);
66  void objInserted(CallBacker*);
67 
68  friend class uiSeis2DLineSel;
71 
72  void init(OD::ChoiceMode);
73 };
74 
75 
78 
79 public:
80 
81  uiSeis2DLineSel(uiParent*,bool multisel=false);
82 
83  bool inputOK(bool emit_uimsg=true) const;
84 
85  const char* lineName() const;
86  Pos::GeomID geomID() const;
87  void setSelLine(const char* lnm);
88  void setSelLine(Pos::GeomID);
89 
91  void getSelLineNames(BufferStringSet&) const;
92 
94  void setSelLineNames(const BufferStringSet&);
95 
96  virtual void setInput(const DBKey&);
97  virtual void setInput(const BufferStringSet& lnms);
98  virtual void setInput(const TypeSet<Pos::GeomID>& geomid);
99 
100  void clearSelection();
101  int nrSelected() const;
102 
103  virtual void setAll(bool yn);
104  virtual bool isAll() const;
105 
107 
108 protected:
109 
114 
115  BufferString getSummary() const;
116 
117  virtual void selPush(CallBacker*);
118  virtual void clearAll();
119 };
120 
121 
124 public:
125 
126  uiSeis2DLineNameSel(uiParent*,bool forread);
127 
128  const char* getInput() const;
129  Pos::GeomID getInputGeomID() const;
130  void setInput(const char*);
131  void setInputGeomID(Pos::GeomID);
132  void setDataSet(const DBKey&);
133  void fillWithAll();
134 
136 
137 protected:
138 
140  bool forread_;
142 
143  void addLineNames(const DBKey&);
144  void selChg( CallBacker* ) { nameChanged.trigger(); }
145 
146 };
147 
148 
151 public:
153  const uiString& text=uiStrings::sEmptyString(),
154  bool withz=false,bool withstep=false);
156 
157  bool isAll() const;
158 
159  void getZRanges(TypeSet<StepInterval<float> >&) const;
160  void getTrcRanges(TypeSet<StepInterval<int> >&) const;
161  StepInterval<float> getZRange(Pos::GeomID) const;
162  StepInterval<int> getTrcRange(Pos::GeomID) const;
163 
164  void setInput(const DBKey&);
165  void setInput(const BufferStringSet& lnms);
166  void setInput(const TypeSet<Pos::GeomID>& geomid);
167 
168  void setSelLines(const BufferStringSet&);
169  void setAll(bool);
170  void setZRanges(const TypeSet<StepInterval<float> >&);
171  void setTrcRanges(const TypeSet<StepInterval<int> >&);
172 
173  bool fillPar(IOPar&) const;
174  void usePar(const IOPar&);
175 
176 protected:
177 
180 
183 
184  bool isall_;
185  bool withstep_;
186  bool withz_;
187 
188  void clearAll();
189  void initRanges(const DBKey* datasetid=0);
190 
191  void selPush(CallBacker*);
192 };
Definition: uigroup.h:53
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
TypeSet< StepInterval< float > > maxzrgs_
Definition: uiseislinesel.h:181
void getSelLineNames(BufferStringSet &) const
ChoiceMode
What to choose from any list-type UI object.
Definition: oduicommon.h:40
Definition: ioobj.h:57
Single-line element allowing multi-parameter to be set via a dialog.
Definition: uicompoundparsel.h:29
BufferStringSet lnms_
Definition: uiseislinesel.h:54
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
TypeSet< int > selidxs_
Definition: uiseislinesel.h:112
bool withstep_
Definition: uiseislinesel.h:185
TypeSet< StepInterval< int > > trcrgs_
Definition: uiseislinesel.h:179
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:200
bool init()
A filter field attaching itself to a listbox.
Definition: uilistboxfilter.h:20
Definition: oduicommon.h:43
bool ismultisel_
Definition: uiseislinesel.h:113
ObjectSet< uiButton > insertbuts_
Definition: uiseislinesel.h:62
TypeSet< StepInterval< int > > maxtrcrgs_
Definition: uiseislinesel.h:182
uiListBox * listfld_
Definition: uiseislinesel.h:57
Combo box.
Definition: uicombobox.h:30
void trigger()
Definition: notify.h:128
Definition: uistring.h:88
Definition: uiparent.h:24
Set of BufferString objects.
Definition: bufstringset.h:25
Holds an IOObjCtxt plus a pointer to an IOObj and/or an IOPar.
Definition: ctxtioobj.h:24
bool forread_
Definition: uiseislinesel.h:140
Notifier< uiSeis2DLineSel > selectionChanged
Definition: uiseislinesel.h:106
List Box.
Definition: uilistbox.h:73
uiComboBox * fld_
Definition: uiseislinesel.h:139
uiListBoxFilter * filtfld_
Definition: uiseislinesel.h:58
TypeSet< Pos::GeomID > geomids_
Definition: uiseislinesel.h:111
bool isall_
Definition: uiseislinesel.h:184
virtual void setInput(const DBKey &)
void setSelGeomIDs(const TypeSet< Pos::GeomID > &)
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
Allows save/restore of chosen items for a uiListBox.
Definition: uilistboxchoiceio.h:34
void setSelLine(const char *lnm)
Definition: uiseissel.h:24
ObjectSet< uiIOObjInserter > inserters_
Definition: uiseislinesel.h:61
virtual void selPush(CallBacker *)
Definition: uiseislinesel.h:122
inserts a new object into the OD data store.
Definition: uiioobjinserter.h:30
General Input Element.
Definition: uigeninput.h:56
int nrSelected() const
Definition: uiseislinesel.h:76
TypeSet< Pos::GeomID > geomids_
Definition: uiseislinesel.h:55
BufferStringSet lnms_
Definition: uiseislinesel.h:110
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:187
Index_Type GeomID
Definition: commontypes.h:48
Selects range of trace numbers.
Definition: uiselsurvranges.h:61
BufferString getSummary() const
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
void setSelLineNames(const BufferStringSet &)
Pos::GeomID geomID() const
void selChg(CallBacker *)
Definition: uiseislinesel.h:144
virtual bool isAll() const
virtual void clearAll()
uiSeis2DLineSel(uiParent *, bool multisel=false)
Full key to any object in the OpendTect data store.
Definition: dbkey.h:36
const char * lineName() const
bool withz_
Definition: uiseislinesel.h:186
Definition: uiseislinesel.h:149
bool inputOK(bool emit_uimsg=true) const
void getSelGeomIDs(TypeSet< Pos::GeomID > &) const
static uiString sEmptyString()
Definition: uistrings.h:307
virtual void setAll(bool yn)
DBKey dsid_
Definition: uiseislinesel.h:141
Definition: uiseislinesel.h:38
TypeSet< StepInterval< float > > zrgs_
Definition: uiseislinesel.h:178
Notifier< uiSeis2DLineNameSel > nameChanged
Definition: uiseislinesel.h:135
void clearSelection()
uiListBoxChoiceIO * lbchoiceio_
Definition: uiseislinesel.h:59
Selects sub-Z-range. Default will be SI() work Z Range.
Definition: uiselsurvranges.h:24

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