QGIS API Documentation
2.6.0-Brighton
|
Namespace with helper functions for layer tree operations. More...
Functions | |
bool | isGroup (QgsLayerTreeNode *node) |
Check whether the node is a valid group node. | |
bool | isLayer (QgsLayerTreeNode *node) |
Check whether the node is a valid layer node. | |
QgsLayerTreeGroup * | toGroup (QgsLayerTreeNode *node) |
Cast node to a group. No type checking is done - use isGroup() to find out whether this operation is legal. | |
QgsLayerTreeLayer * | toLayer (QgsLayerTreeNode *node) |
Cast node to a layer. No type checking is done - use isLayer() to find out whether this operation is legal. |
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.
|
inline |
Check whether the node is a valid layer node.
|
inline |
Cast node to a group. No type checking is done - use isGroup() to find out whether this operation is legal.
|
inline |
Cast node to a layer. No type checking is done - use isLayer() to find out whether this operation is legal.