Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

Attrib::DataHolder Class Reference

Holds the data used in the attribute data. More...

List of all members.

Public Member Functions

 DataHolder (int z0, int nrsamples)
 ~DataHolder ()
DataHolderclone () const
ValueSeries< float > * add (bool addnull=false)
 Adds an ArrayValueSeries if !addnull.
int nrSeries () const
ValueSeries< float > * series (int idx) const
void replace (int idx, ValueSeries< float > *)
bool dataPresent (int samplenr) const
TypeSet< int > validSeriesIdx () const
float getValue (int serieidx, float exactz, float refstep) const
bool isEmpty () const

Static Public Member Functions

static float getExtraZFromSampPos (float, float)
static float getExtraZAndSampIdxFromExactZ (float, float, int &)

Public Attributes

int z0_
 See class comments.
int nrsamples_
float extrazfromsamppos_
 See class comments.
TypeSet< int > classstatus_

Protected Member Functions

ValueSeries< float > * gtSer (int idx) const

Protected Attributes

ObjectSet< ValueSeries< float > > data_

Detailed Description

Holds the data used in the attribute data.

Basically, this is a set of ValueSeries<float> objects, the size of each of these, and the start Z in the AE Z-Axis definition: N = N times the Z step. z0_ is therefore the amount of steps away from 0.

The AE will work with any type of ValueSeries<float>. Internally, ArrayValueSeries<float,float> objects are always allocated.

The class variable extrazfromsamppos_ is to keep track of an eventual exact position which would not be exactly on a sample ( in the case of horizons, picksets... )


Constructor & Destructor Documentation

Attrib::DataHolder::DataHolder ( int  z0,
int  nrsamples 
)
Attrib::DataHolder::~DataHolder (  ) 

Member Function Documentation

ValueSeries<float>* Attrib::DataHolder::add ( bool  addnull = false  ) 

Adds an ArrayValueSeries if !addnull.

DataHolder* Attrib::DataHolder::clone (  )  const
bool Attrib::DataHolder::dataPresent ( int  samplenr  )  const
static float Attrib::DataHolder::getExtraZAndSampIdxFromExactZ ( float  ,
float  ,
int &   
) [static]
static float Attrib::DataHolder::getExtraZFromSampPos ( float  ,
float   
) [static]
float Attrib::DataHolder::getValue ( int  serieidx,
float  exactz,
float  refstep 
) const
ValueSeries<float>* Attrib::DataHolder::gtSer ( int  idx  )  const [inline, protected]
bool Attrib::DataHolder::isEmpty (  )  const [inline]
int Attrib::DataHolder::nrSeries (  )  const [inline]
void Attrib::DataHolder::replace ( int  idx,
ValueSeries< float > *   
)
ValueSeries<float>* Attrib::DataHolder::series ( int  idx  )  const [inline]
TypeSet<int> Attrib::DataHolder::validSeriesIdx (  )  const

Member Data Documentation

See class comments.

See class comments.