From befadabc2f18b483c71250adfd7dbf42f66b16f0 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Sun, 27 Mar 2011 12:55:16 -0400 Subject: gr-qtgui: restructuring qtgui directory to new layout. --- gr-qtgui/src/lib/spectrumUpdateEvents.cc | 180 ------------------------------- 1 file changed, 180 deletions(-) delete mode 100644 gr-qtgui/src/lib/spectrumUpdateEvents.cc (limited to 'gr-qtgui/src/lib/spectrumUpdateEvents.cc') diff --git a/gr-qtgui/src/lib/spectrumUpdateEvents.cc b/gr-qtgui/src/lib/spectrumUpdateEvents.cc deleted file mode 100644 index 53a205fb7..000000000 --- a/gr-qtgui/src/lib/spectrumUpdateEvents.cc +++ /dev/null @@ -1,180 +0,0 @@ -#ifndef SPECTRUM_UPDATE_EVENTS_C -#define SPECTRUM_UPDATE_EVENTS_C - -#include - -SpectrumUpdateEvent::SpectrumUpdateEvent(const std::complex* fftPoints, - const uint64_t numFFTDataPoints, - const double* realTimeDomainPoints, - const double* imagTimeDomainPoints, - const uint64_t numTimeDomainDataPoints, - const timespec dataTimestamp, - const bool repeatDataFlag, - const bool lastOfMultipleUpdateFlag, - const timespec generatedTimestamp, - const int droppedFFTFrames) - : QEvent(QEvent::Type(10005)) -{ - if(numFFTDataPoints < 1) { - _numFFTDataPoints = 1; - } - else { - _numFFTDataPoints = numFFTDataPoints; - } - - if(numTimeDomainDataPoints < 1) { - _numTimeDomainDataPoints = 1; - } - else { - _numTimeDomainDataPoints = numTimeDomainDataPoints; - } - - _fftPoints = new std::complex[_numFFTDataPoints]; - _fftPoints[0] = std::complex(0,0); - memcpy(_fftPoints, fftPoints, numFFTDataPoints*sizeof(std::complex)); - - _realDataTimeDomainPoints = new double[_numTimeDomainDataPoints]; - memset(_realDataTimeDomainPoints, 0x0, _numTimeDomainDataPoints*sizeof(double)); - if(numTimeDomainDataPoints > 0) { - memcpy(_realDataTimeDomainPoints, realTimeDomainPoints, - numTimeDomainDataPoints*sizeof(double)); - } - - _imagDataTimeDomainPoints = new double[_numTimeDomainDataPoints]; - memset(_imagDataTimeDomainPoints, 0x0, _numTimeDomainDataPoints*sizeof(double)); - if(numTimeDomainDataPoints > 0) { - memcpy(_imagDataTimeDomainPoints, imagTimeDomainPoints, - numTimeDomainDataPoints*sizeof(double)); - } - _dataTimestamp = dataTimestamp; - _repeatDataFlag = repeatDataFlag; - _lastOfMultipleUpdateFlag = lastOfMultipleUpdateFlag; - _eventGeneratedTimestamp = generatedTimestamp; - _droppedFFTFrames = droppedFFTFrames; -} - -SpectrumUpdateEvent::~SpectrumUpdateEvent() -{ - delete[] _fftPoints; - delete[] _realDataTimeDomainPoints; - delete[] _imagDataTimeDomainPoints; -} - -const std::complex* -SpectrumUpdateEvent::getFFTPoints() const -{ - return _fftPoints; -} - -const double* -SpectrumUpdateEvent::getRealTimeDomainPoints() const -{ - return _realDataTimeDomainPoints; -} - -const double* -SpectrumUpdateEvent::getImagTimeDomainPoints() const -{ - return _imagDataTimeDomainPoints; -} - -uint64_t -SpectrumUpdateEvent::getNumFFTDataPoints() const -{ - return _numFFTDataPoints; -} - -uint64_t -SpectrumUpdateEvent::getNumTimeDomainDataPoints() const -{ - return _numTimeDomainDataPoints; -} - -timespec -SpectrumUpdateEvent::getDataTimestamp() const -{ - return _dataTimestamp; -} - -bool -SpectrumUpdateEvent::getRepeatDataFlag() const -{ - return _repeatDataFlag; -} - -bool -SpectrumUpdateEvent::getLastOfMultipleUpdateFlag() const -{ - return _lastOfMultipleUpdateFlag; -} - -timespec -SpectrumUpdateEvent::getEventGeneratedTimestamp() const -{ - return _eventGeneratedTimestamp; -} - -int -SpectrumUpdateEvent::getDroppedFFTFrames() const -{ - return _droppedFFTFrames; -} - -SpectrumWindowCaptionEvent::SpectrumWindowCaptionEvent(const QString& newLbl) - : QEvent(QEvent::Type(10008)) -{ - _labelString = newLbl; -} - -SpectrumWindowCaptionEvent::~SpectrumWindowCaptionEvent() -{ -} - -QString -SpectrumWindowCaptionEvent::getLabel() -{ - return _labelString; -} - -SpectrumWindowResetEvent::SpectrumWindowResetEvent() - : QEvent(QEvent::Type(10009)) -{ -} - -SpectrumWindowResetEvent::~SpectrumWindowResetEvent() -{ -} - -SpectrumFrequencyRangeEvent::SpectrumFrequencyRangeEvent(const double centerFreq, - const double startFreq, - const double stopFreq) - : QEvent(QEvent::Type(10010)) -{ - _centerFrequency = centerFreq; - _startFrequency = startFreq; - _stopFrequency = stopFreq; -} - -SpectrumFrequencyRangeEvent::~SpectrumFrequencyRangeEvent() -{ -} - -double -SpectrumFrequencyRangeEvent::GetCenterFrequency() const -{ - return _centerFrequency; -} - -double -SpectrumFrequencyRangeEvent::GetStartFrequency() const -{ - return _startFrequency; -} - -double -SpectrumFrequencyRangeEvent::GetStopFrequency() const -{ - return _stopFrequency; -} - -#endif /* SPECTRUM_UPDATE_EVENTS_C */ -- cgit