QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Configuration of a single style within QgsVectorTileBasicLabeling. More...
#include <qgsvectortilebasiclabeling.h>
Public Member Functions | |
QString | filterExpression () const |
Returns filter expression (empty filter means that all features match) | |
Qgis::GeometryType | geometryType () const |
Returns type of the geometry that will be used (point / line / polygon) | |
bool | isActive (int zoomLevel) const |
Returns whether the style is active at given zoom level (also checks "enabled" flag) | |
bool | isEnabled () const |
Returns whether this style is enabled (used for rendering) | |
QgsPalLayerSettings | labelSettings () const |
Returns labeling configuration of this style. | |
QString | layerName () const |
Returns name of the sub-layer to render (empty layer means that all layers match) | |
int | maxZoomLevel () const |
Returns the maximum zoom level index (negative number means no limit). | |
int | minZoomLevel () const |
Returns the minimum zoom level index (negative number means no limit). | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) |
Reads object content from given DOM element. | |
void | setEnabled (bool enabled) |
Sets whether this style is enabled (used for rendering) | |
void | setFilterExpression (const QString &expr) |
Sets filter expression (empty filter means that all features match) | |
void | setGeometryType (Qgis::GeometryType geomType) |
Sets type of the geometry that will be used (point / line / polygon) | |
void | setLabelSettings (const QgsPalLayerSettings &settings) |
Sets labeling configuration of this style. | |
void | setLayerName (const QString &name) |
Sets name of the sub-layer to render (empty layer means that all layers match) | |
void | setMaxZoomLevel (int maxZoom) |
Sets maximum zoom level index (negative number means no limit). | |
void | setMinZoomLevel (int minZoom) |
Sets minimum zoom level index (negative number means no limit). | |
void | setStyleName (const QString &name) |
Sets human readable name of this style. | |
QString | styleName () const |
Returns human readable name of this style. | |
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const |
Writes object content to given DOM element. | |
Configuration of a single style within QgsVectorTileBasicLabeling.
Definition at line 31 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns filter expression (empty filter means that all features match)
Definition at line 58 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns type of the geometry that will be used (point / line / polygon)
Definition at line 53 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns whether the style is active at given zoom level (also checks "enabled" flag)
Definition at line 119 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns whether this style is enabled (used for rendering)
Definition at line 63 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns labeling configuration of this style.
Definition at line 38 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns name of the sub-layer to render (empty layer means that all layers match)
Definition at line 48 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns the maximum zoom level index (negative number means no limit).
The style will be rendered if the zoom level is less than or equal to the maximum zoom.
Definition at line 115 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns the minimum zoom level index (negative number means no limit).
The style will be rendered if the zoom level is greater than or equal to the this level.
Definition at line 85 of file qgsvectortilebasiclabeling.h.
void QgsVectorTileBasicLabelingStyle::readXml | ( | const QDomElement & | elem, |
const QgsReadWriteContext & | context | ||
) |
Reads object content from given DOM element.
Definition at line 40 of file qgsvectortilebasiclabeling.cpp.
|
inline |
Sets whether this style is enabled (used for rendering)
Definition at line 61 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets filter expression (empty filter means that all features match)
Definition at line 56 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets type of the geometry that will be used (point / line / polygon)
Definition at line 51 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets labeling configuration of this style.
Definition at line 36 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets name of the sub-layer to render (empty layer means that all layers match)
Definition at line 46 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets maximum zoom level index (negative number means no limit).
The style will be rendered if the zoom level is less than or equal to maxZoom.
Definition at line 100 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets minimum zoom level index (negative number means no limit).
The style will be rendered if the zoom level is greater than or equal to minZoom.
Definition at line 74 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets human readable name of this style.
Definition at line 41 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns human readable name of this style.
Definition at line 43 of file qgsvectortilebasiclabeling.h.
void QgsVectorTileBasicLabelingStyle::writeXml | ( | QDomElement & | elem, |
const QgsReadWriteContext & | context | ||
) | const |
Writes object content to given DOM element.
Definition at line 25 of file qgsvectortilebasiclabeling.cpp.