for ( int idx=0; new##variable && idx<curnrrows+nrtoinsert; idx++ ) \
{ \
for ( int idy=0; idy<curnrcols; idy++ ) \
{ \
if ( idx>=rowidx && idx<rowidx+nrtoinsert ) \
{ \
if ( idx>=curnrrows || idx<nrtoinsert ) \
new##variable->
set(idx,idy, udf ); \
else \
{ \
const float relrow = origin_.row() + \
((float) idx-rowidx)/(nrtoinsert+1)*
step_.
row(); \
new##variable->
set(idx,idy,(type) interpolfunc); \
} \
} \
else \
{ \
const int sourcerow = idx>rowidx ? idx-nrtoinsert : idx; \
new##variable->
set(idx,idy,variable->
get(sourcerow,idy)); \
} \
} \
IdxType & row()
Definition: posidxpair.h:43
virtual T get(int p0, int p1) const =0
Implementation of Array2D.
Definition: arrayndimpl.h:101
RowCol step_
Definition: horizontracker.h:139
virtual void set(int, int, T)=0
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:127
IdxType & col()
Definition: posidxpair.h:48
2D point or vector class.
Definition: commontypes.h:58
#define mReplaceVariable(variable)
Definition: parametricsurfaceimpl.h:32