QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
qgsmaprendererjobproxy.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaprendererjobproxy.h
3 ------------------------
4 begin : January 2017
5 copyright : (C) 2017 by Paul Blottiere
6 email : paul dot blottiere at oslandia dot com
7***************************************************************************/
8
9/***************************************************************************
10* *
11* This program is free software; you can redistribute it and/or modify *
12* it under the terms of the GNU General Public License as published by *
13* the Free Software Foundation; either version 2 of the License, or *
14* (at your option) any later version. *
15* *
16***************************************************************************/
17
18#ifndef QGSMAPRENDERERJOBPROXY_H
19#define QGSMAPRENDERERJOBPROXY_H
20
21#include "qgsmapsettings.h"
22#include "qgsmaprendererjob.h"
23
25
26namespace QgsWms
27{
28
35 {
36 public:
45 bool parallelRendering, int maxThreads, QgsFeatureFilterProvider *featureFilterProvider
46 );
47
54 void render( const QgsMapSettings &mapSettings, QImage *image, const QgsFeedback *feedback );
55
60 QPainter *takePainter();
61
66 QgsMapRendererJob::Errors errors() const { return mErrors; }
67
68 private:
69 bool mParallelRendering;
70 QgsFeatureFilterProvider *mFeatureFilterProvider = nullptr;
71 std::unique_ptr<QPainter> mPainter;
72
73 void getRenderErrors( const QgsMapRendererJob *job );
74
77 };
78
79
80} // namespace QgsWms
81#endif
Abstract interface for use by classes that filter the features or attributes of a layer.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition qgsfeedback.h:44
Abstract base class for map rendering implementations.
QList< QgsMapRendererJob::Error > Errors
The QgsMapSettings class contains configuration for rendering of the map.
Proxy for sequential or parallel map render job.
QPainter * takePainter()
Takes ownership of the painter used for rendering.
void render(const QgsMapSettings &mapSettings, QImage *image, const QgsFeedback *feedback)
Sequential or parallel map rendering.
QgsMapRendererJob::Errors errors() const
Returns map rendering errors.
Median cut implementation.