OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NumInpIntervalSpec< T > Class Template Reference

Specifications for numerical intervals. More...

Inheritance diagram for NumInpIntervalSpec< T >:
[legend]

Public Member Functions

 NumInpIntervalSpec (bool withstep=false)
 
 NumInpIntervalSpec (const Interval< T > &interval)
 
 NumInpIntervalSpec (const NumInpIntervalSpec< T > &o)
 
 ~NumInpIntervalSpec ()
 
virtual NumInpIntervalSpec< T > * clone () const
 
defaultValue (int idx=0) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
virtual od_int64 getInt64Value (int idx=0) const
 
virtual int getIntValue (int idx=0) const
 
virtual bool hasLimits () const
 
bool hasStep () const
 
virtual bool isInsideLimits (int idx=0) const
 
bool isSymmetric () const
 
virtual bool isUndef (int idx=0) const
 
const StepInterval< T > * limits (int idx=0) const
 gets limits for interval components. More...
 
virtual int nElems () const
 
virtual void setDefaultValue (bool val, int idx=0)
 
virtual void setDefaultValue (const char *val, int idx=0)
 
virtual void setDefaultValue (const Interval< T > &defaultintval)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (int val, int idx=0)
 
NumInpIntervalSpecsetLimits (const Interval< T > &r, int idx=-1)
 
NumInpIntervalSpecsetLimits (const StepInterval< T > &r, int idx=-1)
 sets limits for interval components. More...
 
void setSymmetric (bool yn)
 
virtual bool setText (const char *s, int idx=0)
 
virtual void setValue (bool val, int idx=0)
 
virtual void setValue (const Interval< T > &intval)
 
virtual void setValue (double val, int idx=0)
 
virtual void setValue (float val, int idx=0)
 
virtual void setValue (int val, int idx=0)
 
virtual void setValue (od_int64 val, int idx=0)
 
void setWithSymmetric (bool yn)
 
virtual const char * text (int idx=0) const
 
value (int idx=0) const
 
bool withSymmetric () const
 
- Public Member Functions inherited from DataInpSpec
 DataInpSpec (const DataInpSpec &)
 
 DataInpSpec (DataType)
 
virtual ~DataInpSpec ()
 
void fillPar (IOPar &) const
 
virtual bool getBoolValue (int idx=0) const
 
virtual bool getDefaultBoolValue (int idx=0) const
 
virtual const char * getDefaultStringValue (int idx=0) const
 
double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 
virtual const char * name (int idx=0) const
 
virtual DataInpSpecsetName (const char *, int idx=0)
 
DataType type () const
 
bool usePar (const IOPar &)
 

Protected Member Functions

defaultvalue_ (int idx=0) const
 
T * pt_value_ (int idx=0, bool defval=false) const
 
StepInterval< T > * stpi (bool defval=false) const
 
value_ (int idx=0) const
 
- Protected Member Functions inherited from DataInpSpec
void setType (DataType t)
 

Protected Attributes

Interval< T > * defaultinterval_
 
Interval< T > * interval_
 
StepInterval< T > * startlimits_
 
StepInterval< T > * steplimits_
 
StepInterval< T > * stoplimits_
 
bool symm_
 
bool wsymm_
 
- Protected Attributes inherited from DataInpSpec
TypeSet< int > nameidxs_
 
BufferStringSet names_
 
bool prefempty_
 
DataType tp_
 

Detailed Description

template<class T>
class NumInpIntervalSpec< T >

Specifications for numerical intervals.

Intervals consist of a start + stop value and optionally a step value, in which case the Interval is a StepInterval.

For each of the interval components start, stop and step, separate limits can be set.

<>

Constructor & Destructor Documentation

◆ NumInpIntervalSpec() [1/3]

template<class T >
NumInpIntervalSpec< T >::NumInpIntervalSpec ( bool  withstep = false)
inline

◆ NumInpIntervalSpec() [2/3]

template<class T >
NumInpIntervalSpec< T >::NumInpIntervalSpec ( const Interval< T > &  interval)
inline

◆ NumInpIntervalSpec() [3/3]

template<class T >
NumInpIntervalSpec< T >::NumInpIntervalSpec ( const NumInpIntervalSpec< T > &  o)
inline

◆ ~NumInpIntervalSpec()

template<class T >
NumInpIntervalSpec< T >::~NumInpIntervalSpec ( )
inline

Member Function Documentation

◆ clone()

template<class T >
virtual NumInpIntervalSpec<T>* NumInpIntervalSpec< T >::clone ( ) const
inlinevirtual

Implements DataInpSpec.

◆ defaultValue()

template<class T >
T NumInpIntervalSpec< T >::defaultValue ( int  idx = 0) const
inline

◆ defaultvalue_()

template<class T >
T NumInpIntervalSpec< T >::defaultvalue_ ( int  idx = 0) const
inlineprotected

◆ getDefaultfValue()

template<class T >
virtual float NumInpIntervalSpec< T >::getDefaultfValue ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ getDefaultIntValue()

template<class T >
virtual int NumInpIntervalSpec< T >::getDefaultIntValue ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ getDefaultValue()

