OpendTect-6_4  6.4
uislicepos.h
Go to the documentation of this file.
1 #ifndef uislicepos_h
2 #define uislicepos_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Helene Huck
9  Date: April 2009
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uiparent.h"
17 #include "bufstringset.h"
18 #include "trckeyzsampling.h"
19 
20 class uiLabel;
21 class uiSpinBox;
22 class uiToolBar;
23 class uiToolButton;
24 
27 mExpClass(uiTools) uiSlicePos : public CallBacker
29 public:
31  ~uiSlicePos();
32 
34  mDeclareEnumUtils(SliceDir);
35 
36  uiToolBar* getToolBar() const { return toolbar_; }
37  TrcKeyZSampling getTrcKeyZSampling() const { return curcs_; }
38 
39  void setLabels(const uiString& inl,const uiString& crl,
40  const uiString& z);
41  int getStep(SliceDir) const;
42  void setStep(SliceDir,int step);
43  void setSteps(int inl,int crl,int z);
44 
46 
47 protected:
48 
55  int laststeps_[3];
56  int zfactor_;
59 
60  void setBoxLabel(SliceDir);
61  virtual void setBoxRanges() =0;
62  virtual void setPosBoxValue() =0;
63  virtual void setStepBoxValue() =0;
64  virtual void slicePosChg(CallBacker*) =0;
65  virtual void sliceStepChg(CallBacker*) =0;
66  void shortcutsChg(CallBacker*);
67  void updatePos(CallBacker*);
68  void initSteps(CallBacker* cb=0);
69  void slicePosChanged(SliceDir,const TrcKeyZSampling&);
70  void sliceStepChanged(SliceDir);
71  void setBoxRg(SliceDir,const TrcKeyZSampling&);
72  void setPosBoxVal(SliceDir,const TrcKeyZSampling&);
73 
74  void prevCB(CallBacker*);
75  void nextCB(CallBacker*);
76 };
77 
78 #endif
Definition: uitoolbar.h:31
uiToolBar * getToolBar() const
Definition: uislicepos.h:36
#define mExpClass(module)
Definition: commondefs.h:160
uiLabel * label_
Definition: uislicepos.h:50
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
uiSpinBox * sliceposbox_
Definition: uislicepos.h:51
Toolbar for setting slice position _ base class.
Definition: uislicepos.h:27
OD::SliceType SliceDir
Definition: uislicepos.h:33
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiSpinBox * slicestepbox_
Definition: uislicepos.h:52
Definition: uistring.h:89
Definition: uiparent.h:26
TrcKeyZSampling curcs_
Definition: uislicepos.h:57
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
uiStringSet boxlabels_
Definition: uislicepos.h:58
uiToolButton * prevbut_
Definition: uislicepos.h:53
Notifier< uiSlicePos > positionChg
Definition: uislicepos.h:45
uiToolButton * nextbut_
Definition: uislicepos.h:54
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:35
Definition: uispinbox.h:24
TrcKeyZSampling getTrcKeyZSampling() const
Definition: uislicepos.h:37
uiToolBar * toolbar_
Definition: uislicepos.h:49
SliceType
OpendTect flat slice types.
Definition: oduicommon.h:32
Definition: uilabel.h:24
Definition: uitoolbutton.h:22
Definition: uistring.h:218
int zfactor_
Definition: uislicepos.h:56

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