QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgsmaplayerlegend.h>
Public Member Functions | |
QgsDefaultRasterLayerLegend (QgsRasterLayer *rl) | |
QList< QgsLayerTreeModelLegendNode * > | createLayerTreeModelLegendNodes (QgsLayerTreeLayer *nodeLayer) override |
Returns list of legend nodes to be used for a particular layer tree layer node. More... | |
![]() | |
QgsMapLayerLegend (QObject *parent=nullptr) | |
Constructor for QgsMapLayerLegend. More... | |
virtual void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) |
Reads configuration from a DOM element previously written by writeXml() More... | |
virtual QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const |
Writes configuration to a DOM element, to be used later with readXml() More... | |
Additional Inherited Members | |
![]() | |
void | itemsChanged () |
Emitted when existing items/nodes got invalid and should be replaced by new ones. More... | |
![]() | |
static QgsMapLayerLegend * | defaultMeshLegend (QgsMeshLayer *ml) |
Create new legend implementation for mesh layer. More... | |
static QgsMapLayerLegend * | defaultRasterLegend (QgsRasterLayer *rl) |
Create new legend implementation for raster layer. More... | |
static QgsMapLayerLegend * | defaultVectorLegend (QgsVectorLayer *vl) |
Create new legend implementation for vector layer. More... | |
Default legend implementation for raster layers
Definition at line 267 of file qgsmaplayerlegend.h.
|
explicit |
Definition at line 406 of file qgsmaplayerlegend.cpp.
|
overridevirtual |
Returns 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 412 of file qgsmaplayerlegend.cpp.