QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
QgsDimensionFilter * | clone () const override |
Create a clone of the feature filter provider. | |
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. | |
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. | |
Public Member Functions inherited from QgsFeatureFilterProvider | |
QgsFeatureFilterProvider ()=default | |
virtual | ~QgsFeatureFilterProvider ()=default |
A server filter to apply a dimension filter to a request.
Definition at line 34 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 21 of file qgsdimensionfilter.cpp.
|
overridevirtual |
Create a clone of the feature filter provider.
Implements QgsFeatureFilterProvider.
Definition at line 41 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 27 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 35 of file qgsdimensionfilter.cpp.