1 #ifndef CONSTELLATION_DISPLAY_PLOT_HPP
2 #define CONSTELLATION_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 ConstellationDisplayPlot : public QwtPlot
22 ConstellationDisplayPlot(QWidget*);
23 virtual ~ConstellationDisplayPlot();
25 void PlotNewData(const double* realDataPoints,
26 const double* imagDataPoints,
27 const int64_t numDataPoints,
28 const double timeInterval);
30 virtual void replot();
32 void set_xaxis(double min, double max);
33 void set_yaxis(double min, double max);
34 void set_axis(double xmin, double xmax,
35 double ymin, double ymax);
36 void set_pen_size(int size);
39 void resizeSlot( QSize *s );
42 void LegendEntryChecked(QwtPlotItem *plotItem, bool on);
47 QwtPlotCurve* _plot_curve;
49 QwtPlotPanner* _panner;
50 QwtPlotZoomer* _zoomer;
52 double* _realDataPoints;
53 double* _imagDataPoints;
61 #endif /* CONSTELLATION_DISPLAY_PLOT_HPP */