QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsVectorTileLayerRenderer Class Reference

This class provides map rendering functionality for vector tile layers. More...

#include <qgsvectortilelayerrenderer.h>

Inheritance diagram for QgsVectorTileLayerRenderer:
Inheritance graph
[legend]

Public Member Functions

 QgsVectorTileLayerRenderer (QgsVectorTileLayer *layer, QgsRenderContext &context)
 Creates the renderer. Always called from main thread, should copy whatever necessary from the layer. More...
 
virtual QgsFeedbackfeedback () const override
 Access to feedback object of the layer renderer (may be nullptr) More...
 
virtual bool render () override
 Do the rendering (based on data stored in the class) More...
 
- Public Member Functions inherited from QgsMapLayerRenderer
 QgsMapLayerRenderer (const QString &layerID, QgsRenderContext *context=nullptr)
 Constructor for QgsMapLayerRenderer, with the associated layerID and render context. More...
 
virtual ~QgsMapLayerRenderer ()=default
 
QStringList errors () const
 Returns list of errors (problems) that happened during the rendering. More...
 
QString layerId () const
 Gets access to the ID of the layer rendered by this class. More...
 
QgsRenderContextrenderContext ()
 Returns the render context associated with the renderer. More...
 

Additional Inherited Members

- Protected Attributes inherited from QgsMapLayerRenderer
QStringList mErrors
 
QString mLayerID
 

Detailed Description

This class provides map rendering functionality for vector tile layers.

In render() function (assumed to be run in a worker thread) it will:

fetch vector tiles using QgsVectorTileLoader

decode raw tiles into QgsFeature objects using QgsVectorTileDecoder

render tiles using a class derived from QgsVectorTileRenderer

Since
QGIS 3.14

Definition at line 41 of file qgsvectortilelayerrenderer.h.

Constructor & Destructor Documentation

◆ QgsVectorTileLayerRenderer()

QgsVectorTileLayerRenderer::QgsVectorTileLayerRenderer ( QgsVectorTileLayer layer,
QgsRenderContext context 
)

Creates the renderer. Always called from main thread, should copy whatever necessary from the layer.

Definition at line 33 of file qgsvectortilelayerrenderer.cpp.

Member Function Documentation

◆ feedback()

virtual QgsFeedback* QgsVectorTileLayerRenderer::feedback ( ) const
inlineoverridevirtual

Access to feedback object of the layer renderer (may be nullptr)

Since
QGIS 3.0

Reimplemented from QgsMapLayerRenderer.

Definition at line 48 of file qgsvectortilelayerrenderer.h.

◆ render()

bool QgsVectorTileLayerRenderer::render ( )
overridevirtual

Do the rendering (based on data stored in the class)

Implements QgsMapLayerRenderer.

Definition at line 64 of file qgsvectortilelayerrenderer.cpp.


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