OpendTect  7.0
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 Interval< T > &, const T &step)
 
 StepInterval (const StepInterval< T > &si)
 
 StepInterval (const T &start, const T &stop, const T &step)
 
atIndex (int) const
 
StepInterval< T > * clone () const override
 
template<class X >
float getfIndex (const X &) const
 
template<class X >
int getIndex (const X &) const
 
bool hasStep () const override
 
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
 
bool isMultipleOfStep (const T &) const
 
template<class X >
bool isPresent (const X &, float eps=1e-5f) const
 
bool isUdf () const override
 
void limitTo (const Interval< T > &) override
 
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 > &)
 
StepInterval< T > & operator= (const StepInterval< T > &)
 
bool operator== (const StepInterval< T > &) const
 
void scale (const T &) override
 
void set (const Interval< T > &rg, const T &step)
 
void set (const T &start, const T &stop, const T &step)
 
template<class X >
const StepInterval< T > & setFrom (const Interval< X > &)
 
void setInterval (const Interval< T > &)
 
void setUdf () override
 
template<class X >
snap (const X &, OD::SnapDir dir=OD::SnapNearest) const
 
template<class X >
snapAndLimit (X, OD::SnapDir d=OD::SnapNearest) const
 
snappedCenter (OD::SnapDir sd=OD::SnapNearest) const
 
snapStep (const T &inpstep) const
 
void sort (bool asc=true) override
 
- Public Member Functions inherited from Interval< T >
 Interval ()
 
 Interval (const BasicInterval< T > &)
 
 Interval (const T &start, const T &stop)
 
virtual ~Interval ()
 
- Public Member Functions inherited from BasicInterval< T >
 BasicInterval ()
 
 BasicInterval (const BasicInterval< T > &)
 
 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/5]

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

◆ StepInterval() [2/5]

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

◆ StepInterval() [3/5]

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

◆ StepInterval() [4/5]

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

◆ StepInterval() [5/5]

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
inlineoverridevirtual

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 >
bool StepInterval< T >::hasStep ( ) const
inlineoverridevirtual

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

◆ isMultipleOfStep()

template<class T >
bool StepInterval< T >::isMultipleOfStep ( const T &  val) 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
inlineoverridevirtual

Reimplemented from Interval< T >.

◆ limitTo()

template<class T >
void StepInterval< T >::limitTo ( const Interval< T > &  oth)
inlineoverridevirtual

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=() [1/2]

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

◆ operator=() [2/2]

template<class T >
StepInterval< T > & StepInterval< T >::operator= ( const StepInterval< 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)
inlineoverridevirtual

Reimplemented from Interval< T >.

◆ set() [1/2]

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

◆ set() [2/2]

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

◆ setInterval()

template<class T >
void StepInterval< T >::setInterval ( const Interval< T > &  rg)
inline

◆ setUdf()

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

Reimplemented from Interval< T >.

◆ snap()

template<class T >
template<class X >
T StepInterval< T >::snap ( const X &  t,
OD::SnapDir  dir = OD::SnapNearest 
) const
inline

◆ snapAndLimit()

template<class T >
template<class X >
T StepInterval< T >::snapAndLimit ( t,
OD::SnapDir  d = OD::SnapNearest 
) const
inline

◆ snappedCenter()

template<class T >
T StepInterval< T >::snappedCenter ( OD::SnapDir  sd = OD::SnapNearest) const
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)
inlineoverridevirtual

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