2017-06-07 16:16:21 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmaptoolidentifyfeature.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-05-22 16:39:18 +02:00
|
|
|
class QgsMapToolIdentifyFeature : QgsMapToolIdentify
|
|
|
|
{
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
The QgsMapToolIdentifyFeature class is a map tool to identify a feature on a chosen layer.
|
2017-12-15 10:36:55 -04:00
|
|
|
Once the map tool is enable, user can click on the map canvas to identify a feature.
|
|
|
|
A signal will then be emitted.
|
2014-05-22 16:39:18 +02:00
|
|
|
%End
|
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsmaptoolidentifyfeature.h"
|
|
|
|
%End
|
2014-05-22 16:39:18 +02:00
|
|
|
public:
|
2014-11-13 23:13:13 +01:00
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
QgsMapToolIdentifyFeature( QgsMapCanvas *canvas, QgsVectorLayer *vl = 0 );
|
|
|
|
%Docstring
|
|
|
|
QgsMapToolIdentifyFeature is a map tool to identify a feature on a chosen layer
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param canvas: the map canvas
|
|
|
|
:param vl: the vector layer. The map tool can be initialized without any layer and can be set afterward.
|
2017-06-07 16:16:21 +02:00
|
|
|
%End
|
2014-09-16 09:33:51 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setLayer( QgsVectorLayer *vl );
|
2017-06-07 16:16:21 +02:00
|
|
|
%Docstring
|
|
|
|
change the layer used by the map tool to identify
|
|
|
|
%End
|
2014-05-22 16:39:18 +02:00
|
|
|
|
2017-06-07 16:16:21 +02:00
|
|
|
virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
|
2014-05-22 16:39:18 +02:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2014-05-22 16:39:18 +02:00
|
|
|
signals:
|
2017-06-07 16:16:21 +02:00
|
|
|
void featureIdentified( const QgsFeature & );
|
|
|
|
void featureIdentified( QgsFeatureId );
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void keyPressEvent( QKeyEvent *e );
|
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2014-05-22 16:39:18 +02:00
|
|
|
};
|
2017-06-07 16:16:21 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsmaptoolidentifyfeature.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|