QGIS API Documentation
2.8.2-Wien
|
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer. More...
#include <qgsmaplayerlegend.h>
Signals | |
void | itemsChanged () |
Emitted when existing items/nodes got invalid and should be replaced by new ones. |
Public Member Functions | |
QgsMapLayerLegend (QObject *parent=0) | |
virtual QList < QgsLayerTreeModelLegendNode * > | createLayerTreeModelLegendNodes (QgsLayerTreeLayer *nodeLayer)=0 |
Return list of legend nodes to be used for a particular layer tree layer node. |
Static Public Member Functions | |
static QgsMapLayerLegend * | defaultPluginLegend (QgsPluginLayer *pl) |
Create new legend implementation for raster layer. | |
static QgsMapLayerLegend * | defaultRasterLegend (QgsRasterLayer *rl) |
Create new legend implementation for raster layer. | |
static QgsMapLayerLegend * | defaultVectorLegend (QgsVectorLayer *vl) |
Create new legend implementation for vector layer. |
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer.
Definition at line 34 of file qgsmaplayerlegend.h.
|
explicit |
Definition at line 28 of file qgsmaplayerlegend.cpp.
|
pure virtual |
Return list of legend nodes to be used for a particular layer tree layer node.
Ownership is transferred to the caller.
Implemented in QgsDefaultPluginLayerLegend, QgsDefaultRasterLayerLegend, and QgsDefaultVectorLayerLegend.
|
static |
Create new legend implementation for raster layer.
Definition at line 43 of file qgsmaplayerlegend.cpp.
|
static |
Create new legend implementation for raster layer.
Definition at line 38 of file qgsmaplayerlegend.cpp.
|
static |
Create new legend implementation for vector layer.
Definition at line 33 of file qgsmaplayerlegend.cpp.
|
signal |
Emitted when existing items/nodes got invalid and should be replaced by new ones.