OpendTect  6.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected 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 (Pos::SurvID) 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
 
virtual Interval< float > getZInterval (bool from) const =0
 
virtual float getZIntervalCenter (bool from) const
 
virtual bool isOK () const
 
virtual bool loadDataIfMissing (int volid, TaskRunner *=0)
 
virtual bool needsVolumeOfInterest () const
 
virtual void removeVolumeOfInterest (int volid)
 
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
 

Static Public Member Functions

static ZAxisTransformcreate (const IOPar &)
 

Protected Member Functions

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

Protected Attributes

uiString errmsg_
 
ZDomain::Infofromzdomaininfo_
 
ZDomain::Infotozdomaininfo_
 

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

Member Function Documentation

◆ addVolumeOfInterest()

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

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

◆ canTransformSurv()

virtual bool ZAxisTransform::canTransformSurv ( Pos::SurvID  ) 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
Returns
a reasonable step in the transformed domain. Default implementation gives the same step as in SI() (i.e. non transformed domain)

◆ fromZDomainInfo() [2/2]

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

◆ fromZDomainKey()

const char* ZAxisTransform::fromZDomainKey ( ) const

◆ getGoodZStep()

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

Reimplemented in WellT2DTransform, LinearD2TTransform, LinearT2DTransform, Depth2TimeStretcher, Time2DepthStretcher, SimpleD2TTransform, and SimpleT2DTransform.

◆ getZInterval()

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

◆ getZIntervalCenter()

virtual 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

◆ loadDataIfMissing()

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

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

◆ needsVolumeOfInterest()

virtual bool ZAxisTransform::needsVolumeOfInterest ( ) const
inlinevirtual

◆ removeVolumeOfInterest()

virtual void ZAxisTransform::removeVolumeOfInterest ( int  volid)
virtual

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

◆ setVolumeOfInterest()

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

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

◆ 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

◆ tozdomaininfo_

ZDomain::Info& ZAxisTransform::tozdomaininfo_
protected

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