OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
Array2DSubSelection< T > Class Template Reference

Makes a subselection of an Array2D cube. More...

Inheritance diagram for Array2DSubSelection< T >:
[legend]

Public Member Functions

 Array2DSubSelection (int start0, int start1, int sz0, int sz1, Array2D< T > &data)
 
get (int, int) const
 
void set (int, int, T)
 
bool isOK () const
 
const Array2DInfoinfo () const
 
- Public Member Functions inherited from Array2D< T >
void setND (const int *pos, T v)
 
getND (const int *pos) const
 
virtual T ** get2DData ()
 
virtual const T ** get2DData () const
 
- Public Member Functions inherited from ArrayND< T >
virtual ~ArrayND ()
 
virtual bool isEmpty () const
 
virtual bool isSettable () const
 
const ValueSeries< T > * getStorage () const
 
ValueSeries< T > * getStorage ()
 
virtual bool canSetStorage () const
 
virtual bool setStorage (ValueSeries< T > *s)
 
const T * getData () const
 
T * getData ()
 
virtual const T * get1D (const int *) const
 
virtual T * get1D (const int *)
 
virtual int get1DDim () const
 
virtual bool canSetInfo () const
 
virtual bool canChangeNrDims () const
 
virtual bool setInfo (const ArrayNDInfo &)
 
virtual void setAll (T)
 
virtual void getAll (T *ptr) const
 
virtual void getAll (ValueSeries< T > &vs) const
 

Protected Attributes

int start_ [2]
 
Array2DInfoImpl info_
 
Array2D< T > & src_
 

Additional Inherited Members

- Protected Member Functions inherited from ArrayND< T >
virtual const ValueSeries< T > * getStorage_ () const
 
virtual const T * getData_ () const
 

Detailed Description

template<class T>
class Array2DSubSelection< T >

Makes a subselection of an Array2D cube.

Constructor & Destructor Documentation

template<class T >
Array2DSubSelection< T >::Array2DSubSelection ( int  start0,
int  start1,
int  sz0,
int  sz1,
Array2D< T > &  data 
)
Parameters
start0position of the subselection in data.
start1position of the subselection in data.
sz0size of the subselection.
sz1size of the subselection.
dataThe array in which the subselection is done.

Member Function Documentation

template<class T >
T Array2DSubSelection< T >::get ( int  s0,
int  s1 
) const
virtual

Implements Array2D< T >.

template<class T >
const Array2DInfo & Array2DSubSelection< T >::info ( ) const
virtual

Implements Array2D< T >.

template<class T >
bool Array2DSubSelection< T >::isOK ( ) const
virtual

Reimplemented from ArrayND< T >.

template<class T >
void Array2DSubSelection< T >::set ( int  s0,
int  s1,
val 
)
virtual

Implements Array2D< T >.

Member Data Documentation

template<class T >
Array2DInfoImpl Array2DSubSelection< T >::info_
protected
template<class T >
Array2D<T>& Array2DSubSelection< T >::src_
protected
template<class T >
int Array2DSubSelection< T >::start_[2]
protected

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