OpendTect  6.3
uizrangeinput.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: Kristofer
8  Date: Mar 2013
9 ________________________________________________________________________
10 
11 -*/
12 
13 #include "uigeninput.h"
14 #include "zdomain.h"
15 
20 public:
21  uiZRangeInput(uiParent*,bool depth,bool wstep);
22 
23  template <class T> inline
24  void setZRange(T);
25  StepInterval<float> getFZRange() const;
26  StepInterval<double> getDZRange() const;
27 
28 private:
29 
30  const bool isdepth_;
31  const bool withstep_;
32 };
33 
34 
35 template <class T> inline
36 void uiZRangeInput::setZRange( T range )
37 {
38  if ( !isdepth_ && !range.isUdf() )
39  range.scale( (float) ZDomain::Time().userFactor() );
40 
41  setValue( range );
42 }
#define mExpClass(module)
Definition: commondefs.h:157
mODTextTranslationClass(uiZRangeInput) public void setZRange(T)
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
Definition: uiparent.h:24
const bool isdepth_
Definition: uizrangeinput.h:30
const Def & Time()
Definition: keystrs.h:129
General Input Element.
Definition: uigeninput.h:56
Definition: uizrangeinput.h:18
void setValue(int, int nr=0)
const bool withstep_
Definition: uizrangeinput.h:31
int userFactor() const
Definition: zdomain.h:49

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