OpendTect 8.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
PreStack::Gather Class Reference

PreStack gather. More...

#include <prestackgather.h>

Inheritance diagram for PreStack::Gather:
[legend]

Public Member Functions

 Gather ()
 
 Gather (const FlatPosData &, Seis::OffsetType, const ZDomain::Info &)
 
 Gather (const FlatPosData &, Seis::OffsetType, OD::AngleType, const ZDomain::Info &)
 
 Gather (const Gather &)
 
OD::AngleType azimuthAngleType () const
 
void detectInnerMutes (int *depths, int taperlen=0) const
 
void detectOuterMutes (int *depths, int taperlen=0) const
 
float getAzimuth (int) const
 
void getAzimuths (TypeSet< float > &azimuths) const
 
const BinIDgetBinID () const
 
const CoordgetCoord () const
 
float getOffset (int) const
 
OffsetAzimuth getOffsetAzimuth (int) const
 
const char * getSeis2DName () const
 
int getSeis2DTraceNr () const
 
const MultiIDgetStaticsID () const
 
const MultiIDgetStorageID () const
 
const MultiIDgetStoredID () const
 
const TrcKeygetTrcKey () const
 
const MultiIDgetVelocityID () const
 
bool is2D () const
 
bool is3D () const
 
bool isCorrected () const
 
bool isLoaded () const
 
bool isOffsetAngle () const
 
bool isOffsetInFeet () const
 
bool isOffsetInMeters () const
 
bool isSynthetic () const
 
Seis::OffsetType offsetType () const
 
Gatheroperator= (const Gather &)=delete
 
bool readFrom (const IOObj &, const BinID &, int component=0, uiString *errmsg=nullptr)
 
bool readFrom (const IOObj &, const int tracenr, const char *linename, int comp, uiString *errmsg=nullptr)
 
bool readFrom (const IOObj &, const TrcKey &, int component=0, uiString *errmsg=nullptr)
 
bool readFrom (const IOObj &, SeisPSReader &rdr, const BinID &, int component=0, uiString *errmsg=nullptr)
 Will use the reader geomID.
 
bool readFrom (const IOObj &, SeisPSReader &rdr, const TrcKey &, int component=0, uiString *errmsg=nullptr)
 
bool readFrom (const MultiID &, const BinID &, int component=0, uiString *errmsg=nullptr)
 
bool readFrom (const MultiID &, const int tracenr, const char *linename, int comp, uiString *errmsg=nullptr)
 
bool readFrom (const MultiID &, const TrcKey &, int component=0, uiString *errmsg=nullptr)
 
GathersetAzimuthAngleType (OD::AngleType)
 
void setAzimuths (const TypeSet< float > &azimuths)
 
GathersetBinID (const BinID &)
 
GathersetCorrected (bool yn)
 
bool setFromTrcBuf (SeisTrcBuf &, int comp, bool iscorrected, Seis::OffsetType, const ZDomain::Info &, bool snapzrangetosi=false)
 
bool setFromTrcBuf (SeisTrcBuf &, int comp, bool iscorrected, Seis::OffsetType, OD::AngleType, const ZDomain::Info &, bool snapzrangetosi=false)
 
bool setFromTrcBuf (SeisTrcBuf &, int comp, const GatherSetDataPack &, bool snapzrangetosi=false)
 
GathersetOffsetType (Seis::OffsetType)
 
GathersetTrcKey (const TrcKey &tk)
 
GathersetZDomain (const ZDomain::Info &) override
 
GathersetZRange (const ZSampling &zrg)
 
const ZSamplingzRange () const
 
- Public Member Functions inherited from FlatDataPack
 FlatDataPack (const char *categry, Array2D< float > *)
 Array2D become mine (of course)
 
 FlatDataPack (const FlatDataPack &)
 
virtual Array2D< float > & data ()
 
const Array2D< float > & data () const
 
virtual bool dimValuesInInt (const uiString &key, bool dim0) const
 
void dumpInfo (StringPairSet &) const override
 
virtual void getAltDimKeys (uiStringSet &, bool dim0) const
 First one is 'default'.
 
virtual void getAltDimKeysUnitLbls (uiStringSet &, bool dim0, bool abbreviated=true, bool withparentheses=true) const
 
virtual double getAltDimValue (int ikey, bool dim0, int idim0) const
 
virtual float getPosDistance (bool dim0, float posfidx) const
 
bool isOK () const override
 
