23 inline double value(
int row,
int col)
const 91 if ( axis >= 0 && axis <= 2 )
104 if ( axis >= 0 && axis <= 2 )
151 if ( row >= 0 && row < d_data->
numRows &&
258 const double x2 = xInterval.
minValue() +
260 const double y2 = yInterval.
minValue() +
263 const double rx = ( x2 - x ) /
d_data->
dx;
264 const double ry = ( y2 - y ) /
d_data->
dy;
266 const double vr1 = rx * v11 + ( 1.0 - rx ) * v21;
267 const double vr2 = rx * v12 + ( 1.0 - rx ) * v22;
269 value = ry * vr1 + ( 1.0 - ry ) * vr2;
bool contains(double value) const
A class representing an interval.
virtual QRectF pixelHint(const QRectF &) const
Calculate the pixel hint.
void setResampleMode(ResampleMode mode)
Set the resampling algorithm.
void setInterval(Qt::Axis, const QwtInterval &)
Assign the bounding interval for an axis.
ResampleMode
Resampling algorithm The default setting is NearestNeighbour;.
QwtInterval interval(Qt::Axis axis) const
double value(int row, int col) const
virtual double value(double x, double y) const
virtual ~QwtMatrixRasterData()
Destructor.
A class representing a matrix of values as raster data.
void setValue(int row, int col, double value)
Change a single value in the matrix.
const QVector< double > valueMatrix() const
ResampleMode resampleMode() const
void setValueMatrix(const QVector< double > &values, int numColumns)
Assign a value matrix.
double width() const
Return the width of an interval.
QwtMatrixRasterData()
Constructor.
QwtMatrixRasterData::ResampleMode resampleMode