32 #include <boost/shared_ptr.hpp>
33 #include <boost/enable_shared_from_this.hpp>
34 #include "../../common/datastructures/WDendrogram.h"
39 class WTreeNode :
public boost::enable_shared_from_this<WTreeNode>
45 typedef boost::shared_ptr< WTreeNode >
SPtr;
124 #endif // WTREENODE_H
WTreeNode::SPtr getParent()
Returns the parent node of this node.
size_t m_index
Stores the index of this node.
double level()
Returns the level of the TreeNode.
std::vector< WTreeNode::SPtr > getChildren()
Returns the child nodes of this node.
void addChild(WTreeNode::SPtr child)
Adds a childnode to this node.
std::vector< WTreeNode::SPtr > m_children
Stores the childnodes of this node.
WTreeNode::SPtr m_parent
Stores the parent node.
WTreeNode(size_t index, double level)
Constructs a new TreeNode.
size_t index()
Returns the index of the TreeNode.
~WTreeNode()
Default destructor.
A node in a tree, holding an index, a level in the tree and pointers to its child nodes...
double m_level
Stores the level of this node.
Hirachical binary tree datastructure with spatial layout information called dendrogram.
boost::shared_ptr< WTreeNode > SPtr
Shared pointer abbreviation.