1 #ifndef CONSTELLATION_DISPLAY_PLOT_HPP
2 #define CONSTELLATION_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 ConstellationDisplayPlot:public QwtPlot{
20 ConstellationDisplayPlot(QWidget*);
21 virtual ~ConstellationDisplayPlot();
23 void PlotNewData(const double* realDataPoints, const double* imagDataPoints,
24 const int64_t numDataPoints);
26 virtual void replot();
28 void set_xaxis(double min, double max);
29 void set_yaxis(double min, double max);
30 void set_axis(double xmin, double xmax,
31 double ymin, double ymax);
34 void LegendEntryChecked(QwtPlotItem *plotItem, bool on);
39 QwtPlotCurve* _plot_curve;
41 QwtPlotPanner* _panner;
42 QwtPlotZoomer* _zoomer;
44 double* _realDataPoints;
45 double* _imagDataPoints;
51 double _displayIntervalTime;
54 #endif /* CONSTELLATION_DISPLAY_PLOT_HPP */