1 #ifndef TIME_DOMAIN_DISPLAY_PLOT_HPP
2 #define TIME_DOMAIN_DISPLAY_PLOT_HPP
5 #include <qwt_painter.h>
6 #include <qwt_plot_canvas.h>
7 #include <qwt_plot_curve.h>
8 #include <qwt_scale_engine.h>
9 #include <qwt_scale_widget.h>
10 #include <qwt_plot_zoomer.h>
11 #include <qwt_plot_panner.h>
12 #include <qwt_plot_marker.h>
13 #include <highResTimeFunctions.h>
14 #include <qwt_symbol.h>
16 class TimeDomainDisplayPlot:public QwtPlot{
20 TimeDomainDisplayPlot(QWidget*);
21 virtual ~TimeDomainDisplayPlot();
23 void PlotNewData(const double* realDataPoints, const double* imagDataPoints, const int64_t numDataPoints);
25 void SetImaginaryDataVisible(const bool);
27 virtual void replot();
29 void set_yaxis(double min, double max);
32 void LegendEntryChecked(QwtPlotItem *plotItem, bool on);
37 void _resetXAxisPoints();
39 QwtPlotCurve* _real_plot_curve;
40 QwtPlotCurve* _imag_plot_curve;
42 QwtPlotPanner* _panner;
43 QwtPlotZoomer* _zoomer;
45 double* _realDataPoints;
46 double* _imagDataPoints;
53 double _displayIntervalTime;
56 #endif /* TIME_DOMAIN_DISPLAY_PLOT_HPP */