QGIS/python/gui/auto_generated/maptools/qgsmaptoolidentifyfeature.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

71 lines
2.3 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/maptools/qgsmaptoolidentifyfeature.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsMapToolIdentifyFeature : QgsMapToolIdentify
{
%Docstring(signature="appended")
A map tool to identify a feature on a chosen layer.
Once the map tool is enable, user can click on the map canvas to
identify a feature. A signal will then be emitted.
%End
%TypeHeaderCode
#include "qgsmaptoolidentifyfeature.h"
%End
public:
QgsMapToolIdentifyFeature( QgsMapCanvas *canvas, QgsVectorLayer *vl = 0 );
%Docstring
QgsMapToolIdentifyFeature is a map tool to identify a feature on a
chosen layer
:param canvas: the map canvas
:param vl: the vector layer. The map tool can be initialized without any
layer and can be set afterward.
%End
void setLayer( QgsVectorLayer *vl );
%Docstring
change the layer used by the map tool to identify
%End
virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
signals:
void featureIdentified( const QgsFeature &feature );
%Docstring
Emitted when a ``feature`` has been identified
%End
void featureIdentified( QgsFeatureId id ) /Deprecated="Since 3.40. Use the signal with a QgsFeature argument instead."/;
%Docstring
Emitted when a feature has been identified by its ``id``.
.. deprecated:: 3.40
Use the signal with a :py:class:`QgsFeature` argument instead.
%End
protected:
virtual void keyPressEvent( QKeyEvent *e );
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/maptools/qgsmaptoolidentifyfeature.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/