16 #ifndef QGSMAPRENDERERJOB_H 17 #define QGSMAPRENDERERJOB_H 19 #include <QtConcurrentRun> 20 #include <QFutureWatcher> 93 virtual void start() = 0;
97 virtual void cancel() = 0;
104 virtual void cancelWithoutBlocking() = 0;
107 virtual void waitForFinished() = 0;
110 virtual bool isActive()
const = 0;
129 Errors errors()
const;
184 void updateLayerGeometryCaches();
215 virtual QImage renderedImage() = 0;
220 #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 QgsLabelingEngineV2 class provides map labeling functionality.
int renderingTime() const
Find out how log it took to finish the job (in miliseconds)
The QgsMapSettings class contains configuration for rendering of the map.
virtual ~QgsMapRendererJob()
Contains information about the context of a rendering operation.
int renderingTime
time it took to render the layer in ms (it is -1 if not rendered or still rendering) ...
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
Error(const QString &lid, const QString &msg)
Structure keeping low-level rendering job information.