OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
VelocityStretcherNew Class Reference
Inheritance diagram for VelocityStretcherNew:
[legend]

Public Member Functions

float getGoodZStep () const override
 
MultiID getVelID () const
 
Interval< float > getZInterval (bool from) const
 
ZSampling getZInterval (bool from, bool makenice) const
 
bool isOK () const override
 
bool setVelData (const MultiID &)
 
const UnitOfMeasurevelUnit () const
 
- Public Member Functions inherited from ZAxisTransform
virtual NotifierAccesschangeNotifier ()
 
virtual uiString errMsg () const
 
ZDomain::InfofromZDomainInfo ()
 
const ZDomain::InfofromZDomainInfo () const
 
const char * fromZDomainKey () const
 
mDeprecatedDef const ScalergetVelUnitOfMeasure () const
 
virtual mDeprecatedDef float getZIntervalCenter (bool from) const
 
virtual bool isReferenceHorizon (const MultiID &horid, float &refz) const
 
mDeprecatedDef void setVelUnitOfMeasure (const Scaler *)
 
ZDomain::InfotoZDomainInfo ()
 
const ZDomain::InfotoZDomainInfo () const
 
const char * toZDomainKey () const
 
virtual float toZScale () const
 
virtual void transform (const BinID &, const SamplingData< float > &, int sz, float *res) const
 
float transform (const BinIDValue &) const
 
float transform (const Coord3 &) const
 
virtual void transform2D (const char *linenm, int trcnr, const SamplingData< float > &, int sz, float *res) const
 
float transform2D (const char *linenm, int trcnr, float z) const
 
virtual void transformBack (const BinID &, const SamplingData< float > &, int sz, float *res) const
 
float transformBack (const BinIDValue &) const
 
float transformBack (const Coord3 &) const
 
virtual void transformBack2D (const char *linenm, int trcnr, const SamplingData< float > &, int sz, float *res) const
 
float transformBack2D (const char *linenm, int trcnr, float z) const
 
float transformTrc (const TrcKey &, float z) const
 
float transformTrcBack (const TrcKey &, float z) const
 
virtual float zScale () 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 Interval< float > getDefaultVAvg (const UnitOfMeasure *)
 
static bool getRange (const IOPar &, const VelocityDesc &, bool top, Interval< float > &)
 
static ZSampling getWorkZSampling (const ZSampling &, const ZDomain::Info &from, const ZDomain::Info &to, const Interval< float > &topvavg, const Interval< float > &botvavg, const UnitOfMeasure *vavguom, bool makenice=true)
 
static ZSampling getWorkZSampling (const ZSampling &, const ZDomain::Info &from, const ZDomain::Info &to, const IOPar &, bool makenice=true)
 
static void setRange (const Interval< float > &, const VelocityDesc &, bool top, IOPar &)
 
- Static Public Member Functions inherited from ZAxisTransform
static ZAxisTransformcreate (const IOPar &)
 
- 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

 VelocityStretcherNew (const ZDomain::Def &from, const ZDomain::Def &to, const MultiID &)
 
 ~VelocityStretcherNew ()
 
- Protected Member Functions inherited from ZAxisTransform
 ZAxisTransform (const ZDomain::Def &from, const ZDomain::Def &to)
 
virtual ~ZAxisTransform ()
 
- 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 &)
 

Private Member Functions

int addVolumeOfInterest (const TrcKeyZSampling &, bool zistrans) override
 
bool canTransformSurv (OD::GeomSystem) const override
 
void doTransform (const TrcKey &, const SamplingData< float > &, const ZDomain::Info &sdzinfo, int sz, float *) const
 
void fillPar (IOPar &) const override
 
Interval< float > getDefaultVAvg () const
 
Interval< float > getInterval (const BinID &, int voiidx, const ZDomain::Info &) const
 
ZSampling getWorkZSampling (const ZSampling &, const ZDomain::Info &from, const ZDomain::Info &to) const
 
ZSampling getZInterval (const ZSampling &, const ZDomain::Info &from, const ZDomain::Info &to, bool makenice=true) const
 
bool loadDataIfMissing (int, TaskRunner *=nullptr) override
 
bool needsVolumeOfInterest () const override
 
void releaseData ()
 
void removeVolumeOfInterest (int) override
 
void setVolumeOfInterest (int, const TrcKeyZSampling &, bool zistrans) override
 
void transformTrc (const TrcKey &, const SamplingData< float > &, int, float *) const override
 
