QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Static Public Member Functions | List of all members
QgsMapLayerLegend Class Reference

The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer. More...

#include <qgsmaplayerlegend.h>

Inheritance diagram for QgsMapLayerLegend:
Inheritance graph
[legend]

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 QgsMapLayerLegenddefaultVectorLegend (QgsVectorLayer *vl)
 Create new legend implementation for vector layer.
static QgsMapLayerLegenddefaultRasterLegend (QgsRasterLayer *rl)
 Create new legend implementation for raster layer.
static QgsMapLayerLegenddefaultPluginLegend (QgsPluginLayer *pl)
 Create new legend implementation for raster layer.

Detailed Description

The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer.

Note
added in 2.6

Constructor & Destructor Documentation

QgsMapLayerLegend::QgsMapLayerLegend ( QObject *  parent = 0)
explicit

Member Function Documentation

virtual QList<QgsLayerTreeModelLegendNode*> QgsMapLayerLegend::createLayerTreeModelLegendNodes ( QgsLayerTreeLayer nodeLayer)
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.

QgsMapLayerLegend * QgsMapLayerLegend::defaultPluginLegend ( QgsPluginLayer pl)
static

Create new legend implementation for raster layer.

QgsMapLayerLegend * QgsMapLayerLegend::defaultRasterLegend ( QgsRasterLayer rl)
static

Create new legend implementation for raster layer.

QgsMapLayerLegend * QgsMapLayerLegend::defaultVectorLegend ( QgsVectorLayer vl)
static

Create new legend implementation for vector layer.

void QgsMapLayerLegend::itemsChanged ( )
signal

Emitted when existing items/nodes got invalid and should be replaced by new ones.


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