20 :
QgsMapLayer( PluginLayer, layerName ), mPluginLayerType( layerType )
A rectangle specified with double values.
Base class for all map layer types.
virtual QgsLegendSymbologyList legendSymbologyItems(const QSize &iconSize)
return a list of symbology items for the legend (defult implementation returns nothing) ...
QgsPluginLayer(QString layerType, QString layerName=QString())
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
virtual QgsMapLayerRenderer * createMapRenderer(QgsRenderContext &rendererContext)
Return new instance of QgsMapLayerRenderer that will be used for rendering of given context...
QList< QPair< QString, QPixmap > > QgsLegendSymbologyList
Contains information about the context of a rendering operation.
virtual bool render()
Do the rendering (based on data stored in the class)
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...
virtual QgsRectangle extent()
Return the extent of the layer.
void setExtent(const QgsRectangle &extent)
Set the extent.