OpendTect  6.3
uislicepos.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: Helene Huck
8  Date: April 2009
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uitoolsmod.h"
14 #include "uiparent.h"
15 #include "bufstringset.h"
16 #include "trckeyzsampling.h"
17 
18 class uiLabel;
19 class uiSpinBox;
20 class uiToolBar;
21 class uiToolButton;
22 
25 mExpClass(uiTools) uiSlicePos : public CallBacker
27 public:
29  ~uiSlicePos();
30 
32  mDeclareEnumUtils(SliceDir);
33 
34  uiToolBar* getToolBar() const { return toolbar_; }
35  TrcKeyZSampling getTrcKeyZSampling() const { return curcs_; }
36 
37  void setLabels(const uiString& inl,const uiString& crl,
38  const uiString& z);
39 
41 
42 protected:
43 
50  int laststeps_[3];
51  int zfactor_;
54 
55  void setBoxLabel(SliceDir);
56  virtual void setBoxRanges() =0;
57  virtual void setPosBoxValue() =0;
58  virtual void setStepBoxValue() =0;
59  virtual void slicePosChg(CallBacker*) =0;
60  virtual void sliceStepChg(CallBacker*) =0;
61  void shortcutsChg(CallBacker*);
62  void updatePos(CallBacker*);
63  void initSteps(CallBacker* cb=0);
64  void slicePosChanged(SliceDir,const TrcKeyZSampling&);
65  void sliceStepChanged(SliceDir);
66  void setBoxRg(SliceDir,const TrcKeyZSampling&);
67  void setPosBoxVal(SliceDir,const TrcKeyZSampling&);
68 
69  void prevCB(CallBacker*);
70  void nextCB(CallBacker*);
71 };
Definition: uitoolbar.h:30
uiToolBar * getToolBar() const
Definition: uislicepos.h:34
#define mExpClass(module)
Definition: commondefs.h:157
uiLabel * label_
Definition: uislicepos.h:45
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
uiSpinBox * sliceposbox_
Definition: uislicepos.h:46
Toolbar for setting slice position _ base class.
Definition: uislicepos.h:25
OD::SliceType SliceDir
Definition: uislicepos.h:31
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
uiSpinBox * slicestepbox_
Definition: uislicepos.h:47
Definition: uistring.h:88
Definition: uiparent.h:24
TrcKeyZSampling curcs_
Definition: uislicepos.h:52
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:188
uiStringSet boxlabels_
Definition: uislicepos.h:53
uiToolButton * prevbut_
Definition: uislicepos.h:48
Notifier< uiSlicePos > positionChg
Definition: uislicepos.h:40
uiToolButton * nextbut_
Definition: uislicepos.h:49
Hor+Vert sampling in 3D surveys.
Definition: trckeyzsampling.h:32
Definition: uispinbox.h:22
TrcKeyZSampling getTrcKeyZSampling() const
Definition: uislicepos.h:35
uiToolBar * toolbar_
Definition: uislicepos.h:44
SliceType
OpendTect flat slice types.
Definition: oduicommon.h:30
Definition: uilabel.h:22
Definition: uitoolbutton.h:20
Definition: uistring.h:235
int zfactor_
Definition: uislicepos.h:51

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