OpendTect-6_4  6.4
uiselsurvranges.h
Go to the documentation of this file.
1 #ifndef uiselsurvranges_h
2 #define uiselsurvranges_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Bert
9  Date: Feb 2008
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uiiomod.h"
16 #include "uigroup.h"
17 #include "trckeyzsampling.h"
18 
19 class uiCheckBox;
20 class uiSpinBox;
21 class uiLineEdit;
22 namespace ZDomain { class Def; }
23 
28 public:
29  uiSelZRange(uiParent*,bool wstep,
30  bool isrel=false,const char* lbltxt=0,
31  const char* zdomkey=0);
33  bool wstep,const char* lbltxt=0,
34  const char* zdomkey=0);
35 
36  StepInterval<float> getRange() const;
37  void setRange(const StepInterval<float>&);
38  void setRangeLimits(const StepInterval<float>&);
39 
41 
42  const ZDomain::Def& zDomainDef() const { return zddef_; }
43 
44 protected:
45 
49  bool isrel_;
50  const ZDomain::Def& zddef_; // keep above othdom_.
51  const bool othdom_; // keep above cansnap_
52  const bool cansnap_;
53 
54  void valChg(CallBacker*);
55  void makeInpFields(const uiString&,bool,
56  const StepInterval<float>*);
57 
58 };
59 
60 
64 {
65 public:
66  enum Type { Inl, Crl, Gen };
67 
68  uiSelNrRange(uiParent*,Type,bool wstep);
70  bool wstep,const char*);
71 
72  StepInterval<int> getRange() const;
73  void setRange(const StepInterval<int>&);
74  void setLimitRange(const StepInterval<int>&);
75 
76  bool isChecked();
77  void setChecked(bool);
78  bool isCheckable() { return cbox_; }
79  void setWithCheck( bool yn=true ) { withchk_ = yn; }
80 
83 
84 protected:
85 
92  bool finalised_;
93  bool withchk_;
94  int defstep_;
95 
96  void valChg(CallBacker*);
97  void checkBoxSel(CallBacker*);
98  void doFinalise(CallBacker*);
99 
100  int getStopVal() const;
101  void setStopVal(int);
102  void makeInpFields(StepInterval<int>,bool,bool);
103 
104 private:
105  bool checked_;
106 
107 };
108 
109 
114 public:
115 
116  uiSelSteps(uiParent*,bool is2d);
117 
118  BinID getSteps() const;
119  void setSteps(const BinID&);
120 
121 protected:
122 
125 
126 };
127 
128 
133 public:
134  uiSelHRange(uiParent*,bool wstep);
135  uiSelHRange(uiParent*,const TrcKeySampling& limiths,
136  bool wstep);
137 
138  TrcKeySampling getSampling() const;
139  void setSampling(const TrcKeySampling&);
140  void setLimits(const TrcKeySampling&);
141 
144 
145 };
146 
147 
151 {
152 public:
153  uiSelSubvol(uiParent*,bool wstep,const char* zdomkey=0);
154 
155  TrcKeyZSampling getSampling() const;
156  void setSampling(const TrcKeyZSampling&);
157 
160 
161 };
162 
163 
167 {
168 public:
169  uiSelSubline(uiParent*,bool wstep);
170 
173 
174 };
175 
176 
177 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
bool isCheckable()
Definition: uiselsurvranges.h:78
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiSelHRange * hfld_
Definition: uiselsurvranges.h:158
uiLineEdit * nrstopfld_
Definition: uiselsurvranges.h:89
const ZDomain::Def & zDomainDef() const
Definition: uiselsurvranges.h:42
BufferString lbltxt_
Definition: uiselsurvranges.h:91
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiSelNrRange * nrfld_
Definition: uiselsurvranges.h:171
uiSpinBox * inlfld_
Definition: uiselsurvranges.h:123
Definition: uistring.h:89
Definition: uiparent.h:26
const bool othdom_
Definition: uiselsurvranges.h:51
bool withchk_
Definition: uiselsurvranges.h:93
Notifier< uiSelNrRange > checked
Definition: uiselsurvranges.h:81
Selects sub-volume. Default will be SI() work area.
Definition: uiselsurvranges.h:131
Notifier< uiSelZRange > rangeChanged
Definition: uiselsurvranges.h:40
uiSpinBox * startfld_
Definition: uiselsurvranges.h:46
Selects sub-volume. Default will be SI() work volume.
Definition: uiselsurvranges.h:150
uiSpinBox * stepfld_
Definition: uiselsurvranges.h:48
Selects sub-line. Default will be 1-udf and SI() z range.
Definition: uiselsurvranges.h:166
Horizontal sampling (inline and crossline range and steps).
Definition: trckeysampling.h:27
uiSelNrRange * crlfld_
Definition: uiselsurvranges.h:143
uiSelZRange * zfld_
Definition: uiselsurvranges.h:159
uiSpinBox * crlfld_
Definition: uiselsurvranges.h:124
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
uiSpinBox * stopfld_
Definition: uiselsurvranges.h:47
uiSelZRange * zfld_
Definition: uiselsurvranges.h:172
Definition: uispinbox.h:24
uiCheckBox * cbox_
Definition: uiselsurvranges.h:86
const bool cansnap_
Definition: uiselsurvranges.h:52
bool finalised_
Definition: uiselsurvranges.h:92
int defstep_
Definition: uiselsurvranges.h:94
uiSpinBox * icstopfld_
Definition: uiselsurvranges.h:88
bool isrel_
Definition: uiselsurvranges.h:49
Selects range of trace numbers.
Definition: uiselsurvranges.h:63
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
uiSpinBox * stepfld_
Definition: uiselsurvranges.h:90
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Notifier< uiSelNrRange > rangeChanged
Definition: uiselsurvranges.h:82
Type
Definition: uiselsurvranges.h:66
void setWithCheck(bool yn=true)
Definition: uiselsurvranges.h:79
uiSelNrRange * inlfld_
Definition: uiselsurvranges.h:142
Definition: uilineedit.h:51
Definition: uibutton.h:134
Definition of z-domain.
Definition: zdomain.h:41
bool checked_
Definition: uiselsurvranges.h:105
Selects step(s) in inl/crl or trcnrs.
Definition: uiselsurvranges.h:112
const ZDomain::Def & zddef_
Definition: uiselsurvranges.h:50
Definition: zdomain.h:20
uiSpinBox * startfld_
Definition: uiselsurvranges.h:87
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