QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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

namespace  QgsLayerTree
 Namespace with helper functions for layer tree operations.

Functions

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