|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Basic labeling configuration for vector tile layers. More...
#include <qgsvectortilebasiclabeling.h>

Public Member Functions | |
| QgsVectorTileBasicLabeling () | |
| QgsVectorTileLabeling * | clone () const override SIP_FACTORY |
| Returns a new copy of the object. | |
| QgsVectorTileLabelProvider * | provider (QgsVectorTileLayer *layer) const override SIP_SKIP |
| Factory for label provider implementation. | |
| void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
| Reads labeling properties from given XML element. | |
| void | setStyle (int index, const QgsVectorTileBasicLabelingStyle &style) |
| Updates style definition at the paricular index of the list (the index must be in interval [0,N-1] otherwise this function does nothing). | |
| void | setStyles (const QList< QgsVectorTileBasicLabelingStyle > &styles) |
| Sets list of styles of the renderer. | |
| QgsVectorTileBasicLabelingStyle | style (int index) const |
| Returns style definition at the particular index. | |
| QList< QgsVectorTileBasicLabelingStyle > | styles () const |
| Returns list of styles of the renderer. | |
| QString | type () const override |
| Unique type string of the labeling configuration implementation. | |
| void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override |
| Writes labeling properties to given XML element. | |
| Public Member Functions inherited from QgsVectorTileLabeling | |
| virtual | ~QgsVectorTileLabeling ()=default |
| virtual void | resolveReferences (const QgsProject &project) |
| Resolves references to other objects - second phase of loading - after readXml(). | |
Basic labeling configuration for vector tile layers.
It contains a definition of a list of labeling styles, where each labeling style is a combination of sub-layer name, geometry type, filter expression, zoom range and label settings.
Definition at line 151 of file qgsvectortilebasiclabeling.h.
| QgsVectorTileBasicLabeling::QgsVectorTileBasicLabeling | ( | ) |
Definition at line 57 of file qgsvectortilebasiclabeling.cpp.
|
overridevirtual |
Returns a new copy of the object.
Implements QgsVectorTileLabeling.
Definition at line 66 of file qgsvectortilebasiclabeling.cpp.
|
overridevirtual |
Factory for label provider implementation.
Reimplemented from QgsVectorTileLabeling.
Definition at line 73 of file qgsvectortilebasiclabeling.cpp.
|
overridevirtual |
Reads labeling properties from given XML element.
Implements QgsVectorTileLabeling.
Definition at line 91 of file qgsvectortilebasiclabeling.cpp.
|
inline |
Updates style definition at the paricular index of the list (the index must be in interval [0,N-1] otherwise this function does nothing).
Definition at line 167 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets list of styles of the renderer.
Definition at line 163 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns style definition at the particular index.
Definition at line 169 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns list of styles of the renderer.
Definition at line 165 of file qgsvectortilebasiclabeling.h.
|
overridevirtual |
Unique type string of the labeling configuration implementation.
Implements QgsVectorTileLabeling.
Definition at line 61 of file qgsvectortilebasiclabeling.cpp.
|
overridevirtual |
Writes labeling properties to given XML element.
Implements QgsVectorTileLabeling.
Definition at line 78 of file qgsvectortilebasiclabeling.cpp.