OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | 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=0)
 
 D2TModel (const D2TModel &d2t)
 
D2TModeloperator= (const D2TModel &)
 
bool operator== (const D2TModel &) const
 
bool operator!= (const D2TModel &) const
 
float getTime (float d_ah, const Track &) const
 
float getDepth (float time, const Track &) const
 
float getDah (float time, const Track &) const
 
double getVelocityForDah (float d_ah, const Track &) const
 
double getVelocityForDepth (float dpt, const Track &) const
 
double getVelocityForTwt (float twt, const Track &) const
 
bool getTimeDepthModel (const Well::Data &, TimeDepthModel &) const
 
float t (int idx) const
 
float value (int idx) const
 
float * valArr ()
 
const float * valArr () const
 
void add (float d_ah, float tm)
 
bool insertAtDah (float d_ah, float t)
 
void makeFromTrack (const Track &, float cstvel, float replvel)
 
bool ensureValid (const Well::Data &, uiString &errmsg, TypeSet< double > *zvals=0, TypeSet< double > *tvals=0)
 
- Public Member Functions inherited from Well::DahObj
 DahObj (const char *nm=0)
 
 DahObj (const DahObj &d)
 
 ~DahObj ()
 
int size () const
 
float dah (int idx) const
 
int indexOf (float dah) const
 
virtual void remove (int idx)
 
virtual void setEmpty ()
 
bool isEmpty () const
 
Interval< float > dahRange () const
 returns (0, 0) for empty dah_ More...
 
float dahStep (bool min_else_average) const
 
void addToDahFrom (int fromidx, float extradah)
 
void removeFromDahFrom (int fromidx, float extradah)
 
void deInterpolate ()
 Remove unnecessary points. More...
 
float * dahArr ()
 
const float * dahArr () const
 
- Public Member Functions inherited from NamedObject
 NamedObject (const char *nm=0)
 
 NamedObject (const NamedObject *linkedto)
 
 NamedObject (const NamedObject &)
 
virtual ~NamedObject ()
 
void setLinkedTo (NamedObject *)
 
bool operator== (const NamedObject &oth) const
 
virtual const OD::Stringname () const
 
virtual const OD::StringannotName () const
 
virtual void setName (const char *)
 
void setCleanName (const char *)
 cleans string first More...
 
void deleteNotify (const CallBack &)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Static Public Member Functions

static const char * sKeyTimeWell ()
 known in time More...
 
static const char * sKeyDataSrc ()
 

Public Attributes

BufferString desc
 
BufferString datasource
 

Protected Member Functions

void removeAux (int idx)
 
void eraseAux ()
 
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
 
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...
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Static Protected Member Functions

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

Protected Attributes

TypeSet< float > t_
 
- Protected Attributes inherited from Well::DahObj
TypeSet< float > dah_
 
- Protected Attributes inherited from NamedObject
BufferStringname_
 
NamedObjectlinkedto_
 
CallBackSetdelnotify_
 

Private Member Functions

 mODTextTranslationClass (D2TModel)
 

Detailed Description

Depth to time model.

Constructor & Destructor Documentation

Well::D2TModel::D2TModel ( const char *  nm = 0)
inline
Well::D2TModel::D2TModel ( const D2TModel d2t)
inline

Member Function Documentation

void Well::D2TModel::add ( float  d_ah,
float  tm 
)
inline
static void Well::D2TModel::checkReplacementVelocity ( Well::Info info,
double  vreplinfile,
uiString msg 
)
staticprotected
static void Well::D2TModel::convertDepthsToMD ( const Well::Track track,
const TypeSet< double > &  zvals,
TypeSet< float > &  dahs 
)
staticprotected
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

void Well::D2TModel::eraseAux ( )
inlineprotectedvirtual

Implements Well::DahObj.

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

Legacy, misleading name. Use getDah().

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

Read legacy incorrect time-depth model.

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

Read legacy incorrect time-depth model.

float Well::D2TModel::getTime ( float  d_ah,
const Track  
) const
bool Well::D2TModel::getTimeDepthModel ( const Well::Data ,
TimeDepthModel  
) const
static bool Well::D2TModel::getTVDD2TModel ( Well::D2TModel d2t,
const Well::Data wll,
TypeSet< double > &  zvals,
TypeSet< double > &  tvals,
uiString errmsg,
uiString warnmsg 
)
staticprotected
bool Well::D2TModel::getVelocityBoundsForDah ( float  d_ah,
const Track ,
Interval< double > &  depths,
Interval< float > &  times 
) const
protected
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.

double Well::D2TModel::getVelocityForDah ( float  d_ah,
const Track  
) const
double Well::D2TModel::getVelocityForDepth ( float  dpt,
const Track  
) const
double Well::D2TModel::getVelocityForTwt ( float  twt,
const Track  
) const
int Well::D2TModel::getVelocityIdx ( float  pos,
const Track ,
bool  posisdah = true 
) const
protected
bool Well::D2TModel::insertAtDah ( float  d_ah,
float  t 
)
virtual

Implements Well::DahObj.

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

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

Well::D2TModel::mODTextTranslationClass ( D2TModel  )
private
bool Well::D2TModel::operator!= ( const D2TModel ) const
D2TModel& Well::D2TModel::operator= ( const D2TModel )
bool Well::D2TModel::operator== ( const D2TModel ) const
void Well::D2TModel::removeAux ( int  idx)
inlineprotectedvirtual

Implements Well::DahObj.

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

known in time

name of model for well that is only

float Well::D2TModel::t ( int  idx) const
inline
float* Well::D2TModel::valArr ( )
inline
const float* Well::D2TModel::valArr ( ) const
inline
float Well::D2TModel::value ( int  idx) const
inlinevirtual

Implements Well::DahObj.

Member Data Documentation

BufferString Well::D2TModel::datasource
BufferString Well::D2TModel::desc
TypeSet<float> Well::D2TModel::t_
protected

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