1 #ifndef TIME_DOMAIN_DISPLAY_PLOT_HPP
2 #define TIME_DOMAIN_DISPLAY_PLOT_HPP
6 #include <qwt_painter.h>
7 #include <qwt_plot_canvas.h>
8 #include <qwt_plot_curve.h>
9 #include <qwt_scale_engine.h>
10 #include <qwt_scale_widget.h>
11 #include <qwt_plot_zoomer.h>
12 #include <qwt_plot_panner.h>
13 #include <qwt_plot_marker.h>
14 #include <highResTimeFunctions.h>
15 #include <qwt_symbol.h>
17 class TimeDomainDisplayPlot:public QwtPlot{
21 TimeDomainDisplayPlot(QWidget*);
22 virtual ~TimeDomainDisplayPlot();
24 void PlotNewData(const double* realDataPoints, const double* imagDataPoints,
25 const int64_t numDataPoints, const double timeInterval);
27 void SetImaginaryDataVisible(const bool);
29 virtual void replot();
31 void set_yaxis(double min, double max);
32 void set_xaxis(double min, double max);
35 void resizeSlot( QSize *s );
36 void SetSampleRate(double sr, double units,
37 const std::string &strunits);
40 void LegendEntryChecked(QwtPlotItem *plotItem, bool on);
45 void _resetXAxisPoints();
47 QwtPlotCurve* _real_plot_curve;
48 QwtPlotCurve* _imag_plot_curve;
50 QwtPlotPanner* _panner;
51 QwtPlotZoomer* _zoomer;
53 double* _realDataPoints;
54 double* _imagDataPoints;
64 #endif /* TIME_DOMAIN_DISPLAY_PLOT_HPP */