29 bool parallelRendering
34 mParallelRendering( parallelRendering )
35 , mFeatureFilterProvider( featureFilterProvider )
37 #ifndef HAVE_SERVER_PYTHON_PLUGINS
38 Q_UNUSED( mFeatureFilterProvider )
40 if ( mParallelRendering )
51 void QgsMapRendererJobProxy::render(
const QgsMapSettings &mapSettings, QImage *image )
53 if ( mParallelRendering )
56 #ifdef HAVE_SERVER_PYTHON_PLUGINS
57 renderJob.setFeatureFilterProvider( mFeatureFilterProvider );
67 renderJob.waitForFinished();
68 *image = renderJob.renderedImage();
69 mPainter.reset(
new QPainter( image ) );
71 mErrors = renderJob.errors();
75 mPainter.reset(
new QPainter( image ) );
77 #ifdef HAVE_SERVER_PYTHON_PLUGINS
78 renderJob.setFeatureFilterProvider( mFeatureFilterProvider );
80 renderJob.renderSynchronously();
81 mErrors = renderJob.errors();
85 QPainter *QgsMapRendererJobProxy::takePainter()
87 return mPainter.release();