1 #ifndef QTRASTERDATA_H_
2 #define QTRASTERDATA_H_
5 #include <qwt_raster_data.h>
8 class QwtPlotSpectrogram;
56 void initRaster(
const QwtDoubleRect &r,
const QSize &raster );
57 QwtRasterData *
copy( )
const;
58 double value(
double x,
double y)
const;
59 void setData(
const QList<double> &
array,
int sizex,
int sizey);
60 QwtDoubleInterval
range()
const;
74 int ArrPos(
const int x,
const int y)
const {
75 int result =
static_cast<int>(y +
m_DataSize.
y * x);
77 return result >
length_ ? 0 : result;
void initRaster(const QwtDoubleRect &r, const QSize &raster)
void setBoundingRect(const QwtDoubleRect &rect)
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
void setRangeX(const double min, const double max)
int ArrPos(const int x, const int y) const
double value(double x, double y) const
void setData(const double *array, int sizex, int sizey, double min, double max)
QtRasterData(QwtPlotSpectrogram *s)
Constructor giving back the QwtRasterData Constructor.
QwtRasterData * copy() const
void fillAndFindMinMax(const QList< double > &array, double &min, double &max)
QwtDoubleInterval range() const
QwtPlotSpectrogram * spect
QwtDoubleRect bounding_box
void setRangeY(const double min, const double max)