QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
25 const QString expr = mFilters[layer->
id()];
26 if ( !expr.isEmpty() )
35 result->mFilters = mFilters;
41 mFilters[layer->
id()] = filter.
dump();
QString dump() const
Returns an expression string, constructed from the internal abstract syntax tree.
void filterFeatures(const QgsVectorLayer *layer, QgsFeatureRequest &filterFeatures) const override
Filter the features of the layer.
void setFilter(const QgsVectorLayer *layer, const QgsExpression &expression)
Set a filter for the given layer.
This class wraps a request for features to a vector layer (or directly its vector data provider).
QgsFeatureFilter()=default
Constructor.
QString id() const
Returns the layer's unique ID, which is used to access this layer from QgsProject.
Represents a vector layer which manages a vector based data sets.
Abstract interface for use by classes that filter the features of a layer.
QgsFeatureFilterProvider * clone() const override
Returns a clone of the object.
Class for parsing and evaluation of expressions (formerly called "search strings").