|
QWT API (English) 7.0.1
Qt Widget Library for Technical Applications - English API Documentation
|
A class representing a matrix of values as raster data. More...
#include <qwt_matrix_raster_data.h>
Classes | |
| class | PrivateData |
Public Types | |
| enum | ResampleMode { NearestNeighbour , BilinearInterpolation , BicubicInterpolation } |
| Resampling algorithm. More... | |
Public Types inherited from QwtRasterData | |
| enum | Attribute { WithoutGaps = 0x01 } |
| Raster data attributes. More... | |
| enum | ConrecFlag { IgnoreAllVerticesOnLevel = 0x01 , IgnoreOutOfRange = 0x02 } |
| Flags to modify the contour algorithm . More... | |
| using | ContourLines = QMap< double, QPolygonF > |
| Contour lines. | |
Public Member Functions | |
| QwtMatrixRasterData () | |
| Constructor. . | |
| virtual | ~QwtMatrixRasterData () |
| Destructor . | |
| void | setResampleMode (ResampleMode mode) |
| Set the resampling algorithm. | |
| ResampleMode | resampleMode () const |
| Return the resampling algorithm. | |
| void | setInterval (Qt::Axis, const QwtInterval &) |
| Assign the bounding interval for an axis. | |
| virtual QwtInterval | interval (Qt::Axis axis) const override final |
| Return bounding interval for an axis. | |
| void | setValueMatrix (const QVector< double > &values, int numColumns) |
| Assign a value matrix. | |
| const QVector< double > | valueMatrix () const |
| Return value matrix. | |
| void | setValue (int row, int col, double value) |
| Change a single value in the matrix. | |
| int | numColumns () const |
| Return number of columns of the value matrix. | |
| int | numRows () const |
| Return number of rows of the value matrix. | |
| virtual QRectF | pixelHint (const QRectF &) const override |
| Calculate the pixel hint. | |
| virtual double | value (double x, double y) const override |
| Return the value at a raster position. | |
Public Member Functions inherited from QwtRasterData | |
| QwtRasterData () | |
| Constructor. | |
| virtual | ~QwtRasterData () |
| Destructor. | |
| void | setAttribute (Attribute, bool on=true) |
| Set an attribute. | |
| bool | testAttribute (Attribute) const |
| Test an attribute. | |
| virtual void | initRaster (const QRectF &, const QSize &raster) |
| Initialize the raster. | |
| virtual void | discardRaster () |
| Discard the raster. | |
| virtual ContourLines | contourLines (const QRectF &rect, const QSize &raster, const QList< double > &levels, ConrecFlags) const |
| Calculate contour lines. | |
A class representing a matrix of values as raster data.
Resampling algorithm.
| QwtMatrixRasterData::QwtMatrixRasterData | ( | ) |
Constructor. .
|
virtual |
Destructor .
|
finaloverridevirtual |
Return bounding interval for an axis.
Implements QwtRasterData.
| int QwtMatrixRasterData::numColumns | ( | ) | const |
Return number of columns of the value matrix.
| int QwtMatrixRasterData::numRows | ( | ) | const |
Return number of rows of the value matrix.
|
overridevirtual |
Calculate the pixel hint.
Reimplemented from QwtRasterData.
| QwtMatrixRasterData::ResampleMode QwtMatrixRasterData::resampleMode | ( | ) | const |
Return the resampling algorithm.
| void QwtMatrixRasterData::setInterval | ( | Qt::Axis | axis, |
| const QwtInterval & | interval | ||
| ) |
Assign the bounding interval for an axis.
| void QwtMatrixRasterData::setResampleMode | ( | ResampleMode | mode | ) |
Set the resampling algorithm.
| void QwtMatrixRasterData::setValue | ( | int | row, |
| int | col, | ||
| double | value | ||
| ) |
Change a single value in the matrix.
| void QwtMatrixRasterData::setValueMatrix | ( | const QVector< double > & | values, |
| int | numColumns | ||
| ) |
Assign a value matrix.
|
overridevirtual |
Return the value at a raster position.
Implements QwtRasterData.
| const QVector< double > QwtMatrixRasterData::valueMatrix | ( | ) | const |
Return value matrix.