OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
Array3DSubSelection< T > Class Template Reference
Inheritance diagram for Array3DSubSelection< T >:
[legend]

Public Member Functions

 Array3DSubSelection (int start0, int start1, int start2, int sz0, int sz1, int sz2, Array3D< T > &data)
 
get (int, int, int) const
 
void set (int, int, int, T)
 
bool isOK () const
 
const Array3DInfoinfo () const
 
- Public Member Functions inherited from Array3D< T >
void setND (const int *pos, T v)
 
getND (const int *pos) const
 
virtual T *** get3DData ()
 
virtual const T *** get3DData () 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_ [3]
 
Array3DInfoImpl info_
 
Array3D< 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 Array3DSubSelection< T >

Makes a subselection of an Array3D cube.

Constructor & Destructor Documentation

template<class T >
Array3DSubSelection< T >::Array3DSubSelection ( int  start0,
int  start1,
int  start2,
int  sz0,
int  sz1,
int  sz2,
Array3D< T > &  data 
)
Parameters
start0position of the subselection in data.
start1position of the subselection in data.
start2position of the subselection in data.
sz0size of the subselection.
sz1size of the subselection.
sz2size of the subselection.
dataThe array in which the subselection is done.

Member Function Documentation

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

Implements Array3D< T >.

template<class T >
const Array3DInfo & Array3DSubSelection< T >::info ( ) const
virtual

Implements Array3D< T >.

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

Reimplemented from ArrayND< T >.

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

Implements Array3D< T >.

Member Data Documentation

template<class T >
Array3DInfoImpl Array3DSubSelection< T >::info_
protected
template<class T >
Array3D<T>& Array3DSubSelection< T >::src_
protected
template<class T >
int Array3DSubSelection< T >::start_[3]
protected

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