GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
plot_raster.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012,2013 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef PLOT_TIMERASTER_H
12 #define PLOT_TIMERASTER_H
13 
15 #include <qglobal.h>
16 #include <qwt_plot_rasteritem.h>
17 
18 #include <qsize.h>
19 #include <qwt_interval.h>
20 
21 class QwtColorMap;
22 
23 /*!
24  * \brief A plot item, which displays a time raster.
25  * \ingroup qtgui_blk
26  *
27  * \details
28  * A time raster displays three-dimensional data, where the 3rd dimension
29  * (the intensity) is displayed using colors. The colors are calculated
30  * from the values using a color map.
31  *
32  * \sa QwtRasterData, QwtColorMap
33  */
34 class PlotTimeRaster : public QwtPlotRasterItem
35 {
36 public:
37  explicit PlotTimeRaster(const QString& title = QString());
38  ~PlotTimeRaster() override;
39 
40  const TimeRasterData* data() const;
41 
43 
44  void setColorMap(const QwtColorMap* map);
45 
46  const QwtColorMap& colorMap() const;
47 
48  QwtInterval interval(Qt::Axis ax) const override;
49 
50  int rtti() const override;
51 
52 protected:
53  QImage renderImage(const QwtScaleMap& xMap,
54  const QwtScaleMap& yMap,
55  const QRectF& rect,
56  const QSize& size = QSize(0, 0)) const override;
57 
58 private:
59  class PrivateData;
60  PrivateData* d_data;
61 };
62 
63 #endif
A plot item, which displays a time raster.
Definition: plot_raster.h:35
QImage renderImage(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &rect, const QSize &size=QSize(0, 0)) const override
QwtInterval interval(Qt::Axis ax) const override
void setData(TimeRasterData *data)
void setColorMap(const QwtColorMap *map)
PlotTimeRaster(const QString &title=QString())
const TimeRasterData * data() const
~PlotTimeRaster() override
const QwtColorMap & colorMap() const
int rtti() const override
Definition: timeRasterGlobalData.h:20
PMT_API pmt_t map(pmt_t proc(const pmt_t &), pmt_t list)
Apply proc element-wise to the elements of list and returns a list of the results,...