1 #ifndef arrayndsubsel_h 2 #define arrayndsubsel_h 36 T
get( int, int )
const;
37 void set( int, int, T );
59 int sz0,
int sz1,
int sz2,
70 T
get( int, int, int )
const;
71 void set( int, int, int, T );
84 #define mSetupDim( dim ) \ 85 start_[dim] = s##dim; \ 86 info_.setSize( dim, mMIN( sz##dim, src_.info().getSize(dim)-s##dim) ); 105 if ( !
src_.info().validPos( s0, s1 ) )
106 pErrMsg(
"Position is outside of src" );
108 src_.set( s0, s1, val );
118 return src_.info().validPos( s0, s1 )
147 int sz0,
int sz1,
int sz2,
164 if ( !
src_.info().validPos( s0, s1, s2 ) )
165 pErrMsg(
"Position is outside of src" );
167 src_.set( s0, s1, s2, val );
178 return src_.info().validPos( s0, s1, s2 )
Array3DSubSelection(int start0, int start1, int start2, int sz0, int sz1, int sz2, Array3D< T > &data)
Definition: arrayndsubsel.h:146
#define mSetupDim(dim)
Definition: arrayndsubsel.h:84
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:118
bool isOK() const
Definition: arrayndsubsel.h:184
const Array2DInfo & info() const
Definition: arrayndsubsel.h:141
int start_[2]
Definition: arrayndsubsel.h:44
virtual int getSize(int dim) const
Definition: arrayndinfo.h:258
virtual int getNDim() const
Definition: arrayndinfo.h:99
Array3D< T > & src_
Definition: arrayndsubsel.h:80
const Array3DInfo & info() const
Definition: arrayndsubsel.h:201
bool isOK() const
Definition: arrayndsubsel.h:124
void set(int, int, int, T)
Definition: arrayndsubsel.h:158
T get(int, int, int) const
Definition: arrayndsubsel.h:172
Makes a subselection of an Array2D cube.
Definition: arrayndsubsel.h:23
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
Implementation of Array3DInfo.
Definition: arrayndinfo.h:193
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
void set(int, int, T)
Definition: arrayndsubsel.h:100
Array2D< T > & src_
Definition: arrayndsubsel.h:46
Contains the information about the size of Array2D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:95
Array3DInfoImpl info_
Definition: arrayndsubsel.h:79
Definition: arrayndsubsel.h:55
Implementation of Array2DInfo.
Definition: arrayndinfo.h:166
T get(int, int) const
Definition: arrayndsubsel.h:113
Array2DInfoImpl info_
Definition: arrayndsubsel.h:45
virtual int getSize(int dim) const
Definition: arrayndinfo.h:252
#define mClass(module)
Definition: commondefs.h:164
int start_[3]
Definition: arrayndsubsel.h:78
#define pErrMsg(msg)
Definition: errmsg.h:60
Array2DSubSelection(int start0, int start1, int sz0, int sz1, Array2D< T > &data)
Definition: arrayndsubsel.h:90
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:153
virtual int getNDim() const
Definition: arrayndinfo.h:122