intQwtMatrixRasterData::numColumns()constReturns:
Number of columns of the value matrix
Seealso:valueMatrix(), numRows(), setValueMatrix()intQwtMatrixRasterData::numRows()constReturns:
Number of rows of the value matrix
Seealso:valueMatrix(), numColumns(), setValueMatrix()QRectFQwtMatrixRasterData::pixelHint(constQRectF&area)const[virtual]
Calculate the pixel hint. pixelHint() returns the geometry of a pixel, that can be used to calculate the
resolution and alignment of the plot item, that is representing the data.
• NearestNeighbour
pixelHint() returns the surrounding pixel of the top left value in the matrix.
• BilinearInterpolation
Returns an empty rectangle recommending to render in target device ( f.e. screen ) resolution.
Parameters:area Requested area, ignored
Returns:
Calculated hint
Seealso:ResampleMode, setMatrix(), setInterval()
Reimplemented from QwtRasterData.
QwtMatrixRasterData::ResampleModeQwtMatrixRasterData::resampleMode()constReturns:
resampling algorithm
Seealso:setResampleMode(), value()voidQwtMatrixRasterData::setInterval(Qt::Axisaxis,constQwtInterval&interval)[virtual]
Assign the bounding interval for an axis. Setting the bounding intervals for the X/Y axis is mandatory to
define the positions for the values of the value matrix. The interval in Z direction defines the possible
range for the values in the matrix, what is f.e used by QwtPlotSpectrogram to map values to colors. The
Z-interval might be the bounding interval of the values in the matrix, but usually it isn't. ( f.e a
interval of 0.0-100.0 for values in percentage )
Parameters:axis X, Y or Z axis
interval Interval
Seealso:QwtRasterData::interval(), setValueMatrix()
Reimplemented from QwtRasterData.
voidQwtMatrixRasterData::setResampleMode(ResampleModemode)
Set the resampling algorithm.
Parameters:mode Resampling mode
Seealso:resampleMode(), value()voidQwtMatrixRasterData::setValue(introw,intcol,doublevalue)
Change a single value in the matrix.
Parameters:row Row index
col Column index
value New value
Seealso:value(), setValueMatrix()voidQwtMatrixRasterData::setValueMatrix(constQVector<double>&values,intnumColumns)
Assign a value matrix. The positions of the values are calculated by dividing the bounding rectangle of
the X/Y intervals into equidistant rectangles ( pixels ). Each value corresponds to the center of a
pixel.
Parameters:values Vector of values
numColumns Number of columns
Seealso:valueMatrix(), numColumns(), numRows(), setInterval()()
doubleQwtMatrixRasterData::value(doublex,doubley)const[virtual]Returns:
the value at a raster position
Parameters:x X value in plot coordinates
y Y value in plot coordinates
Seealso:ResampleMode
Implements QwtRasterData.
constQVector<double>QwtMatrixRasterData::valueMatrix()constReturns:
Value matrix
Seealso:setValueMatrix(), numColumns(), numRows(), setInterval()