![]() |
OpendTect 8.0
|
A set of data buffers and their interpreters. More...
#include <tracedata.h>
Public Member Functions | |
| TraceData () | |
| TraceData (const TraceData &) | |
| virtual | ~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. | |
| void | copyFrom (const TraceData &, int comp_from, int comp_to) |
| copy comp_from of argument to my comp_to | |
| void | delComponent (int) |
| DataBuffer * | getComponent (int icomp=0) |
| const DataBuffer * | getComponent (int icomp=0) const |
| TraceDataInterpreter * | getInterpreter (int icomp=0) |
| const TraceDataInterpreter * | getInterpreter (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 |
| TraceData & | operator= (const TraceData &td) |
| void | reSize (int, int icomp=-1, bool copydata=false) |
| -1 = all data buffers | |
| void | scale (const Scaler &, int icomp=-1) |
| -1 = all data buffers | |
| 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 | |
Protected Attributes | |
| DataBuffer ** | data_ = nullptr |
| pre-swaps all buffers that need it | |
| TraceDataInterpreter ** | interp_ = nullptr |
| int | nrcomp_ = 0 |
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.).
<>
| TraceData::TraceData | ( | ) |
| TraceData::TraceData | ( | const TraceData & | ) |
|
virtual |
| void TraceData::addComponent | ( | int | ns, |
| const DataCharacteristics & | , | ||
| bool | cleardata = false ) |
| bool TraceData::allOk | ( | ) | const |
|
inline |
| void TraceData::convertTo | ( | const DataCharacteristics & | , |
| bool | preserve_data = true ) |
| 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 | ) |
|
inline |
|
inline |
|
inline |
|
inline |
| float TraceData::getValue | ( | int | isamp, |
| int | icomp = 0 ) const |
| void TraceData::handleDataSwapping | ( | ) |
| bool TraceData::isEmpty | ( | ) | const |
| bool TraceData::isValidComp | ( | int | icomp = 0 | ) | const |
|
inline |
|
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::setNrComponents | ( | int | nrcomp, |
| DataCharacteristics::UserType | ) |
| void TraceData::setValue | ( | int | isamp, |
| float | , | ||
| int | icomp = 0 ) |
|
inline |
| void TraceData::zero | ( | int | icomp = -1 | ) |
-1 = all data buffers
|
protected |
pre-swaps all buffers that need it
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025