virtual bool isVertical () const
 
float nrKBytes () const override
 
virtual FlatPosDataposData ()
 
const FlatPosDataposData () const
 
virtual bool posDataIsCoord () const
 
virtual int size (bool dim0) const
 
- Public Member Functions inherited from ZDataPack
ZDataPacksetZDomain (const ZDataPack &)
 
virtual const ZDomain::InfozDomain () const
 
bool zInFeet () const
 
bool zInMeter () const
 
bool zIsTime () const
 
const UnitOfMeasurezUnit () const
 
- Public Member Functions inherited from DataPack
virtual const char * category () const
 
FullID fullID (DataPackMgrID mgrid) const
 
DataPackID id () const
 
DataPackobtain ()
 
void release ()
 
Threads::LockupdateLock () const
 
- Public Member Functions inherited from SharedObject
 SharedObject (const char *nm=nullptr)
 
- Public Member Functions inherited from NamedCallBacker
 NamedCallBacker (const char *nm=nullptr)
 
 NamedCallBacker (const NamedCallBacker &)=delete
 
 ~NamedCallBacker ()
 
virtual Notifier< NamedCallBacker > & objectToBeDeleted () const
 
NamedCallBackeroperator= (const NamedCallBacker &)=delete
 
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.
 
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.
 
CallBackeroperator= (const CallBacker &)=delete
 
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.
 
int nrRefs () const
 Only for expert use.
 
void ref () const
 
bool refIfReffed () const
 Don't use in production, for debugging.
 
void removeObserver (WeakPtrBase *obs)
 Not for normal use. May become private.
 
bool tryRef () const
 Not for normal use. May become private.
 
void unRef () const
 
void unRefNoDelete () const
 

Static Public Member Functions

static bool getVelocityID (const MultiID &stor, MultiID &vid)
 
static int offsetDim ()
 
static const char * sDataPackCategory ()
 
static const char * sKeyPostStackDataID ()
 
static const char * sKeyStaticsID ()
 
static int zDim ()
 
- 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

 ~Gather ()
 
- Protected Member Functions inherited from FlatDataPack
 FlatDataPack (const char *category)
 
 ~FlatDataPack ()
 
- Protected Member Functions inherited from ZDataPack
 ZDataPack (const char *categry)
 
 ZDataPack (const ZDataPack &)
 
 ~ZDataPack ()
 
const ZDomain::InfozDomain (bool display) const
 
const UnitOfMeasurezUnit (bool display) const
 
- 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
 ~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

OD::AngleType azimuthangletype_ = OD::AngleType::Degrees
 
TypeSet< float > azimuths_
 
Coord coord_
 
bool iscorr_ = true
 
Seis::OffsetType offsettype_
 
MultiID staticsmid_
 
MultiID storagemid_
 
TrcKey tk_
 
MultiID velocitymid_
 
ZSampling zrg_
 
- Protected Attributes inherited from FlatDataPack
Array2D< float > * arr2d_ = nullptr
 
FlatPosDataposdata_
 
- 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_
 

Private Member Functions

uiString dimName (bool dim0) const override
 
const UnitOfMeasuredimUnit (bool dim0, bool display) const override
 
uiString dimUnitLbl (bool dim0, bool display, bool abbreviated=true, bool withparentheses=true) const override
 
void getAuxInfo (int itrc, int idim1, IOPar &) const override
 
Coord3 getCoord (int itrc, int isamp) const override
 int,int = Array2D position
 
TrcKey getTrcKey (int, int) const override
 
double getZ (int itrc, int isamp) const override
 overload to set Z also in getCoord
 

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
 
static float sKb2MbFac ()
 1 / 1024
 

Detailed Description

PreStack gather.

<>

Constructor & Destructor Documentation

◆ Gather() [1/4]

PreStack::Gather::Gather ( )

◆ Gather() [2/4]

PreStack::Gather::Gather ( const Gather & )

◆ Gather() [3/4]

PreStack::Gather::Gather ( const FlatPosData & ,
Seis::OffsetType ,
OD::AngleType ,
const ZDomain::Info &  )

◆ Gather() [4/4]

PreStack::Gather::Gather ( const FlatPosData & ,
Seis::OffsetType ,
const ZDomain::Info &  )

◆ ~Gather()

PreStack::Gather::~Gather ( )
protected

Member Function Documentation

◆ azimuthAngleType()

