| Qwt User's Guide
    6.0.2
    | 
#include <qwt_matrix_raster_data.h>

| Public Types | |
| enum | ResampleMode { NearestNeighbour, BilinearInterpolation } | 
|  Public Types inherited from QwtRasterData | |
| enum | ConrecFlag { IgnoreAllVerticesOnLevel = 0x01, IgnoreOutOfRange = 0x02 } | 
| typedef QFlags< ConrecFlag > | ConrecFlags | 
| typedef QMap< double, QPolygonF > | ContourLines | 
| Public Member Functions | |
| QwtMatrixRasterData () | |
| virtual | ~QwtMatrixRasterData () | 
| size_t | numColumns () const | 
| size_t | numRows () const | 
| virtual QRectF | pixelHint (const QRectF &) const | 
| ResampleMode | resampleMode () const | 
| virtual void | setInterval (Qt::Axis, const QwtInterval &) | 
| void | setResampleMode (ResampleMode mode) | 
| void | setValueMatrix (const QVector< double > &values, size_t numColumns) | 
| virtual double | value (double x, double y) const | 
| const QVector< double > | valueMatrix () const | 
|  Public Member Functions inherited from QwtRasterData | |
| QwtRasterData () | |
| virtual | ~QwtRasterData () | 
| virtual ContourLines | contourLines (const QRectF &rect, const QSize &raster, const QList< double > &levels, ConrecFlags) const | 
| virtual void | discardRaster () | 
| virtual void | initRaster (const QRectF &, const QSize &raster) | 
| const QwtInterval & | interval (Qt::Axis) const | 
A class representing a matrix of values as raster data.
QwtMatrixRasterData implements an interface for a matrix of equidistant values, that can be used by a QwtPlotRasterItem. It implements a couple of resampling algorithms, to provide values for positions, that or not on the value matrix.
| size_t QwtMatrixRasterData::numColumns | ( | ) | const | 
| size_t QwtMatrixRasterData::numRows | ( | ) | const | 
| 
 | virtual | 
Pixel hint.
Reimplemented from QwtRasterData.
| QwtMatrixRasterData::ResampleMode QwtMatrixRasterData::resampleMode | ( | ) | const | 
| 
 | 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 )
| axis | X, Y or Z axis | 
| interval | Interval | 
Reimplemented from QwtRasterData.
| void QwtMatrixRasterData::setResampleMode | ( | ResampleMode | mode | ) | 
| void QwtMatrixRasterData::setValueMatrix | ( | const QVector< double > & | values, | 
| size_t | numColumns | ||
| ) | 
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.
| values | Vector of values | 
| numColumns | Number of columns | 
| 
 | virtual | 
| x | X value in plot coordinates | 
| y | Y value in plot coordinates | 
Implements QwtRasterData.
| const QVector< double > QwtMatrixRasterData::valueMatrix | ( | ) | const | 
 1.8.1
 1.8.1