OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RegularSeisDataPack Class Reference

SeisDataPack for 2D and 3D seismic data. More...

Inheritance diagram for RegularSeisDataPack:
[legend]

Public Member Functions

 RegularSeisDataPack (const char *cat, const BinDataDesc *=nullptr)
 
bool addComponent (const char *nm) override
 
bool addComponentNoInit (const char *nm)
 
RegularSeisDataPackclone () const
 
bool copyFrom (const RegularSeisDataPack &)
 
void dumpInfo (StringPairSet &) const override
 
void fillTrace (const TrcKey &, SeisTrc &) const
 
void fillTraceData (const TrcKey &, TraceData &) const
 
void fillTraceInfo (const TrcKey &, SeisTrcInfo &) const
 
int getGlobalIdx (const TrcKey &) const override
 
RegularSeisDataPackgetSimilar () const
 
TrcKey getTrcKey (int globaltrcidx) const override
 
const PosInfo::CubeDatagetTrcsSampling () const
 Only for 3D. More...
 
bool is2D () const override
 
int nrTrcs () const override
 
const TrcKeyZSamplingsampling () const
 
void setSampling (const TrcKeyZSampling &tkzs)
 
void setTrcsSampling (PosInfo::CubeData *)
 Becomes mine. More...
 
ZSampling zRange () const override
 
- Public Member Functions inherited from SeisDataPack
Array3DImpl< float > & data (int component=0)
 
const Array3DImpl< float > & data (int component=0) const
 
void deleteScaler ()
 
int getComponentIdx (const char *nm, int defcompidx=-1) const
 
const char * getComponentName (int comp=0) const
 
bool getCopiedTrcData (int comp, int globaltrcidx, Array1D< float > &) const
 
const BinDataDescgetDataDesc () const
 
virtual int getNearestGlobalIdx (const TrcKey &) const
 
void getPath (TrcKeyPath &) const
 
RandomLineID getRandomLineID () const
 
float getRefNr (int globaltrcidx) const
 
const ScalergetScaler () const
 
float * getTrcData (int comp, int globaltrcidx)
 
const float * getTrcData (int comp, int globaltrcidx) const
 
const OffsetValueSeries< float > getTrcStorage (int comp, int globaltrcidx) const
 
bool isEmpty () const
 
int nrComponents () const
 
float nrKBytes () const override
 
void setComponentName (const char *, int comp=0)
 
void setDataDesc (const BinDataDesc &)
 
void setRandomLineID (RandomLineID)
 
void setRefNrs (const TypeSet< float > &refnrs)
 
void setScaler (const Scaler &)
 
void setValUnit (const UnitOfMeasure *)
 
void setZDomain (const ZDomain::Info &)
 
BufferString unitStr (bool val, bool withparens=false) const
 
bool validComp (int comp) const
 
const UnitOfMeasurevalUnit () const
 
const ZDomain::InfozDomain () const
 
const UnitOfMeasurezUnit () const
 
- Public Member Functions inherited from DataPack
virtual const char * category () const
 
FullID fullID (DataPackMgrID mgrid) const
 
DataPackID id () const
 
virtual bool isOK () const
 
DataPackobtain ()
 
void release ()
 
Threads::LockupdateLock () const
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=nullptr)
 
 SharedObject (const SharedObject &)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=0)
 
 NamedCallBacker (const NamedCallBacker &)
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
bool operator== (const NamedCallBacker &oth) const
 
bool operator== (const NamedObject &oth) const
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=nullptr)
 
 NamedObject (const NamedObject &oth)
 
virtual ~NamedObject ()
 
virtual BufferString getName () const
 
bool getNameFromPar (const IOPar &)
 
const name_typename () const override
 
NamedObjectoperator= (const NamedObject &)
 
bool operator== (const NamedObject &oth) const
 
virtual void setName (const char *nm)
 
- Public Member Functions inherited from ObjectWithName
virtual ~ObjectWithName ()
 
bool hasName (const char *nm) const
 
bool hasName (const name_type &nm) const
 
void putNameInPar (IOPar &) const
 
- Public Member Functions inherited from RefCount::Referenced
void addObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
int nrRefs () const
 Only for expert use. More...
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging. More...
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private. More...
 
bool tryRef () const
 Not for normal use. May become private. More...
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static DataPackID createDataPackForZSlice (const BinIDValueSet *, const TrcKeyZSampling &, const ZDomain::Info &, const BufferStringSet *nms=nullptr)
 
static RefMan< RegularSeisDataPackcreateDataPackForZSliceRM (const BinIDValueSet *, const TrcKeyZSampling &, const ZDomain::Info &, const BufferStringSet *nms=nullptr)
 
- Static Public Member Functions inherited from SeisDataPack
static const char * categoryStr (bool isvertical, bool is2d)
 
- Static Public Member Functions inherited from DataPack
static DataPackID cNoID ()
 
static DataPackID cUdfID ()
 
static DataPackID getID (const FullID &fid)
 
static const char * sKeyCategory ()
 
- Static Public Member Functions inherited from SharedObject
static Notifier< SharedObject > & instanceCreated ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 
- Static Public Member Functions inherited from RefCount::Referenced
static bool isSane (const Referenced *)
 

Protected Member Functions

 ~RegularSeisDataPack ()
 
- Protected Member Functions inherited from SeisDataPack
 SeisDataPack (const char *, const BinDataDesc *)
 
 ~SeisDataPack ()
 
bool addArray (int sz0, int sz1, int sz2)
 
bool addArrayNoInit (int sz0, int sz1, int sz2)
 
- Protected Member Functions inherited from DataPack
 DataPack (const char *categry)
 
 DataPack (const DataPack &)
 
 ~DataPack ()
 
void setCategory (const char *c)
 
void setManager (const DataPackMgr *)
 
- Protected Member Functions inherited from SharedObject
virtual ~SharedObject ()
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 
- Protected Member Functions inherited from RefCount::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
virtual ~Referenced ()
 
Referencedoperator= (const Referenced &)
 

Protected Attributes

PosInfo::CubeDatargldpckposinfo_
 
TrcKeyZSampling sampling_
 
- Protected Attributes inherited from SeisDataPack
ObjectSet< Array3DImpl< float > > arrays_
 
BufferStringSet componentnames_
 
BinDataDesc desc_
 
RandomLineID rdlid_
 
TypeSet< float > refnrs_
 
const Scalerscaler_ = nullptr
 
ZDomain::Infozdomaininfo_
 
- Protected Attributes inherited from DataPack
const BufferString category_
 
const DataPackID id_
 
const DataPackMgrmanager_ = nullptr
 
Threads::Lock updatelock_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

- Public Types inherited from DataPack
using ID = DataPackID
 
using MgrID = DataPackMgrID
 
- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Static Protected Member Functions inherited from DataPack
static DataPackID getNewID ()
 ensures a global data pack ID More...
 
static float sKb2MbFac ()
 1 / 1024 More...
 

Detailed Description

SeisDataPack for 2D and 3D seismic data.

<>

Constructor & Destructor Documentation

◆ RegularSeisDataPack()

RegularSeisDataPack::RegularSeisDataPack ( const char *  cat,
const BinDataDesc = nullptr 
)

◆ ~RegularSeisDataPack()

RegularSeisDataPack::~RegularSeisDataPack ( )
protected

Member Function Documentation

◆ addComponent()

bool RegularSeisDataPack::addComponent ( const char *  nm)
overridevirtual

Implements SeisDataPack.

◆ addComponentNoInit()

bool RegularSeisDataPack::addComponentNoInit ( const char *  nm)

◆ clone()

RegularSeisDataPack* RegularSeisDataPack::clone ( ) const

◆ copyFrom()

bool RegularSeisDataPack::copyFrom ( const RegularSeisDataPack )

◆ createDataPackForZSlice()

static DataPackID RegularSeisDataPack::createDataPackForZSlice ( const BinIDValueSet ,
const TrcKeyZSampling ,
const ZDomain::Info ,
const BufferStringSet nms = nullptr 
)
static

Creates RegularSeisDataPack from BinIDValueSet for z-slices in z-axis transformed domain. nrComponents() in the created datapack will be one less than BinIDValueSet::nrVals(), as the z-component is not used.

Parameters
nmsis for passing component names.

◆ createDataPackForZSliceRM()

static RefMan<RegularSeisDataPack> RegularSeisDataPack::createDataPackForZSliceRM ( const BinIDValueSet ,
const TrcKeyZSampling ,
const ZDomain::Info ,
const BufferStringSet nms = nullptr 
)
static

Creates RegularSeisDataPack from BinIDValueSet for z-slices in z-axis transformed domain. nrComponents() in the created datapack will be one less than BinIDValueSet::nrVals(), as the z-component is not used.

Parameters
nmsis for passing component names.

◆ dumpInfo()

void RegularSeisDataPack::dumpInfo ( StringPairSet ) const
overridevirtual

Reimplemented from SeisDataPack.

◆ fillTrace()

void RegularSeisDataPack::fillTrace ( const TrcKey ,
SeisTrc  
) const

◆ fillTraceData()

void RegularSeisDataPack::fillTraceData ( const TrcKey ,
TraceData  
) const

◆ fillTraceInfo()

void RegularSeisDataPack::fillTraceInfo ( const TrcKey ,
SeisTrcInfo  
) const

◆ getGlobalIdx()

int RegularSeisDataPack::getGlobalIdx ( const TrcKey ) const
overridevirtual

Implements SeisDataPack.

◆ getSimilar()

RegularSeisDataPack* RegularSeisDataPack::getSimilar ( ) const

◆ getTrcKey()

TrcKey RegularSeisDataPack::getTrcKey ( int  globaltrcidx) const
overridevirtual

Implements SeisDataPack.

◆ getTrcsSampling()

const PosInfo::CubeData* RegularSeisDataPack::getTrcsSampling ( ) const

Only for 3D.

◆ is2D()

bool RegularSeisDataPack::is2D ( ) const
overridevirtual

Implements SeisDataPack.

◆ nrTrcs()

int RegularSeisDataPack::nrTrcs ( ) const
inlineoverridevirtual

Implements SeisDataPack.

◆ sampling()

const TrcKeyZSampling& RegularSeisDataPack::sampling ( ) const
inline

◆ setSampling()

void RegularSeisDataPack::setSampling ( const TrcKeyZSampling tkzs)
inline

◆ setTrcsSampling()

void RegularSeisDataPack::setTrcsSampling ( PosInfo::CubeData )

Becomes mine.

◆ zRange()

ZSampling RegularSeisDataPack::zRange ( ) const
inlineoverridevirtual

Implements SeisDataPack.

Member Data Documentation

◆ rgldpckposinfo_

PosInfo::CubeData* RegularSeisDataPack::rgldpckposinfo_
protected

◆ sampling_

TrcKeyZSampling RegularSeisDataPack::sampling_
protected

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