void transformTrcBack (const TrcKey &, const SamplingData< float > &, int, float *) const override
 
bool usePar (const IOPar &) override
 

Static Private Member Functions

static ZSampling getWorkZSampling (const ZSampling &, const ZDomain::Def &from, const ZDomain::Def &to, const Interval< float > &topvavg, const Interval< float > &botvavg, const UnitOfMeasure *vavguom, bool makenice=true)=delete
 
static ZSampling getWorkZSampling (const ZSampling &, const ZDomain::Def &from, const ZDomain::Def &to, const IOPar &, bool makenice=true)=delete
 
static const char * sKeyBotVavg ()
 
static const char * sKeyTopVavg ()
 

Private Attributes

Interval< float > botvavg_
 
Interval< float > topvavg_
 
VelocityDescveldesc_
 
SeisTrcReadervelreader_ = nullptr
 
const ZDomain::Infovelzinfo_ = nullptr
 
ObjectSet< Array3D< float > > voidata_
 
TypeSet< int > voiids_
 
ObjectSet< const ZDomain::Infovoirevzinfos_
 
TypeSet< TrcKeyZSamplingvoivols_
 
ObjectSet< const ZDomain::Infovoizinfos_
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 
- Protected Attributes inherited from ZAxisTransform
uiString errmsg_
 
ZDomain::Infofromzdomaininfo_
 
ZDomain::Infotozdomaininfo_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Detailed Description

Base class for ZAxisstretchers that convert between time and depth using a 2D/3D velocity model on disk.

<>

Constructor & Destructor Documentation

◆ VelocityStretcherNew()

VelocityStretcherNew::VelocityStretcherNew ( const ZDomain::Def from,
const ZDomain::Def to,
const MultiID  
)
protected

◆ ~VelocityStretcherNew()

VelocityStretcherNew::~VelocityStretcherNew ( )
protected

Member Function Documentation

◆ addVolumeOfInterest()

int VelocityStretcherNew::addVolumeOfInterest ( const TrcKeyZSampling ,
bool  zistrans 
)
overrideprivatevirtual
Returns
id of new Volume of Interest.

Reimplemented from ZAxisTransform.

◆ canTransformSurv()

bool VelocityStretcherNew::canTransformSurv ( OD::GeomSystem  ) const
inlineoverrideprivatevirtual

Implements ZAxisTransform.

◆ doTransform()

void VelocityStretcherNew::doTransform ( const TrcKey ,
const SamplingData< float > &  ,
const ZDomain::Info sdzinfo,
int  sz,
float *   
) const
private

◆ fillPar()

void VelocityStretcherNew::fillPar ( IOPar ) const
overrideprivatevirtual

Reimplemented from ZAxisTransform.

◆ getDefaultVAvg() [1/2]

Interval<float> VelocityStretcherNew::getDefaultVAvg ( ) const
private

◆ getDefaultVAvg() [2/2]

static Interval<float> VelocityStretcherNew::getDefaultVAvg ( const UnitOfMeasure )
static

◆ getGoodZStep()

float VelocityStretcherNew::getGoodZStep ( ) const
overridevirtual
Returns
a position within the z-range that is a logical 'center'

Reimplemented from ZAxisTransform.

◆ getInterval()

Interval<float> VelocityStretcherNew::getInterval ( const BinID ,
int  voiidx,
const ZDomain::Info  
) const
private

◆ getRange()

static bool VelocityStretcherNew::getRange ( const IOPar ,
const VelocityDesc ,
bool  top,
Interval< float > &   
)
static

◆ getVelID()

MultiID VelocityStretcherNew::getVelID ( ) const

◆ getWorkZSampling() [1/5]

static ZSampling VelocityStretcherNew::getWorkZSampling ( const ZSampling ,
const ZDomain::Def from,
const ZDomain::Def to,
const Interval< float > &  topvavg,
const Interval< float > &  botvavg,
const UnitOfMeasure vavguom,
bool  makenice = true 
)
staticprivatedelete

◆ getWorkZSampling() [2/5]

static ZSampling VelocityStretcherNew::getWorkZSampling ( const ZSampling ,
const ZDomain::Def from,
const ZDomain::Def to,
const IOPar ,
bool  makenice = true 
)
staticprivatedelete

◆ getWorkZSampling() [3/5]

ZSampling VelocityStretcherNew::getWorkZSampling ( const ZSampling ,
const ZDomain::Info from,
const ZDomain::Info to 
) const
private

