QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions
qgslayertree.h File Reference
#include "qgslayertreenode.h"
#include "qgslayertreegroup.h"
#include "qgslayertreelayer.h"
Include dependency graph for qgslayertree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 QgsLayerTree
 Namespace with helper functions for layer tree operations.
 

Functions

bool QgsLayerTree::isGroup (QgsLayerTreeNode *node)
 Check whether the node is a valid group node. More...
 
bool QgsLayerTree::isLayer (QgsLayerTreeNode *node)
 Check whether the node is a valid layer node. More...
 
QgsLayerTreeGroupQgsLayerTree::toGroup (QgsLayerTreeNode *node)
 Cast node to a group. No type checking is done - use isGroup() to find out whether this operation is legal. More...
 
QgsLayerTreeLayerQgsLayerTree::toLayer (QgsLayerTreeNode *node)
 Cast node to a layer. No type checking is done - use isLayer() to find out whether this operation is legal. More...