QgsFeatureFilterProvider class

Abstract interface for use by classes that filter the features of a layer.

A QgsFeatureFilterProvider provides a method for modifying a QgsFeatureRequest in place to apply additional filters to the request.

Constructors, destructors, conversion operators

QgsFeatureFilterProvider() defaulted
Constructor.

Public functions

auto clone() const -> QgsFeatureFilterProvider* pure virtual
Create a clone of the feature filter provider.
void filterFeatures(const QgsVectorLayer* layer, QgsFeatureRequest& featureRequest) const pure virtual
Add additional filters to the feature request to further restrict the features returned by the request.

Function documentation

QgsFeatureFilterProvider* QgsFeatureFilterProvider::clone() const pure virtual

Create a clone of the feature filter provider.

Returns a new clone

void QgsFeatureFilterProvider::filterFeatures(const QgsVectorLayer* layer, QgsFeatureRequest& featureRequest) const pure virtual

Add additional filters to the feature request to further restrict the features returned by the request.

Parameters
layer the layer to filter
featureRequest the feature request to update

Derived classes must implement this method.