QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
Abstract base class that can be used to intercept rendered labels from a labeling / rendering job. More...
#include <qgslabelsink.h>
Public Member Functions | |
virtual | ~QgsLabelSink ()=default |
virtual void | drawLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings)=0 |
The drawLabel method is called for each label that is being drawn. | |
virtual void | drawUnplacedLabel (const QString &layerId, QgsRenderContext &context, pal::LabelPosition *label, const QgsPalLayerSettings &settings) |
The drawLabel method is called for each unplaced label. | |
Abstract base class that can be used to intercept rendered labels from a labeling / rendering job.
Definition at line 37 of file qgslabelsink.h.
|
virtualdefault |
|
pure virtual |
The drawLabel method is called for each label that is being drawn.
Every subclass must implement this method to draw the label or send the information from label to another desired location.
Implemented in QgsDxfExport.
|
inlinevirtual |
The drawLabel method is called for each unplaced label.
layerId | The layer ID associated to the label |
context | The render context object |
label | The label object |
settings | The layer labeling settings |
Definition at line 57 of file qgslabelsink.h.