 |
OpendTect
6.6
|
Go to the documentation of this file.
24 { dimmap_[srcdim] = targetdim; }
27 virtual bool isOK()
const = 0;
31 { dimmap_.setSize( info.
getNDim(), 0 ); }
52 void set(
int,
int,
int,T);
53 T get(
int,
int,
int)
const;
81 for (
int idx=0; idx<dimmap_.size(); idx++ )
82 info_.setSize( dimmap_[idx], srcarr_.info().getSize(idx) );
88 {
return srcarr_.info().getNDim() < 3; }
94 int pos3d[] = { i0, i1, i2 };
96 for (
int idx=0; idx<dimmap_.size(); idx++ )
97 posnd += pos3d[ dimmap_[idx] ];
99 srcarr_.setND( posnd.arr(), val );
106 int pos3d[] = { i0, i1, i2 };
108 for (
int idx=0; idx<dimmap_.size(); idx++ )
109 posnd += pos3d[ dimmap_[idx] ];
111 return srcarr_.getND( posnd.arr() );
Array3DInfo & info_
Definition: arrayndwrapper.h:59
Contains the information about the size of ArrayND, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:25
Subclass of ArrayNDWrapper.
Definition: arrayndwrapper.h:44
void setDimMap(int srcdim, int targetdim)
Definition: arrayndwrapper.h:23
virtual bool isOK() const =0
void init()
Definition: arrayndwrapper.h:79
~Array3DWrapper()
Definition: arrayndwrapper.h:74
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:162
TypeSet< int > dimmap_
Definition: arrayndwrapper.h:33
bool isOK() const
Definition: arrayndwrapper.h:87
#define mClass(module)
Definition: commondefs.h:181
const Array3DInfo & info() const
Definition: arrayndwrapper.h:55
ArrayNDWrapper(const ArrayNDInfo &info)
Definition: arrayndwrapper.h:30
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:147
ArrayND< T > & srcarr_
Definition: arrayndwrapper.h:60
Implementation of Array3DInfo.
Definition: arrayndinfo.h:239
T get(int, int, int) const
Definition: arrayndwrapper.h:104
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:33
virtual int getNDim() const =0
Array3DWrapper(ArrayND< T > &)
Definition: arrayndwrapper.h:66
void set(int, int, int, T)
Definition: arrayndwrapper.h:92
Access tool to another array with a lower number of dimensions.
Definition: arrayndwrapper.h:21
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021