QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
maptools
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 "qgis_gui.h"
20
#include "
qgsmaptoolidentify.h
"
21
29
class
GUI_EXPORT
QgsMapToolIdentifyFeature
:
public
QgsMapToolIdentify
30
{
31
Q_OBJECT
32
33
public
:
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
51
void
featureIdentified
(
const
QgsFeature
&feature );
52
58
Q_DECL_DEPRECATED
void
featureIdentified
(
QgsFeatureId
id
)
SIP_DEPRECATED
;
59
60
protected
:
61
void
keyPressEvent
( QKeyEvent *e )
override
;
62
63
private
:
64
QgsVectorLayer
*mLayer =
nullptr
;
65
};
66
67
#endif
// QGSMAPTOOLIDENTIFYFEATURE_H
QgsFeature
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition
qgsfeature.h:60
QgsMapMouseEvent
A mouse event which is the result of a user interaction with a QgsMapCanvas.
Definition
qgsmapmouseevent.h:38
QgsMapToolIdentifyFeature::featureIdentified
void featureIdentified(const QgsFeature &feature)
Emitted when a feature has been identified.
QgsMapToolIdentifyFeature::featureIdentified
Q_DECL_DEPRECATED void featureIdentified(QgsFeatureId id)
Emitted when a feature has been identified by its id.
QgsMapToolIdentifyFeature::QgsMapToolIdentifyFeature
QgsMapToolIdentifyFeature(QgsMapCanvas *canvas, QgsVectorLayer *vl=nullptr)
QgsMapToolIdentifyFeature is a map tool to identify a feature on a chosen layer.
Definition
qgsmaptoolidentifyfeature.cpp:24
QgsMapToolIdentifyFeature::setLayer
void setLayer(QgsVectorLayer *vl)
change the layer used by the map tool to identify
Definition
qgsmaptoolidentifyfeature.h:42
QgsMapToolIdentify::canvasReleaseEvent
void canvasReleaseEvent(QgsMapMouseEvent *e) override
Mouse release event for overriding. Default implementation does nothing.
Definition
qgsmaptoolidentify.cpp:102
QgsMapToolIdentify::QgsMapToolIdentify
QgsMapToolIdentify(QgsMapCanvas *canvas)
constructor
Definition
qgsmaptoolidentify.cpp:77
QgsMapTool::canvas
QgsMapCanvas * canvas() const
returns pointer to the tool's map canvas
Definition
qgsmaptool.cpp:236
QgsMapTool::QgsMapCanvas
friend class QgsMapCanvas
Definition
qgsmaptool.h:423
QgsMapTool::keyPressEvent
virtual void keyPressEvent(QKeyEvent *e)
Key event for overriding. Default implementation does nothing.
Definition
qgsmaptool.cpp:208
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
SIP_DEPRECATED
#define SIP_DEPRECATED
Definition
qgis_sip.h:113
QgsFeatureId
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Definition
qgsfeatureid.h:32
qgsmaptoolidentify.h
Generated on
for QGIS API Documentation by
1.17.0