60 DefaultQgsSetting = -1,
66 Q_ENUM( IdentifyMode )
75 AllLayers = VectorLayer | RasterLayer | MeshLayer | VectorTileLayer | PointCloudLayer
77 Q_DECLARE_FLAGS( LayerType, Type )
86 : mLayer( layer ), mFeature( feature ), mDerivedAttributes( derivedAttributes ) {}
88 IdentifyResult(
QgsMapLayer *layer,
const QString &label,
const QMap< QString, QString > &attributes,
const QMap< QString, QString > &derivedAttributes )
89 : mLayer( layer ), mLabel( label ), mAttributes( attributes ), mDerivedAttributes( derivedAttributes ) {}
92 : mLayer( layer ), mLabel( label ), mFields( fields ), mFeature( feature ), mDerivedAttributes( derivedAttributes ) {}
124 QList<QgsMapToolIdentify::IdentifyResult> identify(
int x,
int y,
const QList<QgsMapLayer *> &layerList = QList<QgsMapLayer *>(), IdentifyMode mode = DefaultQgsSetting,
const QgsIdentifyContext &identifyContext =
QgsIdentifyContext() );
137 QList<QgsMapToolIdentify::IdentifyResult> identify(
int x,
int y, IdentifyMode mode, LayerType layerType = AllLayers,
const QgsIdentifyContext &identifyContext =
QgsIdentifyContext() );
156 static void fromPointCloudIdentificationToIdentifyResults(
QgsPointCloudLayer *layer,
const QVector<QVariantMap> &identified, QList<QgsMapToolIdentify::IdentifyResult> &results )
SIP_SKIP;
164 void fromElevationProfileLayerIdentificationToIdentifyResults(
QgsMapLayer *layer,
const QVector<QVariantMap> &identified, QList<QgsMapToolIdentify::IdentifyResult> &results )
SIP_SKIP;
224 QMap< QString, QString > derivedAttributesForPoint(
const QgsPoint &point );
238 void setCanvasPropertiesOverrides(
double searchRadiusMapUnits );
245 void restoreCanvasPropertiesOverrides();
276 QString formatDistance(
double distance )
const;
283 QString formatArea(
double area )
const;
307 void closestPointAttributes(
const QgsAbstractGeometry &geometry,
const QgsPointXY &layerPoint, QMap< QString, QString > &derivedAttributes );
309 void formatCoordinate(
const QgsPointXY &canvasPoint, QString &x, QString &y )
const;
314 double mLastMapUnitsPerPixel;
318 int mCoordinatePrecision;
320 double mOverrideCanvasSearchRadius = -1;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Identify contexts are used to encapsulate the settings to be used to perform an identify action.
Contains information about the context of a rendering operation.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)