16 #ifndef QGSMAPRENDERERCUSTOMPAINTERJOB_H 17 #define QGSMAPRENDERERCUSTOMPAINTERJOB_H 19 #include "qgis_core.h" 42 void start()
override;
51 const LayerRenderJobs &
jobs()
const {
return mLayerJobs; }
SIP_SKIP 65 void waitForFinishedWithEventLoop( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents );
76 void renderSynchronously();
79 void futureFinished();
87 QPainter *mPainter =
nullptr;
88 QFuture<void> mFuture;
89 QFutureWatcher<void> mFutureWatcher;
90 std::unique_ptr< QgsLabelingEngine > mLabelingEngineV2;
93 LayerRenderJobs mLayerJobs;
94 LabelRenderJob mLabelJob;
95 bool mRenderSynchronously;
100 #endif // QGSMAPRENDERERCUSTOMPAINTERJOB_H const LayerRenderJobs & jobs() const
Job implementation that renders everything sequentially using a custom painter.
Abstract base class for map rendering implementations.
The QgsMapSettings class contains configuration for rendering of the map.
virtual void waitForFinished()=0
Block until the job has finished.
virtual void start()=0
Start the rendering job and immediately return.
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). ...
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.