diff options
author | Tom Rondeau <trondeau@vt.edu> | 2012-07-04 20:55:47 -0400 |
---|---|---|
committer | Tom Rondeau <trondeau@vt.edu> | 2012-07-04 20:55:47 -0400 |
commit | cf8fbed51d45c28f7079e8796819f5cd4f889979 (patch) | |
tree | 264d0ee72f1286231aeb76ef6c15ad0fd8f22c21 /gr-qtgui/lib/spectrumUpdateEvents.h | |
parent | bf665eeb45e6816202e146eeff059a1ac81b73e2 (diff) |
qtgui: adding stand-alone waterfall form/plots.
Diffstat (limited to 'gr-qtgui/lib/spectrumUpdateEvents.h')
-rw-r--r-- | gr-qtgui/lib/spectrumUpdateEvents.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gr-qtgui/lib/spectrumUpdateEvents.h b/gr-qtgui/lib/spectrumUpdateEvents.h index 419ceacf4b..e663980bc6 100644 --- a/gr-qtgui/lib/spectrumUpdateEvents.h +++ b/gr-qtgui/lib/spectrumUpdateEvents.h @@ -179,4 +179,37 @@ private: }; +/********************************************************************/ + + +class WaterfallUpdateEvent: public QEvent +{ +public: + WaterfallUpdateEvent(const std::vector<double*> dataPoints, + const uint64_t numDataPoints, + const gruel::high_res_timer_type dataTimestamp); + + ~WaterfallUpdateEvent(); + + int which() const; + const std::vector<double*> getPoints() const; + uint64_t getNumDataPoints() const; + bool getRepeatDataFlag() const; + + gruel::high_res_timer_type getDataTimestamp() const; + + static QEvent::Type Type() + { return QEvent::Type(SpectrumUpdateEventType); } + +protected: + +private: + size_t _nplots; + std::vector<double*> _dataPoints; + uint64_t _numDataPoints; + + gruel::high_res_timer_type _dataTimestamp; +}; + + #endif /* SPECTRUM_UPDATE_EVENTS_H */ |