QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
29 bool parallelRendering
34 mParallelRendering( parallelRendering )
35 , mFeatureFilterProvider( featureFilterProvider )
37 #ifndef HAVE_SERVER_PYTHON_PLUGINS
38 Q_UNUSED( mFeatureFilterProvider )
40 if ( mParallelRendering )
53 if ( mParallelRendering )
56 #ifdef HAVE_SERVER_PYTHON_PLUGINS
69 mPainter.reset(
new QPainter( image ) );
71 mErrors = renderJob.
errors();
75 mPainter.reset(
new QPainter( image ) );
77 #ifdef HAVE_SERVER_PYTHON_PLUGINS
81 mErrors = renderJob.
errors();
87 return mPainter.release();
static void setMaxThreads(int maxThreads)
Set maximum concurrent thread count.
QPainter * takePainter()
Takes ownership of the painter used for rendering.
void setFeatureFilterProvider(const QgsFeatureFilterProvider *f)
Set the feature filter provider used by the QgsRenderContext of each LayerRenderJob.
Errors errors() const
List of errors that happened during the rendering job - available when the rendering has been finishe...
Job implementation that renders all layers in parallel.
void start() override
Start the rendering job and immediately return.
QgsMapRendererJobProxy(bool parallelRendering, int maxThreads, QgsFeatureFilterProvider *featureFilterProvider)
Constructor for QgsMapRendererJobProxy.
Job implementation that renders everything sequentially using a custom painter.
void waitForFinished() override
Block until the job has finished.
Median cut implementation.
void renderSynchronously()
Render the map synchronously in this thread.
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.
The QgsMapSettings class contains configuration for rendering of the map.
QImage renderedImage() override
Gets a preview/resulting image.
void render(const QgsMapSettings &mapSettings, QImage *image)
Sequential or parallel map rendering.
void finished()
emitted when asynchronous rendering is finished (or canceled).