2013-12-05 18:27:45 +07:00
|
|
|
|
|
|
|
class QgsMapLayerRenderer
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <qgsmaplayerrenderer.h>
|
|
|
|
%End
|
|
|
|
|
2014-05-27 23:22:50 +02:00
|
|
|
public:
|
|
|
|
QgsMapLayerRenderer( const QString& layerID );
|
|
|
|
virtual ~QgsMapLayerRenderer();
|
2013-12-05 18:27:45 +07:00
|
|
|
|
2014-05-27 23:22:50 +02:00
|
|
|
//! Do the rendering (based on data stored in the class)
|
|
|
|
virtual bool render() = 0;
|
2013-12-05 18:27:45 +07:00
|
|
|
|
2014-05-27 23:22:50 +02:00
|
|
|
//! Return list of errors (problems) that happened during the rendering
|
|
|
|
QStringList errors() const;
|
2013-12-05 18:27:45 +07:00
|
|
|
|
2014-05-27 23:22:50 +02:00
|
|
|
//! Get access to the ID of the layer rendered by this class
|
|
|
|
QString layerID() const;
|
2013-12-05 18:27:45 +07:00
|
|
|
};
|