QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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.
 
QgsMapRendererJob::Errors errors () const
 Returns map rendering errors.
 
void render (const QgsMapSettings &mapSettings, QImage *image, const QgsFeedback *feedback)
 Sequential or parallel map rendering.
 
QPainter * takePainter ()
 Takes ownership of the painter used for rendering.
 

Detailed Description

Proxy for sequential or parallel map render job.

Definition at line 34 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 29 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,
const QgsFeedback feedback 
)

Sequential or parallel map rendering.

Parameters
mapSettingsPassed to MapRendererJob
imageThe resulting image
feedbacksocket feedback (since QGIS 3.36)

Definition at line 52 of file qgsmaprendererjobproxy.cpp.

◆ takePainter()

QPainter * QgsWms::QgsMapRendererJobProxy::takePainter ( )

Takes ownership of the painter used for rendering.

Returns
painter

Definition at line 104 of file qgsmaprendererjobproxy.cpp.


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