OpendTect  6.6
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Attrib::DataHolder Class Reference

Holds the attribute data. More...

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

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

Protected Member Functions

ValueSeries< float > * gtSer (int idx) const
 

Protected Attributes

ObjectSet< ValueSeries< float > > data_
 

Detailed Description

Holds 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

◆ DataHolder()

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

◆ ~DataHolder()

Attrib::DataHolder::~DataHolder ( )

Member Function Documentation

◆ add()

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

Adds an ArrayValueSeries if !addnull.

◆ clone()

DataHolder* Attrib::DataHolder::clone ( ) const

◆ dataPresent()

bool Attrib::DataHolder::dataPresent ( int  samplenr) const

◆ getExtraZAndSampIdxFromExactZ()

static float Attrib::DataHolder::getExtraZAndSampIdxFromExactZ ( float  ,
float  ,
int &   
)
static

◆ getExtraZFromSampPos()

static float Attrib::DataHolder::getExtraZFromSampPos ( float  ,
float   
)
static

◆ getValue()

float Attrib::DataHolder::getValue ( int  serieidx,
float  exactz,
float  refstep 
) const

◆ gtSer()

ValueSeries<float>* Attrib::DataHolder::gtSer ( int  idx) const
protected

◆ isEmpty()

bool Attrib::DataHolder::isEmpty ( ) const
inline

◆ nrSeries()

int Attrib::DataHolder::nrSeries ( ) const
inline

◆ replace()

void Attrib::DataHolder::replace ( int  idx,
ValueSeries< float > *   
)

◆ series()

ValueSeries<float>* Attrib::DataHolder::series ( int  idx) const
inline

◆ validSeriesIdx()

TypeSet<int> Attrib::DataHolder::validSeriesIdx ( ) const

Member Data Documentation

◆ classstatus_

TypeSet<int> Attrib::DataHolder::classstatus_

◆ data_

ObjectSet< ValueSeries<float> > Attrib::DataHolder::data_
protected

◆ extrazfromsamppos_

float Attrib::DataHolder::extrazfromsamppos_

See class comments.

◆ nrsamples_

int Attrib::DataHolder::nrsamples_

◆ z0_

int Attrib::DataHolder::z0_

See class comments.


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