16 #ifndef QGSMAPRENDERERJOB_H
17 #define QGSMAPRENDERERJOB_H
19 #include <QtConcurrentRun>
20 #include <QFutureWatcher>
89 virtual void start() = 0;
93 virtual void cancel() = 0;
96 virtual void waitForFinished() = 0;
99 virtual bool isActive()
const = 0;
106 Error(
const QString& lid,
const QString& msg ) : layerID( lid ), message( msg ) {}
159 void updateLayerGeometryCaches();
187 virtual QImage renderedImage() = 0;
191 #endif // QGSMAPRENDERERJOB_H
void setRequestedGeometryCacheForLayers(const QStringList &layerIds)
Set which vector layers should be cached while rendering.
A rectangle specified with double values.
Base class for all map layer types.
Abstract base class for map rendering implementations.
QStringList mRequestedGeomCacheForLayers
list of layer IDs for which the geometry cache should be updated
QMap< QString, QgsGeometryCache > mGeometryCaches
map of geometry caches
The QgsMapSettings class contains configuration for rendering of the map.
virtual ~QgsMapRendererJob()
Contains information about the context of a rendering operation.
Intermediate base class adding functionality that allows client to query the rendered image...
QgsMapLayerRenderer * renderer
Base class for utility classes that encapsulate information necessary for rendering of map layers...
Class that stores computed placement from labeling engine.
This class is responsible for keeping cache of rendered images of individual layers.
QList< LayerRenderJob > LayerRenderJobs
QPainter::CompositionMode blendMode
QgsMapRendererCache * mCache
int renderingTime() const
Find out how log it took to finish the job (in miliseconds)
Error(const QString &lid, const QString &msg)
Structure keeping low-level rendering job information.