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