14 .
HEXARG(mask.data()).arg(interp).HEXARG(
this));
17 setInterval(Qt::XAxis, QwtInterval(0, (mask?mask->get_Width():0)));
18 setInterval(Qt::YAxis, QwtInterval(0, (mask?mask->get_Height():0)));
19 setInterval(Qt::ZAxis,
range());
26 int ix = (int) x, iy = (
int) y;
27 double dx = x-ix, dy = y-iy;
29 double f00 =
m_Mask->maskValue(ix,iy);
30 double f10 =
m_Mask->maskValue(ix+1,iy);
31 double f01 =
m_Mask->maskValue(ix,iy+1);
32 double f11 =
m_Mask->maskValue(ix+1,iy+1);
34 double f0 = f00*(1-dx)+f10*dx;
35 double f1 = f01*(1-dx)+f11*dx;
37 double f = f0*(1-dy)+f1*dy;
41 return m_Mask->maskValue(((
int) qRound(x)), ((
int) qRound(y)));
59 return QwtInterval(0.0, 3.0);
qint64 qcepDebug(int cond)
QxrdMaskRasterData(QcepMaskDataPtr mask=QcepMaskDataPtr(), int interp=0)
const QcepMaskDataPtr mask() const
virtual void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())=0
double value(double x, double y) const
QcepApplication * g_Application
QwtInterval range() const
QSharedPointer< QcepMaskData > QcepMaskDataPtr