QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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 );
91 bool isFinished() const;
96 QString currentLayerId() const;
103 double currentLayerOpacity() const;
110 QPainter::CompositionMode currentLayerCompositionMode() const;
115 RenderStage currentStage() const;
121 LayerRenderJobs mLayerJobs;
122 LabelRenderJob mLabelJob;
123 LayerRenderJobs::iterator mJobIt;
125 bool mNextIsLabel = false;
126 bool mExportedLabels = false;
127 Flags mFlags = Flags();
128 bool mPreparedStagedLabelJob = false;
129 QStringList mLabelingLayers;
130 QStringList::iterator mLabelLayerIt;
133 #endif // QGSMAPRENDERERSTAGEDRENDERJOB_H
@ Symbology
Rendering layer symbology.
virtual bool usedCachedLabels() const =0
Returns true if the render job was able to use a cached labeling solution.
virtual bool isActive() const =0
Tell whether the rendering job is currently running in background.
Abstract base class for map renderer jobs which use custom painters.
@ Finished
Rendering is finished.
Class that stores computed placement from labeling engine.
RenderStage
Represents the stages of a rendering job.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
virtual void waitForFinished()=0
Block until the job has finished.
@ Labels
Rendering labels.
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 cancelWithoutBlocking()=0
Triggers cancellation of the rendering job without blocking.
Render job implementation that renders maps in stages, allowing different stages (e....
virtual QgsLabelingResults * takeLabelingResults()=0
Gets pointer to internal labeling engine (in order to get access to the results).
virtual void cancel()=0
Stop the rendering job - does not return until the job has terminated.
The QgsMapSettings class contains configuration for rendering of the map.