OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
TraceData Class Reference

A set of data buffers and their interpreters. More...

Public Member Functions

 TraceData ()
 
 TraceData (const TraceData &td)
 
 ~TraceData ()
 
bool allOk () const
 
bool isEmpty () const
 
TraceDataoperator= (const TraceData &td)
 
void copyFrom (const TraceData &)
 copy all components, making an exact copy. More...
 
void copyFrom (const TraceData &, int comp_from, int comp_to)
 copy comp_from of argument to my comp_to More...
 
void convertToFPs (bool preserve_data=true)
 
int nrComponents () const
 
int size (int icomp=0) const
 
int bytesPerSample (int icomp=0) const
 
bool isZero (int icomp=0) const
 
bool isValidComp (int icomp=0) const
 
float getValue (int isamp, int icomp=0) const
 
void setValue (int isamp, float, int icomp=0)
 
DataBuffergetComponent (int icomp=0)
 
const DataBuffergetComponent (int icomp=0) const
 
TraceDataInterpretergetInterpreter (int icomp=0)
 
const TraceDataInterpretergetInterpreter (int icomp=0) const
 
void addComponent (int ns, const DataCharacteristics &, bool cleardata=false)
 
void delComponent (int)
 
void setComponent (const DataCharacteristics &, int icomp=0)
 
void reSize (int, int icomp=-1, bool copydata=false)
 -1 = all data buffers More...
 
void scale (const Scaler &, int icomp=-1)
 -1 = all data buffers More...
 
void zero (int icomp=-1)
 -1 = all data buffers More...
 
void handleDataSwapping ()
 

Protected Attributes

DataBuffer ** data_
 pre-swaps all buffers that need it More...
 
TraceDataInterpreter ** interp_
 
int nrcomp_
 

Detailed Description

A set of data buffers and their interpreters.

A data buffer + interpreter is referred to as 'Component'. Note that this class is not concernedabout what is contained in the buffers (descriptions, constraints etc.).

Constructor & Destructor Documentation

TraceData::TraceData ( )
inline
TraceData::TraceData ( const TraceData td)
inline
TraceData::~TraceData ( )

Member Function Documentation

void TraceData::addComponent ( int  ns,
const DataCharacteristics ,
bool  cleardata = false 
)
bool TraceData::allOk ( ) const
int TraceData::bytesPerSample ( int  icomp = 0) const
inline
void TraceData::convertToFPs ( bool  preserve_data = true)
void TraceData::copyFrom ( const TraceData )

copy all components, making an exact copy.

void TraceData::copyFrom ( const TraceData ,
int  comp_from,
int  comp_to 
)

copy comp_from of argument to my comp_to

void TraceData::delComponent ( int  )
DataBuffer* TraceData::getComponent ( int  icomp = 0)
inline
const DataBuffer* TraceData::getComponent ( int  icomp = 0) const
inline
TraceDataInterpreter* TraceData::getInterpreter ( int  icomp = 0)
inline
const TraceDataInterpreter* TraceData::getInterpreter ( int  icomp = 0) const
inline
float TraceData::getValue ( int  isamp,
int  icomp = 0 
) const
void TraceData::handleDataSwapping ( )
bool TraceData::isEmpty ( ) const
bool TraceData::isValidComp ( int  icomp = 0) const
bool TraceData::isZero ( int  icomp = 0) const
inline
int TraceData::nrComponents ( ) const
inline
TraceData& TraceData::operator= ( const TraceData td)
inline
void TraceData::reSize ( int  ,
int  icomp = -1,
bool  copydata = false 
)

-1 = all data buffers

void TraceData::scale ( const Scaler ,
int  icomp = -1 
)

-1 = all data buffers

void TraceData::setComponent ( const DataCharacteristics ,
int  icomp = 0 
)
void TraceData::setValue ( int  isamp,
float  ,
int  icomp = 0 
)
int TraceData::size ( int  icomp = 0) const
inline
void TraceData::zero ( int  icomp = -1)

-1 = all data buffers

Member Data Documentation

DataBuffer** TraceData::data_
protected

pre-swaps all buffers that need it

TraceDataInterpreter** TraceData::interp_
protected
int TraceData::nrcomp_
protected

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