Changeset 11158 in ntrip for trunk/BNC/qwt/qwt_matrix_raster_data.h
- Timestamp:
- Nov 3, 2026, 10:53:35 AM (3 weeks ago)
- File:
-
- 1 edited
-
trunk/BNC/qwt/qwt_matrix_raster_data.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_matrix_raster_data.h
r9383 r11158 1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*-*****************************1 /****************************************************************************** 2 2 * Qwt Widget Library 3 3 * Copyright (C) 1997 Josef Wilgen … … 9 9 10 10 #ifndef QWT_MATRIX_RASTER_DATA_H 11 #define QWT_MATRIX_RASTER_DATA_H 111 #define QWT_MATRIX_RASTER_DATA_H 12 12 13 13 #include "qwt_global.h" 14 14 #include "qwt_raster_data.h" 15 #include <qvector.h> 15 16 #if QT_VERSION < 0x060000 17 template< typename T > class QVector; 18 #endif 16 19 17 20 /*! 18 \brief A class representing a matrix of values as raster data 21 \brief A class representing a matrix of values as raster data 19 22 20 QwtMatrixRasterData implements an interface for a matrix of 21 equidistant values, that can be used by a QwtPlotRasterItem. 22 It implements a couple of resampling algorithms, to provide 23 values for positions, that or not on the value matrix. 24 */ 25 class QWT_EXPORT QwtMatrixRasterData: public QwtRasterData 23 QwtMatrixRasterData implements an interface for a matrix of 24 equidistant values, that can be used by a QwtPlotRasterItem. 25 It implements a couple of resampling algorithms, to provide 26 values for positions, that or not on the value matrix. 27 */ 28 class QWT_EXPORT QwtMatrixRasterData : public QwtRasterData 26 29 { 27 public: 30 public: 28 31 /*! 29 \brief Resampling algorithm 30 The default setting is NearestNeighbour; 31 */ 32 \brief Resampling algorithm 33 The default setting is NearestNeighbour; 34 */ 32 35 enum ResampleMode 33 36 { 34 37 /*! 35 Return the value from the matrix, that is nearest to the 36 the requested position. 38 Return the value from the matrix, that is nearest to the 39 the requested position. 37 40 */ 38 41 NearestNeighbour, 39 42 40 43 /*! 41 Interpolate the value from the distances and values of the 42 4 surrounding values in the matrix, 44 Interpolate the value from the distances and values of the 45 4 surrounding values in the matrix, 43 46 */ 44 BilinearInterpolation 47 BilinearInterpolation, 48 49 /*! 50 Interpolate the value from the 16 surrounding values in the 51 matrix using hermite bicubic interpolation 52 */ 53 BicubicInterpolation 45 54 }; 46 55 … … 51 60 ResampleMode resampleMode() const; 52 61 53 virtual void setInterval( Qt::Axis, const QwtInterval & ); 62 void setInterval( Qt::Axis, const QwtInterval& ); 63 virtual QwtInterval interval( Qt::Axis axis) const QWT_OVERRIDE QWT_FINAL; 54 64 55 void setValueMatrix( const QVector< double> &values, int numColumns );56 const QVector< double> valueMatrix() const;65 void setValueMatrix( const QVector< double >& values, int numColumns ); 66 const QVector< double > valueMatrix() const; 57 67 58 68 void setValue( int row, int col, double value ); … … 61 71 int numRows() const; 62 72 63 virtual QRectF pixelHint( const QRectF & ) const;73 virtual QRectF pixelHint( const QRectF& ) const QWT_OVERRIDE; 64 74 65 virtual double value( double x, double y ) const; 75 virtual double value( double x, double y ) const QWT_OVERRIDE; 66 76 67 private: 77 private: 68 78 void update(); 69 79 70 80 class PrivateData; 71 PrivateData *d_data;81 PrivateData* m_data; 72 82 }; 73 83
Note:
See TracChangeset
for help on using the changeset viewer.