OD::AngleType PreStack::Gather::azimuthAngleType ( ) const

◆ detectInnerMutes()

void PreStack::Gather::detectInnerMutes ( int * depths,
int taperlen = 0 ) const

◆ detectOuterMutes()

void PreStack::Gather::detectOuterMutes ( int * depths,
int taperlen = 0 ) const

For each trace, find the depth where the last outer-mute-affecte value is

◆ dimName()

uiString PreStack::Gather::dimName ( bool dim0) const
overrideprivatevirtual

Reimplemented from FlatDataPack.

◆ dimUnit()

const UnitOfMeasure * PreStack::Gather::dimUnit ( bool dim0,
bool display ) const
overrideprivatevirtual

Reimplemented from FlatDataPack.

◆ dimUnitLbl()

uiString PreStack::Gather::dimUnitLbl ( bool dim0,
bool display,
bool abbreviated = true,
bool withparentheses = true ) const
overrideprivatevirtual

Reimplemented from FlatDataPack.

◆ getAuxInfo()

void PreStack::Gather::getAuxInfo ( int itrc,
int idim1,
IOPar &  ) const
overrideprivatevirtual

Reimplemented from FlatDataPack.

◆ getAzimuth()

float PreStack::Gather::getAzimuth ( int ) const

◆ getAzimuths()

void PreStack::Gather::getAzimuths ( TypeSet< float > & azimuths) const
inline

◆ getBinID()

const BinID & PreStack::Gather::getBinID ( ) const

◆ getCoord() [1/2]

const Coord & PreStack::Gather::getCoord ( ) const
inline

◆ getCoord() [2/2]

Coord3 PreStack::Gather::getCoord ( int ,
int  ) const
overrideprivatevirtual

int,int = Array2D position

Reimplemented from FlatDataPack.

◆ getOffset()

float PreStack::Gather::getOffset ( int ) const

◆ getOffsetAzimuth()

OffsetAzimuth PreStack::Gather::getOffsetAzimuth ( int ) const

◆ getSeis2DName()

const char * PreStack::Gather::getSeis2DName ( ) const

◆ getSeis2DTraceNr()

int PreStack::Gather::getSeis2DTraceNr ( ) const

◆ getStaticsID()

const MultiID & PreStack::Gather::getStaticsID ( ) const
inline

◆ getStorageID()

const MultiID & PreStack::Gather::getStorageID ( ) const
inline

◆ getStoredID()

const MultiID & PreStack::Gather::getStoredID ( ) const
inline

◆ getTrcKey() [1/2]

const TrcKey & PreStack::Gather::getTrcKey ( ) const
inline

◆ getTrcKey() [2/2]

TrcKey PreStack::Gather::getTrcKey ( int ,
int  ) const
overrideprivatevirtual

Reimplemented from FlatDataPack.

◆ getVelocityID() [1/2]

const MultiID & PreStack::Gather::getVelocityID ( ) const
inline

◆ getVelocityID() [2/2]

static bool PreStack::Gather::getVelocityID ( const MultiID & stor,
MultiID & vid )
static

◆ getZ()

double PreStack::Gather::getZ ( int ,
int  ) const
overrideprivatevirtual

overload to set Z also in getCoord

Reimplemented from FlatDataPack.

◆ is2D()

bool PreStack::Gather::is2D ( ) const
inline

◆ is3D()

bool PreStack::Gather::is3D ( ) const
inline

◆ isCorrected()

bool PreStack::Gather::isCorrected ( ) const

◆ isLoaded()

bool PreStack::Gather::isLoaded ( ) const
inline

◆ isOffsetAngle()

bool PreStack::Gather::isOffsetAngle ( ) const

◆ isOffsetInFeet()

bool PreStack::Gather::isOffsetInFeet ( ) const

◆ isOffsetInMeters()

bool PreStack::Gather::isOffsetInMeters ( ) const

◆ isSynthetic()

bool PreStack::Gather::isSynthetic ( ) const
inline

◆ offsetDim()

static int PreStack::Gather::offsetDim ( )
inlinestatic

◆ offsetType()

Seis::OffsetType PreStack::Gather::offsetType ( ) const

◆ operator=()

Gather & PreStack::Gather::operator= ( const Gather & )
delete

◆ readFrom() [1/8]

bool PreStack::Gather::readFrom ( const IOObj & ,
const BinID & ,
int component = 0,
uiString * errmsg = nullptr )

◆ readFrom() [2/8]

