customtracker.h
Go to the documentation of this file.
1 #ifndef CUSTOMTRACKER_H
2 #define CUSTOMTRACKER_H
3 
4 #include <QEvent>
5 #include "qwt_plot_picker.h"
6 #include "qwt_picker_machine.h"
7 #include "qwt_plot_marker.h"
8 
9 class QwtPlotCurve;
10 
11 
12 class CurveTracker: public QObject
13 {
14  Q_OBJECT
15 public:
16  explicit CurveTracker(QwtPlot * );
17 
18  QPointF actualPosition() const;
19 
20  typedef enum {
24  }Parameter;
25 
26 public slots:
27 
28  void setPosition(const QPointF & pos);
29 
30  void setParameter(Parameter par);
31 
32  void setEnabled(bool enable);
33 
34  void redraw()
35  {
37  }
38 
39 private:
40  QLineF curveLineAt( const QwtPlotCurve *, double x ) const;
41 
42  QPointF transform( QPoint);
43 
44  QPoint invTransform( QPointF);
45 
47  std::vector<QwtPlotMarker*> _marker;
51  Parameter _param;
52  bool _visible;
53 
54 };
55 
56 #endif // CUSTOMTRACKER_H
CurveTracker(QwtPlot *)
QPointF transform(QPoint)
A plot item, that represents a series of points.
Parameter _param
Definition: customtracker.h:51
A 2-D plotting widget.
Definition: qwt_plot.h:74
QwtPlotMarker * _line_marker
Definition: customtracker.h:48
QLineF curveLineAt(const QwtPlotCurve *, double x) const
TFSIMD_FORCE_INLINE const tfScalar & x() const
QPoint invTransform(QPointF)
void setEnabled(bool enable)
QwtPlotMarker * _text_marker
Definition: customtracker.h:49
QPointF _prev_trackerpoint
Definition: customtracker.h:46
std::vector< QwtPlotMarker * > _marker
Definition: customtracker.h:47
QwtPlot * _plot
Definition: customtracker.h:50
QPointF actualPosition() const
void setPosition(const QPointF &pos)
void setParameter(Parameter par)
A class for drawing markers.


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17