QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Abstract interface for use by classes that filter the features or attributes of a layer. More...
#include <qgsfeaturefilterprovider.h>
Public Member Functions | |
QgsFeatureFilterProvider ()=default | |
Constructor. More... | |
virtual | ~QgsFeatureFilterProvider ()=default |
virtual QgsFeatureFilterProvider * | clone () const =0 |
Create a clone of the feature filter provider. More... | |
virtual void | filterFeatures (const QgsVectorLayer *layer, QgsFeatureRequest &featureRequest) const =0 |
Add additional filters to the feature request to further restrict the features returned by the request. More... | |
virtual QStringList | layerAttributes (const QgsVectorLayer *layer, const QStringList &attributes) const =0 |
Returns the list of visible attribute names from a list of attributes names for the given layer. More... | |
Abstract interface for use by classes that filter the features or attributes of a layer.
A QgsFeatureFilterProvider provides a method for modifying a QgsFeatureRequest in place to apply additional filters to the request, since QGIS 3.18 a method to filter allowed attributes is also available.
Definition at line 43 of file qgsfeaturefilterprovider.h.
|
default |
Constructor.
|
virtualdefault |
|
pure virtual |
Create a clone of the feature filter provider.
Implemented in QgsFeatureFilterProviderGroup, QgsFeatureFilter, and QgsAccessControl.
|
pure virtual |
Add additional filters to the feature request to further restrict the features returned by the request.
Derived classes must implement this method.
layer | the layer to filter |
featureRequest | the feature request to update |
Implemented in QgsFeatureFilterProviderGroup, QgsFeatureFilter, and QgsAccessControl.
|
pure virtual |
Returns the list of visible attribute names from a list of attributes names for the given layer.
Implemented in QgsFeatureFilterProviderGroup, QgsFeatureFilter, and QgsAccessControl.