OpendTect-6_4  6.4
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 ()
 
FlatPosDataoperator= (const FlatPosData &)
 
FlatPosDataclone ()
 
void setRange (bool forx1, const StepInterval< double > &)
 
const StepInterval< double > & range (bool forx1) const
 
void setX1Pos (float *, int sz, double offs)
 
int nrPts (bool forx1) const
 
float width (bool forx1) const
 
IndexInfo indexInfo (bool forx1, double pos) const
 
double position (bool forx1, int) const
 With offset applied. More...
 
void getPositions (bool forx1, TypeSet< float > &) const
 With offset applied. More...
 
float * getPositions (bool forx1) const
 
double offset (bool forx1) const
 For use with getPositions. More...
 
bool isIrregular () const
 
void setRegular ()
 

Protected Member Functions

StepInterval< double > & rg (bool forx1)
 

Protected Attributes

StepInterval< double > x1rg_
 
StepInterval< double > x2rg_
 
float * x1pos_
 
double x1offs_
 

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::FlatPosData ( )
inline
FlatPosData::FlatPosData ( const FlatPosData fpd)
inline
FlatPosData::~FlatPosData ( )
inline

Member Function Documentation

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

With offset applied.

float* FlatPosData::getPositions ( bool  forx1) const

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

IndexInfo FlatPosData::indexInfo ( bool  forx1,
double  pos 
) const
bool FlatPosData::isIrregular ( ) const
inline
int FlatPosData::nrPts ( bool  forx1) const
inline
double FlatPosData::offset ( bool  forx1) const
inline

For use with getPositions.

FlatPosData& FlatPosData::operator= ( const FlatPosData )
double FlatPosData::position ( bool  forx1,
int   
) const

With offset applied.

const StepInterval<double>& FlatPosData::range ( bool  forx1) const
inline
StepInterval<double>& FlatPosData::rg ( bool  forx1)
inlineprotected
void FlatPosData::setRange ( bool  forx1,
const StepInterval< double > &   
)
void FlatPosData::setRegular ( )
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

float FlatPosData::width ( bool  forx1) const
inline

Member Data Documentation

double FlatPosData::x1offs_
protected
float* FlatPosData::x1pos_
protected
StepInterval<double> FlatPosData::x1rg_
protected
StepInterval<double> FlatPosData::x2rg_
protected

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