OpendTect  6.6
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  RCS: $Id$
10 ________________________________________________________________________
11 
12 -*/
13 
14 #include "uigeninput.h"
15 #include "zdomain.h"
16 
21 public:
22  uiZRangeInput(uiParent*,bool depth,bool wstep);
23 
24  template <class T> inline
25  void setZRange(T);
28 
29 private:
30 
31  const bool isdepth_;
32  const bool withstep_;
33 };
34 
35 
36 template <class T> inline
37 void uiZRangeInput::setZRange( T range )
38 {
39  if ( !isdepth_ && !range.isUdf() )
40  range.scale( (float) ZDomain::Time().userFactor() );
41 
42  setValue( range );
43 }
44 
45 
46 
zdomain.h
uiZRangeInput::getFZRange
StepInterval< float > getFZRange() const
uiGenInput::setValue
void setValue(int, int nr=0)
mExpClass
#define mExpClass(module)
Definition: commondefs.h:177
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
uiZRangeInput::getDZRange
StepInterval< double > getDZRange() const
uiGenInput
General Input Element.
Definition: uigeninput.h:59
StepInterval< float >
ZDomain::Time
const Def & Time()
uiZRangeInput::setZRange
mODTextTranslationClass(uiZRangeInput) public void setZRange(T)
uigeninput.h
uiZRangeInput::isdepth_
const bool isdepth_
Definition: uizrangeinput.h:31
uiZRangeInput::withstep_
const bool withstep_
Definition: uizrangeinput.h:32
uiParent
Definition: uiparent.h:26
uiZRangeInput
Definition: uizrangeinput.h:20

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