GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
waterfallGlobalData.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 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 WATERFALL_GLOBAL_DATA_HPP
12 #define WATERFALL_GLOBAL_DATA_HPP
13 
14 #include <qwt_raster_data.h>
15 #include <cinttypes>
16 
17 #include <qwt_interval.h>
18 
19 class WaterfallData : public QwtRasterData
20 {
21 public:
22  WaterfallData(const double, const double, const uint64_t, const unsigned int);
23  ~WaterfallData() override;
24 
25  virtual void reset();
26  virtual void copy(const WaterfallData*);
27 
28  virtual void
29  resizeData(const double, const double, const uint64_t, const int history = 0);
30 
31  virtual QwtRasterData* copy() const;
32 
33 #if QWT_VERSION >= 0x060200
34  virtual QwtInterval interval(Qt::Axis) const override;
35  void setInterval(Qt::Axis, const QwtInterval&);
36 #endif
37 
38  double value(double x, double y) const override;
39 
40  virtual uint64_t getNumFFTPoints() const;
41  virtual void addFFTData(const double*, const uint64_t, const int);
42 
43  virtual const double* getSpectrumDataBuffer() const;
44  virtual void setSpectrumDataBuffer(const double*);
45 
46  virtual int getNumLinesToUpdate() const;
47  virtual void setNumLinesToUpdate(const int);
48  virtual void incrementNumLinesToUpdate();
49 
50 protected:
51  std::vector<double> _spectrumData;
52  uint64_t _fftPoints;
53  uint64_t _historyLength;
55 
56  QwtInterval _intensityRange;
57 
58 #if QWT_VERSION >= 0x060200
59  QwtInterval d_intervals[3];
60 #endif
61 
62 private:
63 };
64 
65 #endif /* WATERFALL_GLOBAL_DATA_HPP */
Definition: waterfallGlobalData.h:20
WaterfallData(const double, const double, const uint64_t, const unsigned int)
int _numLinesToUpdate
Definition: waterfallGlobalData.h:54
virtual int getNumLinesToUpdate() const
virtual void reset()
~WaterfallData() override
virtual void copy(const WaterfallData *)
uint64_t _historyLength
Definition: waterfallGlobalData.h:53
virtual void resizeData(const double, const double, const uint64_t, const int history=0)
uint64_t _fftPoints
Definition: waterfallGlobalData.h:52
double value(double x, double y) const override
QwtInterval _intensityRange
Definition: waterfallGlobalData.h:56
virtual void incrementNumLinesToUpdate()
virtual void addFFTData(const double *, const uint64_t, const int)
virtual const double * getSpectrumDataBuffer() const
virtual void setNumLinesToUpdate(const int)
virtual uint64_t getNumFFTPoints() const
virtual QwtRasterData * copy() const
virtual void setSpectrumDataBuffer(const double *)
std::vector< double > _spectrumData
Definition: waterfallGlobalData.h:51