OpendTect  6.6
uistepoutsel.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: A.H. Bril
8  Date: April 2001
9  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uitoolsmod.h"
15 #include "uigroup.h"
16 #include "position.h"
17 #include "rowcol.h"
18 #include "uistrings.h"
19 class uiSpinBox;
20 
21 
28 mExpClass(uiTools) uiStepOutSel : public uiGroup
30 public:
31 
32  struct Setup
33  {
34  Setup( bool singl=false )
35  : seltxt_(tr("Stepout"))
36  , lbl1_(singl?tr("nr"):tr("inl"))
37  , lbl2_(tr("crl"))
38  , single_(singl)
39  , allowneg_(false) {}
40 
44  mDefSetupMemb(bool,single)
45  mDefSetupMemb(bool,allowneg)
46  };
47 
49  uiStepOutSel(uiParent*,bool single=false,
50  const uiString& seltxt=tr("Stepout"));
52 
53  int val(bool dir1) const;
54  void setVal(bool dir1,int);
55 
56  Notifier<uiStepOutSel> valueChanged;
57  Notifier<uiStepOutSel> valueChanging;
58 
59  virtual void setVals(int);
60  bool dir2Active() const;
61  void setRowCol( const RowCol& rc )
62  { setVal(true,rc.row()); setVal(false,rc.col()); }
63  void setBinID(const BinID&);
66  RowCol getRowCol() const
67  { return RowCol( val(true), val(false) ); }
68  BinID getBinID() const;
70  StepInterval<int> crlrg);
71 
72  void setFieldNames(const char* nm1,const char* nm2=0);
73  void set3D(bool yn);
74 
75 protected:
76 
79 
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 
uiStepOutSel::fld1_
uiSpinBox * fld1_
Definition: uistepoutsel.h:77
uiStepOutSel::setInterval
void setInterval(StepInterval< int > inlrg, StepInterval< int > crlrg)
uiStepOutSel::Setup
Definition: uistepoutsel.h:33
uiStepout3DSel::setVals
void setVals(int, int, int)
uiStepOutSel
allows selection of stepouts.
Definition: uistepoutsel.h:29
uiStepout3DSel::setVals
virtual void setVals(int)
similar to 3x setVal
uiStepOutSel::getBinID
BinID getBinID() const
Similar remark as setBinID()
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
uiStepout3DSel::setZInterval
void setZInterval(StepInterval< int > zrg)
Setup::mDefSetupMemb
mDefSetupMemb(int, method)
uiStepout3DSel::setZFieldName
void setZFieldName(const char *)
uiStepOutSel::setBinID
void setBinID(const BinID &)
uiStepOutSel::set3D
void set3D(bool yn)
uiStepOutSel::valChanged
void valChanged(CallBacker *)
CallBacker
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uigroup.h
uiStepOutSel::Setup::Setup
Setup(bool singl=false)
Definition: uistepoutsel.h:34
BinID
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:31
StepInterval< int >
uiStepOutSel::fld2_
uiSpinBox * fld2_
Definition: uistepoutsel.h:78
uiStepOutSel::getRowCol
RowCol getRowCol() const
Definition: uistepoutsel.h:66
uiGroup
Definition: uigroup.h:54
uiStepOutSel::init
void init(const Setup &)
uiStepout3DSel::~uiStepout3DSel
~uiStepout3DSel()
Definition: uistepoutsel.h:99
uistrings.h
Notifier
Class to help setup a callback handling.
Definition: notify.h:126
uiStepOutSel::setFieldNames
void setFieldNames(const char *nm1, const char *nm2=0)
uiStepout3DSel::setZVal
void setZVal(int)
uiStepOutSel::mODTextTranslationClass
mODTextTranslationClass(uiStepOutSel)
position.h
uiSpinBox
Definition: uispinbox.h:24
uiStepout3DSel
allows selection of stepouts, extension to third direction (Z).
Definition: uistepoutsel.h:93
uiStrings::sStepout
static uiString sStepout()
Definition: uistrings.h:587
uiString
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
uiStepOutSel::valChanging
void valChanging(CallBacker *)
uiStepout3DSel::val
int val(int dir) const
RowCol
IdxPair used for its row() and col().
Definition: rowcol.h:25
uiStepOutSel::Setup::mDefSetupMemb
mDefSetupMemb(uiString, seltxt) mDefSetupMemb(uiString
uiParent
Definition: uiparent.h:26
uiStepout3DSel::fld3_
uiSpinBox * fld3_
Definition: uistepoutsel.h:114
uiStepout3DSel::getZVal
int getZVal() const
uiStepout3DSel::uiStepout3DSel
mODTextTranslationClass(uiStepout3DSel) public uiStepout3DSel(uiParent *, bool single=false, const uiString &seltxt=uiStrings::sStepout())
rowcol.h

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