25 , mInternalJob( nullptr )
27 , mLabelingResults( nullptr )
43 QgsDebugMsg(
"SEQUENTIAL destruct -- still running! (cancelling)" );
void finished()
emitted when asynchronous rendering is finished (or canceled).
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.
int outputDpi() const
Return DPI used for conversion between real world units (e.g.
virtual void start() override
Start the rendering job and immediately return.
void fill(uint pixelValue)
QSize outputSize() const
Return the size of the resulting map image.
QgsMapRendererSequentialJob(const QgsMapSettings &settings)
const LayerRenderJobs & jobs() const
virtual QImage renderedImage() override
Get a preview/resulting image.
Intermediate base class adding functionality that allows client to query the rendered image...
QImage::Format outputImageFormat() const
format of internal QImage, default QImage::Format_ARGB32_Premultiplied
QgsMapRendererCustomPainterJob * mInternalJob
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)
Errors errors() const
List of errors that happened during the rendering job - available when the rendering has been finishe...
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
~QgsMapRendererSequentialJob()