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

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