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:45
virtual T get(int p0, int p1) const =0
if(!noudf_ &&(mIsUdf(inpval)))
Definition: arrayndalgo.h:1662
Implementation of Array2D.
Definition: arrayndimpl.h:102
RowCol step_
Definition: horizontracker.h:141
A cartesian coordinate in 2D space.
Definition: coord.h:25
virtual void set(int, int, T)=0
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:131
IdxType & col()
Definition: posidxpair.h:50
#define mReplaceVariable(variable)
Definition: parametricsurfaceimpl.h:34