OpendTect-6_4  6.4
uislicesel.h
Go to the documentation of this file.
1 #ifndef uislicesel_h
2 #define uislicesel_h
3 /*+
4 ________________________________________________________________________
5 
6  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
7  Author: N. Hemstra
8  Date: April 2002
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 
16 #include "uidialog.h"
17 #include "uigroup.h"
18 #include "trckeyzsampling.h"
19 #include "ranges.h"
20 #include "threadlock.h"
21 #include "zdomain.h"
22 
23 class uiGenInput;
24 class uiLabeledSpinBox;
25 class uiScrollDialog;
26 class uiSliceScroll;
27 class uiSpinBox;
28 
29 mExpClass(uiTools) uiSliceSel : public uiGroup
31 public:
32 
33  enum Type { Inl, Crl, Tsl, Vol, TwoD };
34 
36  bool dogeomcheck=true);
37  ~uiSliceSel();
38 
39  void setApplyCB(const CallBack&);
40 
42  return tkzs_;
43  }
44  virtual void setTrcKeyZSampling(const TrcKeyZSampling&);
45  void setMaxTrcKeyZSampling(const TrcKeyZSampling&);
46  void enableApplyButton(bool);
47  void enableScrollButton(bool);
48  void fillPar(IOPar&);
49  void usePar(const IOPar&);
50 
51  bool acceptOK();
52  static uiString sButTxtAdvance();
53  static uiString sButTxtPause();
54 
55 protected:
56 
57  friend class uiSliceScroll;
58 
59  void createInlFld();
60  void createCrlFld();
61  void createZFld();
62 
63  void fullPush(CallBacker*);
64  void scrollPush(CallBacker*);
65  void applyPush(CallBacker*);
66  void readInput();
67  void updateUI();
68  void setBoxValues(uiSpinBox*,
69  const StepInterval<int>&,int);
70 
77  uiButton* applybut_;
78  uiButton* scrollbut_;
79 
80  uiSliceScroll* scrolldlg_;
81 
85  bool isinl_, iscrl_, istsl_, isvol_, is2d_,
86  dogeomcheck_;
88 
90 };
91 
92 
93 mExpClass(uiTools) uiSliceSelDlg : public uiDialog
95 public:
97  const TrcKeyZSampling& csin,
98  const TrcKeyZSampling& maxcs,
99  const CallBack& applycb,
101  const ZDomain::Info&);
102 
104  { return slicesel_->getTrcKeyZSampling(); }
106  { slicesel_->setTrcKeyZSampling( cs ); }
107 
108  uiSliceSel* grp() { return slicesel_; }
109 
110 protected:
111 
113 
114  bool acceptOK(CallBacker*);
115 };
116 
117 
120 public:
123  ~uiLinePosSelDlg();
124 
125  const TrcKeyZSampling& getTrcKeyZSampling() const;
126  const char* getLineName() const;
127  void setPrefCS(TrcKeyZSampling* prefcs) {
128  prefcs_ = prefcs;
129  }
130 
131 protected:
132  bool acceptOK(CallBacker*);
133  bool selectPos2D();
134  bool selectPos3D();
135 
141  bool is2d_;
143 };
144 
145 #endif
Definition: uigroup.h:54
#define mExpClass(module)
Definition: commondefs.h:160
uiButton * applybut_
Definition: uislicesel.h:77
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:53
Definition: uislicesel.h:29
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiGenInput * linesfld_
Definition: uislicesel.h:137
uiGenInput * inlcrlfld_
Definition: uislicesel.h:136
CallBack * applycb_
Definition: uislicesel.h:84
void setTrcKeyZSampling(const TrcKeyZSampling &cs)
Definition: uislicesel.h:105
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
TrcKeyZSampling * prefcs_
Definition: uislicesel.h:139
const TrcKeyZSampling & getTrcKeyZSampling() const
Definition: uislicesel.h:41
Definition: uislicesel.h:93
IOPar prevpar_
Definition: uislicesel.h:142
Definition: uistring.h:89
Definition: uiparent.h:26
FixedString TwoD()
Definition: keystrs.h:139
Definition: uidialog.h:42
uiSliceScroll * scrolldlg_
Definition: uislicesel.h:80
void setPrefCS(TrcKeyZSampling *prefcs)
Definition: uislicesel.h:127
uiLabeledSpinBox * inl0fld_
Definition: uislicesel.h:71
uiLabeledSpinBox * z0fld_
Definition: uislicesel.h:73
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
uiSliceSelDlg * posdlg_
Definition: uislicesel.h:140
Definition: uispinbox.h:128
uiSpinBox * inl1fld_
Definition: uislicesel.h:74
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
uiSliceSel * slicesel_
Definition: uislicesel.h:112
General Input Element.
Definition: uigeninput.h:58
TrcKeyZSampling maxcs_
Definition: uislicesel.h:82
uiSliceSel * grp()
Definition: uislicesel.h:108
Threads::Lock updatelock_
Definition: uislicesel.h:89
Definition: uispinbox.h:24
void fillPar(IOPar &iop, const ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:175
bool isvol_
Definition: uislicesel.h:85
uiSpinBox * crl1fld_
Definition: uislicesel.h:75
ZDomain::Info zdominfo_
Definition: uislicesel.h:87
Type
Definition: uislicesel.h:33
Definition: uislicesel.h:118
bool is2d_
Definition: uislicesel.h:141
Definition: uislicesel.h:33
TrcKeyZSampling tkzs_
Definition: uislicesel.h:138
uiSpinBox * z1fld_
Definition: uislicesel.h:76
uiButton * scrollbut_
Definition: uislicesel.h:78
uiLabeledSpinBox * crl0fld_
Definition: uislicesel.h:72
CallBacks object-oriented (object + method).
Definition: callback.h:57
TrcKeyZSampling tkzs_
Definition: uislicesel.h:83
Information of z-domain.
Definition: zdomain.h:91
const TrcKeyZSampling & getTrcKeyZSampling() const
Definition: uislicesel.h:103

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