QWT API (中文) 7.0.1
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
qwt_grid_raster_data.h
1#ifndef QWT_GRID_RASTER_DATA_H
2#define QWT_GRID_RASTER_DATA_H
3#include "qwt_global.h"
4#include "qwt_raster_data.h"
5#if QT_VERSION < 0x060000
6template< typename T >
7class QVector;
8#endif
9
22class QWT_EXPORT QwtGridRasterData : public QwtRasterData
23{
24public:
37 {
48
59
69 BicubicInterpolation
70 };
71
72public:
73 // Constructor
75 // Destructor
76 virtual ~QwtGridRasterData();
77
78 // Set the resampling algorithm
79 void setResampleMode(ResampleMode mode);
80 // Return the resampling algorithm
81 ResampleMode resampleMode() const;
82
83 // Return bounding interval for an axis
84 virtual QwtInterval interval(Qt::Axis axis) const override final;
85
86 // Set new x-axis, y-axis, and data matrix
87 void setValue(const QVector< double >& x, const QVector< double >& y, const QVector< QVector< double > >& v);
88 // Return the value at a raster position
89 virtual double value(double x, double y) const override;
90
91 // Calculate the pixel hint
92 virtual QRectF pixelHint(const QRectF&) const override;
93
94 // Return the size of x-axis
95 int xSize() const;
96 // Return the size of y-axis
97 int ySize() const;
98 // Return the size of the value matrix
99 std::pair< int, int > valueSize() const;
100
101 // Return the value at specified position in the value matrix
102 double atValue(int xIndex, int yIndex) const;
103
104 // Return the x-axis value at specified index
105 double atX(int xIndex) const;
106 // Return the y-axis value at specified index
107 double atY(int yIndex) const;
108
109private:
110 class PrivateData;
111 PrivateData* m_data;
112};
113
114#endif // QWTGRIDRASTERDATA_H
Definition qwt_clipper.h:40
封装网格数据并提供插值方法的类。
Definition qwt_grid_raster_data.h:23
ResampleMode
重采样算法
Definition qwt_grid_raster_data.h:37
@ BilinearInterpolation
Definition qwt_grid_raster_data.h:58
@ NearestNeighbour
Definition qwt_grid_raster_data.h:47
表示区间的类
Definition qwt_interval.h:45
QwtRasterData 定义了任何类型栅格数据的接口
Definition qwt_raster_data.h:79
virtual QRectF pixelHint(const QRectF &) const
Return a hint for the raster item, about how to align the pixels
Definition qwt_raster_data.cpp:350