QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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...
 
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 34 of file qgsmaprendererjobproxy.h.

Constructor & Destructor Documentation

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 27 of file qgsmaprendererjobproxy.cpp.

Member Function Documentation

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

Sequential or parallel map rendering.

Parameters
mapSettingsPassed to MapRendererJob
imageThe resulting image

Definition at line 50 of file qgsmaprendererjobproxy.cpp.

QPainter * QgsWms::QgsMapRendererJobProxy::takePainter ( )

Takes ownership of the painter used for rendering.

Returns
painter

Definition at line 81 of file qgsmaprendererjobproxy.cpp.


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