QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSMAPRENDERERSEQUENTIALJOB_H
17 #define QGSMAPRENDERERSEQUENTIALJOB_H
19 #include "qgis_core.h"
40 void start()
override;
54 void internalFinished();
60 QPainter *mPainter =
nullptr;
61 std::unique_ptr< QgsLabelingResults > mLabelingResults;
62 bool mUsedCachedLabels =
false;
67 #endif // QGSMAPRENDERERSEQUENTIALJOB_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.
virtual void waitForFinished()=0
Block until the job has finished.
Job implementation that renders everything sequentially in one thread.
virtual void start()=0
Start the rendering job and immediately return.
Job implementation that renders everything sequentially using a custom painter.
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.