QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
QgsDefaultVectorLayerLegend Class Reference

Default legend implementation for vector layers. More...

#include <qgsmaplayerlegend.h>

Inheritance diagram for QgsDefaultVectorLayerLegend:
Inheritance graph
[legend]

Public Member Functions

 QgsDefaultVectorLayerLegend (QgsVectorLayer *vl)
virtual QList
< QgsLayerTreeModelLegendNode * > 
createLayerTreeModelLegendNodes (QgsLayerTreeLayer *nodeLayer) override
 Return list of legend nodes to be used for a particular layer tree layer node.
- Public Member Functions inherited from QgsMapLayerLegend
 QgsMapLayerLegend (QObject *parent=0)

Additional Inherited Members

- Signals inherited from QgsMapLayerLegend
void itemsChanged ()
 Emitted when existing items/nodes got invalid and should be replaced by new ones.
- Static Public Member Functions inherited from QgsMapLayerLegend
static QgsMapLayerLegenddefaultPluginLegend (QgsPluginLayer *pl)
 Create new legend implementation for raster layer.
static QgsMapLayerLegenddefaultRasterLegend (QgsRasterLayer *rl)
 Create new legend implementation for raster layer.
static QgsMapLayerLegenddefaultVectorLegend (QgsVectorLayer *vl)
 Create new legend implementation for vector layer.

Detailed Description

Default legend implementation for vector layers.

Note
added in 2.6

Definition at line 91 of file qgsmaplayerlegend.h.

Constructor & Destructor Documentation

QgsDefaultVectorLayerLegend::QgsDefaultVectorLayerLegend ( QgsVectorLayer vl)
explicit

Definition at line 178 of file qgsmaplayerlegend.cpp.

Member Function Documentation

QList< QgsLayerTreeModelLegendNode * > QgsDefaultVectorLayerLegend::createLayerTreeModelLegendNodes ( QgsLayerTreeLayer nodeLayer)
overridevirtual

Return list of legend nodes to be used for a particular layer tree layer node.

Ownership is transferred to the caller.

Implements QgsMapLayerLegend.

Definition at line 184 of file qgsmaplayerlegend.cpp.


The documentation for this class was generated from the following files: