OpendTect  7.0
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
EM::SurfaceAuxData Class Reference

Surface data. More...

Public Types

enum  AuxDataType { NoType =0 , AutoShow , Tracking }
 

Public Member Functions

 SurfaceAuxData (Horizon3D &)
 
virtual ~SurfaceAuxData ()
 
void addAuxData (const BufferStringSet &, const BinIDValueSet &)
 
int addAuxData (const char *name)
 
void applyPosFilter (const Pos::Filter &, int dataidx=-1)
 
int auxDataIndex (const char *) const
 
ExecutorauxDataLoader (const char *nm)
 
ExecutorauxDataLoader (int selidx=-1)
 
const char * auxDataName (int dataidx) const
 
ExecutorauxDataSaver (int dataidx=0, bool overwrite=false)
 
float auxDataShift (int) const
 
Array2D< float > * createArray2D (int dataidx) const
 
Array2D< float > * createArray2D (int dataidx, SectionID) const
 
void fillPar (IOPar &) const
 
AuxDataType getAuxDataType (int dataidx) const
 
float getAuxDataVal (int dataidx, const BinID &) const
 
float getAuxDataVal (int dataidx, const PosID &posid) const
 
float getAuxDataVal (int dataidx, const TrcKey &) const
 
const ObjectSet< BinIDValueSet > & getData () const
 
BufferString getFileName (const char *attrnm) const
 
bool hasAuxDataName (const char *) const
 
void init (int dataidx, bool onlynewpos=false, float val=mUdf(float))
 
void init (int dataidx, float val=mUdf(float))
 
bool isChanged (int) const
 
int nrAuxData () const
 
void removeAll ()
 
void removeAuxData (int dataidx)
 
bool removeFile (const char *attrnm) const
 
void removeSection (const SectionID &)
 
void resetChangedFlag ()
 
void setArray2D (int dataidx, const Array2D< float > &, const TrcKeySampling *tks=nullptr)
 
void setArray2D (int dataidx, SectionID, const Array2D< float > &arr, const TrcKeySampling *tks=nullptr)
 
void setAuxDataName (int dataidx, const char *)
 
void setAuxDataShift (int, float)
 
void setAuxDataType (int dataidx, AuxDataType)
 
void setAuxDataVal (int dataidx, const BinID &, float val)
 
void setAuxDataVal (int dataidx, const PosID &posid, float val)
 
void setAuxDataVal (int dataidx, const PosID &posid, float val, bool onlynewpos)
 
void setAuxDataVal (int dataidx, const TrcKey &, float val)
 
bool usePar (const IOPar &)
 
bool validIdx (int idx) const
 

Static Public Member Functions

static BufferString getFileName (const char *fullexp, const char *attrnm)
 
static BufferString getFileName (const IOObj &, const char *attrnm)
 
static BufferString getFreeFileName (const IOObj &)
 
static bool hasAttribute (const IOObj &, const char *attrnm)
 
static bool removeFile (const IOObj &, const char *attrnm)
 

Protected Attributes

ObjectSet< BinIDValueSetauxdata_
 
BufferStringSet auxdatainfo_
 
BufferStringSet auxdatanames_
 
TypeSet< float > auxdatashift_
 
TypeSet< AuxDataTypeauxdatatypes_
 
bool changed_
 
Horizon3Dhorizon_
 

Detailed Description

Surface data.

<>

Member Enumeration Documentation

◆ AuxDataType

Enumerator
NoType 
AutoShow 
Tracking 

Constructor & Destructor Documentation

◆ SurfaceAuxData()

EM::SurfaceAuxData::SurfaceAuxData ( Horizon3D )

◆ ~SurfaceAuxData()

virtual EM::SurfaceAuxData::~SurfaceAuxData ( )
virtual

Member Function Documentation

◆ addAuxData() [1/2]

void EM::SurfaceAuxData::addAuxData ( const BufferStringSet ,
const BinIDValueSet  
)

◆ addAuxData() [2/2]

int EM::SurfaceAuxData::addAuxData ( const char *  name)
Returns
The dataidx of the new data. The index is persistent in runtime.

◆ applyPosFilter()

void EM::SurfaceAuxData::applyPosFilter ( const Pos::Filter ,
int  dataidx = -1 
)

◆ auxDataIndex()

int EM::SurfaceAuxData::auxDataIndex ( const char *  ) const
Returns
The dataidx of this aux data name, or -1

◆ auxDataLoader() [1/2]

Executor* EM::SurfaceAuxData::auxDataLoader ( const char *  nm)

◆ auxDataLoader() [2/2]

Executor* EM::SurfaceAuxData::auxDataLoader ( int  selidx = -1)

◆ auxDataName()

const char* EM::SurfaceAuxData::auxDataName ( int  dataidx) const
Returns
The name of aux-data or 0 if the data is removed;

◆ auxDataSaver()

Executor* EM::SurfaceAuxData::auxDataSaver ( int  dataidx = 0,
bool  overwrite = false 
)

◆ auxDataShift()

float EM::SurfaceAuxData::auxDataShift ( int  ) const

◆ createArray2D() [1/2]

Array2D<float>* EM::SurfaceAuxData::createArray2D ( int  dataidx) const

◆ createArray2D() [2/2]

