QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
plot
qgsplottoolpan.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsplottoolpan.h
3
---------------
4
begin : March 2022
5
copyright : (C) 2022 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSPLOTTOOLPAN_H
19
#define QGSPLOTTOOLPAN_H
20
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
#include "
qgsplottool.h
"
24
31
class
GUI_EXPORT
QgsPlotToolPan
:
public
QgsPlotTool
32
{
33
Q_OBJECT
34
35
public
:
39
QgsPlotToolPan
(
QgsPlotCanvas
*
canvas
);
40
41
Qgis::PlotToolFlags
flags
()
const override
;
42
void
plotMoveEvent
(
QgsPlotMouseEvent
*event )
override
;
43
void
plotPressEvent
(
QgsPlotMouseEvent
*event )
override
;
44
void
plotReleaseEvent
(
QgsPlotMouseEvent
*event )
override
;
45
void
deactivate
()
override
;
46
47
private
:
48
bool
mIsPanning =
false
;
49
QPoint mLastMousePos;
51
QPoint mMousePressStartPos;
52
};
53
54
#endif
// QGSPLOTTOOLPAN_H
Qgis::PlotToolFlags
QFlags< PlotToolFlag > PlotToolFlags
Definition
qgis.h:4387
QgsPlotCanvas
Plot canvas is a class for displaying interactive 2d charts and plots.
Definition
qgsplotcanvas.h:55
QgsPlotMouseEvent
A mouse event which is the result of a user interaction with a QgsPlotCanvas.
Definition
qgsplotmouseevent.h:40
QgsPlotToolPan::QgsPlotToolPan
QgsPlotToolPan(QgsPlotCanvas *canvas)
Constructor for QgsPlotToolPan, with the associated canvas.
Definition
qgsplottoolpan.cpp:25
QgsPlotTool::canvas
QgsPlotCanvas * canvas() const
Returns the tool's plot canvas.
Definition
qgsplottool.cpp:147
QgsPlotTool::deactivate
virtual void deactivate()
Called when the tool is being deactivated.
Definition
qgsplottool.cpp:89
QgsPlotTool::QgsPlotTool
QgsPlotTool(QgsPlotCanvas *canvas, const QString &name)
Constructor takes a plot canvas as a parameter.
Definition
qgsplottool.cpp:28
QgsPlotTool::plotMoveEvent
virtual void plotMoveEvent(QgsPlotMouseEvent *event)
Mouse move event for overriding.
Definition
qgsplottool.cpp:102
QgsPlotTool::plotPressEvent
virtual void plotPressEvent(QgsPlotMouseEvent *event)
Mouse press event for overriding.
Definition
qgsplottool.cpp:112
QgsPlotTool::plotReleaseEvent
virtual void plotReleaseEvent(QgsPlotMouseEvent *event)
Mouse release event for overriding.
Definition
qgsplottool.cpp:117
QgsPlotTool::flags
virtual Qgis::PlotToolFlags flags() const
Returns the flags for the plot tool.
Definition
qgsplottool.cpp:74
qgis_sip.h
qgsplottool.h
Generated on
for QGIS API Documentation by
1.17.0