22 , mPluginLayerType( layerType )
60 , mRendererContext( rendererContext )
65 return mLayer->draw( mRendererContext );
void setExtent(const QgsRectangle &extent) override
Set extent of the layer.
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.
Base class for plugin layers.
QgsPluginLayerRenderer(QgsPluginLayer *layer, QgsRenderContext &rendererContext)
QgsRectangle mExtent
Extent of the layer.
QString id() const
Get this layer's unique ID, this ID is used to access this layer from map layer registry.
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.
QString mDataSource
Data source description string, varies by layer type.
QString source() const
Returns the source for the layer.
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.
void setSource(const QString &source)
Set source string.
virtual QgsLegendSymbologyList legendSymbologyItems(QSize iconSize)
return a list of symbology items for the legend (defult implementation returns nothing) ...