ARB
|
#include <AP_Tree.hxx>
Static Public Member Functions | |
static void | set_tree_shader (AP_TreeShader *new_shader) |
static const AP_TreeShader * | get_tree_shader () |
Static Public Member Functions inherited from TreeNode | |
static void | destroy (TreeNode *that) |
static void | destroy (TreeNode *that, TreeRoot *root) |
Public Attributes | |
AP_tree_members | gr |
Public Attributes inherited from TreeNode | |
TreeNode * | father |
TreeNode * | leftson |
TreeNode * | rightson |
GBT_LEN | leftlen |
GBT_LEN | rightlen |
GBDATA * | gb_node |
char * | name |
Protected Member Functions | |
~AP_tree () OVERRIDE | |
Protected Member Functions inherited from ARB_seqtree | |
AP_sequence * | take_seq () |
void | replace_seq (AP_sequence *sequence) |
~ARB_seqtree () OVERRIDE | |
Protected Member Functions inherited from TreeNode | |
TreeNode *& | self_ref () |
void | unlink_from_father () |
void | swap_node_info (TreeNode *other, bool ofKeeledGroups) |
void | fixKeeledOrientation () |
void | set_tree_root (TreeRoot *new_root) |
bool | at_root () const |
virtual | ~TreeNode () |
void | destroy () |
void | destroy (TreeRoot *viaRoot) |
Friends | |
class | AP_tree_root |
Definition at line 210 of file AP_Tree.hxx.
|
protected |
Definition at line 142 of file AP_Tree.cxx.
References ap_tree_node_deleted(), AP_tree_members::callback_exists, GB_CB_DELETE, TreeNode::gb_node, GB_remove_callback(), TreeNode::get_tree_root(), gr, and AP_tree_root::inform_about_delete().
|
inlineexplicit |
Definition at line 285 of file AP_Tree.hxx.
References AP_tree_members::clear().
AP_tree::DEFINE_TREE_ACCESSORS | ( | AP_tree_root | , |
AP_tree | |||
) |
|
virtual |
Implements TreeNode.
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 876 of file AP_Tree.cxx.
References ap_assert, fputs(), ARB_seqtree_root::get_gb_main(), AP_tree_root::get_group_scaling(), TreeNode::get_tree_root(), group_scaling::has_been_set(), ta, and AP_TreeShader::update_settings().
Referenced by AWT_graphic_tree::load_from_DB(), uncolorize(), and AWT_graphic_tree::update_structure().
void AP_tree::recompute_and_write_folding | ( | ) |
Definition at line 754 of file AP_Tree.cxx.
References ap_assert, aw_message(), GBS_global_string(), get_father(), ARB_seqtree_root::get_gb_tree(), AP_tree_root::get_group_scaling(), and TreeNode::get_tree_root().
Referenced by AWT_graphic_tree::fast_sync_changed_folding().
unsigned AP_tree::count_leafs | ( | ) | const |
Definition at line 840 of file AP_Tree.cxx.
References TreeNode::is_leaf().
Referenced by buildLeafList(), and NTREE_move_tree_info().
|
inlinevirtual |
Implements TreeNode.
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 298 of file AP_Tree.hxx.
References AP_tree_members::leaf_sum.
void AP_tree::load_subtree_info | ( | ) |
Definition at line 454 of file AP_Tree.cxx.
References TreeNode::is_leaf().
Definition at line 846 of file AP_Tree.cxx.
References AWT_GC_BLACK, AWT_GC_ONLY_ZOMBIES, AWT_GC_SOME_MARKED, TreeNode::gb_node, GB_read_flag(), GBS_read_hash(), AP_tree_members::gc, gr, TreeNode::is_leaf(), and TreeNode::name.
|
inline |
Definition at line 306 of file AP_Tree.hxx.
References compute_tree().
Referenced by MP_close_main(), and MP_normal_colors_in_tree().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 178 of file AP_Tree.cxx.
References ap_assert, ASSERT_VALID_TREE, AP_tree_root::change_root(), DOWNCAST, TreeNode::father, TreeNode::get_root_node(), TreeNode::get_tree_root(), TreeNode::has_valid_root_remarks(), TreeNode::is_son_of_root(), TreeNode::leftlen, TreeNode::leftson, TreeRoot::makeNode(), TreeNode::rightlen, TreeNode::rightson, and TreeNode::set_tree_root().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 151 of file AP_Tree.cxx.
References ap_assert, ASSERT_VALID_TREE, AP_tree_root::change_root(), DOWNCAST, TreeNode::father, TreeNode::is_leaf(), TreeNode::leftlen, TreeNode::leftson, AP_tree_root::makeNode(), NULp, TreeNode::rightlen, TreeNode::rightson, and TreeNode::set_tree_root().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 259 of file AP_Tree.cxx.
References ap_assert, ASSERT_VALID_TREE, ASSERT_VALID_TREE_OR_NULL, TreeRoot::change_root(), AP_tree_root::change_root(), TreeNode::destroy(), TreeNode::father, TreeNode::forget_origin(), TreeNode::gb_node, TreeNode::get_branchlength(), TreeNode::get_brother(), get_father(), TreeNode::get_tree_root(), AP_tree_root::inform_about_delete(), TreeNode::is_leaf(), TreeNode::is_leftson(), TreeNode::is_son_of_root(), TreeNode::leftlen, TreeNode::leftson, NULp, TreeNode::remove_remark(), TreeNode::rightlen, TreeNode::rightson, and TreeNode::unlink_from_father().
|
inlinevirtual |
Reimplemented from TreeNode.
Definition at line 312 of file AP_Tree.hxx.
References ap_assert, TreeNode::is_leaf(), AP_tree_members::swap_son_layout(), and TreeNode::swap_sons().
Definition at line 338 of file AP_Tree.cxx.
References error(), TreeNode::father, TreeNode::is_inside(), and NULp.
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 351 of file AP_Tree.cxx.
References ap_assert, TreeRoot::change_root(), TreeNode::father, TreeNode::get_brother(), get_father(), POS_TREE1::get_father(), TreeNode::get_root_node(), TreeNode::get_tree_root(), TreeNode::has_group_info(), TreeNode::has_valid_root_remarks(), TreeNode::is_inside(), TreeNode::is_leaf(), TreeNode::leftlen, TreeNode::leftson, NULp, TreeNode::rightlen, and TreeNode::rightson.
Definition at line 520 of file AP_Tree.cxx.
References error(), gr, AP_tree_members::grouped, TreeNode::is_leaf(), AP_tree_members::left_angle, AP_tree_members::left_linewidth, NULp, AP_tree_members::right_angle, AP_tree_members::right_linewidth, AP_tree_members::spread, tree_write_byte(), and tree_write_float().
GB_ERROR AP_tree::relink | ( | ) |
Definition at line 900 of file AP_Tree.cxx.
References error(), GBT_link_tree(), get_gb_main(), TreeNode::get_tree_root(), NULp, and ta.
Referenced by AWT_graphic_tree::check_for_DB_update().
|
inline |
Definition at line 326 of file AP_Tree.hxx.
References TreeNode::is_root_node().
Referenced by BranchLinewidthScaler::do_scale(), and AWT_graphic_tree::set_line_attributes_for().
|
inline |
Definition at line 327 of file AP_Tree.hxx.
References TreeNode::father.
Referenced by BranchLinewidthScaler::do_scale(), reset_linewidth(), and set_linewidth_recursive().
|
inline |
Definition at line 328 of file AP_Tree.hxx.
References tree_defaults::LINEWIDTH, and set_linewidth().
Referenced by reset_subtree_layout(), and reset_subtree_linewidths().
void AP_tree::set_linewidth_recursive | ( | int | width | ) |
Definition at line 1601 of file AP_Tree.cxx.
References TreeNode::is_leaf(), and set_linewidth().
Referenced by BranchLinewidthScaler::do_scale().
|
inline |
Definition at line 331 of file AP_Tree.hxx.
References TreeNode::is_root_node().
|
inline |
Definition at line 332 of file AP_Tree.hxx.
References TreeNode::father, TreeNode::get_brother(), get_father(), and TreeNode::is_root_node().
Referenced by reset_angle().
|
inline |
Definition at line 342 of file AP_Tree.hxx.
References tree_defaults::ANGLE, and set_angle().
Referenced by reset_subtree_angles(), and reset_subtree_layout().
Definition at line 933 of file AP_Tree.cxx.
References ap_assert, count_leafs(), and NULp.
Referenced by AP_tree_root::remove_leafs().
Definition at line 627 of file AP_Tree.cxx.
References ap_assert, error(), find_group_name_entry(), GB_touch(), GBS_global_string(), get_father(), TreeNode::is_keeled_group(), TreeNode::is_leaf(), TreeNode::is_normal_group(), TreeNode::name, and NULp.
|
inline |
Definition at line 348 of file AP_Tree.hxx.
References TreeNode::father, get_father(), AP_tree_members::grouped, TreeNode::is_keeled_group(), and TreeNode::is_normal_group().
Referenced by is_inside_folded_group().
bool AP_tree::is_inside_folded_group | ( | ) | const |
Definition at line 1640 of file AP_Tree.cxx.
References TreeNode::father, get_father(), is_folded_group(), and TreeNode::is_leaf().
Referenced by NT_jump_cb().
void AP_tree::mark_duplicates | ( | ) |
Definition at line 1530 of file AP_Tree.cxx.
References ap_mark_duplicates_rek(), aw_message(), GB_IGNORE_CASE, GBS_create_hash(), GBS_free_hash(), GBS_global_string(), gr, and AP_tree_members::leaf_sum.
Referenced by NT_mark_duplicates().
const char * AP_tree::mark_long_branches | ( | double | min_rel_diff, |
double | min_abs_diff, | ||
double & | found_max_abs_diff | ||
) |
Definition at line 1299 of file AP_Tree.cxx.
References LongBranchMarker::get_max_abs_diff(), and LongBranchMarker::get_report().
const char * AP_tree::mark_deep_leafs | ( | int | min_depth, |
double | min_rootdist, | ||
int & | found_max_depth, | ||
double & | found_max_rootdist | ||
) |
Definition at line 1305 of file AP_Tree.cxx.
References DepthMarker::get_max_depth(), DepthMarker::get_max_rootdist(), and DepthMarker::get_report().
double AP_tree::mark_degenerated_branches | ( | double | degeneration_factor | ) |
Definition at line 1496 of file AP_Tree.cxx.
References ap_mark_degenerated().
Referenced by BranchWindow::markDegeneratedBranches().
const char * AP_tree::analyse_distances | ( | ) |
Definition at line 1461 of file AP_Tree.cxx.
References EdgeDistances::get_report().
void AP_tree::justify_branch_lenghs | ( | GBDATA * | gb_main | ) |
Definition at line 1559 of file AP_Tree.cxx.
References ap_just_tree_rek(), and ta.
Referenced by NT_justify_branch_lenghs().
void AP_tree::relink_tree | ( | GBDATA * | gb_main, |
void(*)(GBDATA *&ref_gb_node, char *&ref_name, GB_HASH *organism_hash) | relinker, | ||
GB_HASH * | organism_hash | ||
) |
Definition at line 1575 of file AP_Tree.cxx.
References relink_tree_rek(), and ta.
Referenced by NT_pseudo_species_to_organism().
void AP_tree::reset_subtree_spreads | ( | ) |
Definition at line 1619 of file AP_Tree.cxx.
References gr, TreeNode::is_leaf(), and AP_tree_members::reset_child_spread().
void AP_tree::reset_subtree_angles | ( | ) |
Definition at line 1626 of file AP_Tree.cxx.
References TreeNode::is_leaf(), and reset_angle().
void AP_tree::reset_subtree_linewidths | ( | ) |
Definition at line 1630 of file AP_Tree.cxx.
References TreeNode::is_leaf(), and reset_linewidth().
void AP_tree::reset_subtree_layout | ( | ) |
Definition at line 1634 of file AP_Tree.cxx.
References TreeNode::is_leaf(), reset_angle(), and reset_linewidth().
|
static |
Definition at line 704 of file AP_Tree.cxx.
References AP_TreeShader::init().
Referenced by NT_install_treeShader().
|
inlinestatic |
Definition at line 372 of file AP_Tree.hxx.
Referenced by NT_configure_treeShader().
|
inline |
Definition at line 374 of file AP_Tree.hxx.
References TreeNode::name.
bool AP_tree::has_correct_mark_flags | ( | ) | const |
Definition at line 670 of file AP_Tree.cxx.
References gr, TreeNode::is_leaf(), and AP_tree_members::mark_sum.
AP_tree::PREPARE_MARK_NONFINAL_CLASS | ( | AP_tree | ) |
ShadedValue AP_tree::update_subtree_information | ( | const group_scaling & | gscaling | ) |
Definition at line 786 of file AP_Tree.cxx.
References ap_assert, AWT_GC_NONE_MARKED, AP_TreeShader::calc_inner_GC(), AP_TreeShader::calc_leaf_GC(), AP_TreeShader::calc_shaded_inner_GC(), AP_TreeShader::calc_shaded_leaf_GC(), AP_TreeShader::does_shade(), TreeNode::gb_node, GB_read_flag(), AP_tree_members::gc, gr, implicated, TreeNode::is_leaf(), SmartPtr< T, C >::isSet(), AP_tree_members::leaf_sum, TreeNode::leftlen, AP_tree_members::mark_sum, max, AP_tree_members::max_tree_depth, min, AP_tree_members::min_tree_depth, TreeNode::rightlen, AP_TreeShader::to_GC(), and AP_tree_members::view_sum.
|
friend |
Definition at line 283 of file AP_Tree.hxx.
AP_tree_members AP_tree::gr |
Definition at line 214 of file AP_Tree.hxx.
Referenced by colorize(), AWT_graphic_tree::detect_group_state(), AWT_graphic_tree::group_tree(), has_correct_mark_flags(), mark_duplicates(), reset_subtree_spreads(), AWT_graphic_tree::set_line_attributes_for(), AWT_graphic_tree::show(), AWT_graphic_tree::toggle_group(), tree_write_tree_rek(), AP_tree_folding::unfold(), update_subtree_information(), and ~AP_tree().