16 #ifndef QGSMAPRENDERERPARALLELJOB_H 17 #define QGSMAPRENDERERPARALLELJOB_H 19 #include "qgis_core.h" 39 void start()
override;
53 void renderLayersFinished();
55 void renderingFinished();
60 static void renderLayerStatic( LayerRenderJob &job )
SIP_SKIP;
67 enum { Idle, RenderingLayers, RenderingLabels } mStatus
SIP_SKIP;
69 QFuture<void> mFuture;
70 QFutureWatcher<void> mFutureWatcher;
72 LayerRenderJobs mLayerJobs;
73 LabelRenderJob mLabelJob;
76 std::unique_ptr< QgsLabelingEngine > mLabelingEngineV2;
77 QFuture<void> mLabelingFuture;
78 QFutureWatcher<void> mLabelingFutureWatcher;
83 #endif // QGSMAPRENDERERPARALLELJOB_H virtual QImage renderedImage()=0
Get a preview/resulting image.
The QgsMapSettings class contains configuration for rendering of the map.
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 cancel()=0
Stop the rendering job - does not return until the job has terminated.
virtual void cancelWithoutBlocking()=0
Triggers cancelation of the rendering job without blocking.
Class that stores computed placement from labeling engine.
virtual QgsLabelingResults * takeLabelingResults()=0
Get pointer to internal labeling engine (in order to get access to the results).
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.