QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
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#include "moc_qgs3dmaptool.cpp"
18
19#include "qgs3dmapcanvas.h"
20
22 : QObject( canvas )
23 , mCanvas( canvas )
24{
25}
26
27void Qgs3DMapTool::mousePressEvent( QMouseEvent *event )
28{
29 Q_UNUSED( event )
30}
31
32void Qgs3DMapTool::mouseReleaseEvent( QMouseEvent *event )
33{
34 Q_UNUSED( event )
35}
36
37void Qgs3DMapTool::mouseMoveEvent( QMouseEvent *event )
38{
39 Q_UNUSED( event )
40}
41
42void Qgs3DMapTool::keyPressEvent( QKeyEvent *event )
43{
44 Q_UNUSED( event )
45}
46
50
54
55QCursor Qgs3DMapTool::cursor() const
56{
57 return Qt::CrossCursor;
58}
59
60void Qgs3DMapTool::onMapSettingsChanged()
61{
62
63}
64
virtual void mousePressEvent(QMouseEvent *event)
Reimplement to handle mouse event forwarded by the parent Qgs3DMapCanvas.
virtual QCursor cursor() const
Mouse cursor to be used when the tool is active.
virtual void mouseMoveEvent(QMouseEvent *event)
Reimplement to handle mouse move event forwarded by the parent Qgs3DMapCanvas.
Qgs3DMapTool(Qgs3DMapCanvas *canvas)
Base constructor for a Qgs3DMapTool for the specified canvas.
virtual void keyPressEvent(QKeyEvent *event)
Reimplement to handle key press event forwarded by the parent Qgs3DMapCanvas.
virtual void deactivate()
Called when map tool is being deactivated.
Qgs3DMapCanvas * mCanvas
virtual void activate()
Called when set as currently active map tool.
Qgs3DMapCanvas * canvas()
Returns the parent Qgs3DMapCanvas.
virtual void mouseReleaseEvent(QMouseEvent *event)
Reimplement to handle mouse release event forwarded by the parent Qgs3DMapCanvas.