2014-06-22 21:55:09 +07:00
|
|
|
|
2014-06-24 14:02:03 +07:00
|
|
|
/** Job implementation that renders all layers in parallel.
|
|
|
|
*
|
|
|
|
* The resulting map image can be retrieved with renderedImage() function.
|
|
|
|
* It is safe to call that function while rendering is active to see preview of the map.
|
|
|
|
*
|
|
|
|
* @note added in 2.4
|
|
|
|
*/
|
2014-06-22 21:55:09 +07:00
|
|
|
class QgsMapRendererParallelJob : QgsMapRendererQImageJob
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsmaprendererparalleljob.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
QgsMapRendererParallelJob( const QgsMapSettings& settings );
|
|
|
|
~QgsMapRendererParallelJob();
|
|
|
|
|
|
|
|
virtual void start();
|
|
|
|
virtual void cancel();
|
2017-03-02 12:00:09 +10:00
|
|
|
virtual void cancelWithoutBlocking();
|
2014-06-22 21:55:09 +07:00
|
|
|
virtual void waitForFinished();
|
|
|
|
virtual bool isActive() const;
|
2017-02-06 14:11:12 +10:00
|
|
|
virtual bool usedCachedLabels() const;
|
2014-06-22 21:55:09 +07:00
|
|
|
|
|
|
|
virtual QgsLabelingResults* takeLabelingResults() /Transfer/;
|
|
|
|
|
|
|
|
// from QgsMapRendererJobWithPreview
|
|
|
|
virtual QImage renderedImage();
|
|
|
|
|
|
|
|
};
|