15#ifndef QGSMAPHITTEST_H
16#define QGSMAPHITTEST_H
67 QMap<QString, QSet<QString>> results() const
SIP_SKIP;
77 QMap<QString, QList<QString>> resultsPy() const
SIP_PYNAME( results );
96 bool legendKeyVisible( const QString &ruleKey,
QgsVectorLayer *layer ) const;
101 typedef QSet<QString> SymbolSet;
104 typedef QMap<QString, SymbolSet> HitTest;
120 const QString &layerId,
124 SymbolSet &usedSymbols,
125 SymbolSet &usedSymbolsRuleKey,
136 HitTest mHitTestRuleKey;
145 bool mOnlyExpressions;
185 QMap<QString, QSet<QString>> results()
const SIP_SKIP;
193 QMap<QString, QList<QString>> resultsPy()
const SIP_PYNAME( results );
196 void cancel()
override;
206 struct PreparedLayerData
208 std::unique_ptr< QgsAbstractFeatureSource > source;
212 std::unique_ptr< QgsFeatureRenderer > renderer;
215 std::unique_ptr< QgsExpressionContextScope > layerScope;
218 std::vector< PreparedLayerData > mPreparedData;
223 bool mOnlyExpressions =
false;
224 QMap<QString, QSet<QString>> mResults;
226 std::unique_ptr< QgsFeedback > mFeedback;
Base class that can be used for any class that is capable of returning features.
This class represents a coordinate reference system (CRS).
Class for parsing and evaluation of expressions (formerly called "search strings").
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Container of fields for a vector layer.
A geometry is the spatial representation of a feature.
Executes a QgsMapHitTest in a background thread.
Class that runs a hit test with given map settings.
QMap< QString, QString > LayerFilterExpression
Maps an expression string to a layer id.
The QgsMapSettings class contains configuration for rendering of the map.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
Abstract base class for all rendered symbols.
Abstract base class for long running background tasks.
Represents a vector layer which manages a vector based data sets.
const QgsCoordinateReferenceSystem & crs