|
| QgsRuleBasedLabelSinkProvider (const QgsRuleBasedLabeling &rules, QgsVectorLayer *layer, QgsLabelSink *sink) |
| Creates a rule based label sink provider which will draw/register labels in sink. More...
|
|
QgsVectorLayerLabelProvider * | createProvider (QgsVectorLayer *layer, const QString &providerId, bool withFeatureLoop, const QgsPalLayerSettings *settings) override |
| Creates a QgsRuleBasedLabelSinkProvider. More...
|
|
void | drawLabel (QgsRenderContext &context, pal::LabelPosition *label) const override |
| Draw this label at the position determined by the labeling engine. More...
|
|
void | drawUnplacedLabel (QgsRenderContext &context, pal::LabelPosition *label) const override |
| Draw an unplaced label. More...
|
|
Q_DECL_DEPRECATED void | reinit (QgsVectorLayer *layer) |
| Reinitialize the subproviders with QgsLabelSinkProviders. More...
|
|
| QgsRuleBasedLabelProvider (const QgsRuleBasedLabeling &rules, QgsVectorLayer *layer, bool withFeatureLoop=true) |
|
virtual QgsVectorLayerLabelProvider * | createProvider (QgsVectorLayer *layer, const QString &providerId, bool withFeatureLoop, const QgsPalLayerSettings *settings) |
| create a label provider More...
|
|
bool | prepare (QgsRenderContext &context, QSet< QString > &attributeNames) override |
| Prepare for registration of features. More...
|
|
QList< QgsLabelFeature * > | registerFeature (const QgsFeature &feature, QgsRenderContext &context, const QgsGeometry &obstacleGeometry=QgsGeometry(), const QgsSymbol *symbol=nullptr) override |
| Register a feature for labeling as one or more QgsLabelFeature objects stored into mLabels. More...
|
|
QList< QgsAbstractLabelProvider * > | subProviders () override |
| Returns subproviders. More...
|
|
| QgsVectorLayerLabelProvider (QgsVectorLayer *layer, const QString &providerId, bool withFeatureLoop, const QgsPalLayerSettings *settings, const QString &layerName=QString()) |
| Convenience constructor to initialize the provider from given vector layer. More...
|
|
| QgsVectorLayerLabelProvider (QgsWkbTypes::GeometryType geometryType, const QgsFields &fields, const QgsCoordinateReferenceSystem &crs, const QString &providerId, const QgsPalLayerSettings *settings, QgsMapLayer *layer, const QString &layerName=QString()) |
| Constructor to initialize the provider from any map layer (e.g. vector tile layer) More...
|
|
| ~QgsVectorLayerLabelProvider () override |
|
void | drawLabel (QgsRenderContext &context, pal::LabelPosition *label) const override |
| Draw this label at the position determined by the labeling engine. More...
|
|
void | drawLabelBackground (QgsRenderContext &context, pal::LabelPosition *label) const override |
| Draw the background for the specified label. More...
|
|
void | drawUnplacedLabel (QgsRenderContext &context, pal::LabelPosition *label) const override |
| Draw an unplaced label. More...
|
|
QList< QgsLabelFeature * > | labelFeatures (QgsRenderContext &context) override |
| Returns list of label features (they are owned by the provider and thus deleted on its destruction) More...
|
|
virtual bool | prepare (QgsRenderContext &context, QSet< QString > &attributeNames) |
| Prepare for registration of features. More...
|
|
virtual QList< QgsLabelFeature * > | registerFeature (const QgsFeature &feature, QgsRenderContext &context, const QgsGeometry &obstacleGeometry=QgsGeometry(), const QgsSymbol *symbol=nullptr) |
| Register a feature for labeling as one or more QgsLabelFeature objects stored into mLabels. More...
|
|
void | setFields (const QgsFields &fields) |
| Sets fields of this label provider. More...
|
|
const QgsPalLayerSettings & | settings () const |
| Returns the layer's settings. More...
|
|
void | startRender (QgsRenderContext &context) override |
| To be called before rendering of labels begins. More...
|
|
void | stopRender (QgsRenderContext &context) override |
| To be called after rendering is complete. More...
|
|
| QgsAbstractLabelProvider (QgsMapLayer *layer, const QString &providerId=QString()) |
| Construct the provider with default values. More...
|
|
virtual | ~QgsAbstractLabelProvider ()=default |
|
virtual void | drawLabel (QgsRenderContext &context, pal::LabelPosition *label) const =0 |
| Draw this label at the position determined by the labeling engine. More...
|
|
virtual void | drawLabelBackground (QgsRenderContext &context, pal::LabelPosition *label) const |
| Draw the background for the specified label. More...
|
|
virtual void | drawUnplacedLabel (QgsRenderContext &context, pal::LabelPosition *label) const |
| Draw an unplaced label. More...
|
|
Flags | flags () const |
| Flags associated with the provider. More...
|
|
virtual QList< QgsLabelFeature * > | labelFeatures (QgsRenderContext &context)=0 |
| Returns list of label features (they are owned by the provider and thus deleted on its destruction) More...
|
|
QgsMapLayer * | layer () const |
| Returns the associated layer, or nullptr if no layer is associated with the provider. More...
|
|
QgsExpressionContextScope * | layerExpressionContextScope () const |
| Returns the expression context scope created from the layer associated with this provider. More...
|
|
QString | layerId () const |
| Returns ID of associated layer, or empty string if no layer is associated with the provider. More...
|
|
double | layerReferenceScale () const |
| Returns the symbology reference scale of the layer associated with this provider. More...
|
|
QString | name () const |
| Name of the layer (for statistics, debugging etc.) - does not need to be unique. More...
|
|
QgsLabelObstacleSettings::ObstacleType | obstacleType () const |
| How the feature geometries will work as obstacles. More...
|
|
Qgis::LabelPlacement | placement () const |
| What placement strategy to use for the labels. More...
|
|
double | priority () const |
| Default priority of labels (may be overridden by individual labels) More...
|
|
QString | providerId () const |
| Returns provider ID - useful in case there is more than one label provider within a layer (e.g. More...
|
|
void | setEngine (const QgsLabelingEngine *engine) |
| Associate provider with a labeling engine (should be only called internally from QgsLabelingEngine) More...
|
|
virtual void | startRender (QgsRenderContext &context) |
| To be called before rendering of labels begins. More...
|
|
virtual void | stopRender (QgsRenderContext &context) |
| To be called after rendering is complete. More...
|
|
virtual QList< QgsAbstractLabelProvider * > | subProviders () |
| Returns list of child providers - useful if the provider needs to put labels into more layers with different configuration. More...
|
|
Qgis::UpsideDownLabelHandling | upsidedownLabels () const |
| How to handle labels that would be upside down. More...
|
|