QGIS API Documentation  3.17.0-Master (ca637cfeb2)
Public Member Functions | Public Attributes | List of all members
QgsLayerTreeModel::LayerLegendData Struct Reference

Structure that stores all data associated with one map layer. More...

#include <qgslayertreemodel.h>

Public Member Functions

 LayerLegendData ()=default
 

Public Attributes

QList< QgsLayerTreeModelLegendNode * > activeNodes
 Active legend nodes. More...
 
QgsLayerTreeModelLegendNodeembeddedNodeInParent = nullptr
 A legend node that is not displayed separately, its icon is instead shown within the layer node's item. More...
 
QList< QgsLayerTreeModelLegendNode * > originalNodes
 Data structure for storage of legend nodes. More...
 
LayerLegendTreetree = nullptr
 Optional pointer to a tree structure - see LayerLegendTree for details. More...
 

Detailed Description

Structure that stores all data associated with one map layer.

Note
not available in Python bindings

Definition at line 405 of file qgslayertreemodel.h.

Constructor & Destructor Documentation

◆ LayerLegendData()

QgsLayerTreeModel::LayerLegendData::LayerLegendData ( )
default

Member Data Documentation

◆ activeNodes

QList<QgsLayerTreeModelLegendNode *> QgsLayerTreeModel::LayerLegendData::activeNodes

Active legend nodes.

May have been filtered. Owner of legend nodes is still originalNodes !

Definition at line 413 of file qgslayertreemodel.h.

◆ embeddedNodeInParent

QgsLayerTreeModelLegendNode* QgsLayerTreeModel::LayerLegendData::embeddedNodeInParent = nullptr

A legend node that is not displayed separately, its icon is instead shown within the layer node's item.

May be nullptr. if non-null, node is owned by originalNodes !

Definition at line 420 of file qgslayertreemodel.h.

◆ originalNodes

QList<QgsLayerTreeModelLegendNode *> QgsLayerTreeModel::LayerLegendData::originalNodes

Data structure for storage of legend nodes.

These are nodes as received from QgsMapLayerLegend

Definition at line 426 of file qgslayertreemodel.h.

◆ tree

LayerLegendTree* QgsLayerTreeModel::LayerLegendData::tree = nullptr

Optional pointer to a tree structure - see LayerLegendTree for details.

Definition at line 428 of file qgslayertreemodel.h.


The documentation for this struct was generated from the following file: