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

Interval with step. More...

Inheritance diagram for StepInterval< T >:
[legend]

Public Member Functions

 StepInterval ()
 
 StepInterval (const Interval< T > &)
 
 StepInterval (const StepInterval< T > &si)
 
 StepInterval (const T &start, const T &stop, const T &step)
 
atIndex (int) const
 
virtual StepInterval< T > * clone () const
 
template<class X >
float getfIndex (const X &) const
 
template<class X >
int getIndex (const X &) const
 
virtual bool hasStep () const
 
template<class X >
int indexOnOrAfter (X x, float eps) const
 
bool isCompatible (const StepInterval< T > &, float eps=(1e-10)) const
 
bool isEqual (const StepInterval< T > &i, const T &eps) const
 
template<class X >
bool isPresent (const X &, float eps=1e-5f) const
 
virtual bool isUdf () const
 
template<class X >
int nearestIndex (const X &) const
 
StepInterval< T > niceInterval (int, bool allowrev=true) const
 
float nrfSteps () const
 
int nrSteps () const
 
bool operator!= (const StepInterval< T > &) const
 
StepInterval< T > & operator= (const Interval< T > &)
 
bool operator== (const StepInterval< T > &) const
 
void scale (const T &)
 
void set (const T &start, const T &stop, const T &step)
 
template<class X >
const StepInterval< T > & setFrom (const Interval< X > &)
 
virtual void setUdf ()
 
template<class X >
snap (const X &) const
 
template<class X >
snap (const X &, int dir) const
 dir=0: nearest; -1: downward, 1: upward More...
 
snappedCenter () const
 
snapStep (const T &inpstep) const
 
virtual void sort (bool asc=true)
 
- Public Member Functions inherited from Interval< T >
 Interval ()
 
 Interval (const BasicInterval< T > &b)
 
 Interval (const T &start, const T &stop)
 
virtual ~Interval ()
 
- Public Member Functions inherited from BasicInterval< T >
 BasicInterval ()
 
 BasicInterval (const T &start, const T &stop)
 
atIndex (int, const T &step) const
 
center () const
 
float getfCenter () const
 
template<class X >
float getfIndex (const X &, const T &step) const
 
template<class X >
int getIndex (const X &, const T &step) const
 
void include (const BasicInterval< T > &, bool allowrev=true)
 
void include (const T &, bool allowrev=true)
 
template<class X >
bool includes (const BasicInterval< X > &, bool allowrev=true) const
 
template<class X >
bool includes (const Interval< X > &, bool allowrev=true) const
 
template<class X >
bool includes (const X &, bool allowrev) const
 
template<class X >
int indexOnOrAfter (X x, const T &step, float eps=1e-5) const
 
bool isEqual (const BasicInterval< T > &i, const T &eps) const
 
bool isRev () const
 
template<class X >
void limitTo (const BasicInterval< X > &i)
 
template<class X >
limitValue (const X &) const
 
template<class X >
int nearestIndex (const X &x, const T &step) const
 
bool operator!= (const BasicInterval< T > &) const
 
BasicInterval< T > operator+ (const BasicInterval< T > &) const
 
BasicInterval< T > & operator+= (const BasicInterval< T > &)
 
BasicInterval< T > & operator= (const BasicInterval< T > &)
 
bool operator== (const BasicInterval< T > &) const
 
template<class X >
bool overlaps (const BasicInterval< X > &, bool allrev=true) const
 
template<class X >
float pos (X val, bool limit=true, bool allowrev=true) const
 
void set (const T &start, const T &stop)
 
template<class X >
const BasicInterval< T > & setFrom (const BasicInterval< X > &)
 
void shift (const T &len)
 
void widen (const T &len, bool allowrev=true)
 
width (bool allowrev=true) const
 

Static Public Member Functions

static StepInterval< T > udf ()
 
- Static Public Member Functions inherited from Interval< T >
static Interval< T > udf ()
 
- Static Public Member Functions inherited from BasicInterval< T >
static BasicInterval< T > udf ()
 

Public Attributes

step
 
- Public Attributes inherited from BasicInterval< T >
start
 
stop
 

Detailed Description

template<class T>
class StepInterval< T >

Interval with step.

<>

Constructor & Destructor Documentation

◆ StepInterval() [1/4]

template<class T >
StepInterval< T >::StepInterval
inline

