OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
FlatDataPack Class Reference

DataPack for flat data. More...

Inheritance diagram for FlatDataPack:
[legend]

Public Member Functions

 FlatDataPack (const char *categry, Array2D< float > *)
 Array2D become mine (of course) More...
 
 FlatDataPack (const FlatDataPack &)
 
 ~FlatDataPack ()
 
virtual Array2D< float > & data ()
 
const Array2D< float > & data () const
 
virtual float getPosDistance (bool dim0, float posfidx) const
 
virtual FlatPosDataposData ()
 
const FlatPosDataposData () const
 
virtual const char * dimName (bool dim0) const
 
virtual Coord3 getCoord (int, int) const
 
virtual bool posDataIsCoord () const
 
virtual void getAltDim0Keys (BufferStringSet &) const
 First one is 'default'. More...
 
virtual double getAltDim0Value (int ikey, int idim0) const
 
virtual bool dimValuesInInt (const char *key) const
 
virtual void getAuxInfo (int idim0, int idim1, IOPar &) const
 
virtual float nrKBytes () const
 
virtual void dumpInfo (IOPar &) const
 
virtual int size (bool dim0) const
 
- Public Member Functions inherited from DataPack
 DataPack (const char *categry)
 
 DataPack (const DataPack &dp)
 
virtual ~DataPack ()
 
ID id () const
 
FullID fullID (int mgrid) const
 
virtual const char * category () const
 
virtual bool isOK () const
 
Threads::LockupdateLock () const
 
void release ()
 
DataPackobtain ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Member Functions

 FlatDataPack (const char *category)
 
- Protected Member Functions inherited from DataPack
void setManager (const DataPackMgr *)
 
void setCategory (const char *c)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

Array2D< float > * arr2d_
 
FlatPosDataposdata_
 
- Protected Attributes inherited from DataPack
const ID id_
 
const BufferString category_
 
int nrusers_
 
Threads::Lock nruserslock_
 
Threads::Lock updatelock_
 
const DataPackMgrmanager_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

void init ()
 

Additional Inherited Members

- Public Types inherited from DataPack
typedef int ID
 
typedef MultiID FullID
 
- Static Public Member Functions inherited from DataPack
static ID getID (const FullID &fid)
 
static const char * sKeyCategory ()
 
static ID cNoID ()
 
- Static Protected Member Functions inherited from DataPack
static ID getNewID ()
 ensures a global data pack ID More...
 
static float sKb2MbFac ()
 1 / 1024 More...
 

Detailed Description

DataPack for flat data.

FlatPosData is initialized to ranges of 0 to sz-1 step 1.

Constructor & Destructor Documentation

FlatDataPack::FlatDataPack ( const char *  categry,
Array2D< float > *   
)

Array2D become mine (of course)

FlatDataPack::FlatDataPack ( const FlatDataPack )
FlatDataPack::~FlatDataPack ( )
FlatDataPack::FlatDataPack ( const char *  category)
protected

For this you have to overload data() and the destructor

Member Function Documentation

virtual Array2D<float>& FlatDataPack::data ( )
inlinevirtual

Reimplemented in MapDataPack.

const Array2D<float>& FlatDataPack::data ( ) const
inline
virtual const char* FlatDataPack::dimName ( bool  dim0) const
inlinevirtual
virtual bool FlatDataPack::dimValuesInInt ( const char *  key) const
inlinevirtual

Reimplemented in SeisFlatDataPack, and SeisTrcBufDataPack.

virtual void FlatDataPack::dumpInfo ( IOPar ) const
virtual

Reimplemented from DataPack.

Reimplemented in EM::DataPackCommon.

virtual void FlatDataPack::getAltDim0Keys ( BufferStringSet ) const
inlinevirtual

First one is 'default'.

Reimplemented in SeisFlatDataPack, EM::FaultDataPack, SeisTrcBufDataPack, and EM::HorDataPack.

virtual double FlatDataPack::getAltDim0Value ( int  ikey,
int  idim0 
) const
virtual
virtual void FlatDataPack::getAuxInfo ( int  idim0,
int  idim1,
IOPar  
) const
inlinevirtual
virtual Coord3 FlatDataPack::getCoord ( int  ,
int   
) const
virtual

int,int = Array2D position if not overloaded, returns posData() (z=0)

Reimplemented in RandomFlatDataPack, RegularFlatDataPack, EM::FaultDataPack, SeisTrcBufDataPack, EM::HorDataPack, and PreStack::Gather.

virtual float FlatDataPack::getPosDistance ( bool  dim0,
float  posfidx 
) const
inlinevirtual

Reimplemented in RandomFlatDataPack, and RegularFlatDataPack.

void FlatDataPack::init ( )
private
virtual float FlatDataPack::nrKBytes ( ) const
virtual

Implements DataPack.

Reimplemented in SeisFlatDataPack.

virtual FlatPosData& FlatDataPack::posData ( )
inlinevirtual

Reimplemented in MapDataPack.

const FlatPosData& FlatDataPack::posData ( ) const
inline
virtual bool FlatDataPack::posDataIsCoord ( ) const
inlinevirtual

Reimplemented in MapDataPack, and SeisTrcBufDataPack.

virtual int FlatDataPack::size ( bool  dim0) const
virtual

Member Data Documentation

Array2D<float>* FlatDataPack::arr2d_
protected
FlatPosData& FlatDataPack::posdata_
protected

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