QGIS API Documentation
3.14.0-Pi (9f7028fd23)
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
c
e
f
g
h
k
l
m
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Functions
a
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
gui
qgsmaptoolidentifyfeature.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaptoolidentifyfeature.h
3
--------------------------------------
4
Date : 22.5.2014
5
Copyright : (C) 2014 Denis Rouzaud
6
Email : denis.rouzaud@gmail.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
#ifndef QGSMAPTOOLIDENTIFYFEATURE_H
17
#define QGSMAPTOOLIDENTIFYFEATURE_H
18
19
#include "
qgsmaptoolidentify.h
"
20
#include "qgis_gui.h"
21
28
class
GUI_EXPORT
QgsMapToolIdentifyFeature
:
public
QgsMapToolIdentify
29
{
30
Q_OBJECT
31
32
public
:
33
39
QgsMapToolIdentifyFeature
(
QgsMapCanvas
*canvas,
QgsVectorLayer
*vl =
nullptr
);
40
42
void
setLayer(
QgsVectorLayer
*vl ) { mLayer = vl; }
43
44
void
canvasReleaseEvent
(
QgsMapMouseEvent
*e )
override
;
45
46
signals:
47
void
featureIdentified(
const
QgsFeature
& );
48
void
featureIdentified(
QgsFeatureId
);
49
50
protected
:
51
void
keyPressEvent
( QKeyEvent *e )
override
;
52
53
private
:
54
QgsMapCanvas
*mCanvas =
nullptr
;
55
QgsVectorLayer
*mLayer =
nullptr
;
56
};
57
58
#endif // QGSMAPTOOLIDENTIFYFEATURE_H
qgsmaptoolidentify.h
QgsMapToolIdentify
Map tool for identifying features in layers.
Definition:
qgsmaptoolidentify.h:47
QgsMapCanvas
Definition:
qgsmapcanvas.h:83
QgsMapToolIdentifyFeature
The QgsMapToolIdentifyFeature class is a map tool to identify a feature on a chosen layer....
Definition:
qgsmaptoolidentifyfeature.h:28
QgsMapTool::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Key event for overriding. Default implementation does nothing.
Definition:
qgsmaptool.cpp:182
QgsMapToolIdentify::canvasReleaseEvent
void canvasReleaseEvent(QgsMapMouseEvent *e) override
Mouse release event for overriding. Default implementation does nothing.
Definition:
qgsmaptoolidentify.cpp:83
QgsMapMouseEvent
Definition:
qgsmapmouseevent.h:35
QgsVectorLayer
Definition:
qgsvectorlayer.h:385
QgsFeature
Definition:
qgsfeature.h:55
QgsFeatureId
qint64 QgsFeatureId
Definition:
qgsfeatureid.h:25
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17