QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
16 #ifndef QGSVECTORTILELABELING_H
17 #define QGSVECTORTILELABELING_H
19 #include "qgis_core.h"
43 virtual void setFields(
const QMap<QString, QgsFields> &perLayerFields ) = 0;
63 const QString type = sipCpp->type();
65 if ( type == QStringLiteral(
"basic" ) )
66 sipType = sipType_QgsVectorTileBasicLabeling;
76 virtual QString type()
const = 0;
96 #endif // QGSVECTORTILELABELING_H
virtual void resolveReferences(const QgsProject &project)
Resolves references to other objects - second phase of loading - after readXml()
The QgsVectorLayerLabelProvider class implements a label provider for vector layers....
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 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.
QgsVectorTileLabelProvider(QgsVectorTileLayer *layer)
Constructs base label provider class for the given vector tile layer.