OpendTect  7.0
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 ()
 
NumInpIntervalSpec< T > * clone () const override
 
defaultValue (int idx=0) const
 
float getDefaultfValue (int idx=0) const override
 
int getDefaultIntValue (int idx=0) const override
 
double getDefaultValue (int idx=0) const override
 
double getDValue (int idx=0) const override
 
float getFValue (int idx=0) const override
 
od_int64 getInt64Value (int idx=0) const override
 
int getIntValue (int idx=0) const override
 
bool hasLimits () const override
 
bool hasStep () const
 
bool isInsideLimits (int idx=0) const override
 
bool isSymmetric () const
 
bool isUndef (int idx=0) const override
 
const StepInterval< T > * limits (int idx=0) const
 gets limits for interval components. More...
 
int nElems () const override
 
void setDefaultValue (bool val, int idx=0) override
 
void setDefaultValue (const char *val, int idx=0) override
 
virtual void setDefaultValue (const Interval< T > &defaultintval)
 
void setDefaultValue (double val, int idx=0) override
 
void setDefaultValue (float val, int idx=0) override
 
void setDefaultValue (int val, int idx=0) override
 
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)
 
bool setText (const char *s, int idx=0) override
 
void setValue (bool val, int idx=0) override
 
virtual void setValue (const Interval< T > &intval)
 
void setValue (double val, int idx=0) override
 
void setValue (float val, int idx=0) override
 
void setValue (int val, int idx=0) override
 
void setValue (od_int64 val, int idx=0) override
 
void setWithSymmetric (bool yn)
 
const char * text (int idx=0) const override
 
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 >
NumInpIntervalSpec<T>* NumInpIntervalSpec< T >::clone ( ) const
inlineoverridevirtual

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 >
float NumInpIntervalSpec< T >::getDefaultfValue ( int  idx = 0) const
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ getDefaultIntValue()

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

Reimplemented from DataInpSpec.

◆ getDefaultValue()

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

Reimplemented from DataInpSpec.

◆ getDValue()

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

Reimplemented from DataInpSpec.

◆ getFValue()

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

Reimplemented from DataInpSpec.

◆ getInt64Value()

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

Reimplemented from DataInpSpec.

◆ getIntValue()

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

Sets the values (with setText())

Reimplemented from DataInpSpec.

◆ hasLimits()

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

Reimplemented from DataInpSpec.

◆ hasStep()

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

◆ isInsideLimits()

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

Reimplemented from DataInpSpec.

◆ isSymmetric()

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

◆ isUndef()

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

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 >
int NumInpIntervalSpec< T >::nElems ( ) const
inlineoverridevirtual

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 >
void NumInpIntervalSpec< T >::setDefaultValue ( bool  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [2/6]

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

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 >
void NumInpIntervalSpec< T >::setDefaultValue ( double  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setDefaultValue() [5/6]

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

Reimplemented from DataInpSpec.

◆ setDefaultValue() [6/6]

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

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 >
bool NumInpIntervalSpec< T >::setText ( const char *  s,
int  idx = 0 
)
inlineoverridevirtual

Implements DataInpSpec.

◆ setValue() [1/6]

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

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 >
void NumInpIntervalSpec< T >::setValue ( double  val,
int  idx = 0 
)
inlineoverridevirtual

Reimplemented from DataInpSpec.

◆ setValue() [4/6]

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

Reimplemented from DataInpSpec.

◆ setValue() [5/6]

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

Reimplemented from DataInpSpec.

◆ setValue() [6/6]

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

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 >
const char* NumInpIntervalSpec< T >::text ( int  idx = 0) const
inlineoverridevirtual

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-2024