15#ifndef QGSMAPHITTEST_H
16#define QGSMAPHITTEST_H
75 QMap<QString, QSet<QString>> results() const
SIP_SKIP;
85 QMap<QString, QList<QString>> resultsPy() const
SIP_PYNAME( results );
102 bool legendKeyVisible( const QString &ruleKey,
QgsVectorLayer *layer ) const;
107 typedef QSet<QString> SymbolSet;
110 typedef QMap<QString, SymbolSet> HitTest;
126 const QString &layerId,
129 SymbolSet &usedSymbols,
130 SymbolSet &usedSymbolsRuleKey,
139 HitTest mHitTestRuleKey;
169 QMap<QString, QSet<QString>> results()
const SIP_SKIP;
177 QMap<QString, QList<QString>> resultsPy()
const SIP_PYNAME( results );
180 void cancel()
override;
190 struct PreparedLayerData
192 std::unique_ptr< QgsAbstractFeatureSource > source;
195 std::unique_ptr< QgsFeatureRenderer > renderer;
198 std::unique_ptr< QgsExpressionContextScope > layerScope;
201 std::vector< PreparedLayerData > mPreparedData;
205 QMap<QString, QSet<QString>> mResults;
207 std::unique_ptr< QgsFeedback > mFeedback;
Base class that can be used for any class that is capable of returning features.
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.
Contains settings relating to filtering the contents of QgsLayerTreeModel and views.
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.
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.