OpendTect  7.0
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Well::D2TModel Class Reference

Depth to time model. More...

Inheritance diagram for Well::D2TModel:
[legend]

Public Member Functions

 D2TModel (const char *nm=nullptr)
 
 D2TModel (const D2TModel &)
 
virtual ~D2TModel ()
 
void add (float d_ah, float tm)
 
bool ensureValid (const Well::Data &, uiString &errmsg, TypeSet< double > *zvals=0, TypeSet< double > *tvals=0)
 
void getAllTime (int sz, const float *dah, const Track &, const UnitOfMeasure *in, float *twt, const UnitOfMeasure *out) const
 
float getDah (float time, const Track &) const
 
float getDepth (float time, const Track &) const
 
float getTime (float d_ah, const Track &) const
 
bool getTimeDepthModel (const Well::Data &, TimeDepthModel &) const
 
Interval< float > getTimeRange (const Interval< float > &dahrg, const Track &, const UnitOfMeasure *in, const UnitOfMeasure *out) const
 
double getVelocityForDah (float d_ah, const Track &) const
 
double getVelocityForDepth (float dpt, const Track &) const
 
double getVelocityForTwt (float twt, const Track &) const
 
bool insertAtDah (float d_ah, float t) override
 
void makeFromTrack (const Track &, float cstvel, float replvel)
 
bool operator!= (const D2TModel &) const
 
D2TModeloperator= (const D2TModel &)
 
bool operator== (const D2TModel &) const
 
float t (int idx) const
 
float * valArr ()
 
const float * valArr () const
 
float value (int idx) const override
 
- Public Member Functions inherited from Well::DahObj
virtual ~DahObj ()
 
void addToDahFrom (int fromidx, float extradah)
 
float dah (int idx) const
 
float * dahArr ()
 
const float * dahArr () const
 
Interval< float > & dahRange ()
 
Interval< float > dahRange () const
 returns Udf for empty dah_ More...
 
float dahStep (bool min_else_average) const
 
void deInterpolate ()
 Remove unnecessary points. More...
 
int indexOf (float dah) const
 
bool isEmpty () const
 
virtual void remove (int idx)
 
void removeFromDahFrom (int fromidx, float extradah)
 
virtual void setEmpty ()
 
int size () const
 
void updateDahRange ()
 
- 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
 

Static Public Member Functions

static const char * sKeyDataSrc ()
 
static const char * sKeyTimeWell ()
 known in time More...
 
- Static Public Member Functions inherited from Well::DahObj
static Notifier< DahObj > & instanceCreated ()
 
- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

Public Attributes

BufferString datasource
 
BufferString desc
 

Protected Member Functions

void eraseAux () override
 
float getDepth (float time) const
 Legacy, misleading name. Use getDah(). More...
 
bool getOldVelocityBoundsForDah (float d_ah, const Track &, Interval< double > &depths, Interval< float > &times) const
 Read legacy incorrect time-depth model. More...
 
bool getOldVelocityBoundsForTwt (float twt, const Track &, Interval< double > &depths, Interval< float > &times) const
 Read legacy incorrect time-depth model. More...
 
bool getVelocityBoundsForDah (float d_ah, const Track &, Interval< double > &depths, Interval< float > &times) const
 
bool getVelocityBoundsForTwt (float twt, const Track &, Interval< double > &depths, Interval< float > &times) const
 
int getVelocityIdx (float pos, const Track &, bool posisdah=true) const
 
void removeAux (int idx) override
 
- Protected Member Functions inherited from Well::DahObj
 DahObj (const char *nm=nullptr)
 
 DahObj (const DahObj &)
 
DahObjoperator= (const DahObj &)
 
- Protected Member Functions inherited from NamedCallBacker
void sendDelNotif () const
 

Static Protected Member Functions

static void checkReplacementVelocity (Well::Info &info, double vreplinfile, uiString &msg)
 
static void convertDepthsToMD (const Well::Track &track, const TypeSet< double > &zvals, TypeSet< float > &dahs)
 
static bool getTVDD2TModel (Well::D2TModel &d2t, const Well::Data &wll, TypeSet< double > &zvals, TypeSet< double > &tvals, uiString &errmsg, uiString &warnmsg)
 
static void shiftTimesIfNecessary (TypeSet< double > &tvals, double wllheadz, double vrepl, double origintwtinfile, uiString &msg)
 

Protected Attributes

TypeSet< float > t_
 
- Protected Attributes inherited from Well::DahObj
TypeSet< float > dah_
 
Interval< float > dahrange_
 
- Protected Attributes inherited from NamedCallBacker
Threads::Atomic< bool > delalreadytriggered_
 
Notifier< NamedCallBackerdelnotif_
 
- Protected Attributes inherited from NamedObject
BufferString name_
 

Additional Inherited Members

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

Detailed Description

Depth to time model.

<>

Constructor & Destructor Documentation

◆ D2TModel() [1/2]

Well::D2TModel::D2TModel ( const char *  nm = nullptr)

◆ D2TModel() [2/2]

Well::D2TModel::D2TModel ( const D2TModel )

◆ ~D2TModel()

virtual Well::D2TModel::~D2TModel ( )
virtual

Member Function Documentation

◆ add()

void Well::D2TModel::add ( float  d_ah,
float  tm 
)
inline

◆ checkReplacementVelocity()

