qavrg 0.0.28
qavrgmeasurer.h
Go to the documentation of this file.
00001 #ifndef QAVRGMEASURER_H
00002 #define QAVRGMEASURER_H
00003 
00004 #include <qwt_plot_picker.h>
00005 #include <qwt_plot_canvas.h>
00006 
00007 class QavrgMeasurer : public QwtPlotPicker
00008 {
00009   Q_OBJECT;
00010 
00011 public:
00012   QavrgMeasurer(int xAxis, int yAxis, QWidget *canvas);
00013   void connections();
00014 
00015   QwtText  trackerText(const QPointF &pos) const;
00016 
00017 public slots:
00018   void onAppended(const QPointF &pt);
00019   void onSelected(const QVector<QPointF> &poly);
00020 
00021 signals:
00022   void printMessage(QString msg);
00023 
00024 private:
00025   QPointF   m_StartPoint;
00026   bool      m_Started;
00027 };
00028 
00029 #endif // QAVRGMEASURER_H