mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
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.
25 lines
627 B
Plaintext
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;
|
|
};
|