commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10807 - gnuradio/branches/developers/trondeau/qtdevel


From: trondeau
Subject: [Commit-gnuradio] r10807 - gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib
Date: Sun, 12 Apr 2009 10:26:20 -0600 (MDT)

Author: trondeau
Date: 2009-04-12 10:26:19 -0600 (Sun, 12 Apr 2009)
New Revision: 10807

Modified:
   
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumUpdateEvents.cc
Log:
formatting

Modified: 
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumUpdateEvents.cc
===================================================================
--- 
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumUpdateEvents.cc
     2009-04-12 14:40:51 UTC (rev 10806)
+++ 
gnuradio/branches/developers/trondeau/qtdevel2/gr-qtgui/src/lib/spectrumUpdateEvents.cc
     2009-04-12 16:26:19 UTC (rev 10807)
@@ -3,8 +3,19 @@
 
 #include <spectrumUpdateEvents.h>
 
-SpectrumUpdateEvent::SpectrumUpdateEvent(const std::complex<float>* fftPoints, 
const uint64_t numFFTDataPoints, const double* realTimeDomainPoints, const 
double* imagTimeDomainPoints, const uint64_t numTimeDomainDataPoints, const 
double timePerFFT, const timespec dataTimestamp, const bool repeatDataFlag, 
const bool lastOfMultipleUpdateFlag, const timespec generatedTimestamp, const 
int droppedFFTFrames):QEvent(QEvent::Type(10005)){
-
+SpectrumUpdateEvent::SpectrumUpdateEvent(const std::complex<float>* fftPoints,
+                                        const uint64_t numFFTDataPoints,
+                                        const double* realTimeDomainPoints,
+                                        const double* imagTimeDomainPoints,
+                                        const uint64_t numTimeDomainDataPoints,
+                                        const double timePerFFT,
+                                        const timespec dataTimestamp,
+                                        const bool repeatDataFlag,
+                                        const bool lastOfMultipleUpdateFlag,
+                                        const timespec generatedTimestamp,
+                                        const int droppedFFTFrames)
+  : QEvent(QEvent::Type(10005))
+{
   _numFFTDataPoints = numFFTDataPoints;
   if(_numFFTDataPoints < 1){
     _numFFTDataPoints = 1;
@@ -22,13 +33,15 @@
   _realDataTimeDomainPoints = new double[_numTimeDomainDataPoints];
   memset(_realDataTimeDomainPoints, 0x0, 
_numTimeDomainDataPoints*sizeof(double));
   if(numTimeDomainDataPoints > 0){
-    memcpy(_realDataTimeDomainPoints, realTimeDomainPoints, 
numTimeDomainDataPoints*sizeof(double));
+    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));
+    memcpy(_imagDataTimeDomainPoints, imagTimeDomainPoints,
+          numTimeDomainDataPoints*sizeof(double));
   }
   _dataTimestamp = dataTimestamp;
   _timePerFFT = timePerFFT;
@@ -44,87 +57,126 @@
   delete[] _imagDataTimeDomainPoints;
 }
 
