QGIS API Documentation
3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
src
3d
qgs3dmaptool.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgs3dmaptool.cpp
3
--------------------------------------
4
Date : Sep 2018
5
Copyright : (C) 2018 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgs3dmaptool.h
"
17
18
#include "
qgs3dmapcanvas.h
"
19
20
#include "moc_qgs3dmaptool.cpp"
21
22
Qgs3DMapTool::Qgs3DMapTool
(
Qgs3DMapCanvas
*
canvas
)
23
: QObject(
canvas
)
24
,
mCanvas
(
canvas
)
25
{
26
}
27
28
void
Qgs3DMapTool::mousePressEvent
( QMouseEvent *event )
29
{
30
Q_UNUSED( event )
31
}
32
33
void
Qgs3DMapTool::mouseReleaseEvent
( QMouseEvent *event )
34
{
35
Q_UNUSED( event )
36
}
37
38
void
Qgs3DMapTool::mouseMoveEvent
( QMouseEvent *event )
39
{
40
Q_UNUSED( event )
41
}
42
43
void
Qgs3DMapTool::keyPressEvent
( QKeyEvent *event )
44
{
45
Q_UNUSED( event )
46
}
47
48
void
Qgs3DMapTool::keyReleaseEvent
( QKeyEvent *event )
49
{
50
Q_UNUSED( event )
51
}
52
53
void
Qgs3DMapTool::mouseWheelEvent
( QWheelEvent *event )
54
{
55
Q_UNUSED( event )
56
}
57
58
void
Qgs3DMapTool::activate
()
59
{
60
}
61
62
void
Qgs3DMapTool::deactivate
()
63
{
64
}
65
66
QCursor
Qgs3DMapTool::cursor
()
const
67
{
68
return
Qt::CrossCursor;
69
}
70
71
void
Qgs3DMapTool::onMapSettingsChanged()
72
{
73
}
74
75
Qgs3DMapCanvas
*
Qgs3DMapTool::canvas
()
76
{
77
return
mCanvas
;
78
}
Qgs3DMapCanvas
Convenience wrapper to simplify the creation of a 3D window ready to be used with QGIS.
Definition
qgs3dmapcanvas.h:84
Qgs3DMapTool::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Reimplement to handle mouse event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:28
Qgs3DMapTool::cursor
virtual QCursor cursor() const
Mouse cursor to be used when the tool is active.
Definition
qgs3dmaptool.cpp:66
Qgs3DMapTool::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *event)
Reimplement to handle mouse move event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:38
Qgs3DMapTool::Qgs3DMapTool
Qgs3DMapTool(Qgs3DMapCanvas *canvas)
Base constructor for a Qgs3DMapTool for the specified canvas.
Definition
qgs3dmaptool.cpp:22
Qgs3DMapTool::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event)
Reimplement to handle key press event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:43
Qgs3DMapTool::deactivate
virtual void deactivate()
Called when map tool is being deactivated.
Definition
qgs3dmaptool.cpp:62
Qgs3DMapTool::mCanvas
Qgs3DMapCanvas * mCanvas
Definition
qgs3dmaptool.h:72
Qgs3DMapTool::activate
virtual void activate()
Called when set as currently active map tool.
Definition
qgs3dmaptool.cpp:58
Qgs3DMapTool::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event)
Reimplement to handle key release event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:48
Qgs3DMapTool::canvas
Qgs3DMapCanvas * canvas()
Returns the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:75
Qgs3DMapTool::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *event)
Reimplement to handle mouse release event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:33
Qgs3DMapTool::mouseWheelEvent
virtual void mouseWheelEvent(QWheelEvent *event)
Reimplement to handle mouse wheel event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:53
qgs3dmapcanvas.h
qgs3dmaptool.h
Generated on
for QGIS API Documentation by
1.15.0