25 , mInternalJob( nullptr )
27 , mLabelingResults( nullptr )
43 QgsDebugMsg(
"SEQUENTIAL destruct -- still running! (cancelling)" );
void finished()
emitted when asynchronous rendering is finished (or canceled).
const LayerRenderJobs & jobs() const
void setDotsPerMeterX(int x)
void setDotsPerMeterY(int y)
Job implementation that renders everything sequentially using a custom painter.
virtual void start() override
Start the rendering job and immediately return.
QgsLabelingResults * mLabelingResults
static QImage composeImage(const QgsMapSettings &settings, const LayerRenderJobs &jobs)
virtual void cancel() override
Stop the rendering job - does not return until the job has terminated.
virtual void cancel() override
Stop the rendering job - does not return until the job has terminated.
virtual QgsLabelingResults * takeLabelingResults() override
Get pointer to internal labeling engine (in order to get access to the results)
void setCache(QgsMapRendererCache *cache)
Assign a cache to be used for reading and storing rendered images of individual layers.
The QgsMapSettings class contains configuration for rendering of the map.
virtual void start() override
Start the rendering job and immediately return.
void fill(uint pixelValue)
Errors errors() const
List of errors that happened during the rendering job - available when the rendering has been finishe...
QgsMapRendererSequentialJob(const QgsMapSettings &settings)
QImage::Format outputImageFormat() const
format of internal QImage, default QImage::Format_ARGB32_Premultiplied
virtual void cancelWithoutBlocking() override
Triggers cancellation of the rendering job without blocking.
double outputDpi() const
Return DPI used for conversion between real world units (e.g.
virtual QImage renderedImage() override
Get a preview/resulting image.
Intermediate base class adding functionality that allows client to query the rendered image...
QgsMapRendererCustomPainterJob * mInternalJob
virtual void cancelWithoutBlocking() override
Triggers cancellation of the rendering job without blocking.
Class that stores computed placement from labeling engine.
virtual bool isActive() const override
Tell whether the rendering job is currently running in background.
virtual void waitForFinished() override
Block until the job has finished.
virtual QgsLabelingResults * takeLabelingResults() override
Get pointer to internal labeling engine (in order to get access to the results)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual void waitForFinished() override
Block until the job has finished.
QgsMapRendererCache * mCache
QSize outputSize() const
Return the size of the resulting map image.
~QgsMapRendererSequentialJob()