bool PreStack::Gather::readFrom ( const IOObj & ,
const int tracenr,
const char * linename,
int comp,
uiString * errmsg = nullptr )

◆ readFrom() [3/8]

bool PreStack::Gather::readFrom ( const IOObj & ,
const TrcKey & ,
int component = 0,
uiString * errmsg = nullptr )

◆ readFrom() [4/8]

bool PreStack::Gather::readFrom ( const IOObj & ,
SeisPSReader & rdr,
const BinID & ,
int component = 0,
uiString * errmsg = nullptr )

Will use the reader geomID.

◆ readFrom() [5/8]

bool PreStack::Gather::readFrom ( const IOObj & ,
SeisPSReader & rdr,
const TrcKey & ,
int component = 0,
uiString * errmsg = nullptr )

◆ readFrom() [6/8]

bool PreStack::Gather::readFrom ( const MultiID & ,
const BinID & ,
int component = 0,
uiString * errmsg = nullptr )

◆ readFrom() [7/8]

bool PreStack::Gather::readFrom ( const MultiID & ,
const int tracenr,
const char * linename,
int comp,
uiString * errmsg = nullptr )

◆ readFrom() [8/8]

bool PreStack::Gather::readFrom ( const MultiID & ,
const TrcKey & ,
int component = 0,
uiString * errmsg = nullptr )

◆ sDataPackCategory()

static const char * PreStack::Gather::sDataPackCategory ( )
static

◆ setAzimuthAngleType()

Gather & PreStack::Gather::setAzimuthAngleType ( OD::AngleType )

◆ setAzimuths()

void PreStack::Gather::setAzimuths ( const TypeSet< float > & azimuths)
inline

◆ setBinID()

Gather & PreStack::Gather::setBinID ( const BinID & )

◆ setCorrected()

Gather & PreStack::Gather::setCorrected ( bool yn)

◆ setFromTrcBuf() [1/3]

bool PreStack::Gather::setFromTrcBuf ( SeisTrcBuf & ,
int comp,
bool iscorrected,
Seis::OffsetType ,
const ZDomain::Info & ,
bool snapzrangetosi = false )

◆ setFromTrcBuf() [2/3]

bool PreStack::Gather::setFromTrcBuf ( SeisTrcBuf & ,
int comp,
bool iscorrected,
Seis::OffsetType ,
OD::AngleType ,
const ZDomain::Info & ,
bool snapzrangetosi = false )

◆ setFromTrcBuf() [3/3]

bool PreStack::Gather::setFromTrcBuf ( SeisTrcBuf & ,
int comp,
const GatherSetDataPack & ,
bool snapzrangetosi = false )

◆ setOffsetType()

Gather & PreStack::Gather::setOffsetType ( Seis::OffsetType )

◆ setTrcKey()

Gather & PreStack::Gather::setTrcKey ( const TrcKey & tk)
inline

◆ setZDomain()

Gather & PreStack::Gather::setZDomain ( const ZDomain::Info & )
overridevirtual

Reimplemented from ZDataPack.

◆ setZRange()

Gather & PreStack::Gather::setZRange ( const ZSampling & zrg)
inline

◆ sKeyPostStackDataID()

static const char * PreStack::Gather::sKeyPostStackDataID ( )
static

◆ sKeyStaticsID()

static const char * PreStack::Gather::sKeyStaticsID ( )
static

◆ zDim()

static int PreStack::Gather::zDim ( )
inlinestatic

◆ zRange()

const ZSampling & PreStack::Gather::zRange ( ) const
inline

Member Data Documentation

◆ azimuthangletype_

OD::AngleType PreStack::Gather::azimuthangletype_ = OD::AngleType::Degrees
protected

◆ azimuths_

TypeSet<float> PreStack::Gather::azimuths_
protected

◆ coord_

Coord PreStack::Gather::coord_
protected

◆ iscorr_

bool PreStack::Gather::iscorr_ = true
protected

◆ offsettype_

Seis::OffsetType PreStack::Gather::offsettype_
protected

◆ staticsmid_

MultiID PreStack::Gather::staticsmid_
protected

◆ storagemid_

MultiID PreStack::Gather::storagemid_
protected

◆ tk_

TrcKey PreStack::Gather::tk_
protected

◆ velocitymid_

MultiID PreStack::Gather::velocitymid_
protected

◆ zrg_

ZSampling PreStack::Gather::zrg_
protected

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