16 #ifndef QGSMAPRENDERERSTAGEDRENDERJOB_H 17 #define QGSMAPRENDERERSTAGEDRENDERJOB_H 19 #include "qgis_core.h" 42 RenderLabelsByMapLayer = 0x01,
44 Q_DECLARE_FLAGS( Flags,
Flag )
65 void start()
override;
78 bool renderCurrentPart( QPainter *painter );
96 QString currentLayerId();
107 LayerRenderJobs mLayerJobs;
108 LabelRenderJob mLabelJob;
109 LayerRenderJobs::iterator mJobIt;
111 bool mNextIsLabel = false;
112 bool mExportedLabels = false;
113 Flags mFlags =
nullptr;
114 bool mPreparedStagedLabelJob = false;
115 QStringList mLabelingLayers;
116 QStringList::iterator mLabelLayerIt;
119 #endif // QGSMAPRENDERERSTAGEDRENDERJOB_H
The QgsMapSettings class contains configuration for rendering of the map.
Abstract base class for map renderer jobs which use custom painters.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
virtual void waitForFinished()=0
Block until the job has finished.
RenderStage
Represents the stages of a rendering job.
Render job implementation that renders maps in stages, allowing different stages (e.g.
virtual void start()=0
Start the rendering job and immediately return.
The QgsLabelingEngine class provides map labeling functionality.
Flag
Flags which control the staged render job behavior.
virtual void cancel()=0
Stop the rendering job - does not return until the job has terminated.
virtual void cancelWithoutBlocking()=0
Triggers cancellation of the rendering job without blocking.
Class that stores computed placement from labeling engine.
virtual QgsLabelingResults * takeLabelingResults()=0
Gets pointer to internal labeling engine (in order to get access to the results). ...
Rendering layer symbology.
virtual bool isActive() const =0
Tell whether the rendering job is currently running in background.
virtual bool usedCachedLabels() const =0
Returns true if the render job was able to use a cached labeling solution.