28 bool parallelRendering
33 mParallelRendering( parallelRendering )
34 , mFeatureFilterProvider( featureFilterProvider )
36 #ifndef HAVE_SERVER_PYTHON_PLUGINS 37 Q_UNUSED( mFeatureFilterProvider );
39 if ( mParallelRendering )
52 if ( mParallelRendering )
55 #ifdef HAVE_SERVER_PYTHON_PLUGINS 68 mPainter.reset(
new QPainter( image ) );
72 mPainter.reset(
new QPainter( image ) );
74 #ifdef HAVE_SERVER_PYTHON_PLUGINS 77 renderJob.renderSynchronously();
83 return mPainter.release();
void finished()
emitted when asynchronous rendering is finished (or canceled).
Job implementation that renders everything sequentially using a custom painter.
void waitForFinished() override
Block until the job has finished.
void render(const QgsMapSettings &mapSettings, QImage *image)
Sequential or parallel map rendering.
QgsMapRendererJobProxy(bool parallelRendering, int maxThreads, QgsFeatureFilterProvider *featureFilterProvider)
Constructor for QgsMapRendererJobProxy.
void setFeatureFilterProvider(const QgsFeatureFilterProvider *f)
Set the feature filter provider used by the QgsRenderContext of each LayerRenderJob.
The QgsMapSettings class contains configuration for rendering of the map.
QPainter * takePainter()
Takes ownership of the painter used for rendering.
Job implementation that renders all layers in parallel.
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::Warning, bool notifyUser=true)
Adds a message to the log instance (and creates it if necessary).
Abstract interface for use by classes that filter the features of a layer.
Median cut implementation.
void start() override
Start the rendering job and immediately return.
static void setMaxThreads(int maxThreads)
Set maximum concurrent thread count.
QImage renderedImage() override
Gets a preview/resulting image.