OpendTect-6_4  6.4
uistepoutsel.h
Go to the documentation of this file.
1 #ifndef uistepoutsel_h
2 #define uistepoutsel_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: A.H. Bril
9  Date: April 2001
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uitoolsmod.h"
16 #include "uigroup.h"
17 #include "position.h"
18 #include "rowcol.h"
19 #include "uistrings.h"
20 class uiSpinBox;
21 
22 
29 mExpClass(uiTools) uiStepOutSel : public uiGroup
31 public:
32 
33  struct Setup
34  {
35  Setup( bool singl=false )
36  : seltxt_(tr("Stepout"))
37  , lbl1_(singl?tr("nr"):tr("inl"))
38  , lbl2_(tr("crl"))
39  , single_(singl)
40  , allowneg_(false) {}
41 
42  mDefSetupMemb(uiString,seltxt)
45  mDefSetupMemb(bool,single)
46  mDefSetupMemb(bool,allowneg)
47  };
48 
49  uiStepOutSel(uiParent*,const Setup&);
50  uiStepOutSel(uiParent*,bool single=false,
51  const uiString& seltxt=tr("Stepout"));
53 
54  int val(bool dir1) const;
55  void setVal(bool dir1,int);
56 
59 
60  virtual void setVals(int);
61  bool dir2Active() const;
62  void setRowCol( const RowCol& rc )
63  { setVal(true,rc.row()); setVal(false,rc.col()); }
64  void setBinID(const BinID&);
67  RowCol getRowCol() const
68  { return RowCol( val(true), val(false) ); }
69  BinID getBinID() const;
70  void setInterval(StepInterval<int> inlrg,
71  StepInterval<int> crlrg);
72 
73  void setFieldNames(const char* nm1,const char* nm2=0);
74 
75 protected:
76 
79 
80  void valChanged(CallBacker*);
81  void valChanging(CallBacker*);
82 
83 private:
84 
85  void init(const Setup&);
86 
87 };
88 
89 
94 public:
95 
97  uiStepout3DSel(uiParent*,bool single=false,
98  const uiString& seltxt=uiStrings::sStepout());
100 
101  int getZVal() const; //nr samples
102  int val(int dir) const;
103 
104  void setZVal(int);
105  void setVals(int,int,int);
106  virtual void setVals(int);
107 
108  void setZInterval(StepInterval<int> zrg); //nr samples
109 
110  void setZFieldName(const char*);
111 
112 protected:
113 
115 
116 };
117 
118 
119 #endif
uiSpinBox * fld2_
Definition: uistepoutsel.h:78
Definition: uigroup.h:54
IdxType & row()
Definition: posidxpair.h:45
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
static uiString sStepout()
Definition: uistrings.h:467
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
allows selection of stepouts, extension to third direction (Z).
Definition: uistepoutsel.h:92
~uiStepout3DSel()
Definition: uistepoutsel.h:99
bool init()
uiSpinBox * fld1_
Definition: uistepoutsel.h:77
Definition: uistring.h:89
Definition: uiparent.h:26
Definition: uistepoutsel.h:33
allows selection of stepouts.
Definition: uistepoutsel.h:29
~uiStepOutSel()
Definition: uistepoutsel.h:52
void setRowCol(const RowCol &rc)
Definition: uistepoutsel.h:62
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Notifier< uiStepOutSel > valueChanged
Definition: uistepoutsel.h:57
Definition: uispinbox.h:24
IdxPair used for its row() and col().
Definition: rowcol.h:25
IdxType & col()
Definition: posidxpair.h:50
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Setup(bool singl=false)
Definition: uistepoutsel.h:35
RowCol getRowCol() const
Definition: uistepoutsel.h:67
Notifier< uiStepOutSel > valueChanging
Definition: uistepoutsel.h:58
uiSpinBox * fld3_
Definition: uistepoutsel.h:114

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