Qwt User's Guide 6.3.0
Loading...
Searching...
No Matches
qwt_matrix_raster_data.h
1/******************************************************************************
2 * Qwt Widget Library
3 * Copyright (C) 1997 Josef Wilgen
4 * Copyright (C) 2002 Uwe Rathmann
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the Qwt License, Version 1.0
8 *****************************************************************************/
9
10#ifndef QWT_MATRIX_RASTER_DATA_H
11#define QWT_MATRIX_RASTER_DATA_H
12
13#include "qwt_global.h"
14#include "qwt_raster_data.h"
15
16#if QT_VERSION < 0x060000
17template< typename T > class QVector;
18#endif
19
28class QWT_EXPORT QwtMatrixRasterData : public QwtRasterData
29{
30 public:
36 {
42
48
53 BicubicInterpolation
54 };
55
57 virtual ~QwtMatrixRasterData();
58
59 void setResampleMode(ResampleMode mode);
60 ResampleMode resampleMode() const;
61
62 void setInterval( Qt::Axis, const QwtInterval& );
63 virtual QwtInterval interval( Qt::Axis axis) const QWT_OVERRIDE QWT_FINAL;
64
65 void setValueMatrix( const QVector< double >& values, int numColumns );
66 const QVector< double > valueMatrix() const;
67
68 void setValue( int row, int col, double value );
69
70 int numColumns() const;
71 int numRows() const;
72
73 virtual QRectF pixelHint( const QRectF& ) const QWT_OVERRIDE;
74
75 virtual double value( double x, double y ) const QWT_OVERRIDE;
76
77 private:
78 void update();
79
80 class PrivateData;
81 PrivateData* m_data;
82};
83
84#endif
A class representing an interval.
A class representing a matrix of values as raster data.
ResampleMode
Resampling algorithm The default setting is NearestNeighbour;.
QwtRasterData defines an interface to any type of raster data.
virtual QRectF pixelHint(const QRectF &) const
Pixel hint.
virtual double value(double x, double y) const =0
virtual QwtInterval interval(Qt::Axis) const =0