diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-03-10 23:52:21 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-03-14 18:23:16 +0100 |
commit | 7d4c52b4e98ff02ac3bc73a5e543ad7dfb26e69b (patch) | |
tree | 7dedefb7b1a9ee80553ce5cb6a44793e84d97b87 /gr-qtgui/lib/spectrumUpdateEvents.cc | |
parent | 5568d1e1ca12f0d002541b8cbb68ac558e826a47 (diff) |
qtgui: Adding a Number sink with options to set autoscale, layout style, colors, averaging.
Diffstat (limited to 'gr-qtgui/lib/spectrumUpdateEvents.cc')
-rw-r--r-- | gr-qtgui/lib/spectrumUpdateEvents.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gr-qtgui/lib/spectrumUpdateEvents.cc b/gr-qtgui/lib/spectrumUpdateEvents.cc index 8c822efb4f..f48e079861 100644 --- a/gr-qtgui/lib/spectrumUpdateEvents.cc +++ b/gr-qtgui/lib/spectrumUpdateEvents.cc @@ -490,4 +490,26 @@ HistogramUpdateEvent::getNumDataPoints() const } + +/***************************************************************************/ + + +NumberUpdateEvent::NumberUpdateEvent(const std::vector<float> samples) + : QEvent(QEvent::Type(SpectrumUpdateEventType)) +{ + _samples = samples; + _nplots = samples.size(); +} + +NumberUpdateEvent::~NumberUpdateEvent() +{ +} + +const std::vector<float> +NumberUpdateEvent::getSamples() const +{ + return _samples; +} + + #endif /* SPECTRUM_UPDATE_EVENTS_C */ |