OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PolarPlotMagnifier.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
11
12// Qwt header
13#include <qwt_polar_magnifier.h>
14
15namespace ot {
16
17 class PolarPlot;
18 class PolarPlotMarker;
19
20 class OT_WIDGETS_API_EXPORT PolarPlotMagnifier : public QwtPolarMagnifier {
23 public:
25 virtual ~PolarPlotMagnifier();
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
38 private:
39 PolarPlot* m_plot;
40 bool m_rightMouseIsPressed;
41 bool m_mouseMoved;
42 PolarPlotMarker* m_marker;
43 };
44
45}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition PolarPlot.h:22
Definition PolarPlotMagnifier.h:20
Definition PolarPlotMarker.h:19
Definition Connector.h:8