OpendTect  7.0
Public Member Functions | Protected Attributes | List of all members
Array2DFunc< RT, PT, T > Class Template Reference

Adaptor to make an Array2D behave like a MathXYFunction. Will do linear interpolation at the edges, and polynomial interpolation inside. More...

Inheritance diagram for Array2DFunc< RT, PT, T >:
[legend]

Public Member Functions

RT getValue (const PT *p) const
 
RT getValue (PT, PT) const override
 
void set (const Array2D< T > &t, bool hasudfs)
 
- Public Member Functions inherited from MathXYFunction< RT, PT >
RT getNDValue (const PT *pos) const override
 
int getNrDim () const override
 
- Public Member Functions inherited from MathFunctionND< RT, PT >
virtual ~MathFunctionND ()
 

Protected Attributes

const Array2D< T > * arr_ = nullptr
 
bool hasudfs_ = true
 
int xsize_ = 0
 
int ysize_ = 0
 

Detailed Description

template<class RT, class PT, class T>
class Array2DFunc< RT, PT, T >

Adaptor to make an Array2D behave like a MathXYFunction. Will do linear interpolation at the edges, and polynomial interpolation inside.

<>

Member Function Documentation

◆ getValue() [1/2]

template<class RT , class PT , class T >
RT Array2DFunc< RT, PT, T >::getValue ( const PT *  p) const
inline

◆ getValue() [2/2]

template<class RT , class PT , class T >
RT Array2DFunc< RT, PT, T >::getValue ( PT  x,
PT  y 
) const
inlineoverridevirtual

◆ set()

template<class RT , class PT , class T >
void Array2DFunc< RT, PT, T >::set ( const Array2D< T > &  t,
bool  hasudfs 
)
inline

Member Data Documentation

◆ arr_

template<class RT , class PT , class T >
const Array2D<T>* Array2DFunc< RT, PT, T >::arr_ = nullptr
protected

◆ hasudfs_

template<class RT , class PT , class T >
bool Array2DFunc< RT, PT, T >::hasudfs_ = true
protected

◆ xsize_

template<class RT , class PT , class T >
int Array2DFunc< RT, PT, T >::xsize_ = 0
protected

◆ ysize_

template<class RT , class PT , class T >
int Array2DFunc< RT, PT, T >::ysize_ = 0
protected

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