QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsVectorTileBasicLabeling Class Reference

Basic labeling configuration for vector tile layers. More...

#include <qgsvectortilebasiclabeling.h>

Inheritance diagram for QgsVectorTileBasicLabeling:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorTileBasicLabeling ()
 
QgsVectorTileLabelingclone () const override SIP_FACTORY
 Returns a new copy of the object.
 
QgsVectorTileLabelProviderprovider (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< QgsVectorTileBasicLabelingStylestyles () 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()
 

Detailed Description

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.

Since
QGIS 3.14

Definition at line 150 of file qgsvectortilebasiclabeling.h.

Constructor & Destructor Documentation

◆ QgsVectorTileBasicLabeling()

QgsVectorTileBasicLabeling::QgsVectorTileBasicLabeling ( )

Definition at line 58 of file qgsvectortilebasiclabeling.cpp.

Member Function Documentation

◆ clone()

QgsVectorTileLabeling * QgsVectorTileBasicLabeling::clone ( ) const
overridevirtual

Returns a new copy of the object.

Implements QgsVectorTileLabeling.

Definition at line 67 of file qgsvectortilebasiclabeling.cpp.

◆ provider()

QgsVectorTileLabelProvider * QgsVectorTileBasicLabeling::provider ( QgsVectorTileLayer layer) const
overridevirtual

Factory for label provider implementation.

Note
not available in Python bindings

Reimplemented from QgsVectorTileLabeling.

Definition at line 74 of file qgsvectortilebasiclabeling.cpp.

◆ readXml()

void QgsVectorTileBasicLabeling::readXml ( const QDomElement &  elem,
const QgsReadWriteContext context 
)
overridevirtual

Reads labeling properties from given XML element.

Implements QgsVectorTileLabeling.

Definition at line 92 of file qgsvectortilebasiclabeling.cpp.

◆ setStyle()

void QgsVectorTileBasicLabeling::setStyle ( int  index,
const QgsVectorTileBasicLabelingStyle style 
)
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 166 of file qgsvectortilebasiclabeling.h.

◆ setStyles()

void QgsVectorTileBasicLabeling::setStyles ( const QList< QgsVectorTileBasicLabelingStyle > &  styles)
inline

Sets list of styles of the renderer.

Definition at line 162 of file qgsvectortilebasiclabeling.h.

◆ style()

QgsVectorTileBasicLabelingStyle QgsVectorTileBasicLabeling::style ( int  index) const
inline

Returns style definition at the particular index.

Definition at line 168 of file qgsvectortilebasiclabeling.h.

◆ styles()

QList< QgsVectorTileBasicLabelingStyle > QgsVectorTileBasicLabeling::styles ( ) const
inline

Returns list of styles of the renderer.

Definition at line 164 of file qgsvectortilebasiclabeling.h.

◆ type()

QString QgsVectorTileBasicLabeling::type ( ) const
overridevirtual

Unique type string of the labeling configuration implementation.

Implements QgsVectorTileLabeling.

Definition at line 62 of file qgsvectortilebasiclabeling.cpp.

◆ writeXml()

void QgsVectorTileBasicLabeling::writeXml ( QDomElement &  elem,
const QgsReadWriteContext context 
) const
overridevirtual

Writes labeling properties to given XML element.

Implements QgsVectorTileLabeling.

Definition at line 79 of file qgsvectortilebasiclabeling.cpp.


The documentation for this class was generated from the following files: