QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Utility functions for working with QgsMapCanvas widgets. More...
#include <qgsmapcanvasutils.h>
Static Public Member Functions | |
static QString | filterForLayer (QgsMapCanvas *canvas, QgsVectorLayer *layer) |
Constructs a filter to use for selecting features from the given layer, in order to apply filters which prevent some features from being displayed (e.g. | |
static long | flashMatchingFeatures (QgsMapCanvas *canvas, QgsVectorLayer *layer, const QString &filter) |
Flashes features from the specified layer which match the given filter expression string with a map canvas. | |
static long | zoomToMatchingFeatures (QgsMapCanvas *canvas, QgsVectorLayer *layer, const QString &filter) |
Zooms a map canvas to features from the specified layer which match the given filter expression string. | |
Utility functions for working with QgsMapCanvas widgets.
Definition at line 31 of file qgsmapcanvasutils.h.
|
static |
Constructs a filter to use for selecting features from the given layer, in order to apply filters which prevent some features from being displayed (e.g.
as a result of temporal range of the canvas and the layer's temporal settings).
Will return an empty string if no filtering is required, or "\c false" if ALL features are filtered out by the canvas.
Definition at line 79 of file qgsmapcanvasutils.cpp.
|
static |
Flashes features from the specified layer which match the given filter expression string with a map canvas.
The total count of matching features will be returned.
Definition at line 55 of file qgsmapcanvasutils.cpp.
|
static |
Zooms a map canvas to features from the specified layer which match the given filter expression string.
The total count of matching features will be returned.
Definition at line 22 of file qgsmapcanvasutils.cpp.