OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CartesianPlotMagnifier.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11// Qwt header
12#include <qwt_plot_magnifier.h>
13
14// Qt header
15#include <QtCore/qpoint.h>
16
17namespace ot {
18
19 class CartesianPlot;
20 class CartesianPlotMarker;
21
22 class OT_WIDGETS_API_EXPORT CartesianPlotMagnifier : public QwtPlotMagnifier {
23 public:
25
26 virtual void widgetMousePressEvent(QMouseEvent* _event) override;
27
28 virtual void widgetMouseMoveEvent(QMouseEvent* _event) override;
29
30 virtual void widgetMouseReleaseEvent(QMouseEvent* _event) override;
31
32 virtual void widgetWheelEvent(QWheelEvent* _wheelEvent) override;
33
34 virtual void rescale(double _factor) override;
35
36 CartesianPlotMarker* marker(void) const { return m_marker; }
37
38 private:
39 QPointF m_cursorPos;
40 bool m_rightMouseIsPressed;
41 bool m_mouseMoved;
42 CartesianPlot* m_plot;
43 CartesianPlotMarker* m_marker;
44
45 };
46
47}
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition CartesianPlot.h:24
Definition CartesianPlotMagnifier.h:22
CartesianPlotMarker * marker(void) const
Definition CartesianPlotMagnifier.h:36
Definition CartesianPlotMarker.h:16
Definition Connector.h:8