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

Converts between time and depth given a model. More...

Inheritance diagram for TimeDepthConverter:
[legend]

Public Member Functions

 TimeDepthConverter ()
 
bool calcDepths (ValueSeries< float > &, int sz, const SamplingData< double > &timesamp) const
 
bool calcTimes (ValueSeries< float > &, int sz, const SamplingData< double > &depthsamp) const
 
bool isOK () const
 
bool setVelocityModel (const ValueSeries< float > &vels, int sz, const SamplingData< double > &sd, const VelocityDesc &, bool istime)
 
- Public Member Functions inherited from TimeDepthModel
 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
 
TimeDepthModeloperator= (const TimeDepthModel &)
 
bool setModel (const float *dpths, const float *times, int sz)
 
int size () const
 

Static Public Member Functions

static bool calcDepths (const ValueSeries< float > &vels, int velsz, const SamplingData< double > &, float *depths)
 
static bool calcDepths (const ValueSeries< float > &vels, int velsz, const ValueSeries< double > &times, double *depths)
 
static mDeprecatedDef bool calcDepths (const ValueSeries< float > &vels, int velsz, const ValueSeries< float > &times, float *depths)
 
static bool calcTimes (const ValueSeries< float > &vels, int velsz, const SamplingData< double > &, float *times)
 
static bool calcTimes (const ValueSeries< float > &vels, int velsz, const ValueSeries< float > &depth, float *times)
 
static bool isVelocityDescUseable (const VelocityDesc &, bool velintime, uiString *errmsg=0)
 
- Static Public Member Functions inherited from TimeDepthModel
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)
 

Protected Member Functions

void calcZ (const float *, int inpsz, ValueSeries< float > &, int outpsz, const SamplingData< double > &, bool istime) const
 

Protected Attributes

float firstvel_
 
float lastvel_
 
bool regularinput_
 
SamplingData< double > sd_
 
int sz_
 
- Protected Attributes inherited from TimeDepthModel
float * depths_
 
uiString errmsg_
 
int sz_
 
float * times_
 

Additional Inherited Members

- Static Protected Member Functions inherited from TimeDepthModel
static float convertTo (const float *dpths, const float *times, int sz, float z, bool targetistime)
 

Detailed Description

Converts between time and depth given a model.

<>

Constructor & Destructor Documentation

◆ TimeDepthConverter()

TimeDepthConverter::TimeDepthConverter ( )

Member Function Documentation

◆ calcDepths() [1/4]

static bool TimeDepthConverter::calcDepths ( const ValueSeries< float > &  vels,
int  velsz,
const SamplingData< double > &  ,
float *  depths 
)
static
Parameters
velsVelocity as Vint in time
velsz,depths

◆ calcDepths() [2/4]

static bool TimeDepthConverter::calcDepths ( const ValueSeries< float > &  vels,
int  velsz,
const ValueSeries< double > &  times,
double *  depths 
)
static
Parameters
velsVelocity as Vint in time
velsz,times,depths

◆ calcDepths() [3/4]

static mDeprecatedDef bool TimeDepthConverter::calcDepths ( const ValueSeries< float > &  vels,
int  velsz,
const ValueSeries< float > &  times,
float *  depths 
)
static

◆ calcDepths() [4/4]

bool TimeDepthConverter::calcDepths ( ValueSeries< float > &  ,
int  sz,
const SamplingData< double > &  timesamp 
) const

◆ calcTimes() [1/3]

static bool TimeDepthConverter::calcTimes ( const ValueSeries< float > &  vels,
int  velsz,
const SamplingData< double > &  ,
float *  times 
)
static
Parameters
velsVelocity as Vint in depth
velsz,times

◆ calcTimes() [2/3]

static bool TimeDepthConverter::calcTimes ( const ValueSeries< float > &  vels,
int  velsz,
const ValueSeries< float > &  depth,
float *  times 
)
static
Parameters
velsVelocity as Vint in depth
velsz,times,depth

◆ calcTimes() [3/3]

bool TimeDepthConverter::calcTimes ( ValueSeries< float > &  ,
int  sz,
const SamplingData< double > &  depthsamp 
) const

◆ calcZ()

void TimeDepthConverter::calcZ ( const float *  ,
int  inpsz,
ValueSeries< float > &  ,
int  outpsz,
const SamplingData< double > &  ,
bool  istime 
) const
protected

◆ isOK()

bool TimeDepthConverter::isOK ( ) const
virtual

Reimplemented from TimeDepthModel.

◆ isVelocityDescUseable()

static bool TimeDepthConverter::isVelocityDescUseable ( const VelocityDesc ,
bool  velintime,
uiString errmsg = 0 
)
static

◆ setVelocityModel()

bool TimeDepthConverter::setVelocityModel ( const ValueSeries< float > &  vels,
int  sz,
const SamplingData< double > &  sd,
const VelocityDesc ,
bool  istime 
)

Member Data Documentation

◆ firstvel_

float TimeDepthConverter::firstvel_
protected

◆ lastvel_

float TimeDepthConverter::lastvel_
protected

◆ regularinput_

bool TimeDepthConverter::regularinput_
protected

◆ sd_

SamplingData<double> TimeDepthConverter::sd_
protected

◆ sz_

int TimeDepthConverter::sz_
protected

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