21 :
QgsMapLayer( PluginLayer, layerName ), mPluginLayerType( layerType )
void setExtent(const QgsRectangle &extent) override
Set the extent.
A rectangle specified with double values.
Base class for all map layer types.
virtual QgsMapLayerRenderer * createMapRenderer(QgsRenderContext &rendererContext) override
Return new instance of QgsMapLayerRenderer that will be used for rendering of given context...
static QgsMapLayerLegend * defaultPluginLegend(QgsPluginLayer *pl)
Create new legend implementation for raster layer.
virtual QgsLegendSymbologyList legendSymbologyItems(const QSize &iconSize)
return a list of symbology items for the legend (defult implementation returns nothing) ...
Base class for plugin layers.
QgsPluginLayerRenderer(QgsPluginLayer *layer, QgsRenderContext &rendererContext)
virtual bool draw(QgsRenderContext &rendererContext)
This is the method that does the actual work of drawing the layer onto a paint device.
QgsRectangle mExtent
Extent of the layer.
QString pluginLayerType()
Return plugin layer type (the same as used in QgsPluginLayerRegistry)
QgsRenderContext & mRendererContext
QList< QPair< QString, QPixmap > > QgsLegendSymbologyList
virtual bool render() override
Do the rendering (based on data stored in the class)
Contains information about the context of a rendering operation.
Fallback layer renderer implementation for layer that do not support map renderer yet...
Base class for utility classes that encapsulate information necessary for rendering of map layers...
QgsPluginLayer(const QString &layerType, const QString &layerName=QString())
void setLegend(QgsMapLayerLegend *legend)
Assign a legend controller to the map layer.
virtual QgsRectangle extent()
Return the extent of the layer.