Qwt User's Guide  6.1.3
qwt_matrix_raster_data.h
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
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 1
12 
13 #include "qwt_global.h"
14 #include "qwt_raster_data.h"
15 #include <qvector.h>
16 
25 class QWT_EXPORT QwtMatrixRasterData: public QwtRasterData
26 {
27 public:
33  {
39 
44  BilinearInterpolation
45  };
46 
48  virtual ~QwtMatrixRasterData();
49 
50  void setResampleMode(ResampleMode mode);
51  ResampleMode resampleMode() const;
52 
53  virtual void setInterval( Qt::Axis, const QwtInterval & );
54 
55  void setValueMatrix( const QVector<double> &values, int numColumns );
56  const QVector<double> valueMatrix() const;
57 
58  void setValue( int row, int col, double value );
59 
60  int numColumns() const;
61  int numRows() const;
62 
63  virtual QRectF pixelHint( const QRectF & ) const;
64 
65  virtual double value( double x, double y ) const;
66 
67 private:
68  void update();
69 
70  class PrivateData;
71  PrivateData *d_data;
72 };
73 
74 #endif
QwtRasterData defines an interface to any type of raster data.
Definition: qwt_raster_data.h:32
virtual void setInterval(Qt::Axis, const QwtInterval &)
Definition: qwt_raster_data.cpp:176
ResampleMode
Resampling algorithm The default setting is NearestNeighbour;.
Definition: qwt_matrix_raster_data.h:32
virtual QRectF pixelHint(const QRectF &) const
Pixel hint.
Definition: qwt_raster_data.cpp:242
A class representing a matrix of values as raster data.
Definition: qwt_matrix_raster_data.h:25
virtual double value(double x, double y) const =0
A class representing an interval.
Definition: qwt_interval.h:26
Definition: qwt_matrix_raster_data.h:38