QGIS API Documentation 3.41.0-Master (3291e9ff48b)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsVectorTileRendererData Class Reference

Contains decoded features of a single vector tile and any other data necessary for rendering of it. More...

#include <qgsvectortilerenderer.h>

Public Member Functions

 QgsVectorTileRendererData (QgsTileXYZ id)
 Constructs the object.
 
QgsVectorTileFeatures features () const
 Returns features of the tile grouped by sub-layer names.
 
QMap< QString, QgsFieldsfields () const
 Returns per-layer fields.
 
QgsTileXYZ id () const
 Returns coordinates of the tile.
 
QVector< QgsFeaturelayerFeatures (const QString &layerName) const
 Returns list of all features within a single sub-layer.
 
QStringList layers () const
 Returns list of layer names present in the tile.
 
int renderZoomLevel () const
 Returns the zoom level corresponding to the target render.
 
void setFeatures (const QgsVectorTileFeatures &features)
 Sets features of the tile.
 
void setFields (const QMap< QString, QgsFields > &fields)
 Sets per-layer fields.
 
void setRenderZoomLevel (int level)
 Sets the zoom level corresponding to the target render.
 
void setTilePolygon (QPolygon polygon)
 Sets polygon of the tile.
 
QPolygon tilePolygon () const
 Returns polygon (made out of four corners of the tile) in screen coordinates calculated from render context.
 

Detailed Description

Contains decoded features of a single vector tile and any other data necessary for rendering of it.

Since
QGIS 3.14

Definition at line 39 of file qgsvectortilerenderer.h.

Constructor & Destructor Documentation

◆ QgsVectorTileRendererData()

QgsVectorTileRendererData::QgsVectorTileRendererData ( QgsTileXYZ  id)
inlineexplicit

Constructs the object.

Definition at line 43 of file qgsvectortilerenderer.h.

Member Function Documentation

◆ features()

QgsVectorTileFeatures QgsVectorTileRendererData::features ( ) const
inline

Returns features of the tile grouped by sub-layer names.

Definition at line 86 of file qgsvectortilerenderer.h.

◆ fields()

QMap< QString, QgsFields > QgsVectorTileRendererData::fields ( ) const
inline

Returns per-layer fields.

Definition at line 81 of file qgsvectortilerenderer.h.

◆ id()

QgsTileXYZ QgsVectorTileRendererData::id ( ) const
inline

Returns coordinates of the tile.

Definition at line 49 of file qgsvectortilerenderer.h.

◆ layerFeatures()

QVector< QgsFeature > QgsVectorTileRendererData::layerFeatures ( const QString &  layerName) const
inline

Returns list of all features within a single sub-layer.

Definition at line 90 of file qgsvectortilerenderer.h.

◆ layers()

QStringList QgsVectorTileRendererData::layers ( ) const
inline

Returns list of layer names present in the tile.

Definition at line 88 of file qgsvectortilerenderer.h.

◆ renderZoomLevel()

int QgsVectorTileRendererData::renderZoomLevel ( ) const
inline

Returns the zoom level corresponding to the target render.

This may differ from the tile's actual zoom leve when indexed tiles cause replacement of higher zoom level tiles with data from lower zoom level tiles.

See also
setRenderZoomLevel()
Since
QGIS 3.32

Definition at line 76 of file qgsvectortilerenderer.h.

◆ setFeatures()

void QgsVectorTileRendererData::setFeatures ( const QgsVectorTileFeatures features)
inline

Sets features of the tile.

Definition at line 84 of file qgsvectortilerenderer.h.

◆ setFields()

void QgsVectorTileRendererData::setFields ( const QMap< QString, QgsFields > &  fields)
inline

Sets per-layer fields.

Definition at line 79 of file qgsvectortilerenderer.h.

◆ setRenderZoomLevel()

void QgsVectorTileRendererData::setRenderZoomLevel ( int  level)
inline

Sets the zoom level corresponding to the target render.

This may differ from the tile's actual zoom leve when indexed tiles cause replacement of higher zoom level tiles with data from lower zoom level tiles.

See also
renderZoomLevel()
Since
QGIS 3.32

Definition at line 65 of file qgsvectortilerenderer.h.

◆ setTilePolygon()

void QgsVectorTileRendererData::setTilePolygon ( QPolygon  polygon)
inline

Sets polygon of the tile.

Definition at line 52 of file qgsvectortilerenderer.h.

◆ tilePolygon()

QPolygon QgsVectorTileRendererData::tilePolygon ( ) const
inline

Returns polygon (made out of four corners of the tile) in screen coordinates calculated from render context.

Definition at line 54 of file qgsvectortilerenderer.h.


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