QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSMAPRENDERERPARALLELJOB_H
17 #define QGSMAPRENDERERPARALLELJOB_H
19 #include "qgis_core.h"
39 void start()
override;
53 void renderLayersFinished();
55 void renderLayersSecondPassFinished();
57 void renderingFinished();
62 static void renderLayerStatic( LayerRenderJob &job )
SIP_SKIP;
69 enum { Idle, RenderingLayers, RenderingSecondPass, RenderingLabels } mStatus
SIP_SKIP;
71 QFuture<void> mFuture;
72 QFutureWatcher<void> mFutureWatcher;
74 LayerRenderJobs mLayerJobs;
75 LabelRenderJob mLabelJob;
77 LayerRenderJobs mSecondPassLayerJobs;
78 QFuture<void> mSecondPassFuture;
79 QFutureWatcher<void> mSecondPassFutureWatcher;
82 std::unique_ptr< QgsLabelingEngine > mLabelingEngineV2;
83 QFuture<void> mLabelingFuture;
84 QFutureWatcher<void> mLabelingFutureWatcher;
89 #endif // QGSMAPRENDERERPARALLELJOB_H
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.
virtual QImage renderedImage()=0
Gets a preview/resulting image.
Class that stores computed placement from labeling engine.
Job implementation that renders all layers in parallel.
virtual void waitForFinished()=0
Block until the job has finished.
virtual void start()=0
Start the rendering job and immediately return.
Intermediate base class adding functionality that allows client to query the rendered image.
virtual void cancelWithoutBlocking()=0
Triggers cancellation of the rendering job without blocking.
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.