OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FlatPosData Class Reference

Positioning of flat 'bulk' data. Only the 'x1' axis can be irregular. More...

Public Member Functions

 FlatPosData ()
 
 FlatPosData (const FlatPosData &fpd)
 
 ~FlatPosData ()
 
FlatPosDataclone ()
 
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...
 
FlatPosDataoperator= (const FlatPosData &)
 
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_
 
float * x1pos_
 
StepInterval< double > x1rg_
 
StepInterval< double > x2rg_
 

Detailed Description

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().

<>

Constructor & Destructor Documentation

◆ FlatPosData() [1/2]

FlatPosData::FlatPosData ( )
inline

◆ FlatPosData() [2/2]

FlatPosData::FlatPosData ( const FlatPosData fpd)
inline

◆ ~FlatPosData()

FlatPosData::~FlatPosData ( )
inline

Member Function Documentation

◆ clone()

FlatPosData* FlatPosData::clone ( )
inline

◆ getPositions() [1/2]

float* FlatPosData::getPositions ( bool  forx1) const

Returns a new float [], size=nrPts() offset not applied (it's a float*)

◆ getPositions() [2/2]

void FlatPosData::getPositions ( bool  forx1,
TypeSet< float > &   
) const

With offset applied.

◆ indexInfo()

IndexInfo FlatPosData::indexInfo ( bool  forx1,
double  pos 
) const

◆ isIrregular()

bool FlatPosData::isIrregular ( ) const
inline

◆ nrPts()

int FlatPosData::nrPts ( bool  forx1) const
inline

◆ offset()

double FlatPosData::offset ( bool  forx1) const
inline

For use with getPositions.

◆ operator=()

FlatPosData& FlatPosData::operator= ( const FlatPosData )

◆ position()

double FlatPosData::position ( bool  forx1,
int   
) const

With offset applied.

◆ range()

const StepInterval<double>& FlatPosData::range ( bool  forx1) const
inline

◆ rg()

StepInterval<double>& FlatPosData::rg ( bool  forx1)
inlineprotected

◆ setRange()

void FlatPosData::setRange ( bool  forx1,
const StepInterval< double > &   
)

◆ setRegular()

void FlatPosData::setRegular ( )
inline

◆ setX1Pos()

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

◆ width()

float FlatPosData::width ( bool  forx1) const
inline

Member Data Documentation

◆ x1offs_

double FlatPosData::x1offs_
protected

◆ x1pos_

float* FlatPosData::x1pos_
protected

◆ x1rg_

StepInterval<double> FlatPosData::x1rg_
protected

◆ x2rg_

StepInterval<double> FlatPosData::x2rg_
protected

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