OpendTect  7.0
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 ()
 
void addComponent (int ns, const DataCharacteristics &, bool cleardata=false)
 
bool allOk () const
 
int bytesPerSample (int icomp=0) const
 
void convertTo (const DataCharacteristics &, bool preserve_data=true)
 
void convertToFPs (bool preserve_data=true)
 
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 delComponent (int)
 
DataBuffergetComponent (int icomp=0)
 
const DataBuffergetComponent (int icomp=0) const
 
TraceDataInterpretergetInterpreter (int icomp=0)
 
const TraceDataInterpretergetInterpreter (int icomp=0) const
 
float getValue (int isamp, int icomp=0) const
 
void handleDataSwapping ()
 
bool isEmpty () const
 
bool isValidComp (int icomp=0) const
 
bool isZero (int icomp=0) const
 
int nrComponents () const
 
TraceDataoperator= (const TraceData &td)
 
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 setComponent (const DataCharacteristics &, int icomp=0)
 
void setNrComponents (int nrcomp, DataCharacteristics::UserType)
 
void setValue (int isamp, float, int icomp=0)
 
int size (int icomp=0) const
 
void zero (int icomp=-1)
 -1 = all data buffers More...
 

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

TraceData::TraceData ( )
inline

◆ TraceData() [2/2]

TraceData::TraceData ( const TraceData td)
inline

◆ ~TraceData()

TraceData::~TraceData ( )

Member Function Documentation

◆ addComponent()

void TraceData::addComponent ( int  ns,
const DataCharacteristics ,
bool  cleardata = false 
)

◆ allOk()

bool TraceData::allOk ( ) const

◆ bytesPerSample()

int TraceData::bytesPerSample ( int  icomp = 0) const
inline

◆ convertTo()

void TraceData::convertTo ( const DataCharacteristics ,
bool  preserve_data = true 
)

◆ convertToFPs()

void TraceData::convertToFPs ( bool  preserve_data = true)

◆ copyFrom() [1/2]

void TraceData::copyFrom ( const TraceData )

copy all components, making an exact copy.

◆ copyFrom() [2/2]

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

copy comp_from of argument to my comp_to

◆ delComponent()

void TraceData::delComponent ( int  )

◆ getComponent() [1/2]

DataBuffer* TraceData::getComponent ( int  icomp = 0)
inline

◆ getComponent() [2/2]

const DataBuffer* TraceData::getComponent ( int  icomp = 0) const
inline

◆ getInterpreter() [1/2]

TraceDataInterpreter* TraceData::getInterpreter ( int  icomp = 0)
inline

◆ getInterpreter() [2/2]

const TraceDataInterpreter* TraceData::getInterpreter ( int  icomp = 0) const
inline

◆ getValue()

float TraceData::getValue ( int  isamp,
int  icomp = 0 
) const

◆ handleDataSwapping()

void TraceData::handleDataSwapping ( )

◆ isEmpty()

bool TraceData::isEmpty ( ) const

◆ isValidComp()

bool TraceData::isValidComp ( int  icomp = 0) const

◆ isZero()

bool TraceData::isZero ( int  icomp = 0) const
inline

◆ nrComponents()

int TraceData::nrComponents ( ) const
inline

◆ operator=()

TraceData& TraceData::operator= ( const TraceData td)
inline

◆ reSize()

void TraceData::reSize ( int  ,
int  icomp = -1,
bool  copydata = false 
)

-1 = all data buffers

◆ scale()

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

-1 = all data buffers

◆ setComponent()

void TraceData::setComponent ( const DataCharacteristics ,
int  icomp = 0 
)

◆ setNrComponents()

void TraceData::setNrComponents ( int  nrcomp,
DataCharacteristics::UserType   
)

◆ setValue()

void TraceData::setValue ( int  isamp,
float  ,
int  icomp = 0 
)

◆ size()

int TraceData::size ( int  icomp = 0) const
inline

◆ zero()

void TraceData::zero ( int  icomp = -1)

-1 = all data buffers

Member Data Documentation

◆ data_

DataBuffer** TraceData::data_
protected

pre-swaps all buffers that need it

◆ interp_

TraceDataInterpreter** TraceData::interp_
protected

◆ nrcomp_

int TraceData::nrcomp_
protected

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