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
9
#include "
OTWidgets/OTWidgetsAPIExport.h
"
10
11
// Qwt header
12
#include <qwt_plot_magnifier.h>
13
14
// Qt header
15
#include <QtCore/qpoint.h>
16
17
namespace
ot
{
18
19
class
CartesianPlot;
20
class
CartesianPlotTextMarker;
21
class
CartesianPlotCrossMarker;
22
23
class
OT_WIDGETS_API_EXPORT
CartesianPlotMagnifier
:
public
QwtPlotMagnifier {
24
public
:
25
CartesianPlotMagnifier
(
CartesianPlot
* _plot);
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
}
OTWidgetsAPIExport.h
OT_WIDGETS_API_EXPORT
#define OT_WIDGETS_API_EXPORT
Definition
OTWidgetsAPIExport.h:12
ot::CartesianPlotCrossMarker
Definition
CartesianPlotCrossMarker.h:17
ot::CartesianPlot
Definition
CartesianPlot.h:24
ot::CartesianPlotMagnifier
Definition
CartesianPlotMagnifier.h:23
ot::CartesianPlotTextMarker
Definition
CartesianPlotTextMarker.h:17
ot
Definition
Connector.h:8
Libraries
OTWidgets
include
OTWidgets
CartesianPlotMagnifier.h
Generated by
1.10.0