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 )