QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | List of all members
QgsDefaultMeshLayerLegend Class Reference

Default legend implementation for mesh layers. More...

#include <qgsmaplayerlegend.h>

Inheritance diagram for QgsDefaultMeshLayerLegend:
Inheritance graph
[legend]

Public Member Functions

 QgsDefaultMeshLayerLegend (QgsMeshLayer *ml)
 Creates an instance for the given mesh layer. More...
 
QList< QgsLayerTreeModelLegendNode * > createLayerTreeModelLegendNodes (QgsLayerTreeLayer *nodeLayer) override
 Returns list of legend nodes to be used for a particular layer tree layer node. More...
 
- Public Member Functions inherited from QgsMapLayerLegend
 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

- Signals inherited from QgsMapLayerLegend
void itemsChanged ()
 Emitted when existing items/nodes got invalid and should be replaced by new ones. More...
 
- Static Public Member Functions inherited from QgsMapLayerLegend
static QgsMapLayerLegenddefaultMeshLegend (QgsMeshLayer *ml)
 Create new legend implementation for mesh layer. More...
 
static QgsMapLayerLegenddefaultPointCloudLegend (QgsPointCloudLayer *layer)
 Create new legend implementation for a point cloud layer. More...
 
static QgsMapLayerLegenddefaultRasterLegend (QgsRasterLayer *rl)
 Create new legend implementation for raster layer. More...
 
static QgsMapLayerLegenddefaultVectorLegend (QgsVectorLayer *vl)
 Create new legend implementation for vector layer. More...
 

Detailed Description

Default legend implementation for mesh layers.

Since
QGIS 3.4

Definition at line 337 of file qgsmaplayerlegend.h.

Constructor & Destructor Documentation

◆ QgsDefaultMeshLayerLegend()

QgsDefaultMeshLayerLegend::QgsDefaultMeshLayerLegend ( QgsMeshLayer ml)
explicit

Creates an instance for the given mesh layer.

Definition at line 512 of file qgsmaplayerlegend.cpp.

Member Function Documentation

◆ createLayerTreeModelLegendNodes()

QList< QgsLayerTreeModelLegendNode * > QgsDefaultMeshLayerLegend::createLayerTreeModelLegendNodes ( QgsLayerTreeLayer nodeLayer)
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 518 of file qgsmaplayerlegend.cpp.


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