OpendTect  7.0
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 override
 
const Array2DInfoinfo () const override
 
bool isOK () const override
 
void set (int, int, T) override
 
- Public Member Functions inherited from Array2D< T >
virtual T ** get2DData ()
 
virtual const T ** get2DData () const
 
getND (const int *pos) const override
 
void setND (const int *pos, T v) override
 
- Public Member Functions inherited from ArrayND< T >
virtual ~ArrayND ()
 
virtual bool canChangeNrDims () const
 
virtual bool canSetInfo () const
 
virtual bool canSetStorage () const
 
virtual T * get1D (const int *)
 
virtual const T * get1D (const int *) const
 
virtual int get1DDim () const
 
virtual void getAll (T *ptr) const
 
virtual void getAll (ValueSeries< T > &vs) const
 
T * getData ()
 
const T * getData () const
 
int getSize (int dim) const
 
ValueSeries< T > * getStorage ()
 
const ValueSeries< T > * getStorage () const
 
virtual bool isEmpty () const
 
virtual bool isSettable () const
 
int nrDims () const
 
virtual void setAll (T)
 
virtual bool setInfo (const ArrayNDInfo &)
 
virtual bool setStorage (ValueSeries< T > *s)
 
std::uint64_t totalSize () const
 
bool validPos (int *pos) const
 

Protected Attributes

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

Additional Inherited Members

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

Detailed Description

template<class T>
class Array2DSubSelection< T >

Makes a subselection of an Array2D cube.

<>

Constructor & Destructor Documentation

◆ Array2DSubSelection()

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

◆ get()

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

Implements Array2D< T >.

◆ info()

template<class T >
const Array2DInfo & Array2DSubSelection< T >::info
overridevirtual

Implements Array2D< T >.

◆ isOK()

template<class T >
bool Array2DSubSelection< T >::isOK
overridevirtual

Reimplemented from ArrayND< T >.

◆ set()

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

Implements Array2D< T >.

Member Data Documentation

◆ info_

template<class T >
Array2DInfoImpl Array2DSubSelection< T >::info_
protected

◆ src_

template<class T >
Array2D<T>& Array2DSubSelection< T >::src_
protected

◆ start_

template<class T >
int Array2DSubSelection< T >::start_[2]
protected

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