-const std::complex<float>* SpectrumUpdateEvent::getFFTPoints()const{
+const std::complex<float>*
+SpectrumUpdateEvent::getFFTPoints() const
+{
   return _fftPoints;
 }
 
-const double* SpectrumUpdateEvent::getRealTimeDomainPoints()const{
+const double*
+SpectrumUpdateEvent::getRealTimeDomainPoints() const
+{
   return _realDataTimeDomainPoints;
 }
 
-const double* SpectrumUpdateEvent::getImagTimeDomainPoints()const{
+const double*
+SpectrumUpdateEvent::getImagTimeDomainPoints() const
+{
   return _imagDataTimeDomainPoints;
 }
 
-uint64_t SpectrumUpdateEvent::getNumFFTDataPoints()const{
+uint64_t
+SpectrumUpdateEvent::getNumFFTDataPoints() const
+{
   return _numFFTDataPoints;
 }
 
-uint64_t SpectrumUpdateEvent::getNumTimeDomainDataPoints()const{
+uint64_t
+SpectrumUpdateEvent::getNumTimeDomainDataPoints() const
+{
   return _numTimeDomainDataPoints;
 }
 
-double SpectrumUpdateEvent::getTimePerFFT()const{
+double
+SpectrumUpdateEvent::getTimePerFFT() const
+{
   return _timePerFFT;
 }
 
-timespec SpectrumUpdateEvent::getDataTimestamp()const{
+timespec
+SpectrumUpdateEvent::getDataTimestamp() const
+{
   return _dataTimestamp;
 }
 
-bool SpectrumUpdateEvent::getRepeatDataFlag()const{
+bool
+SpectrumUpdateEvent::getRepeatDataFlag() const
+{
   return _repeatDataFlag;
 }
 
-bool SpectrumUpdateEvent::getLastOfMultipleUpdateFlag()const{
+bool
+SpectrumUpdateEvent::getLastOfMultipleUpdateFlag() const
+{
   return _lastOfMultipleUpdateFlag;
 }
 
-timespec SpectrumUpdateEvent::getEventGeneratedTimestamp()const{
+timespec
+SpectrumUpdateEvent::getEventGeneratedTimestamp() const
+{
   return _eventGeneratedTimestamp;
 }
 
-int SpectrumUpdateEvent::getDroppedFFTFrames()const{
+int
+SpectrumUpdateEvent::getDroppedFFTFrames() const
+{
   return _droppedFFTFrames;
 }
 
-SpectrumWindowCaptionEvent::SpectrumWindowCaptionEvent(const QString& 
newLbl):QEvent(QEvent::Type(10008)){
+SpectrumWindowCaptionEvent::SpectrumWindowCaptionEvent(const QString& newLbl)
+  : QEvent(QEvent::Type(10008))
+{
   _labelString = newLbl;
 }
 
-SpectrumWindowCaptionEvent::~SpectrumWindowCaptionEvent(){
+SpectrumWindowCaptionEvent::~SpectrumWindowCaptionEvent()
+{
 }
 
-QString SpectrumWindowCaptionEvent::getLabel(){
+QString
+SpectrumWindowCaptionEvent::getLabel()
+{
   return _labelString;
 }
 
-SpectrumWindowResetEvent::SpectrumWindowResetEvent():QEvent(QEvent::Type(10009)){
+SpectrumWindowResetEvent::SpectrumWindowResetEvent()
+  : QEvent(QEvent::Type(10009))
+{
 }
 
-SpectrumWindowResetEvent::~SpectrumWindowResetEvent(){
-
+SpectrumWindowResetEvent::~SpectrumWindowResetEvent()
+{
 }
 
-  SpectrumFrequencyRangeEvent::SpectrumFrequencyRangeEvent(const double 
centerFreq, const double startFreq, const double 
stopFreq):QEvent(QEvent::Type(10010)){
+SpectrumFrequencyRangeEvent::SpectrumFrequencyRangeEvent(const double 
centerFreq, 
+                                                        const double startFreq,
+                                                        const double stopFreq)
+  : QEvent(QEvent::Type(10010))
+{
   _centerFrequency = centerFreq;
   _startFrequency = startFreq;
   _stopFrequency = stopFreq;
 }
 
-SpectrumFrequencyRangeEvent::~SpectrumFrequencyRangeEvent(){
-
+SpectrumFrequencyRangeEvent::~SpectrumFrequencyRangeEvent()
+{
 }
 
-double SpectrumFrequencyRangeEvent::GetCenterFrequency()const{
+double
+SpectrumFrequencyRangeEvent::GetCenterFrequency() const
+{
   return _centerFrequency;
 }
 
-double SpectrumFrequencyRangeEvent::GetStartFrequency()const{
+double
+SpectrumFrequencyRangeEvent::GetStartFrequency() const
+{
   return _startFrequency;
 }
 
-double SpectrumFrequencyRangeEvent::GetStopFrequency()const{
+double
+SpectrumFrequencyRangeEvent::GetStopFrequency() const
+{
   return _stopFrequency;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]