16 #ifndef QGSMAPRENDERERCUSTOMPAINTERJOB_H
17 #define QGSMAPRENDERERCUSTOMPAINTERJOB_H
19 #include "qgis_core.h"
49 void preparePainter( QPainter *painter,
const QColor &backgroundColor = Qt::transparent );
70 void start()
override;
79 const LayerRenderJobs &
jobs()
const {
return mLayerJobs; }
SIP_SKIP
93 void waitForFinishedWithEventLoop( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents );
104 void renderSynchronously();
129 void renderPrepared();
132 void futureFinished();
140 QPainter *mPainter =
nullptr;
141 QFuture<void> mFuture;
142 QFutureWatcher<void> mFutureWatcher;
143 std::unique_ptr< QgsLabelingEngine > mLabelingEngineV2;
146 LayerRenderJobs mLayerJobs;
147 LabelRenderJob mLabelJob;
148 bool mRenderSynchronously =
false;
149 bool mPrepared =
false;
150 bool mPrepareOnly =
false;
152 LayerRenderJobs mSecondPassLayerJobs;
156 #endif // QGSMAPRENDERERCUSTOMPAINTERJOB_H