16#ifndef QGSMAPRENDERERSTAGEDRENDERJOB_H
17#define QGSMAPRENDERERSTAGEDRENDERJOB_H
77 bool renderCurrentPart( QPainter *painter );
90 bool isFinished() const;
95 QString currentLayerId() const;
102 double currentLayerOpacity() const;
109 QPainter::CompositionMode currentLayerCompositionMode() const;
114 RenderStage currentStage() const;
118 void startPrivate() override;
122 std::vector< LayerRenderJob > mLayerJobs;
123 LabelRenderJob mLabelJob;
124 std::vector< LayerRenderJob >::iterator mJobIt;
126 bool mNextIsLabel = false;
127 bool mExportedLabels = false;
128 Flags mFlags = Flags();
129 bool mPreparedStagedLabelJob = false;
130 QStringList mLabelingLayers;
131 QStringList::iterator mLabelLayerIt;
Provides map labeling functionality.
Stores computed placement from labeling engine.
QgsMapRendererAbstractCustomPainterJob(const QgsMapSettings &settings)
Constructor for QgsMapRendererAbstractCustomPainterJob, using the given map settings.
virtual void waitForFinished()=0
Block until the job has finished.
virtual bool usedCachedLabels() const =0
Returns true if the render job was able to use a cached labeling solution.
virtual bool isActive() const =0
Tell whether the rendering job is currently running in background.
virtual QgsLabelingResults * takeLabelingResults()=0
Gets pointer to internal labeling engine (in order to get access to the results).
virtual void cancel()=0
Stop the rendering job - does not return until the job has terminated.
virtual void cancelWithoutBlocking()=0
Triggers cancellation of the rendering job without blocking.
Render job implementation that renders maps in stages, allowing different stages (e....
Flag
Flags which control the staged render job behavior.
@ RenderLabelsByMapLayer
Labels should be rendered in individual stages by map layer. This allows separation of labels belongi...
QgsMapRendererStagedRenderJob(const QgsMapSettings &settings, Flags flags=Flags())
Constructor for QgsMapRendererStagedRenderJob, using the given map settings.
RenderStage
Represents the stages of a rendering job.
@ Finished
Rendering is finished.
@ Symbology
Rendering layer symbology.
@ Labels
Rendering labels.
Contains configuration for rendering maps.