OpendTect-6_4
6.4
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
od6.4.5
include
uiTools
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
20
mExpClass
(uiTools)
uiZRangeInput
: public
uiGenInput
21
{
mODTextTranslationClass
(
uiZRangeInput
)
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
mExpClass
#define mExpClass(module)
Definition:
commondefs.h:160
uiZRangeInput::setZRange
mODTextTranslationClass(uiZRangeInput) public void setZRange(T)
mODTextTranslationClass
#define mODTextTranslationClass(clss)
Definition:
uistring.h:38
uigeninput.h
uiParent
Definition:
uiparent.h:26
uiZRangeInput::isdepth_
const bool isdepth_
Definition:
uizrangeinput.h:32
ZDomain::Time
const Def & Time()
Definition:
keystrs.h:132
zdomain.h
uiGenInput
General Input Element.
Definition:
uigeninput.h:58
StepInterval< float >
uiZRangeInput
Definition:
uizrangeinput.h:20
uiGenInput::setValue
void setValue(int, int nr=0)
uiZRangeInput::withstep_
const bool withstep_
Definition:
uizrangeinput.h:33
ZDomain::Def::userFactor
int userFactor() const
Definition:
zdomain.h:51
Generated at for the
OpendTect
seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019