QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
maprenderer
qgsmaprenderersequentialjob.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmaprenderersequentialjob.h
3
--------------------------------------
4
Date : December 2013
5
Copyright : (C) 2013 by Martin Dobias
6
Email : wonder dot sk at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSMAPRENDERERSEQUENTIALJOB_H
17
#define QGSMAPRENDERERSEQUENTIALJOB_H
18
19
#include "qgis_core.h"
20
#include "
qgsmaprendererjob.h
"
21
22
class
QgsMapRendererCustomPainterJob
;
23
32
class
CORE_EXPORT
QgsMapRendererSequentialJob
:
public
QgsMapRendererQImageJob
33
{
34
Q_OBJECT
35
public
:
36
QgsMapRendererSequentialJob
(
const
QgsMapSettings
&settings );
37
~QgsMapRendererSequentialJob
()
override
;
38
39
void
cancel
()
override
;
40
void
cancelWithoutBlocking
()
override
;
41
void
waitForFinished
()
override
;
42
bool
isActive
()
const override
;
43
44
bool
usedCachedLabels
()
const override
;
45
QgsLabelingResults
*
takeLabelingResults
()
SIP_TRANSFER
override
;
46
47
// from QgsMapRendererJobWithPreview
48
QImage
renderedImage
()
override
;
49
50
public
slots:
51
52
void
internalFinished
();
53
54
private
:
55
void
startPrivate()
override
;
56
57
QgsMapRendererCustomPainterJob
*mInternalJob =
nullptr
;
58
QImage mImage;
59
QPainter *mPainter =
nullptr
;
60
std::unique_ptr< QgsLabelingResults > mLabelingResults;
61
bool
mUsedCachedLabels =
false
;
62
};
63
64
65
#endif
// QGSMAPRENDERERSEQUENTIALJOB_H
QgsLabelingResults
Stores computed placement from labeling engine.
Definition
qgslabelingresults.h:44
QgsMapRendererCustomPainterJob
Job implementation that renders everything sequentially using a custom painter.
Definition
qgsmaprenderercustompainterjob.h:60
QgsMapRendererJob::waitForFinished
virtual void waitForFinished()=0
Block until the job has finished.
QgsMapRendererJob::usedCachedLabels
virtual bool usedCachedLabels() const =0
Returns true if the render job was able to use a cached labeling solution.
QgsMapRendererJob::isActive
virtual bool isActive() const =0
Tell whether the rendering job is currently running in background.
QgsMapRendererJob::takeLabelingResults
virtual QgsLabelingResults * takeLabelingResults()=0
Gets pointer to internal labeling engine (in order to get access to the results).
QgsMapRendererJob::cancel
virtual void cancel()=0
Stop the rendering job - does not return until the job has terminated.
QgsMapRendererJob::cancelWithoutBlocking
virtual void cancelWithoutBlocking()=0
Triggers cancellation of the rendering job without blocking.
QgsMapRendererQImageJob::QgsMapRendererQImageJob
QgsMapRendererQImageJob(const QgsMapSettings &settings)
QgsMapRendererQImageJob::renderedImage
virtual QImage renderedImage()=0
Gets a preview/resulting image.
QgsMapRendererSequentialJob::internalFinished
void internalFinished()
Definition
qgsmaprenderersequentialjob.cpp:141
QgsMapRendererSequentialJob::QgsMapRendererSequentialJob
QgsMapRendererSequentialJob(const QgsMapSettings &settings)
Definition
qgsmaprenderersequentialjob.cpp:30
QgsMapSettings
Contains configuration for rendering maps.
Definition
qgsmapsettings.h:91
SIP_TRANSFER
#define SIP_TRANSFER
Definition
qgis_sip.h:35
qgsmaprendererjob.h
Generated on
for QGIS API Documentation by
1.17.0