GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
plot_waterfall.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2008-2012 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_WATERFALL_H
12 #define PLOT_WATERFALL_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 waterfall spectrogram
25  * \ingroup qtgui_blk
26  *
27  * \details
28  * A waterfall 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 PlotWaterfall : public QwtPlotRasterItem
35 {
36 public:
37  explicit PlotWaterfall(WaterfallData* data, const QString& title = QString());
38  ~PlotWaterfall() override;
39 
40  const WaterfallData* data() const;
41 
42  void setColorMap(const QwtColorMap&);
43 
44  const QwtColorMap& colorMap() const;
45 
46  int rtti() const override;
47 
48 protected:
49  QImage renderImage(const QwtScaleMap& xMap,
50  const QwtScaleMap& yMap,
51  const QRectF& rect,
52  const QSize& size = QSize(0, 0)) const override;
53 
54 private:
55  class PrivateData;
56  PrivateData* d_data;
57 };
58 
59 #endif
A plot item, which displays a waterfall spectrogram.
Definition: plot_waterfall.h:35
const WaterfallData * data() const
int rtti() const override
void setColorMap(const QwtColorMap &)
const QwtColorMap & colorMap() const
~PlotWaterfall() override
QImage renderImage(const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &rect, const QSize &size=QSize(0, 0)) const override
PlotWaterfall(WaterfallData *data, const QString &title=QString())
Definition: waterfallGlobalData.h:20