QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
A server filter to apply a dimension filter to a request. More...
#include <qgsdimensionfilter.h>
Public Member Functions | |
QgsDimensionFilter (const QHash< const QgsVectorLayer *, QStringList > dimensionFilter) | |
Creates a new dimension filter object with a list of filters to be applied to vector layers. More... | |
QgsDimensionFilter * | clone () const override |
Create a clone of the feature filter provider. More... | |
void | filterFeatures (const QgsVectorLayer *layer, QgsFeatureRequest &filterFeatures) const override |
Add additional filters to the feature request to further restrict the features returned by the request. More... | |
QStringList | layerAttributes (const QgsVectorLayer *layer, const QStringList &attributes) const override |
Returns the list of visible attribute names from a list of attributes names for the given layer. More... | |
Public Member Functions inherited from QgsFeatureFilterProvider | |
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... | |
A server filter to apply a dimension filter to a request.
Definition at line 32 of file qgsdimensionfilter.h.
QgsDimensionFilter::QgsDimensionFilter | ( | const QHash< const QgsVectorLayer *, QStringList > | dimensionFilter | ) |
Creates a new dimension filter object with a list of filters to be applied to vector layers.
Definition at line 20 of file qgsdimensionfilter.cpp.
|
overridevirtual |
Create a clone of the feature filter provider.
Implements QgsFeatureFilterProvider.
Definition at line 40 of file qgsdimensionfilter.cpp.
|
overridevirtual |
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 |
Implements QgsFeatureFilterProvider.
Definition at line 26 of file qgsdimensionfilter.cpp.
|
overridevirtual |
Returns the list of visible attribute names from a list of attributes names for the given layer.
Implements QgsFeatureFilterProvider.
Definition at line 34 of file qgsdimensionfilter.cpp.