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

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