static void Well::D2TModel::checkReplacementVelocity ( Well::Info info,
double  vreplinfile,
uiString msg 
)
staticprotected

◆ convertDepthsToMD()

static void Well::D2TModel::convertDepthsToMD ( const Well::Track track,
const TypeSet< double > &  zvals,
TypeSet< float > &  dahs 
)
staticprotected

◆ ensureValid()

bool Well::D2TModel::ensureValid ( const Well::Data ,
uiString errmsg,
TypeSet< double > *  zvals = 0,
TypeSet< double > *  tvals = 0 
)

Returns corrected model if necessary May eventually also correct info().replvel

◆ eraseAux()

void Well::D2TModel::eraseAux ( )
inlineoverrideprotectedvirtual

Implements Well::DahObj.

◆ getAllTime()

void Well::D2TModel::getAllTime ( int  sz,
const float *  dah,
const Track ,
const UnitOfMeasure in,
float *  twt,
const UnitOfMeasure out 
) const

◆ getDah()

float Well::D2TModel::getDah ( float  time,
const Track  
) const

◆ getDepth() [1/2]

float Well::D2TModel::getDepth ( float  time) const
inlineprotected

Legacy, misleading name. Use getDah().

◆ getDepth() [2/2]

float Well::D2TModel::getDepth ( float  time,
const Track  
) const

◆ getOldVelocityBoundsForDah()

bool Well::D2TModel::getOldVelocityBoundsForDah ( float  d_ah,
const Track ,
Interval< double > &  depths,
Interval< float > &  times 
) const
protected

Read legacy incorrect time-depth model.

◆ getOldVelocityBoundsForTwt()

bool Well::D2TModel::getOldVelocityBoundsForTwt ( float  twt,
const Track ,
Interval< double > &  depths,
Interval< float > &  times 
) const
protected

Read legacy incorrect time-depth model.

◆ getTime()

float Well::D2TModel::getTime ( float  d_ah,
const Track  
) const

◆ getTimeDepthModel()

bool Well::D2TModel::getTimeDepthModel ( const Well::Data ,
TimeDepthModel  
) const

◆ getTimeRange()

Interval<float> Well::D2TModel::getTimeRange ( const Interval< float > &  dahrg,
const Track ,
const UnitOfMeasure in,
const UnitOfMeasure out 
) const

◆ getTVDD2TModel()

static bool Well::D2TModel::getTVDD2TModel ( Well::D2TModel d2t,
const Well::Data wll,
TypeSet< double > &  zvals,
TypeSet< double > &  tvals,
uiString errmsg,
uiString warnmsg 
)
staticprotected

◆ getVelocityBoundsForDah()

bool Well::D2TModel::getVelocityBoundsForDah ( float  d_ah,
const Track ,
Interval< double > &  depths,
Interval< float > &  times 
) const
protected

◆ getVelocityBoundsForTwt()

bool Well::D2TModel::getVelocityBoundsForTwt ( float  twt,
const Track ,
Interval< double > &  depths,
Interval< float > &  times 
) const
protected

Gives index of next dtpoint at or after dah.

◆ getVelocityForDah()

double Well::D2TModel::getVelocityForDah ( float  d_ah,
const Track  
) const

◆ getVelocityForDepth()

double Well::D2TModel::getVelocityForDepth ( float  dpt,
const Track  
) const

◆ getVelocityForTwt()

double Well::D2TModel::getVelocityForTwt ( float  twt,
const Track  
) const

◆ getVelocityIdx()

int Well::D2TModel::getVelocityIdx ( float  pos,
const Track ,
bool  posisdah = true 
) const
protected

◆ insertAtDah()

bool Well::D2TModel::insertAtDah ( float  d_ah,
float  t 
)
overridevirtual

Implements Well::DahObj.

◆ makeFromTrack()

void Well::D2TModel::makeFromTrack ( const Track ,
float  cstvel,
float  replvel 
)

cstvel: velocity of the TD model replvel: Replacement velocity, above SRD

◆ operator!=()

bool Well::D2TModel::operator!= ( const D2TModel ) const

◆ operator=()

D2TModel& Well::D2TModel::operator= ( const D2TModel )

◆ operator==()

bool Well::D2TModel::operator== ( const D2TModel ) const

◆ removeAux()

void Well::D2TModel::removeAux ( int  idx)
inlineoverrideprotectedvirtual

Implements Well::DahObj.

◆ shiftTimesIfNecessary()

static void Well::D2TModel::shiftTimesIfNecessary ( TypeSet< double > &  tvals,
double  wllheadz,
double  vrepl,
double  origintwtinfile,
uiString msg 
)
staticprotected

◆ sKeyDataSrc()

static const char* Well::D2TModel::sKeyDataSrc ( )
static

◆ sKeyTimeWell()

static const char* Well::D2TModel::sKeyTimeWell ( )
static

known in time

name of model for well that is only

◆ t()

float Well::D2TModel::t ( int  idx) const
inline

◆ valArr() [1/2]

float* Well::D2TModel::valArr ( )
inline

◆ valArr() [2/2]

const float* Well::D2TModel::valArr ( ) const
inline

◆ value()

float Well::D2TModel::value ( int  idx) const
inlineoverridevirtual

Implements Well::DahObj.

Member Data Documentation

◆ datasource

BufferString Well::D2TModel::datasource

◆ desc

BufferString Well::D2TModel::desc

◆ t_

TypeSet<float> Well::D2TModel::t_
protected

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