OpendTect-6_4  6.4
uizrangeinput.h
Go to the documentation of this file.
1 #ifndef uizrangefld_h
2 #define uizrangefld_h
3 
4 /*+
5 ________________________________________________________________________
6 
7  (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt
8  Author: Kristofer
9  Date: Mar 2013
10  RCS: $Id$
11 ________________________________________________________________________
12 
13 -*/
14 
15 #include "uigeninput.h"
16 #include "zdomain.h"
17 
22 public:
23  uiZRangeInput(uiParent*,bool depth,bool wstep);
24 
25  template <class T> inline
26  void setZRange(T);
27  StepInterval<float> getFZRange() const;
28  StepInterval<double> getDZRange() const;
29 
30 private:
31 
32  const bool isdepth_;
33  const bool withstep_;
34 };
35 
36 
37 template <class T> inline
38 void uiZRangeInput::setZRange( T range )
39 {
40  if ( !isdepth_ && !range.isUdf() )
41  range.scale( (float) ZDomain::Time().userFactor() );
42 
43  setValue( range );
44 }
45 
46 
47 
48 #endif
#define mExpClass(module)
Definition: commondefs.h:160
mODTextTranslationClass(uiZRangeInput) public void setZRange(T)
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
Definition: uiparent.h:26
const bool isdepth_
Definition: uizrangeinput.h:32
const Def & Time()
Definition: keystrs.h:132
General Input Element.
Definition: uigeninput.h:58
Definition: uizrangeinput.h:20
void setValue(int, int nr=0)
const bool withstep_
Definition: uizrangeinput.h:33
int userFactor() const
Definition: zdomain.h:51

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