OpendTect-6_4  6.4
Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
NumInpIntervalSpec< T > Class Template Reference

Specifications for numerical intervals. More...

Inheritance diagram for NumInpIntervalSpec< T >:
[legend]

Protected Member Functions

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

Protected Attributes

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

Private Member Functions

 mODTextTranslationClass (NumInpIntervalSpec) public
 
 NumInpIntervalSpec (const Interval< T > &interval)
 
 NumInpIntervalSpec (const NumInpIntervalSpec< T > &o)
 
 ~NumInpIntervalSpec ()
 
virtual NumInpIntervalSpec< T > * clone () const
 
virtual int nElems () const
 
bool hasStep () const
 
virtual bool isUndef (int idx=0) const
 
virtual void setValue (const Interval< T > &intval)
 
virtual void setValue (int val, int idx=0)
 
virtual void setValue (bool val, int idx=0)
 
virtual void setValue (float val, int idx=0)
 
virtual void setValue (double val, int idx=0)
 
virtual void setDefaultValue (const Interval< T > &defaultintval)
 
virtual void setDefaultValue (int val, int idx=0)
 
virtual void setDefaultValue (float val, int idx=0)
 
virtual void setDefaultValue (double val, int idx=0)
 
virtual void setDefaultValue (bool val, int idx=0)
 
virtual void setDefaultValue (const char *val, int idx=0)
 
virtual bool setText (const char *s, int idx=0)
 
value (int idx=0) const
 
virtual int getIntValue (int idx=0) const
 
virtual double getDValue (int idx=0) const
 
virtual float getFValue (int idx=0) const
 
defaultValue (int idx=0) const
 
virtual int getDefaultIntValue (int idx=0) const
 
virtual double getDefaultValue (int idx=0) const
 
virtual float getDefaultfValue (int idx=0) const
 
virtual const char * text (int idx=0) const
 
virtual bool hasLimits () const
 
virtual bool isInsideLimits (int idx=0) const
 
const StepInterval< T > * limits (int idx=0) const
 gets limits for interval components. More...
 
NumInpIntervalSpecsetLimits (const StepInterval< T > &r, int idx=-1)
 sets limits for interval components. More...
 
NumInpIntervalSpecsetLimits (const Interval< T > &r, int idx=-1)
 
void setSymmetric (bool yn)
 
bool isSymmetric () const
 
void setWithSymmetric (bool yn)
 
bool withSymmetric () const
 

Additional Inherited Members

- Public Member Functions inherited from DataInpSpec
double getdValue (int idx=0) const
 
float getfValue (int idx=0) const
 

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

template<class T>
NumInpIntervalSpec< T >::NumInpIntervalSpec ( const Interval< T > &  interval)
inlineprivate
template<class T>
NumInpIntervalSpec< T >::NumInpIntervalSpec ( const NumInpIntervalSpec< T > &  o)
inlineprivate
template<class T>
NumInpIntervalSpec< T >::~NumInpIntervalSpec ( )
inlineprivate

Member Function Documentation

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

Implements DataInpSpec.

template<class T>
T NumInpIntervalSpec< T >::defaultValue ( int  idx = 0) const
inlineprivate
template<class T>
T NumInpIntervalSpec< T >::defaultvalue_ ( int  idx = 0) const
inlineprotected
template<class T>
virtual float NumInpIntervalSpec< T >::getDefaultfValue ( int  idx = 0) const
inlineprivatevirtual

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Sets the values (with setText())

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Implements DataInpSpec.

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

gets limits for interval components.

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

template<class T>
NumInpIntervalSpec< T >::mODTextTranslationClass ( NumInpIntervalSpec< T >  )
inlineprivate
template<class T>
virtual int NumInpIntervalSpec< T >::nElems ( ) const
inlineprivatevirtual

Reimplemented from DataInpSpec.

template<class T>
T* NumInpIntervalSpec< T >::pt_value_ ( int  idx = 0,
bool  defval = false 
) const
inlineprotected
template<class T>
virtual void NumInpIntervalSpec< T >::setDefaultValue ( const Interval< T > &  defaultintval)
inlineprivatevirtual
template<class T>
virtual void NumInpIntervalSpec< T >::setDefaultValue ( int  val,
int  idx = 0 
)
inlineprivatevirtual

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

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

template<class T>
NumInpIntervalSpec& NumInpIntervalSpec< T >::setLimits ( const Interval< T > &  r,
int  idx = -1 
)
inlineprivate
template<class T>
void NumInpIntervalSpec< T >::setSymmetric ( bool  yn)
inlineprivate
template<class T>
virtual bool NumInpIntervalSpec< T >::setText ( const char *  s,
int  idx = 0 
)
inlineprivatevirtual

Implements DataInpSpec.

template<class T>
virtual void NumInpIntervalSpec< T >::setValue ( const Interval< T > &  intval)
inlineprivatevirtual
template<class T>
virtual void NumInpIntervalSpec< T >::setValue ( int  val,
int  idx = 0 
)
inlineprivatevirtual

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

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

Reimplemented from DataInpSpec.

template<class T>
void NumInpIntervalSpec< T >::setWithSymmetric ( bool  yn)
inlineprivate
template<class T>
StepInterval<T>* NumInpIntervalSpec< T >::stpi ( bool  defval = false) const
inlineprotected
template<class T>
virtual const char* NumInpIntervalSpec< T >::text ( int  idx = 0) const
inlineprivatevirtual

Implements DataInpSpec.

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

Member Data Documentation

template<class T>
Interval<T>* NumInpIntervalSpec< T >::defaultinterval_
protected
template<class T>
Interval<T>* NumInpIntervalSpec< T >::interval_
protected
template<class T>
StepInterval<T>* NumInpIntervalSpec< T >::startlimits_
protected
template<class T>
StepInterval<T>* NumInpIntervalSpec< T >::steplimits_
protected
template<class T>
StepInterval<T>* NumInpIntervalSpec< T >::stoplimits_
protected
template<class T>
bool NumInpIntervalSpec< T >::symm_
protected
template<class T>
bool NumInpIntervalSpec< T >::wsymm_
protected

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