QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Public Member Functions | List of all members
QgsWms::QgsMapRendererJobProxy Class Reference

Proxy for sequential or parallel map render job. More...

#include <qgsmaprendererjobproxy.h>

Public Member Functions

 QgsMapRendererJobProxy (bool parallelRendering, int maxThreads, QgsFeatureFilterProvider *featureFilterProvider)
 Constructor for QgsMapRendererJobProxy. More...
 
QgsMapRendererJob::Errors errors () const
 Returns map rendering errors. More...
 
void render (const QgsMapSettings &mapSettings, QImage *image)
 Sequential or parallel map rendering. More...
 
QPainter * takePainter ()
 Takes ownership of the painter used for rendering. More...
 

Detailed Description

Proxy for sequential or parallel map render job.

Since
QGIS 3.0

Definition at line 35 of file qgsmaprendererjobproxy.h.

Constructor & Destructor Documentation

◆ QgsMapRendererJobProxy()

QgsWms::QgsMapRendererJobProxy::QgsMapRendererJobProxy ( bool  parallelRendering,
int  maxThreads,
QgsFeatureFilterProvider featureFilterProvider 
)

Constructor for QgsMapRendererJobProxy.

Does not take ownership of featureFilterProvider.

Parameters
parallelRenderingtrue to activate parallel rendering, false otherwise
maxThreadsThe number of threads to use in case of parallel rendering
featureFilterProviderFeatures filtering

Definition at line 28 of file qgsmaprendererjobproxy.cpp.

Member Function Documentation

◆ errors()

QgsMapRendererJob::Errors QgsWms::QgsMapRendererJobProxy::errors ( ) const
inline

Returns map rendering errors.

Returns
error list

Definition at line 69 of file qgsmaprendererjobproxy.h.

◆ render()

void QgsWms::QgsMapRendererJobProxy::render ( const QgsMapSettings mapSettings,
QImage *  image 
)

Sequential or parallel map rendering.

Parameters
mapSettingsPassed to MapRendererJob
imageThe resulting image

Definition at line 51 of file qgsmaprendererjobproxy.cpp.

◆ takePainter()

QPainter * QgsWms::QgsMapRendererJobProxy::takePainter ( )

Takes ownership of the painter used for rendering.

Returns
painter

Definition at line 85 of file qgsmaprendererjobproxy.cpp.


The documentation for this class was generated from the following files: