00001
00023 #ifndef XYPLOT_H
00024 #define XYPLOT_H
00025
00026 #include <QString>
00027
00028 #include <qwt_plot.h>
00029 #include <qwt_legend.h>
00030 #include <qwt_plot_canvas.h>
00031 #include <qwt_plot_curve.h>
00032 #include <qwt_series_data.h>
00033 #include <qwt_text.h>
00034 #include <qwt_math.h>
00035 #include <qwt_legend.h>
00036 #include <qwt_plot_marker.h>
00037 #include <qwt_plot_zoomer.h>
00038 #include <qwt_plot_panner.h>
00039 #include <qwt_scale_engine.h>
00040 #include <qwt_plot_printfilter.h>
00041 #include <QDebug>
00042
00043 #include <vector>
00044
00045 class XYPlot : public QwtPlot
00046 {
00047 public:
00048 XYPlot(QWidget *parent, QString title, QString xAxisLabel = "", QString yAxisLabel = "");
00049
00050 void addCurve(std::vector<double> xValuesList, std::vector<double> yValuesList, QString legend = "");
00051 virtual void clear();
00052
00053 QwtPlot * Plot();
00054 QwtPlotZoomer* zoomer;
00055 private:
00056 int _curves;
00057 std::vector<QPen> _pens;
00058
00059 };
00060
00061 #endif // XYPLOT_H