QGIS/python/core/qgsmaplayerrenderer.sip
Martin Dobias b6b5afd885 [FEATURE] Ability to cancel rendering of rasters + WMS/WCS support
The improvement allows immediate cancellation of raster rendering
in progress. Until now, even when map rendering got cancelled
(e.g. by zooming of panning canvas), the GUI got blocked while waiting
for raster layers to finish their rendering (only vector layers have
had support for cancellation). This should allow for much smoother
user experience while browsing maps including rasters.

The cancellation is supported currently by WMS/WMTS and WCS providers.
GDAL provider may also get support thanks to improvements in GDAL 2.

Funded by Land Information New Zealand.
2016-07-24 23:16:33 +02:00

25 lines
627 B
Plaintext

class QgsMapLayerRenderer
{
%TypeHeaderCode
#include <qgsmaplayerrenderer.h>
%End
public:
QgsMapLayerRenderer( const QString& layerID );
virtual ~QgsMapLayerRenderer();
//! Do the rendering (based on data stored in the class)
virtual bool render() = 0;
//! Access to feedback object of the layer renderer (may be null)
//! @note added in QGIS 3.0
virtual QgsFeedback* feedback() const;
//! Return list of errors (problems) that happened during the rendering
QStringList errors() const;
//! Get access to the ID of the layer rendered by this class
QString layerId() const;
};