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 CartesianPlotTextMarker;
21 class CartesianPlotCrossMarker;
22
23 class OT_WIDGETS_API_EXPORT CartesianPlotMagnifier : public QwtPlotMagnifier {
24 public:
26
27 virtual void widgetMousePressEvent(QMouseEvent* _event) override;
28
29 virtual void widgetMouseMoveEvent(QMouseEvent* _event) override;
30
31 virtual void widgetMouseReleaseEvent(QMouseEvent* _event) override;
32
33 virtual void widgetWheelEvent(QWheelEvent* _wheelEvent) override;
34
35 virtual void rescale(double _factor) override;
36
37 private:
38 QPointF m_cursorPos;
39 bool m_rightMouseIsPressed;
40 CartesianPlot* m_plot;
41 CartesianPlotCrossMarker* m_crossMarker;
42 CartesianPlotTextMarker* m_textMarker;
43
44 void updateMarkers(const QPoint& _pos);
45
46 };
47
48}
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition CartesianPlotCrossMarker.h:17
Definition CartesianPlot.h:24
Definition CartesianPlotMagnifier.h:23
Definition CartesianPlotTextMarker.h:17
Definition Connector.h:8