QGIS API Documentation
3.40.0-Bratislava (b56115d8743)
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
Qgs3DMapTool::Qgs3DMapTool
(
Qgs3DMapCanvas
*canvas )
21
: QObject( canvas )
22
, mCanvas( canvas )
23
{
24
}
25
26
void
Qgs3DMapTool::mousePressEvent
( QMouseEvent *event )
27
{
28
Q_UNUSED( event )
29
}
30
31
void
Qgs3DMapTool::mouseReleaseEvent
( QMouseEvent *event )
32
{
33
Q_UNUSED( event )
34
}
35
36
void
Qgs3DMapTool::mouseMoveEvent
( QMouseEvent *event )
37
{
38
Q_UNUSED( event )
39
}
40
41
void
Qgs3DMapTool::keyPressEvent
( QKeyEvent *event )
42
{
43
Q_UNUSED( event )
44
}
45
46
void
Qgs3DMapTool::activate
()
47
{
48
}
49
50
void
Qgs3DMapTool::deactivate
()
51
{
52
}
53
54
QCursor
Qgs3DMapTool::cursor
()
const
55
{
56
return
Qt::CrossCursor;
57
}
58
59
void
Qgs3DMapTool::onMapSettingsChanged()
60
{
61
62
}
63
64
Qgs3DMapCanvas
*
Qgs3DMapTool::canvas
()
65
{
66
return
mCanvas
;
67
}
Qgs3DMapCanvas
3
Definition
qgs3dmapcanvas.h:80
Qgs3DMapTool::mousePressEvent
virtual void mousePressEvent(QMouseEvent *event)
Reimplement to handle mouse event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:26
Qgs3DMapTool::cursor
virtual QCursor cursor() const
Mouse cursor to be used when the tool is active.
Definition
qgs3dmaptool.cpp:54
Qgs3DMapTool::mouseMoveEvent
virtual void mouseMoveEvent(QMouseEvent *event)
Reimplement to handle mouse move event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:36
Qgs3DMapTool::Qgs3DMapTool
Qgs3DMapTool(Qgs3DMapCanvas *canvas)
Base constructor for a Qgs3DMapTool for the specified canvas.
Definition
qgs3dmaptool.cpp:20
Qgs3DMapTool::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event)
Reimplement to handle key press event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:41
Qgs3DMapTool::deactivate
virtual void deactivate()
Called when map tool is being deactivated.
Definition
qgs3dmaptool.cpp:50
Qgs3DMapTool::mCanvas
Qgs3DMapCanvas * mCanvas
Definition
qgs3dmaptool.h:78
Qgs3DMapTool::activate
virtual void activate()
Called when set as currently active map tool.
Definition
qgs3dmaptool.cpp:46
Qgs3DMapTool::canvas
Qgs3DMapCanvas * canvas()
Returns the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:64
Qgs3DMapTool::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *event)
Reimplement to handle mouse release event forwarded by the parent Qgs3DMapCanvas.
Definition
qgs3dmaptool.cpp:31
qgs3dmapcanvas.h
qgs3dmaptool.h
Generated on Mon Oct 28 2024 22:06:03 for QGIS API Documentation by
1.9.8