OpendTect
7.0
|
Positioning of flat 'bulk' data. Only the 'x1' axis can be irregular. More...
Public Member Functions | |
FlatPosData () | |
FlatPosData (const FlatPosData &) | |
~FlatPosData () | |
FlatPosData * | clone () |
float * | getPositions (bool forx1) const |
void | getPositions (bool forx1, TypeSet< float > &) const |
With offset applied. More... | |
IndexInfo | indexInfo (bool forx1, double pos) const |
bool | isIrregular () const |
int | nrPts (bool forx1) const |
double | offset (bool forx1) const |
For use with getPositions. More... | |
bool | operator!= (const FlatPosData &) const |
FlatPosData & | operator= (const FlatPosData &) |
bool | operator== (const FlatPosData &) const |
double | position (bool forx1, int) const |
With offset applied. More... | |
const StepInterval< double > & | range (bool forx1) const |
void | setRange (bool forx1, const StepInterval< double > &) |
void | setRegular () |
void | setX1Pos (float *, int sz, double offs) |
float | width (bool forx1) const |
Protected Member Functions | |
StepInterval< double > & | rg (bool forx1) |
Protected Attributes | |
double | x1offs_ = 0 |
float * | x1pos_ = nullptr |
StepInterval< double > | x1rg_ |
StepInterval< double > | x2rg_ |
Positioning of flat 'bulk' data. Only the 'x1' axis can be irregular.
Even if the X1 range is irregular, the x1rg_ is kept in sync with the start, stop and average step. Uncomplicated programmers may get away with using nothing else but the range().
<>
FlatPosData::FlatPosData | ( | ) |
FlatPosData::FlatPosData | ( | const FlatPosData & | ) |
FlatPosData::~FlatPosData | ( | ) |
|
inline |
float* FlatPosData::getPositions | ( | bool | forx1 | ) | const |
Returns a new float [], size=nrPts() offset not applied (it's a float*)
void FlatPosData::getPositions | ( | bool | forx1, |
TypeSet< float > & | |||
) | const |
With offset applied.
IndexInfo FlatPosData::indexInfo | ( | bool | forx1, |
double | pos | ||
) | const |
|
inline |
|
inline |
|
inline |
For use with getPositions.
bool FlatPosData::operator!= | ( | const FlatPosData & | ) | const |
FlatPosData& FlatPosData::operator= | ( | const FlatPosData & | ) |
bool FlatPosData::operator== | ( | const FlatPosData & | ) | const |
double FlatPosData::position | ( | bool | forx1, |
int | |||
) | const |
With offset applied.
|
inline |
|
inlineprotected |
void FlatPosData::setRange | ( | bool | forx1, |
const StepInterval< double > & | |||
) |
|
inline |
void FlatPosData::setX1Pos | ( | float * | , |
int | sz, | ||
double | offs | ||
) |
offs is added to each elem before display This makes sure float* can be used float* (alloc with new []) becomes mine
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024