OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
ZAxisTransform Class Referenceabstract

Base class for z-axis transforms. More...

Inheritance diagram for ZAxisTransform:
[legend]

Public Member Functions

virtual int addVolumeOfInterest (const TrcKeyZSampling &, bool zistrans=false)
 
virtual bool canTransformSurv (OD::GeomSystem) const =0
 
virtual NotifierAccesschangeNotifier ()
 
virtual uiString errMsg () const
 
virtual void fillPar (IOPar &) const
 
ZDomain::InfofromZDomainInfo ()
 
const ZDomain::InfofromZDomainInfo () const
 
const char * fromZDomainKey () const
 
virtual float getGoodZStep () const
 
mDeprecatedDef const ScalergetVelUnitOfMeasure () const
 
virtual Interval< float > getZInterval (bool from) const =0
 
virtual mDeprecatedDef float getZIntervalCenter (bool from) const
 
virtual bool isOK () const
 
virtual bool isReferenceHorizon (const MultiID &horid, float &refz) const
 
virtual bool loadDataIfMissing (int volid, TaskRunner *=0)
 
virtual bool needsVolumeOfInterest () const
 
virtual void removeVolumeOfInterest (int volid)
 
mDeprecatedDef void setVelUnitOfMeasure (const Scaler *)
 
virtual void setVolumeOfInterest (int volid, const TrcKeyZSampling &, bool zistrans=false)
 
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
 
virtual void transformTrc (const TrcKey &, const SamplingData< float > &, int sz, float *res) const =0
 
float transformTrc (const TrcKey &, float z) const
 
virtual void transformTrcBack (const TrcKey &, const SamplingData< float > &, int sz, float *res) const =0
 
float transformTrcBack (const TrcKey &, float z) const
 
virtual bool usePar (const IOPar &)
 
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 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

 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 &)
 

Protected Attributes

uiString errmsg_
 
ZDomain::Infofromzdomaininfo_
 
ZDomain::Infotozdomaininfo_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Private Attributes

const Scalerscaler_ = nullptr
 

Additional Inherited Members

- Public Types inherited from ObjectWithName
typedef OD::String name_type
 

Detailed Description

Base class for z-axis transforms.

ZAxisTransform is the base class for z stretching in different ways. The z-stretch may be dependent on the location (binid). The various transforms can be retrieved from factory ZATF().

<>

Constructor & Destructor Documentation

◆ ZAxisTransform()

ZAxisTransform::ZAxisTransform ( const ZDomain::Def from,
const ZDomain::Def to 
)
protected

◆ ~ZAxisTransform()

virtual ZAxisTransform::~ZAxisTransform ( )
protectedvirtual

Member Function Documentation

◆ addVolumeOfInterest()

virtual int ZAxisTransform::addVolumeOfInterest ( const TrcKeyZSampling ,
bool  zistrans = false 
)
virtual
Returns
id of new Volume of Interest.

Reimplemented in Depth2TimeStretcher, Time2DepthStretcher, and VelocityStretcherNew.

◆ canTransformSurv()

virtual bool ZAxisTransform::canTransformSurv ( OD::GeomSystem  ) const
pure virtual

◆ changeNotifier()

virtual NotifierAccess* ZAxisTransform::changeNotifier ( )
inlinevirtual

Reimplemented in EM::HorizonZTransform.

◆ create()

static ZAxisTransform* ZAxisTransform::create ( const IOPar )
static

Result will be reffed once. It is caller's responsibility to unref.

◆ errMsg()

virtual uiString ZAxisTransform::errMsg ( ) const
inlinevirtual

◆ fillPar()

virtual void ZAxisTransform::fillPar ( IOPar ) const
virtual

◆ fromZDomainInfo() [1/2]

ZDomain::Info& ZAxisTransform::fromZDomainInfo ( )
inline

◆ fromZDomainInfo() [2/2]

const ZDomain::Info& ZAxisTransform::fromZDomainInfo ( ) const

◆ fromZDomainKey()

const char* ZAxisTransform::fromZDomainKey ( ) const

◆ getGoodZStep()

virtual float ZAxisTransform::getGoodZStep ( ) const
virtual

◆ getVelUnitOfMeasure()

mDeprecatedDef const Scaler* ZAxisTransform::getVelUnitOfMeasure ( ) const

