OpendTect  6.6
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
TimeDepthModel Class Reference

Converts between time, depth and velocity given a model. The velocity model can be either RMO-velocities in time, or interval velocity in either depth or time. More...

Inheritance diagram for TimeDepthModel:
[legend]

Public Member Functions

 TimeDepthModel ()
 
 TimeDepthModel (const TimeDepthModel &)
 
virtual ~TimeDepthModel ()
 
const char * errMsg () const
 
float getDepth (float time) const
 
float getDepth (int idx) const
 
float getFirstTime () const
 
float getLastTime () const
 
float getTime (float depth) const
 
float getTime (int idx) const
 
float getVelocity (float depth) const
 
virtual bool isOK () const
 
TimeDepthModeloperator= (const TimeDepthModel &)
 
bool setModel (const float *dpths, const float *times, int sz)
 
int size () const
 

Static Public Member Functions

static float getDepth (const float *dpths, const float *times, int sz, float time)
 
static float getTime (const float *dpths, const float *times, int sz, float depth)
 
static float getVelocity (const float *dpths, const float *times, int sz, float depth)
 

Static Protected Member Functions

static float convertTo (const float *dpths, const float *times, int sz, float z, bool targetistime)
 

Protected Attributes

float * depths_
 
uiString errmsg_
 
int sz_
 
float * times_
 

Detailed Description

Converts between time, depth and velocity given a model. The velocity model can be either RMO-velocities in time, or interval velocity in either depth or time.

<>

Constructor & Destructor Documentation

◆ TimeDepthModel() [1/2]

TimeDepthModel::TimeDepthModel ( )

◆ TimeDepthModel() [2/2]

TimeDepthModel::TimeDepthModel ( const TimeDepthModel )

◆ ~TimeDepthModel()

virtual TimeDepthModel::~TimeDepthModel ( )
virtual

Member Function Documentation

◆ convertTo()

static float TimeDepthModel::convertTo ( const float *  dpths,
const float *  times,
int  sz,
float  z,
bool  targetistime 
)
staticprotected

◆ errMsg()

const char* TimeDepthModel::errMsg ( ) const

◆ getDepth() [1/3]

static float TimeDepthModel::getDepth ( const float *  dpths,
const float *  times,
int  sz,
float  time 
)
static

◆ getDepth() [2/3]

float TimeDepthModel::getDepth ( float  time) const

◆ getDepth() [3/3]

float TimeDepthModel::getDepth ( int  idx) const

◆ getFirstTime()

float TimeDepthModel::getFirstTime ( ) const

◆ getLastTime()

float TimeDepthModel::getLastTime ( ) const

◆ getTime() [1/3]

static float TimeDepthModel::getTime ( const float *  dpths,
const float *  times,
int  sz,
float  depth 
)
static

◆ getTime() [2/3]

float TimeDepthModel::getTime ( float  depth) const

◆ getTime() [3/3]

float TimeDepthModel::getTime ( int  idx) const

◆ getVelocity() [1/2]

static float TimeDepthModel::getVelocity ( const float *  dpths,
const float *  times,
int  sz,
float  depth 
)
static

◆ getVelocity() [2/2]

float TimeDepthModel::getVelocity ( float  depth) const

◆ isOK()

virtual bool TimeDepthModel::isOK ( ) const
virtual

Reimplemented in SimpleTimeDepthModel, and TimeDepthConverter.

◆ operator=()

TimeDepthModel& TimeDepthModel::operator= ( const TimeDepthModel )

◆ setModel()

bool TimeDepthModel::setModel ( const float *  dpths,
const float *  times,
int  sz 
)

◆ size()

int TimeDepthModel::size ( ) const
inline

Member Data Documentation

◆ depths_

float* TimeDepthModel::depths_
protected

◆ errmsg_

uiString TimeDepthModel::errmsg_
protected

◆ sz_

int TimeDepthModel::sz_
protected

◆ times_

float* TimeDepthModel::times_
protected

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