QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Namespace with helper functions for layer tree operations. More...
Functions | |
bool | isGroup (QgsLayerTreeNode *node) |
Check whether the node is a valid group node. More... | |
bool | isLayer (QgsLayerTreeNode *node) |
Check whether the node is a valid layer node. More... | |
QgsLayerTreeGroup * | toGroup (QgsLayerTreeNode *node) |
Cast node to a group. No type checking is done - use isGroup() to find out whether this operation is legal. More... | |
QgsLayerTreeLayer * | toLayer (QgsLayerTreeNode *node) |
Cast node to a layer. No type checking is done - use isLayer() to find out whether this operation is legal. More... | |
Namespace with helper functions for layer tree operations.
Only generally useful routines should be here. Miscellaneous utility functions for work with the layer tree are in QgsLayerTreeUtils class.
|
inline |
Check whether the node is a valid group node.
Definition at line 34 of file qgslayertree.h.
|
inline |
Check whether the node is a valid layer node.
Definition at line 40 of file qgslayertree.h.
|
inline |
Cast node to a group. No type checking is done - use isGroup() to find out whether this operation is legal.
Definition at line 46 of file qgslayertree.h.
|
inline |
Cast node to a layer. No type checking is done - use isLayer() to find out whether this operation is legal.
Definition at line 52 of file qgslayertree.h.