QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSVECTORTILELABELING_H
17 #define QGSVECTORTILELABELING_H
19 #include "qgis_core.h"
53 virtual QSet< QString >
requiredLayers(
QgsRenderContext &context,
int tileZoom )
const { Q_UNUSED( context ); Q_UNUSED( tileZoom );
return QSet< QString >() << QString(); }
56 virtual void setFields(
const QMap<QString, QgsFields> &perLayerFields ) = 0;
76 const QString type = sipCpp->type();
78 if ( type == QLatin1String(
"basic" ) )
79 sipType = sipType_QgsVectorTileBasicLabeling;
89 virtual QString type()
const = 0;
109 #endif // QGSVECTORTILELABELING_H
Implements a map layer that is dedicated to rendering of vector tiles. Vector tiles compared to "ordi...
The class is used as a container of context for various read/write operations on other objects.
Internal base class for implementation of label providers for vector tile labeling.
virtual void resolveReferences(const QgsProject &project)
Resolves references to other objects - second phase of loading - after readXml()
Contains information about the context of a rendering operation.
Contains decoded features of a single vector tile and any other data necessary for rendering of it.
The QgsVectorLayerLabelProvider class implements a label provider for vector layers....
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
virtual QgsVectorTileLabelProvider * provider(QgsVectorTileLayer *layer) const SIP_SKIP
Factory for label provider implementation.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
virtual void setFields(const QMap< QString, QgsFields > &perLayerFields)=0
Sets fields for each sub-layer.
virtual QMap< QString, QSet< QString > > usedAttributes(const QgsRenderContext &context, int tileZoom) const =0
Returns field names for each sub-layer that are required for labeling.
virtual QSet< QString > requiredLayers(QgsRenderContext &context, int tileZoom) const
Returns a list of the layers required for labeling.
virtual void registerTileFeatures(const QgsVectorTileRendererData &tile, QgsRenderContext &context)=0
Registers label features for given tile to the labeling engine.
QgsMapLayer * layer() const
Returns the associated layer, or nullptr if no layer is associated with the provider.
Base class for labeling configuration classes for vector tile layers.
QgsVectorTileLabelProvider(QgsVectorTileLayer *layer)
Constructs base label provider class for the given vector tile layer.