16 #ifndef QGSMAPTOOLIDENTIFY_H
17 #define QGSMAPTOOLIDENTIFY_H
53 DefaultQgsSetting = -1,
64 AllLayers = VectorLayer | RasterLayer
66 Q_DECLARE_FLAGS( LayerType, Type )
73 mLayer( layer ), mFeature( feature ), mDerivedAttributes( derivedAttributes ) {}
75 IdentifyResult(
QgsMapLayer * layer, QString label, QMap< QString, QString > attributes, QMap< QString, QString > derivedAttributes ):
76 mLayer( layer ), mLabel( label ), mAttributes( attributes ), mDerivedAttributes( derivedAttributes ) {}
79 mLayer( layer ), mLabel( label ), mFields( fields ), mFeature( feature ), mDerivedAttributes( derivedAttributes ) {}
114 QList<IdentifyResult> identify(
int x,
int y, QList<QgsMapLayer*> layerList = QList<QgsMapLayer*>(),
IdentifyMode mode = DefaultQgsSetting );
124 QList<IdentifyResult> identify(
int x,
int y,
IdentifyMode mode, LayerType layerType = AllLayers );
134 void identifyProgress(
int,
int );
135 void identifyMessage( QString );
136 void changedRasterResults( QList<IdentifyResult>& );
148 QList<IdentifyResult> identify(
int x,
int y, IdentifyMode mode, QList<QgsMapLayer*> layerList, LayerType layerType = AllLayers );
153 bool identifyLayer( QList<IdentifyResult> *results,
QgsMapLayer *layer,
QgsPoint point,
QgsRectangle viewExtent,
double mapUnitsPerPixel, LayerType layerType = AllLayers );
171 double mLastMapUnitsPerPixel;
176 Q_DECLARE_OPERATORS_FOR_FLAGS( QgsMapToolIdentify::LayerType )
A rectangle specified with double values.
Base class for all map layer types.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
UnitType
Map units that qgis supports.
Container of fields for a vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Map canvas is a class for displaying all GIS data types on a canvas.
A class for highlight features on the map.
A class to represent a point.
General purpose distance and area calculator.
Represents a vector layer which manages a vector based data sets.