QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Definition of map rendering of a subset of vector tile data. More...
#include <qgsvectortilebasicrenderer.h>
Public Member Functions | |
QgsVectorTileBasicRendererStyle (const QgsVectorTileBasicRendererStyle &other) | |
Constructs a style object as a copy of another style. More... | |
QgsVectorTileBasicRendererStyle (const QString &stName=QString(), const QString &laName=QString(), QgsWkbTypes::GeometryType geomType=QgsWkbTypes::UnknownGeometry) | |
Constructs a style object. More... | |
~QgsVectorTileBasicRendererStyle () | |
QString | filterExpression () const |
Returns filter expression (empty filter means that all features match) More... | |
QgsWkbTypes::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... | |
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... | |
QgsVectorTileBasicRendererStyle & | operator= (const QgsVectorTileBasicRendererStyle &other) |
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 (QgsWkbTypes::GeometryType geomType) |
Sets type of the geometry that will be used (point / line / polygon) 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... | |
void | setSymbol (QgsSymbol *sym) |
Sets symbol for rendering. Takes ownership of the symbol. More... | |
QString | styleName () const |
Returns human readable name of this style. More... | |
QgsSymbol * | symbol () const |
Returns symbol for rendering. More... | |
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const |
Writes object content to given DOM element. More... | |
Definition of map rendering of a subset of vector tile data.
The subset of data is defined by:
Renering is determined by the associated symbol (QgsSymbol). Symbol has to be of the same type as the chosen geometryType() - i.e. QgsMarkerSymbol for points, QgsLineSymbol for linestrings and QgsFillSymbol for polygons.
It is possible to further constrain when this style is applied by setting a range of allowed zoom levels, or by disabling it.
Definition at line 47 of file qgsvectortilebasicrenderer.h.
QgsVectorTileBasicRendererStyle::QgsVectorTileBasicRendererStyle | ( | const QString & | stName = QString() , |
const QString & | laName = QString() , |
||
QgsWkbTypes::GeometryType | geomType = QgsWkbTypes::UnknownGeometry |
||
) |
Constructs a style object.
Definition at line 27 of file qgsvectortilebasicrenderer.cpp.
QgsVectorTileBasicRendererStyle::QgsVectorTileBasicRendererStyle | ( | const QgsVectorTileBasicRendererStyle & | other | ) |
Constructs a style object as a copy of another style.
Definition at line 34 of file qgsvectortilebasicrenderer.cpp.
|
default |
|
inline |
Returns filter expression (empty filter means that all features match)
Definition at line 75 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns type of the geometry that will be used (point / line / polygon)
Definition at line 70 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns whether the style is active at given zoom level (also checks "enabled" flag)
Definition at line 98 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns whether this style is enabled (used for rendering)
Definition at line 85 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns name of the sub-layer to render (empty layer means that all layers match)
Definition at line 65 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns maxnimum zoom level index (negative number means no limit)
Definition at line 95 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns minimum zoom level index (negative number means no limit)
Definition at line 90 of file qgsvectortilebasicrenderer.h.
QgsVectorTileBasicRendererStyle & QgsVectorTileBasicRendererStyle::operator= | ( | const QgsVectorTileBasicRendererStyle & | other | ) |
Definition at line 39 of file qgsvectortilebasicrenderer.cpp.
void QgsVectorTileBasicRendererStyle::readXml | ( | const QDomElement & | elem, |
const QgsReadWriteContext & | context | ||
) |
Reads object content from given DOM element.
Definition at line 76 of file qgsvectortilebasicrenderer.cpp.
|
inline |
Sets whether this style is enabled (used for rendering)
Definition at line 83 of file qgsvectortilebasicrenderer.h.
|
inline |
Sets filter expression (empty filter means that all features match)
Definition at line 73 of file qgsvectortilebasicrenderer.h.
|
inline |
Sets type of the geometry that will be used (point / line / polygon)
Definition at line 68 of file qgsvectortilebasicrenderer.h.
|
inline |
Sets name of the sub-layer to render (empty layer means that all layers match)
Definition at line 63 of file qgsvectortilebasicrenderer.h.
|
inline |
Sets maximum zoom level index (negative number means no limit)
Definition at line 93 of file qgsvectortilebasicrenderer.h.
|
inline |
Sets minimum zoom level index (negative number means no limit)
Definition at line 88 of file qgsvectortilebasicrenderer.h.
|
inline |
Sets human readable name of this style.
Definition at line 58 of file qgsvectortilebasicrenderer.h.
void QgsVectorTileBasicRendererStyle::setSymbol | ( | QgsSymbol * | sym | ) |
Sets symbol for rendering. Takes ownership of the symbol.
Definition at line 54 of file qgsvectortilebasicrenderer.cpp.
|
inline |
Returns human readable name of this style.
Definition at line 60 of file qgsvectortilebasicrenderer.h.
|
inline |
Returns symbol for rendering.
Definition at line 80 of file qgsvectortilebasicrenderer.h.
void QgsVectorTileBasicRendererStyle::writeXml | ( | QDomElement & | elem, |
const QgsReadWriteContext & | context | ||
) | const |
Writes object content to given DOM element.
Definition at line 59 of file qgsvectortilebasicrenderer.cpp.