◆ getZInterval()

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

◆ getZIntervalCenter()

virtual mDeprecatedDef float ZAxisTransform::getZIntervalCenter ( bool  from) const
virtual
Returns
the z interval in either to or from domain.

Reimplemented in EM::HorizonZTransform.

◆ isOK()

virtual bool ZAxisTransform::isOK ( ) const
inlinevirtual

◆ isReferenceHorizon()

virtual bool ZAxisTransform::isReferenceHorizon ( const MultiID horid,
float &  refz 
) const
virtual

\refz is in 'to' domain

Reimplemented in EM::HorizonZTransform.

◆ loadDataIfMissing()

virtual bool ZAxisTransform::loadDataIfMissing ( int  volid,
TaskRunner = 0 
)
virtual

◆ needsVolumeOfInterest()

virtual bool ZAxisTransform::needsVolumeOfInterest ( ) const
inlinevirtual

◆ removeVolumeOfInterest()

virtual void ZAxisTransform::removeVolumeOfInterest ( int  volid)
virtual

◆ setVelUnitOfMeasure()

mDeprecatedDef void ZAxisTransform::setVelUnitOfMeasure ( const Scaler )
Returns
a reasonable step in the transformed domain. Default implementation gives the same step as in SI() (i.e. non transformed domain)

◆ setVolumeOfInterest()

virtual void ZAxisTransform::setVolumeOfInterest ( int  volid,
const TrcKeyZSampling ,
bool  zistrans = false 
)
virtual

◆ toZDomainInfo() [1/2]

ZDomain::Info& ZAxisTransform::toZDomainInfo ( )
inline

◆ toZDomainInfo() [2/2]

const ZDomain::Info& ZAxisTransform::toZDomainInfo ( ) const

◆ toZDomainKey()

const char* ZAxisTransform::toZDomainKey ( ) const

◆ toZScale()

virtual float ZAxisTransform::toZScale ( ) const
virtual
Returns
the target domain z-scale.

◆ transform() [1/3]

virtual void ZAxisTransform::transform ( const BinID ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual

◆ transform() [2/3]

float ZAxisTransform::transform ( const BinIDValue ) const

◆ transform() [3/3]

float ZAxisTransform::transform ( const Coord3 ) const

◆ transform2D() [1/2]

virtual void ZAxisTransform::transform2D ( const char *  linenm,
int  trcnr,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual

◆ transform2D() [2/2]

float ZAxisTransform::transform2D ( const char *  linenm,
int  trcnr,
float  z 
) const

◆ transformBack() [1/3]

virtual void ZAxisTransform::transformBack ( const BinID ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual

◆ transformBack() [2/3]

float ZAxisTransform::transformBack ( const BinIDValue ) const

◆ transformBack() [3/3]

float ZAxisTransform::transformBack ( const Coord3 ) const

◆ transformBack2D() [1/2]

virtual void ZAxisTransform::transformBack2D ( const char *  linenm,
int  trcnr,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual

◆ transformBack2D() [2/2]

float ZAxisTransform::transformBack2D ( const char *  linenm,
int  trcnr,
float  z 
) const

◆ transformTrc() [1/2]

virtual void ZAxisTransform::transformTrc ( const TrcKey ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
pure virtual

◆ transformTrc() [2/2]

float ZAxisTransform::transformTrc ( const TrcKey ,
float  z 
) const

◆ transformTrcBack() [1/2]

virtual void ZAxisTransform::transformTrcBack ( const TrcKey ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
pure virtual

◆ transformTrcBack() [2/2]

float ZAxisTransform::transformTrcBack ( const TrcKey ,
float  z 
) const

◆ usePar()

virtual bool ZAxisTransform::usePar ( const IOPar )
virtual

◆ zScale()

virtual float ZAxisTransform::zScale ( ) const
inlinevirtual

Old name, use toZScale instead.

Member Data Documentation

◆ errmsg_

uiString ZAxisTransform::errmsg_
mutableprotected

◆ fromzdomaininfo_

ZDomain::Info& ZAxisTransform::fromzdomaininfo_
protected

◆ scaler_

const Scaler* ZAxisTransform::scaler_ = nullptr
private

◆ tozdomaininfo_

ZDomain::Info& ZAxisTransform::tozdomaininfo_
protected

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