QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
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) More... | |
Qgis::GeometryType | geometryType () const |
Returns type of the geometry that will be used (point / line / polygon) More... | |
bool | isActive (int zoomLevel) const |
Returns whether the style is active at given zoom level (also checks "enabled" flag) More... | |
bool | isEnabled () const |
Returns whether this style is enabled (used for rendering) More... | |
QgsPalLayerSettings | labelSettings () const |
Returns labeling configuration of this style. More... | |
QString | layerName () const |
Returns name of the sub-layer to render (empty layer means that all layers match) More... | |
int | maxZoomLevel () const |
Returns maxnimum zoom level index (negative number means no limit) More... | |
int | minZoomLevel () const |
Returns minimum zoom level index (negative number means no limit) More... | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) |
Reads object content from given DOM element. More... | |
void | setEnabled (bool enabled) |
Sets whether this style is enabled (used for rendering) More... | |
void | setFilterExpression (const QString &expr) |
Sets filter expression (empty filter means that all features match) More... | |
void | setGeometryType (Qgis::GeometryType geomType) |
Sets type of the geometry that will be used (point / line / polygon) More... | |
void | setLabelSettings (const QgsPalLayerSettings &settings) |
Sets labeling configuration of this style. More... | |
void | setLayerName (const QString &name) |
Sets name of the sub-layer to render (empty layer means that all layers match) More... | |
void | setMaxZoomLevel (int maxZoom) |
Sets maximum zoom level index (negative number means no limit) More... | |
void | setMinZoomLevel (int minZoom) |
Sets minimum zoom level index (negative number means no limit) More... | |
void | setStyleName (const QString &name) |
Sets human readable name of this style. More... | |
QString | styleName () const |
Returns human readable name of this style. More... | |
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const |
Writes object content to given DOM element. More... | |
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 76 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 maxnimum zoom level index (negative number means no limit)
Definition at line 73 of file qgsvectortilebasiclabeling.h.
|
inline |
Returns minimum zoom level index (negative number means no limit)
Definition at line 68 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)
Definition at line 71 of file qgsvectortilebasiclabeling.h.
|
inline |
Sets minimum zoom level index (negative number means no limit)
Definition at line 66 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.