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