◆ getWorkZSampling() [4/5]

static ZSampling VelocityStretcherNew::getWorkZSampling ( const ZSampling ,
const ZDomain::Info from,
const ZDomain::Info to,
const Interval< float > &  topvavg,
const Interval< float > &  botvavg,
const UnitOfMeasure vavguom,
bool  makenice = true 
)
static

◆ getWorkZSampling() [5/5]

static ZSampling VelocityStretcherNew::getWorkZSampling ( const ZSampling ,
const ZDomain::Info from,
const ZDomain::Info to,
const IOPar ,
bool  makenice = true 
)
static

◆ getZInterval() [1/3]

Interval<float> VelocityStretcherNew::getZInterval ( bool  from) const
virtual

Implements ZAxisTransform.

◆ getZInterval() [2/3]

ZSampling VelocityStretcherNew::getZInterval ( bool  from,
bool  makenice 
) const

◆ getZInterval() [3/3]

ZSampling VelocityStretcherNew::getZInterval ( const ZSampling ,
const ZDomain::Info from,
const ZDomain::Info to,
bool  makenice = true 
) const
private

◆ isOK()

bool VelocityStretcherNew::isOK ( ) const
overridevirtual

Reimplemented from ZAxisTransform.

◆ loadDataIfMissing()

bool VelocityStretcherNew::loadDataIfMissing ( int  ,
TaskRunner = nullptr 
)
overrideprivatevirtual

Reimplemented from ZAxisTransform.

◆ needsVolumeOfInterest()

bool VelocityStretcherNew::needsVolumeOfInterest ( ) const
inlineoverrideprivatevirtual

Reimplemented from ZAxisTransform.

◆ releaseData()

void VelocityStretcherNew::releaseData ( )
private

◆ removeVolumeOfInterest()

void VelocityStretcherNew::removeVolumeOfInterest ( int  )
overrideprivatevirtual

Reimplemented from ZAxisTransform.

◆ setRange()

static void VelocityStretcherNew::setRange ( const Interval< float > &  ,
const VelocityDesc ,
bool  top,
IOPar  
)
static

◆ setVelData()

bool VelocityStretcherNew::setVelData ( const MultiID )

◆ setVolumeOfInterest()

void VelocityStretcherNew::setVolumeOfInterest ( int  ,
const TrcKeyZSampling ,
bool  zistrans 
)
overrideprivatevirtual

Reimplemented from ZAxisTransform.

◆ sKeyBotVavg()

static const char* VelocityStretcherNew::sKeyBotVavg ( )
inlinestaticprivate

◆ sKeyTopVavg()

static const char* VelocityStretcherNew::sKeyTopVavg ( )
inlinestaticprivate

◆ transformTrc()

void VelocityStretcherNew::transformTrc ( const TrcKey ,
const SamplingData< float > &  ,
int  ,
float *   
) const
overrideprivatevirtual

Implements ZAxisTransform.

◆ transformTrcBack()

void VelocityStretcherNew::transformTrcBack ( const TrcKey ,
const SamplingData< float > &  ,
int  ,
float *   
) const
overrideprivatevirtual

Implements ZAxisTransform.

◆ usePar()

bool VelocityStretcherNew::usePar ( const IOPar )
overrideprivatevirtual

Reimplemented from ZAxisTransform.

◆ velUnit()

const UnitOfMeasure* VelocityStretcherNew::velUnit ( ) const

Member Data Documentation

◆ botvavg_

Interval<float> VelocityStretcherNew::botvavg_
private

◆ topvavg_

Interval<float> VelocityStretcherNew::topvavg_
private

◆ veldesc_

VelocityDesc& VelocityStretcherNew::veldesc_
private

◆ velreader_

SeisTrcReader* VelocityStretcherNew::velreader_ = nullptr
private

◆ velzinfo_

const ZDomain::Info* VelocityStretcherNew::velzinfo_ = nullptr
private

◆ voidata_

ObjectSet<Array3D<float> > VelocityStretcherNew::voidata_
private

◆ voiids_

TypeSet<int> VelocityStretcherNew::voiids_
private

◆ voirevzinfos_

ObjectSet<const ZDomain::Info> VelocityStretcherNew::voirevzinfos_
private

◆ voivols_

TypeSet<TrcKeyZSampling> VelocityStretcherNew::voivols_
private

◆ voizinfos_

ObjectSet<const ZDomain::Info> VelocityStretcherNew::voizinfos_
private

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