QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
Default legend implementation for mesh layers. More...
#include <qgsmaplayerlegend.h>
Public Member Functions | |
QgsDefaultMeshLayerLegend (QgsMeshLayer *ml) | |
Creates an instance for the given mesh layer. | |
QList< QgsLayerTreeModelLegendNode * > | createLayerTreeModelLegendNodes (QgsLayerTreeLayer *nodeLayer) override |
Returns list of legend nodes to be used for a particular layer tree layer node. | |
Public Member Functions inherited from QgsMapLayerLegend | |
QgsMapLayerLegend (QObject *parent=nullptr) | |
Constructor for QgsMapLayerLegend. | |
virtual void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) |
Reads configuration from a DOM element previously written by writeXml() | |
virtual QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const |
Writes configuration to a DOM element, to be used later with readXml() | |
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 QgsMapLayerLegend * | defaultMeshLegend (QgsMeshLayer *ml) |
Create new legend implementation for mesh layer. | |
static QgsMapLayerLegend * | defaultPointCloudLegend (QgsPointCloudLayer *layer) |
Create new legend implementation for a point cloud 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. | |
Default legend implementation for mesh layers.
Definition at line 337 of file qgsmaplayerlegend.h.
|
explicit |
Creates an instance for the given mesh layer.
Definition at line 531 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 537 of file qgsmaplayerlegend.cpp.