OpendTect-6_4  6.4
Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | List of all members
EM::SurfaceAuxData Class Reference

Surface data. More...

Protected Attributes

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

Private Types

enum  AuxDataType { NoType =0, AutoShow, Tracking }
 

Private Member Functions

virtual mODTextTranslationClass(SurfaceAuxData) public ~SurfaceAuxData ()
 
ExecutorauxDataLoader (int selidx=-1)
 
ExecutorauxDataLoader (const char *nm)
 
ExecutorauxDataSaver (int dataidx=0, bool overwrite=false)
 
void removeAll ()
 
void removeSection (const SectionID &)
 
int nrAuxData () const
 
bool hasAuxDataName (const char *) const
 
const char * auxDataName (int dataidx) const
 
int auxDataIndex (const char *) const
 
int addAuxData (const char *name)
 
void setAuxDataName (int dataidx, const char *)
 
void removeAuxData (int dataidx)
 
float getAuxDataVal (int dataidx, const PosID &posid) const
 
float getAuxDataVal (int dataidx, const TrcKey &) const
 
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)
 
void setAuxDataShift (int, float)
 
float auxDataShift (int) const
 
bool isChanged (int) const
 
void resetChangedFlag ()
 
BufferString getFileName (const char *attrnm) const
 
bool removeFile (const char *attrnm) const
 
void init (int dataidx, bool onlynewpos=false, float val=mUdf(float))
 
Array2D< float > * createArray2D (int dataidx, SectionID) const
 
void setArray2D (int dataidx, SectionID, const Array2D< float > &)
 
void setArray2D (int dataidx, SectionID, const Array2D< float > &, const TrcKeySampling *tks)
 
const ObjectSet< BinIDValueSet > & getData () const
 
bool usePar (const IOPar &)
 
void fillPar (IOPar &) const
 
void init (int dataidx, float val=mUdf(float))
 
void setAuxDataType (int dataidx, AuxDataType)
 
AuxDataType getAuxDataType (int dataidx) const
 

Static Private Member Functions

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

Detailed Description

Surface data.

Member Enumeration Documentation

Enumerator
NoType 
AutoShow 
Tracking 

Constructor & Destructor Documentation

virtual mODTextTranslationClass (SurfaceAuxData) public EM::SurfaceAuxData::~SurfaceAuxData ( )
privatevirtual

Member Function Documentation

int EM::SurfaceAuxData::addAuxData ( const char *  name)
private
Returns
The dataidx of the new data. The index is persistent in runtime.
int EM::SurfaceAuxData::auxDataIndex ( const char *  ) const
private
Returns
The dataidx of this aux data name, or -1
Executor* EM::SurfaceAuxData::auxDataLoader ( int  selidx = -1)
private
Executor* EM::SurfaceAuxData::auxDataLoader ( const char *  nm)
private
const char* EM::SurfaceAuxData::auxDataName ( int  dataidx) const
private
Returns
The name of aux-data or 0 if the data is removed;
Executor* EM::SurfaceAuxData::auxDataSaver ( int  dataidx = 0,
bool  overwrite = false 
)
private
float EM::SurfaceAuxData::auxDataShift ( int  ) const
private
Array2D<float>* EM::SurfaceAuxData::createArray2D ( int  dataidx,
SectionID   
) const
private
void EM::SurfaceAuxData::fillPar ( IOPar ) const
private
AuxDataType EM::SurfaceAuxData::getAuxDataType ( int  dataidx) const
private
float EM::SurfaceAuxData::getAuxDataVal ( int  dataidx,
const PosID posid 
) const
private
float EM::SurfaceAuxData::getAuxDataVal ( int  dataidx,
const TrcKey  
) const
private
const ObjectSet<BinIDValueSet>& EM::SurfaceAuxData::getData ( ) const
inlineprivate
static BufferString EM::SurfaceAuxData::getFileName ( const IOObj ,
const char *  attrnm 
)
staticprivate
static BufferString EM::SurfaceAuxData::getFileName ( const char *  fullexp,
const char *  attrnm 
)
staticprivate
BufferString EM::SurfaceAuxData::getFileName ( const char *  attrnm) const
private
static BufferString EM::SurfaceAuxData::getFreeFileName ( const IOObj )
staticprivate
static bool EM::SurfaceAuxData::hasAttribute ( const IOObj ,
const char *  attrnm 
)
staticprivate
bool EM::SurfaceAuxData::hasAuxDataName ( const char *  ) const
private
void EM::SurfaceAuxData::init ( int  dataidx,
bool  onlynewpos = false,
float  val = mUdf(float) 
)
private

dataidx==-1: init all

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

dataidx==-1: init all

bool EM::SurfaceAuxData::isChanged ( int  ) const
private
int EM::SurfaceAuxData::nrAuxData ( ) const
private
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) )
void EM::SurfaceAuxData::removeAll ( )
private
void EM::SurfaceAuxData::removeAuxData ( int  dataidx)
private
static bool EM::SurfaceAuxData::removeFile ( const IOObj ,
const char *  attrnm 
)
staticprivate
bool EM::SurfaceAuxData::removeFile ( const char *  attrnm) const
private
void EM::SurfaceAuxData::removeSection ( const SectionID )
private
void EM::SurfaceAuxData::resetChangedFlag ( )
private
void EM::SurfaceAuxData::setArray2D ( int  dataidx,
SectionID  ,
const Array2D< float > &   
)
private
void EM::SurfaceAuxData::setArray2D ( int  dataidx,
SectionID  ,
const Array2D< float > &  ,
const TrcKeySampling tks 
)
private
void EM::SurfaceAuxData::setAuxDataName ( int  dataidx,
const char *   
)
private
void EM::SurfaceAuxData::setAuxDataShift ( int  ,
float   
)
private
void EM::SurfaceAuxData::setAuxDataType ( int  dataidx,
AuxDataType   
)
private
void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const PosID posid,
float  val 
)
private
void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const PosID posid,
float  val,
bool  onlynewpos 
)
private
void EM::SurfaceAuxData::setAuxDataVal ( int  dataidx,
const TrcKey ,
float  val 
)
private
bool EM::SurfaceAuxData::usePar ( const IOPar )
private

Member Data Documentation

ObjectSet<BinIDValueSet> EM::SurfaceAuxData::auxdata_
protected
BufferStringSet EM::SurfaceAuxData::auxdatainfo_
protected
BufferStringSet EM::SurfaceAuxData::auxdatanames_
protected
TypeSet<float> EM::SurfaceAuxData::auxdatashift_
protected
TypeSet<AuxDataType> EM::SurfaceAuxData::auxdatatypes_
protected
bool EM::SurfaceAuxData::changed_
protected
Horizon3D& EM::SurfaceAuxData::horizon_
protected

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