Array2D<float>* EM::SurfaceAuxData::createArray2D ( int  dataidx,
SectionID   
) const
inline

◆ fillPar()

void EM::SurfaceAuxData::fillPar ( IOPar ) const

◆ getAuxDataType()

AuxDataType EM::SurfaceAuxData::getAuxDataType ( int  dataidx) const

◆ getAuxDataVal() [1/3]

float EM::SurfaceAuxData::getAuxDataVal ( int  dataidx,
const BinID  
) const

◆ getAuxDataVal() [2/3]

float EM::SurfaceAuxData::getAuxDataVal ( int  dataidx,
const PosID posid 
) const

◆ getAuxDataVal() [3/3]

float EM::SurfaceAuxData::getAuxDataVal ( int  dataidx,
const TrcKey  
) const

◆ getData()

const ObjectSet<BinIDValueSet>& EM::SurfaceAuxData::getData ( ) const
inline

tks=nullptr assumes that array has same origin as horizon

◆ getFileName() [1/3]

BufferString EM::SurfaceAuxData::getFileName ( const char *  attrnm) const

◆ getFileName() [2/3]

static BufferString EM::SurfaceAuxData::getFileName ( const char *  fullexp,
const char *  attrnm 
)
static

◆ getFileName() [3/3]

static BufferString EM::SurfaceAuxData::getFileName ( const IOObj ,
const char *  attrnm 
)
static

◆ getFreeFileName()

static BufferString EM::SurfaceAuxData::getFreeFileName ( const IOObj )
static

◆ hasAttribute()

static bool EM::SurfaceAuxData::hasAttribute ( const IOObj ,
const char *  attrnm 
)
static

◆ hasAuxDataName()

bool EM::SurfaceAuxData::hasAuxDataName ( const char *  ) const

◆ init() [1/2]

void EM::SurfaceAuxData::init ( int  dataidx,
bool  onlynewpos = false,
float  val = mUdf(float) 
)

dataidx==-1: init all

◆ init() [2/2]

void EM::SurfaceAuxData::init ( int  dataidx,
float  val = mUdf(float) 
)

dataidx==-1: init all

◆ isChanged()

bool EM::SurfaceAuxData::isChanged ( int  ) const

◆ nrAuxData()

int EM::SurfaceAuxData::nrAuxData ( ) const
Returns
The number of data per node.
Note
Some of the data might have been removed, so the result might be misleading. Query by doing:
for ( int idx=0; idx<nrAuxData(); idx++)
if ( !auxDataName(idx) )
int nrAuxData() const
const char * auxDataName(int dataidx) const

◆ removeAll()

void EM::SurfaceAuxData::removeAll ( )

◆ removeAuxData()

void EM::SurfaceAuxData::removeAuxData ( int  dataidx)

◆ removeFile() [1/2]

bool EM::SurfaceAuxData::removeFile ( const char *  attrnm) const

◆ removeFile() [2/2]

static bool EM::SurfaceAuxData::removeFile ( const IOObj ,
const char *  attrnm 
)
static

◆ removeSection()

void EM::SurfaceAuxData::removeSection ( const SectionID )

◆ resetChangedFlag()

void EM::SurfaceAuxData::resetChangedFlag ( )

◆ setArray2D() [1/2]

void EM::SurfaceAuxData::setArray2D ( int  dataidx,
const Array2D< float > &  ,
const TrcKeySampling tks = nullptr 
)

◆ setArray2D() [2/2]

void EM::SurfaceAuxData::setArray2D ( int  dataidx,
SectionID  ,
const Array2D< float > &  arr,
const TrcKeySampling tks = nullptr 
)
inline

◆ setAuxDataName()

void EM::SurfaceAuxData::setAuxDataName ( int  dataidx,
const char *   
)

◆ setAuxDataShift()

void EM::SurfaceAuxData::setAuxDataShift ( int  ,
float   
)

◆ setAuxDataType()

void EM::SurfaceAuxData::setAuxDataType ( int  dataidx,
AuxDataType   
)

◆ setAuxDataVal() [1/4]

void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const BinID ,
float  val 
)

◆ setAuxDataVal() [2/4]

void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const PosID posid,
float  val 
)

◆ setAuxDataVal() [3/4]

void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const PosID posid,
float  val,
bool  onlynewpos 
)

◆ setAuxDataVal() [4/4]

void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const TrcKey ,
float  val 
)

◆ usePar()

bool EM::SurfaceAuxData::usePar ( const IOPar )

◆ validIdx()

bool EM::SurfaceAuxData::validIdx ( int  idx) const

Member Data Documentation

◆ auxdata_

ObjectSet<BinIDValueSet> EM::SurfaceAuxData::auxdata_
protected

◆ auxdatainfo_

BufferStringSet EM::SurfaceAuxData::auxdatainfo_
protected

◆ auxdatanames_

BufferStringSet EM::SurfaceAuxData::auxdatanames_
protected

◆ auxdatashift_

TypeSet<float> EM::SurfaceAuxData::auxdatashift_
protected

◆ auxdatatypes_

TypeSet<AuxDataType> EM::SurfaceAuxData::auxdatatypes_
protected

◆ changed_

bool EM::SurfaceAuxData::changed_
protected

◆ horizon_

Horizon3D& EM::SurfaceAuxData::horizon_
protected

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