OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ZAxisTransform Class Referenceabstract

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

Inheritance diagram for ZAxisTransform:
[legend]

Public Member Functions

 mDefineFactoryInClass (ZAxisTransform, factory)
 
virtual bool isOK () const
 
virtual uiString errMsg () const
 
virtual bool needsVolumeOfInterest () const
 
virtual int addVolumeOfInterest (const TrcKeyZSampling &, bool zistrans=false)
 
virtual void setVolumeOfInterest (int volid, const TrcKeyZSampling &, bool zistrans=false)
 
virtual void removeVolumeOfInterest (int volid)
 
virtual bool loadDataIfMissing (int volid, TaskRunner *=0)
 
virtual bool canTransformSurv (Pos::SurvID) const =0
 
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 Interval< float > getZInterval (bool from) const =0
 
virtual float getZIntervalCenter (bool from) const
 
virtual float getGoodZStep () const
 
ZDomain::InfofromZDomainInfo ()
 
ZDomain::InfotoZDomainInfo ()
 
const ZDomain::InfofromZDomainInfo () const
 
const ZDomain::InfotoZDomainInfo () const
 
const char * fromZDomainKey () const
 
const char * toZDomainKey () const
 
virtual float toZScale () const
 
virtual float zScale () const
 
virtual NotifierAccesschangeNotifier ()
 
virtual void fillPar (IOPar &) const
 
virtual bool usePar (const IOPar &)
 
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 transformBack (const BinID &, const SamplingData< float > &, int sz, float *res) const
 
float transformBack (const BinIDValue &) const
 
float transformBack (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 transformBack2D (const char *linenm, int trcnr, const SamplingData< float > &, int sz, float *res) const
 
float transformBack2D (const char *linenm, int trcnr, float z) const
 

Static Public Member Functions

static ZAxisTransformcreate (const IOPar &)
 

Protected Member Functions

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

Protected Attributes

ZDomain::Infotozdomaininfo_
 
ZDomain::Infofromzdomaininfo_
 
uiString errmsg_
 

Private Member Functions

 mRefCountImpl (ZAxisTransform)
 

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 ( const ZDomain::Def from,
const ZDomain::Def to 
)
protected

Member Function Documentation

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

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

virtual bool ZAxisTransform::canTransformSurv ( Pos::SurvID  ) const
pure virtual
virtual NotifierAccess* ZAxisTransform::changeNotifier ( )
inlinevirtual

Reimplemented in EM::HorizonZTransform.

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

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

virtual uiString ZAxisTransform::errMsg ( ) const
inlinevirtual
virtual void ZAxisTransform::fillPar ( IOPar ) const
virtual
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)
const ZDomain::Info& ZAxisTransform::fromZDomainInfo ( ) const
const char* ZAxisTransform::fromZDomainKey ( ) const
virtual float ZAxisTransform::getGoodZStep ( ) const
virtual
Returns
a position within the z-range that is a logical 'center'

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

virtual Interval<float> ZAxisTransform::getZInterval ( bool  from) const
pure virtual
virtual float ZAxisTransform::getZIntervalCenter ( bool  from) const
virtual
Returns
the z interval in either to or from domain.

Reimplemented in EM::HorizonZTransform.

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

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

ZAxisTransform::mDefineFactoryInClass ( ZAxisTransform  ,
factory   
)
ZAxisTransform::mRefCountImpl ( ZAxisTransform  )
private
virtual bool ZAxisTransform::needsVolumeOfInterest ( ) const
inlinevirtual
virtual void ZAxisTransform::removeVolumeOfInterest ( int  volid)
virtual

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

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

Reimplemented in Depth2TimeStretcher, and Time2DepthStretcher.

ZDomain::Info& ZAxisTransform::toZDomainInfo ( )
inline
const ZDomain::Info& ZAxisTransform::toZDomainInfo ( ) const
const char* ZAxisTransform::toZDomainKey ( ) const
virtual float ZAxisTransform::toZScale ( ) const
virtual
Returns
the target domain z-scale.
virtual void ZAxisTransform::transform ( const BinID ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual
float ZAxisTransform::transform ( const BinIDValue ) const
float ZAxisTransform::transform ( const Coord3 ) const
virtual void ZAxisTransform::transform2D ( const char *  linenm,
int  trcnr,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual
float ZAxisTransform::transform2D ( const char *  linenm,
int  trcnr,
float  z 
) const
virtual void ZAxisTransform::transformBack ( const BinID ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual
float ZAxisTransform::transformBack ( const BinIDValue ) const
float ZAxisTransform::transformBack ( const Coord3 ) const
virtual void ZAxisTransform::transformBack2D ( const char *  linenm,
int  trcnr,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
virtual
float ZAxisTransform::transformBack2D ( const char *  linenm,
int  trcnr,
float  z 
) const
virtual void ZAxisTransform::transformTrc ( const TrcKey ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
pure virtual
float ZAxisTransform::transformTrc ( const TrcKey ,
float  z 
) const
virtual void ZAxisTransform::transformTrcBack ( const TrcKey ,
const SamplingData< float > &  ,
int  sz,
float *  res 
) const
pure virtual
float ZAxisTransform::transformTrcBack ( const TrcKey ,
float  z 
) const
virtual bool ZAxisTransform::usePar ( const IOPar )
virtual
virtual float ZAxisTransform::zScale ( ) const
inlinevirtual

Old name, use toZScale instead.

Member Data Documentation

uiString ZAxisTransform::errmsg_
mutableprotected
ZDomain::Info& ZAxisTransform::fromzdomaininfo_
protected
ZDomain::Info& ZAxisTransform::tozdomaininfo_
protected

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