template<class T >
virtual double NumInpIntervalSpec< T >::getDefaultValue ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ getDValue()

template<class T >
virtual double NumInpIntervalSpec< T >::getDValue ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ getFValue()

template<class T >
virtual float NumInpIntervalSpec< T >::getFValue ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ getInt64Value()

template<class T >
virtual od_int64 NumInpIntervalSpec< T >::getInt64Value ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ getIntValue()

template<class T >
virtual int NumInpIntervalSpec< T >::getIntValue ( int  idx = 0) const
inlinevirtual

Sets the values (with setText())

Reimplemented from DataInpSpec.

◆ hasLimits()

template<class T >
virtual bool NumInpIntervalSpec< T >::hasLimits ( ) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ hasStep()

template<class T >
bool NumInpIntervalSpec< T >::hasStep ( ) const
inline

◆ isInsideLimits()

template<class T >
virtual bool NumInpIntervalSpec< T >::isInsideLimits ( int  idx = 0) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ isSymmetric()

template<class T >
bool NumInpIntervalSpec< T >::isSymmetric ( ) const
inline

◆ isUndef()

template<class T >
virtual bool NumInpIntervalSpec< T >::isUndef ( int  idx = 0) const
inlinevirtual

Implements DataInpSpec.

◆ limits()

template<class T >
const StepInterval<T>* NumInpIntervalSpec< T >::limits ( int  idx = 0) const
inline

gets limits for interval components.

idx = 0: returns start limits idx = 1: returns stop limits idx = 2: returns step limits

◆ nElems()

template<class T >
virtual int NumInpIntervalSpec< T >::nElems ( ) const
inlinevirtual

Reimplemented from DataInpSpec.

◆ pt_value_()

template<class T >
T* NumInpIntervalSpec< T >::pt_value_ ( int  idx = 0,
bool  defval = false 
) const
inlineprotected

◆ setDefaultValue() [1/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setDefaultValue ( bool  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setDefaultValue ( const char *  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [3/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setDefaultValue ( const Interval< T > &  defaultintval)
inlinevirtual

◆ setDefaultValue() [4/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setDefaultValue ( double  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setDefaultValue ( float  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [6/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setDefaultValue ( int  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setLimits() [1/2]

template<class T >
NumInpIntervalSpec& NumInpIntervalSpec< T >::setLimits ( const Interval< T > &  r,
int  idx = -1 
)
inline

◆ setLimits() [2/2]

template<class T >
NumInpIntervalSpec& NumInpIntervalSpec< T >::setLimits ( const StepInterval< T > &  r,
int  idx = -1 
)
inline

sets limits for interval components.

idx = 0: sets start limits idx = 1: sets stop limits idx = 2: sets step limits

idx = -1: sets start and stop limits idx = -2: sets start, stop and step limits

◆ setSymmetric()

template<class T >
void NumInpIntervalSpec< T >::setSymmetric ( bool  yn)
inline

◆ setText()

template<class T >
virtual bool NumInpIntervalSpec< T >::setText ( const char *  s,
int  idx = 0 
)
inlinevirtual

Implements DataInpSpec.

◆ setValue() [1/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setValue ( bool  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setValue() [2/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setValue ( const Interval< T > &  intval)
inlinevirtual

◆ setValue() [3/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setValue ( double  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setValue() [4/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setValue ( float  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setValue() [5/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setValue ( int  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setValue() [6/6]

template<class T >
virtual void NumInpIntervalSpec< T >::setValue ( od_int64  val,
int  idx = 0 
)
inlinevirtual

Reimplemented from DataInpSpec.

◆ setWithSymmetric()

template<class T >
void NumInpIntervalSpec< T >::setWithSymmetric ( bool  yn)
inline

◆ stpi()

template<class T >
StepInterval<T>* NumInpIntervalSpec< T >::stpi ( bool  defval = false) const
inlineprotected

◆ text()

template<class T >
virtual const char* NumInpIntervalSpec< T >::text ( int  idx = 0) const
inlinevirtual

Implements DataInpSpec.

◆ value()

template<class T >
T NumInpIntervalSpec< T >::value ( int  idx = 0) const
inline

◆ value_()

template<class T >
T NumInpIntervalSpec< T >::value_ ( int  idx = 0) const
inlineprotected

◆ withSymmetric()

template<class T >
bool NumInpIntervalSpec< T >::withSymmetric ( ) const
inline

Member Data Documentation

◆ defaultinterval_

template<class T >
Interval<T>* NumInpIntervalSpec< T >::defaultinterval_
protected

◆ interval_

template<class T >
Interval<T>* NumInpIntervalSpec< T >::interval_
protected

◆ startlimits_

template<class T >
StepInterval<T>* NumInpIntervalSpec< T >::startlimits_
protected

◆ steplimits_

template<class T >
StepInterval<T>* NumInpIntervalSpec< T >::steplimits_
protected

◆ stoplimits_

template<class T >
StepInterval<T>* NumInpIntervalSpec< T >::stoplimits_
protected

◆ symm_

template<class T >
bool NumInpIntervalSpec< T >::symm_
protected

◆ wsymm_

template<class T >
bool NumInpIntervalSpec< T >::wsymm_
protected

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