QgsDiagramLabelFeature class

Class that adds extra information to QgsLabelFeature for labeling of diagrams.

Base classes

class QgsLabelFeature
The QgsLabelFeature class describes a feature that should be used within the labeling engine.

Constructors, destructors, conversion operators

QgsDiagramLabelFeature(QgsFeatureId id, geos::unique_ptr geometry, QSizeF size)
Create label feature, takes ownership of the geometry instance.

Public functions

auto attributes() -> const QgsAttributes&
Gets feature's attributes - used for rendering of diagrams.
void setAttributes(const QgsAttributes& attrs)
Store feature's attributes - used for rendering of diagrams.

Protected variables

QgsAttributes mAttributes
Stores attribute values for diagram rendering.