|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
46 namespace energybased {
81 std::cout <<
"Error QuadTreeNM: No father Node exists";
The namespace for all OGDF objects.
QuadTreeNodeNM * act_ptr
points to the actual node
QuadTreeNodeNM * get_father_ptr() const
void create_new_rb_child()
void create_new_lb_child()
QuadTreeNodeNM * get_child_rt_ptr() const
void go_to_lt_child()
Sets act_ptr to the left_top_child_ptr.
void cout_preorder(QuadTreeNodeNM *node_ptr)
Pre_order traversal of the tree rooted at node_ptr (with or without output of the M,...
void delete_tree(QuadTreeNodeNM *node_ptr)
Deletes the tree starting at node_ptr.
void start_at_root()
Sets act_ptr to the root_ptr.
void go_to_father()
Sets act_ptr to the father_ptr.
Helping data structure that stores the information needed to represent the modified quadtree in the N...
void create_new_lt_child()
void set_act_ptr(QuadTreeNodeNM *a_ptr)
Sets act_ptr to a_ptr.
void init_tree()
Creates the root node and lets act_ptr and root_ptr point to the root node.
QuadTreeNodeNM * root_ptr
points to the root node
void delete_tree_and_count_nodes(QuadTreeNodeNM *node_ptr, int &nodecounter)
Deletes the tree starting at node_ptr and counts the nodes of the subtree.
void go_to_rb_child()
Sets act_ptr to the right_bottom_child_ptr.
Declaration of class QuadTreeNodeNM.
Doubly linked lists (maintaining the length of the list).
Helping data structure that stores the information needed to represent a node of the reduced quad tre...
QuadTreeNodeNM * get_child_lt_ptr() const
void go_to_lb_child()
Sets act_ptr to the left_bottom_child_ptr.
void set_root_node(QuadTreeNodeNM &r)
Sets the content of *root_ptr to r.
QuadTreeNodeNM * get_child_lb_ptr() const
QuadTreeNodeNM * get_act_ptr() const
Returns the actual/root node pointer of the tree.
void set_root_ptr(QuadTreeNodeNM *r_ptr)
Sets root_ptr to r_ptr.
QuadTreeNodeNM * get_root_ptr() const
QuadTreeNodeNM * get_child_rb_ptr() const
void create_new_rt_child()
void go_to_rt_child()
Sets act_ptr to the right_top_child_ptr.