GNU Radio 3.4.0 C++ API
|
00001 #ifndef WATERFALL_GLOBAL_DATA_HPP 00002 #define WATERFALL_GLOBAL_DATA_HPP 00003 00004 #include <qwt_raster_data.h> 00005 #include <inttypes.h> 00006 00007 00008 class WaterfallData: public QwtRasterData 00009 { 00010 public: 00011 WaterfallData(const double, const double, const uint64_t, const unsigned int); 00012 virtual ~WaterfallData(); 00013 00014 virtual void Reset(); 00015 virtual void Copy(const WaterfallData*); 00016 00017 virtual void ResizeData(const double, const double, const uint64_t); 00018 00019 virtual QwtRasterData *copy() const; 00020 virtual QwtDoubleInterval range() const; 00021 virtual void setRange(const QwtDoubleInterval&); 00022 00023 virtual double value(double x, double y) const; 00024 00025 virtual uint64_t GetNumFFTPoints()const; 00026 virtual void addFFTData(const double*, const uint64_t, const int); 00027 00028 virtual double* GetSpectrumDataBuffer()const; 00029 virtual void SetSpectrumDataBuffer(const double*); 00030 00031 virtual int GetNumLinesToUpdate()const; 00032 virtual void SetNumLinesToUpdate(const int); 00033 virtual void IncrementNumLinesToUpdate(); 00034 00035 protected: 00036 00037 double* _spectrumData; 00038 uint64_t _fftPoints; 00039 uint64_t _historyLength; 00040 int _numLinesToUpdate; 00041 QwtDoubleInterval _intensityRange; 00042 00043 private: 00044 00045 }; 00046 00047 #endif /* WATERFALL_GLOBAL_DATA_HPP */