◆ StepInterval() [2/4]

template<class T >
StepInterval< T >::StepInterval ( const T &  start,
const T &  stop,
const T &  step 
)
inline

◆ StepInterval() [3/4]

template<class T >
StepInterval< T >::StepInterval ( const Interval< T > &  intv)
inline

◆ StepInterval() [4/4]

template<class T >
StepInterval< T >::StepInterval ( const StepInterval< T > &  si)
inline

Member Function Documentation

◆ atIndex()

template<class T >
T StepInterval< T >::atIndex ( int  idx) const
inline

◆ clone()

template<class T >
StepInterval< T > * StepInterval< T >::clone
inlinevirtual

Reimplemented from Interval< T >.

◆ getfIndex()

template<class T >
template<class X >
float StepInterval< T >::getfIndex ( const X &  t) const
inline

◆ getIndex()

template<class T >
template<class X >
int StepInterval< T >::getIndex ( const X &  t) const
inline

◆ hasStep()

template<class T >
virtual bool StepInterval< T >::hasStep ( ) const
inlinevirtual

Reimplemented from Interval< T >.

◆ indexOnOrAfter()

template<class T >
template<class X >
int StepInterval< T >::indexOnOrAfter ( x,
float  eps 
) const
inline

◆ isCompatible()

template<class T >
bool StepInterval< T >::isCompatible ( const StepInterval< T > &  b,
float  eps = (1e-10) 
) const
inline

epsilon refers to the steps, i.e eps=0.1 allows b to be 0.1 steps apart.

◆ isEqual()

template<class T >
bool StepInterval< T >::isEqual ( const StepInterval< T > &  i,
const T &  eps 
) const
inline

◆ isPresent()

template<class T >
template<class X >
bool StepInterval< T >::isPresent ( const X &  t,
float  eps = 1e-5f 
) const
inline

◆ isUdf()

template<class T >
bool StepInterval< T >::isUdf
inlinevirtual

Reimplemented from Interval< T >.

◆ nearestIndex()

template<class T >
template<class X >
int StepInterval< T >::nearestIndex ( const X &  x) const
inline

◆ niceInterval()

template<class T >
StepInterval< T > StepInterval< T >::niceInterval ( int  maxsteps,
bool  allowrev = true 
) const
inline

◆ nrfSteps()

template<class T >
float StepInterval< T >::nrfSteps
inline

◆ nrSteps()

template<class T >
int StepInterval< T >::nrSteps
inline

◆ operator!=()

template<class T >
bool StepInterval< T >::operator!= ( const StepInterval< T > &  i) const
inline

◆ operator=()

template<class T >
StepInterval< T > & StepInterval< T >::operator= ( const Interval< T > &  intv)
inline

◆ operator==()

template<class T >
bool StepInterval< T >::operator== ( const StepInterval< T > &  i) const
inline

◆ scale()

template<class T >
void StepInterval< T >::scale ( const T &  factor)
inlinevirtual

Reimplemented from Interval< T >.

◆ set()

template<class T >
void StepInterval< T >::set ( const T &  start,
const T &  stop,
const T &  step 
)
inline

◆ setFrom()

template<class T >
template<class X >
const StepInterval< T > & StepInterval< T >::setFrom ( const Interval< X > &  i)
inline

◆ setUdf()

template<class T >
void StepInterval< T >::setUdf
inlinevirtual

Reimplemented from Interval< T >.

◆ snap() [1/2]

template<class T >
template<class X >
T StepInterval< T >::snap ( const X &  t) const
inline

◆ snap() [2/2]

template<class T >
template<class X >
T StepInterval< T >::snap ( const X &  t,
int  dir 
) const
inline

dir=0: nearest; -1: downward, 1: upward

◆ snappedCenter()

template<class T >
T StepInterval< T >::snappedCenter
inline

◆ snapStep()

template<class T >
T StepInterval< T >::snapStep ( const T &  inpstep) const
inline

Snaps inpstep to a positive multiple of step.

◆ sort()

template<class T >
void StepInterval< T >::sort ( bool  asc = true)
inlinevirtual

Reimplemented from Interval< T >.

◆ udf()

template<class T >
static StepInterval<T> StepInterval< T >::udf ( )
inlinestatic

Member Data Documentation

◆ step

template<class T >
T StepInterval< T >::step

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