1 #ifndef WATERFALL_DISPLAY_PLOT_HPP
2 #define WATERFALL_DISPLAY_PLOT_HPP
5 #include <qwt_plot_zoomer.h>
6 #include <qwt_plot_panner.h>
8 #include <plot_waterfall.h>
10 #include <highResTimeFunctions.h>
12 class WaterfallDisplayPlot:public QwtPlot{
16 WaterfallDisplayPlot(QWidget*);
17 virtual ~WaterfallDisplayPlot();
21 void SetFrequencyRange(const double, const double, const double, const bool);
22 double GetStartFrequency()const;
23 double GetStopFrequency()const;
25 void PlotNewData(const double* dataPoints, const int64_t numDataPoints, const double timePerFFT, const timespec timestamp, const int droppedFrames);
27 void SetIntensityRange(const double minIntensity, const double maxIntensity);
29 virtual void replot(void);
31 int GetIntensityColorMapType()const;
32 void SetIntensityColorMapType( const int, const QColor, const QColor );
33 const QColor GetUserDefinedLowIntensityColor()const;
34 const QColor GetUserDefinedHighIntensityColor()const;
36 static const int INTENSITY_COLOR_MAP_TYPE_MULTI_COLOR = 0;
37 static const int INTENSITY_COLOR_MAP_TYPE_WHITE_HOT = 1;
38 static const int INTENSITY_COLOR_MAP_TYPE_BLACK_HOT = 2;
39 static const int INTENSITY_COLOR_MAP_TYPE_INCANDESCENT = 3;
40 static const int INTENSITY_COLOR_MAP_TYPE_USER_DEFINED = 4;
43 void UpdatedLowerIntensityLevel(const double);
44 void UpdatedUpperIntensityLevel(const double);
49 void _UpdateIntensityRangeDisplay();
51 double _startFrequency;
52 double _stopFrequency;
54 PlotWaterfall *d_spectrogram;
56 QwtPlotPanner* _panner;
57 QwtPlotZoomer* _zoomer;
59 WaterfallData* _waterfallData;
65 double _displayIntervalTime;
67 int _intensityColorMapType;
68 QColor _userDefinedLowIntensityColor;
69 QColor _userDefinedHighIntensityColor;
72 #endif /* WATERFALL_DISPLAY_PLOT_HPP */