ARB
|
#include <TreeDisplay.hxx>
Static Public Member Functions | |
static void | install_group_changed_callback (const GraphicTreeCallback &gccb) |
Protected Member Functions | |
void | store_command_data (AWT_command_data *new_cmd_data) |
AWT_command_data * | get_command_data () |
Protected Attributes | |
group_scaling | groupScale |
Protected Attributes inherited from AWT_graphic | |
int | drag_gc |
Additional Inherited Members | |
Public Attributes inherited from AWT_graphic | |
AWT_graphic_exports | exports |
Definition at line 361 of file TreeDisplay.hxx.
AWT_graphic_tree::AWT_graphic_tree | ( | AW_root * | aw_root, |
GBDATA * | gb_main, | ||
AD_map_viewer_cb | map_viewer_cb | ||
) |
Definition at line 2309 of file TreeDisplay.cxx.
References AP_TREE_NORMAL, NULp, set_tree_style(), and td_assert.
AWT_graphic_tree::~AWT_graphic_tree | ( | ) |
Definition at line 2344 of file TreeDisplay.cxx.
References destroy().
|
inlineprotected |
Definition at line 462 of file TreeDisplay.hxx.
Referenced by handle_command().
|
inlineprotected |
Definition at line 466 of file TreeDisplay.hxx.
Referenced by handle_command().
|
inline |
Definition at line 472 of file TreeDisplay.hxx.
References AW::FillStyle::SOLID.
|
inline |
Definition at line 473 of file TreeDisplay.hxx.
References AW::FillStyle::EMPTY.
Referenced by show().
void AWT_graphic_tree::diamond | ( | int | gc, |
const AW::Position & | pos, | ||
int | pixel_radius | ||
) |
Definition at line 2667 of file TreeDisplay.cxx.
References AW_device::polygon(), AW_zoomable::rtransform(), and AW_zoomable::transform().
Definition at line 3277 of file TreeDisplay.cxx.
References AP_LIST_NDS, AP_LIST_SIMPLE, AP_TREE_IRS, AP_TREE_NORMAL, AP_TREE_RADIAL, NULp, and td_assert.
Referenced by handle_command(), and show_ruler().
|
inline |
Definition at line 478 of file TreeDisplay.hxx.
References AW_SOLID, AP_tree_members::gc, AP_tree::get_linewidth(), AP_tree::gr, and AW_stylable::set_line_attributes().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 3585 of file TreeDisplay.cxx.
References AW_root::awar(), AWAR_DTREE_ATTACH_GROUP, AWAR_DTREE_ATTACH_LEN, AWAR_DTREE_ATTACH_SIZE, AWAR_DTREE_BASELINEWIDTH, AWAR_DTREE_BOOTSTRAP_MAX, AWAR_DTREE_BOOTSTRAP_MIN, AWAR_DTREE_BOOTSTRAP_SHOW, AWAR_DTREE_BOOTSTRAP_STYLE, AWAR_DTREE_BRANCH_STYLE, AWAR_DTREE_CIRCLE_ELLIPSE, AWAR_DTREE_CIRCLE_FILL, AWAR_DTREE_CIRCLE_LIMIT, AWAR_DTREE_CIRCLE_SHOW, AWAR_DTREE_CIRCLE_ZOOM, AWAR_DTREE_GREY_LEVEL, AWAR_DTREE_GROUP_DOWNSCALE, AWAR_DTREE_GROUP_MARKED_THRESHOLD, AWAR_DTREE_GROUP_ORIENT, AWAR_DTREE_GROUP_PARTIALLY_MARKED_THRESHOLD, AWAR_DTREE_GROUP_SCALE, AWAR_DTREE_GROUP_STYLE, AWAR_DTREE_GROUPCOUNTMODE, AWAR_DTREE_GROUPINFOPOS, AWAR_DTREE_MARKER_WIDTH, AWAR_DTREE_PARTIAL_GREYLEVEL, AWAR_DTREE_SHOW_BRACKETS, AWAR_DTREE_VERICAL_DIST, AWAR_SPECIES_NAME, BootstrapConfig::bootstrap_max, BootstrapConfig::bootstrap_min, BootstrapConfig::elipsoid, BootstrapConfig::fill_level, groupScale, group_scaling::linear, BootstrapConfig::max_radius, group_scaling::pow, AW_awar::read_float(), AW_awar::read_int(), AW_awar::read_string(), BootstrapConfig::show_boots, BootstrapConfig::show_circle, BootstrapConfig::style, and BootstrapConfig::zoom_factor.
Referenced by load_from_DB(), show(), and TREE_recompute_and_resize_cb().
|
inlinevirtual |
Implements AWT_graphic.
Definition at line 483 of file TreeDisplay.hxx.
References AP_tree::compute_tree(), forget_auto_unfolded(), and get_root_node().
void AWT_graphic_tree::apply_zoom_settings_for_treetype | ( | AWT_canvas * | ntw | ) |
Definition at line 3621 of file TreeDisplay.cxx.
References AP_TREE_IRS, AP_TREE_NORMAL, AP_TREE_RADIAL, AW_root::awar(), AWAR_DTREE_DENDRO_XPAD, AWAR_DTREE_DENDRO_ZOOM_TEXT, AWAR_DTREE_RADIAL_XPAD, AWAR_DTREE_RADIAL_ZOOM_TEXT, AWT_graphic::exports, AW_awar::read_int(), AWT_canvas::set_consider_text_for_zoom_reset(), AWT_graphic_exports::set_default_padding(), AWT_graphic_exports::set_standard_default_padding(), and STANDARD_PADDING.
Referenced by set_tree_style().
|
inline |
Definition at line 492 of file TreeDisplay.hxx.
References CL_BRANCH, CL_NODE, AW_click_cd::get_cd1(), AW_click_cd::get_cd2(), AW_device::get_click_cd(), AW_device::line(), and td_assert.
bool AWT_graphic_tree::warn_inappropriate_mode | ( | AWT_COMMAND_MODE | mode | ) |
Definition at line 661 of file TreeDisplay.cxx.
References AP_TREE_RADIAL, aw_message(), AWT_MODE_ROTATE, and AWT_MODE_SPREAD.
Referenced by handle_command().
|
virtual |
|
inline |
Definition at line 504 of file TreeDisplay.hxx.
Referenced by group_selected_by_canvas_cb().
|
inline |
Definition at line 505 of file TreeDisplay.hxx.
References gb_main.
Referenced by nt_add(), and nt_add_partial().
|
inline |
Definition at line 507 of file TreeDisplay.hxx.
Referenced by check_for_DB_update(), AWT_graphic_parsimony::get_tree_root(), group_awar_changed_cb(), notify_synchronized(), NT_reload_tree_event(), and show().
|
inline |
Definition at line 509 of file TreeDisplay.hxx.
References NULp.
Referenced by AWT_graphic_tree_node_deleted(), check_for_DB_update(), AWT_graphic_parsimony::get_root_node(), group_and_refold_tree(), is_logically_zoomed(), load_from_DB(), mark_nontree_cb(), mark_tree_cb(), MP_normal_colors_in_tree(), NT_bootstrap(), NT_get_tree_root_of_canvas(), NT_jump_cb(), NT_reset_lzoom_cb(), save_to_DB(), TREE_recompute_and_resize_cb(), and update_structure().
|
inline |
Definition at line 510 of file TreeDisplay.hxx.
References get_root_node().
Referenced by get_root_node().
|
inline |
Definition at line 512 of file TreeDisplay.hxx.
Referenced by AWT_graphic_parsimony_root_changed(), AWT_graphic_tree_node_deleted(), AWT_graphic_tree_root_changed(), and NT_jump_cb().
|
inline |
Definition at line 513 of file TreeDisplay.hxx.
|
inline |
Definition at line 515 of file TreeDisplay.hxx.
References get_root_node().
Referenced by NT_jump_cb().
|
inline |
Definition at line 516 of file TreeDisplay.hxx.
References tree_changed_cb().
Referenced by AWT_graphic_parsimony_root_changed(), AWT_graphic_tree_node_deleted(), AWT_graphic_tree_root_changed(), handle_command(), NT_bootstrap(), NT_jump_cb(), and NT_reset_lzoom_cb().
void AWT_graphic_tree::init | ( | AliView * | aliview, |
AP_sequence * | seq_prototype, | ||
bool | link_to_database_, | ||
bool | insert_delete_cbs | ||
) |
Definition at line 2357 of file TreeDisplay.cxx.
References create_tree_root(), and td_assert.
Referenced by ArbParsimony::generate_tree(), FINAL_TYPE< SEQTYPE >::init(), and NT_generate_tree().
|
virtual |
Implements AWT_graphic.
Definition at line 71 of file TreeDisplay.cxx.
References AW_GCM_DATA_AREA, AW_manage_GC(), AWT_GC_MAX, AWT_canvas::get_gc_base_name(), NULp, and TREE_GC_changed_cb().
|
virtual |
Implements AWT_graphic.
Definition at line 3653 of file TreeDisplay.cxx.
References AP_LIST_NDS, AP_LIST_SIMPLE, AP_TREE_IRS, AP_TREE_NORMAL, AP_TREE_RADIAL, AWT_scaled_font_limits::ascent, AW_displayColorRange(), AW_PLANAR_COLORS, AWT_GC_ALL_MARKED, AWT_GC_BRANCH_REMARK, AWT_GC_FIRST_RANGE_COLOR, CL_ROOTNODE, CL_SPECIES, AWT_graphic::drag_gc, Dragged::draw_drag_indicator(), AW::Eastwards, BootstrapConfig::elipsoid, empty_box(), TreeNode::gb_node, AP_tree_members::gc, AW_stylable::get_font_limits(), PaintedNode::get_node(), PaintedNode::get_pos(), get_tree_root(), AW_zoomable::get_unscale(), AP_tree::gr, AWT_scaled_font_limits::height, AWT_scaled_font_limits::init(), is_tree_style(), AW_device::line(), M_PI, AW::Position::movex(), AW::Position::movey(), NDS_OUTPUT_LEAFTEXT, NDS_OUTPUT_TAB_SEPARATED, NT_ROOT_WIDTH, NT_SELECTED_WIDTH, NULp, AW::Origin, read_tree_settings(), AW_stylable::reset_style(), AW::Vector::rotate270deg(), BootstrapConfig::scaled_remark_ascend, show_ruler(), AW_device::text(), BootstrapConfig::update_empty_branch_behavior(), Dragged::valid_drag_device(), PaintedNode::was_displayed(), and AW::Position::ypos().
|
inline |
Definition at line 525 of file TreeDisplay.hxx.
References PaintedNode::get_pos().
Referenced by NT_jump_cb().
|
inline |
Definition at line 526 of file TreeDisplay.hxx.
References PaintedNode::get_pos().
Referenced by NT_jump_cb().
|
virtual |
Implements AWT_graphic.
Definition at line 1951 of file TreeDisplay.cxx.
References Dragged::abort(), ADMVT_SELECT, AP_TREE_IRS, AW_BUTTON_LEFT, AW_BUTTON_MIDDLE, AW_BUTTON_RIGHT, AW_Keyboard_Press, AW_Keyboard_Release, AW_Mouse_Drag, AW_Mouse_Press, AW_Mouse_Release, AW_root::awar(), AWAR_EXPERT, AWT_MODE_GROUP, AWT_MODE_INFO, AWT_MODE_LENGTH, AWT_MODE_LINE, AWT_MODE_LZOOM, AWT_MODE_MARK, AWT_MODE_MOVE, AWT_MODE_MULTIFURC, AWT_MODE_NONE, AWT_MODE_ROTATE, AWT_MODE_SELECT, AWT_MODE_SETROOT, AWT_MODE_SPREAD, AWT_MODE_SWAP, AWT_MODE_WWW, AWT_graphic_event::best_click(), AWT_graphic_event::button(), AWT_graphic_event::cmd(), command_on_GBDATA(), DEFAULT_RULER_LENGTH, DEFAULT_RULER_LINEWIDTH, dislocate_selected_group(), Dragged::do_drag(), Dragged::do_drop(), AWT_graphic::drag_gc, AWT_graphic::drag_target_detection(), Dragged::draw_drag_indicator(), DragNDrop::draw_drag_indicator(), Scaler::draw_drag_indicator(), AWT_graphic::exports, TreeNode::father, TreeRoot::find_innermost_edge(), GB_searchOrCreate_float(), GB_searchOrCreate_int(), get_command_data(), ARB_seqtree_root::get_gb_main(), ARB_seqtree_root::get_gb_tree(), AW_clicked_line::get_line(), MarkerDisplay::get_marker_name(), AW_zoomable::get_unscale(), MarkerDisplay::handle_click(), Dragged::hide_drag_indicator(), DB_scalable::inverse(), is_nan_or_inf(), mark_species_in_tree(), NULp, preferredForCommand(), AW_awar::read_int(), AWT_graphic_exports::request_refresh(), AWT_graphic_exports::request_save(), AWT_graphic_exports::request_save_and_zoom_reset(), AWT_graphic_exports::request_structure_update(), AWT_graphic_exports::request_zoom_reset(), AW_zoomable::rtransform(), ruler_awar(), RULER_LINEWIDTH, RULER_SIZE, SCALE_LENGTH, SCALE_LENGTH_PRESERVING, SCALE_SPREAD, DB_scalable::set_discretion_factor(), set_logical_root_to(), DB_scalable::set_min(), ARB_edge::set_root(), store_command_data(), ta, td_assert, toggle_group(), AWT_graphic_event::type(), AP_tree_root::update_timers(), and warn_inappropriate_mode().
Definition at line 121 of file TreeDisplay.cxx.
References TreeNode::gb_node, GB_read_flag(), GB_write_flag(), TreeNode::is_leaf(), and td_assert.
Referenced by handle_command(), and mark_tree_cb().
long AWT_graphic_tree::mark_species_in_tree_that | ( | AP_tree * | at, |
int | mark, | ||
bool(*)(GBDATA *, void *) | condition, | ||
void * | cd | ||
) |
Definition at line 152 of file TreeDisplay.cxx.
References TreeNode::gb_node, GB_read_flag(), GB_write_flag(), TreeNode::is_leaf(), and td_assert.
Referenced by mark_tree_cb().
Definition at line 189 of file TreeDisplay.cxx.
References TreeNode::get_brother().
bool AWT_graphic_tree::tree_has_marks | ( | AP_tree * | at | ) |
Definition at line 200 of file TreeDisplay.cxx.
References TreeNode::gb_node, GB_read_flag(), and TreeNode::is_leaf().
bool AWT_graphic_tree::rest_tree_has_marks | ( | AP_tree * | at | ) |
Definition at line 212 of file TreeDisplay.cxx.
References TreeNode::get_brother().
void AWT_graphic_tree::detect_group_state | ( | AP_tree * | at, |
AWT_graphic_tree_group_state * | state, | ||
AP_tree * | skip_this_son | ||
) |
Definition at line 275 of file TreeDisplay.cxx.
References TreeNode::gb_node, GB_read_flag(), AP_tree::gr, AP_tree_members::grouped, AWT_graphic_tree_group_state::has_groups(), if, TreeNode::is_leaf(), TreeNode::is_normal_group(), TreeNode::leftson, AWT_graphic_tree_group_state::marked(), TreeNode::rightson, and AWT_graphic_tree_group_state::unmarked().
bool AWT_graphic_tree::group_tree | ( | AP_tree * | at, |
CollapseMode | mode, | ||
int | color_group | ||
) |
collapse/expand subtree according to mode (and color_group) Run on father! (why?)
Definition at line 329 of file TreeDisplay.cxx.
References COLLAPSE_TERMINAL, EXPAND_ALL, EXPAND_COLOR, EXPAND_MARKED, EXPAND_UNMARKED, EXPAND_ZOMBIES, TreeNode::gb_node, GB_read_flag(), GBT_get_color_group(), AP_tree::gr, AP_tree_members::grouped, TreeNode::is_keeled_group(), TreeNode::is_leaf(), TreeNode::is_normal_group(), and ta.
Referenced by group_and_refold_tree().
void AWT_graphic_tree::group_rest_tree | ( | AP_tree * | at, |
CollapseMode | mode, | ||
int | color_group | ||
) |
Definition at line 319 of file TreeDisplay.cxx.
References TreeNode::get_brother().
void AWT_graphic_tree::reorderTree | ( | TreeOrder | mode | ) |
Definition at line 379 of file TreeDisplay.cxx.
References TreeNode::reorder_tree().
Referenced by calc_branchlengths_and_reorder(), nt_add(), and NT_bootstrap().
void AWT_graphic_tree::toggle_group | ( | AP_tree * | at | ) |
Definition at line 563 of file TreeDisplay.cxx.
References Group::at_node(), aw_input(), aw_message(), aw_question(), deselect_group(), dislocate_selected_group(), AWT_graphic::exports, GB_delete(), GB_entry(), TreeNode::gb_node, GB_touch(), GBS_global_string(), GBT_write_name_to_groupData(), AP_tree::gr, AP_tree_members::grouped, TreeNode::has_group_info(), TreeNode::is_clade(), TreeNode::is_keeled_group(), TreeNode::is_leaf(), TreeNode::name, NULp, AWT_graphic_exports::request_save(), td_assert, and TreeNode::unkeelGroup().
Referenced by handle_command().
Implements AWT_graphic.
Definition at line 2371 of file TreeDisplay.cxx.
References AWT_graphic_tree_node_deleted(), AWT_graphic_tree_root_changed(), MarkerDisplay::cache_is_flushed(), AP_tree::compute_tree(), destroy(), error(), Group::get_group_data(), get_root_node(), get_selected_group(), ARB_seqtree_root::get_tree_name(), AP_tree_root::gone_tree_name, ARB_seqtree_root::linkToDB(), AP_tree_root::loadFromDB(), NO_TREE_SELECTED, NULp, read_tree_settings(), AP_tree_root::set_node_deleted_callback(), AP_tree_root::set_root_changed_callback(), and td_assert.
Referenced by check_for_DB_update().
Implements AWT_graphic.
Definition at line 2425 of file TreeDisplay.cxx.
References aw_message(), error(), MarkerDisplay::flush_cache(), GB_delete(), AP_tree_root::gb_tree_gone, GBS_global_string(), get_root_node(), ARB_seqtree_root::get_tree_name(), AP_tree_root::gone_tree_name, NULp, AP_tree_root::saveToDB(), ta, and td_assert.
Referenced by delete_kept_ghostnodes().
|
virtual |
Implements AWT_graphic.
Definition at line 2456 of file TreeDisplay.cxx.
References AP_UPDATE_ERROR, AP_UPDATE_OK, AP_UPDATE_RELINKED, AP_UPDATE_RELOADED, aw_message(), AP_tree_root::check_update(), AWT_graphic::exports, flags, AWT_graphic_exports::flags_writeable(), get_root_node(), ARB_seqtree_root::get_tree_name(), get_tree_root(), load_from_DB(), AP_tree::relink(), AWT_graphic_exports::request_resize(), AWT_graphic_exports::request_structure_update(), ta, and td_assert.
|
virtual |
Implements AWT_graphic.
Definition at line 2493 of file TreeDisplay.cxx.
References get_tree_root(), and AP_tree_root::update_timers().
Referenced by fast_sync_changed_folding().
void AWT_graphic_tree::fast_sync_changed_folding | ( | AP_tree * | parent_of_all_changes | ) |
Definition at line 3913 of file TreeDisplay.cxx.
References AWT_graphic::exports, MarkerDisplay::flush_cache(), AWT_graphic_exports::needs_save(), AWT_graphic_exports::needs_structure_update(), notify_synchronized(), NULp, AP_tree::recompute_and_write_folding(), AWT_graphic_exports::request_resize(), and td_assert.
Referenced by auto_unfold(), and group_and_refold_tree().
void AWT_graphic_tree::set_tree_style | ( | AP_tree_display_style | style, |
AWT_canvas * | ntw | ||
) |
Definition at line 2265 of file TreeDisplay.cxx.
References AP_LIST_NDS, AP_LIST_SIMPLE, AP_TREE_IRS, AP_TREE_NORMAL, AP_TREE_RADIAL, apply_zoom_settings_for_treetype(), AWT_FIT_LARGER, AWT_FIT_NEVER, AWT_FIT_X, AWT_ZOOM_BOTH, AWT_ZOOM_NEVER, AWT_ZOOM_X, AWT_graphic_exports::dont_scroll, AWT_graphic::exports, AWT_graphic_exports::fit_mode, is_list_style(), and AWT_graphic_exports::zoom_mode.
Referenced by AWT_graphic_tree(), pars_start_cb(), and popup_new_main_window().
|
inline |
Definition at line 553 of file TreeDisplay.hxx.
Referenced by NT_jump_cb(), pars_start_cb(), and popup_new_main_window().
|
inline |
Definition at line 555 of file TreeDisplay.hxx.
Definition at line 3302 of file TreeDisplay.cxx.
References AP_TREE_IRS, AP_TREE_NORMAL, AW_DEVICE_SIZE, AW_SIZE, AW_SIZE_UNSCALED, AW_SOLID, AW_world::b, CL_RULER, DEFAULT_RULER_LENGTH, DEFAULT_RULER_LINEWIDTH, DOWNCAST, GB_FIND, GB_search(), GBT_readOrCreate_float(), GBT_readOrCreate_int(), ARB_seqtree_root::get_gb_tree(), is_nan_or_inf(), AW_device::line(), NULp, ruler_awar(), RULER_LINEWIDTH, RULER_SIZE, AW_stylable::set_line_attributes(), ta, td_assert, AW_device::text(), and AW_device::type().
Referenced by show().
Definition at line 557 of file TreeDisplay.hxx.
|
inline |
Definition at line 559 of file TreeDisplay.hxx.
References NULp.
Referenced by refresh_matchedProbesDisplay_cb(), selected_configs_awar_changed_cb(), and set_marker_display().
|
inline |
Definition at line 563 of file TreeDisplay.hxx.
References hide_marker_display().
Referenced by refresh_matchedProbesDisplay_cb(), and selected_configs_awar_changed_cb().
|
inline |
Definition at line 567 of file TreeDisplay.hxx.
Referenced by refresh_matchedProbesDisplay_cb(), and selected_configs_awar_changed_cb().
void AWT_graphic_tree::install_tree_changed_callback | ( | const GraphicTreeCallback & | gtcb | ) |
install a callback called whenever
Definition at line 3899 of file TreeDisplay.cxx.
References td_assert.
Referenced by TopologyShader::activate().
void AWT_graphic_tree::uninstall_tree_changed_callback | ( | ) |
Definition at line 3908 of file TreeDisplay.cxx.
References td_assert, and treeChangeIgnore_cb.
Referenced by TopologyShader::activate().
|
inlinestatic |
Definition at line 572 of file TreeDisplay.hxx.
Referenced by popup_new_main_window().
void AWT_graphic_tree::auto_unfold | ( | AP_tree * | want_visible | ) |
Definition at line 787 of file TreeDisplay.cxx.
References collect_enclosing_groups(), fast_sync_changed_folding(), and AP_tree_folding::unfold().
Referenced by NT_jump_cb(), and NT_reload_tree_event().
void AWT_graphic_tree::forget_auto_unfolded | ( | ) |
Definition at line 797 of file TreeDisplay.cxx.
References AP_tree_folding::forget().
Referenced by NT_reload_tree_event(), and update_structure().
|
inline |
Definition at line 587 of file TreeDisplay.hxx.
References TreeNode::is_clade(), and td_assert.
|
inline |
Definition at line 591 of file TreeDisplay.hxx.
|
inline |
Definition at line 594 of file TreeDisplay.hxx.
Referenced by group_awar_changed_cb(), NT_reload_tree_event(), and toggle_group().
|
inline |
Definition at line 597 of file TreeDisplay.hxx.
Referenced by group_awar_changed_cb(), group_selected_by_canvas_cb(), load_from_DB(), and NT_jump_cb().
Definition at line 600 of file TreeDisplay.hxx.
References Group::get_node(), Group::is_valid(), Group::locate(), and NULp.
Referenced by NT_jump_cb().
|
inline |
Definition at line 609 of file TreeDisplay.hxx.
References Group::dislocate().
Referenced by handle_command(), and toggle_group().
AWT_graphic_tree::PREPARE_MARK_NONFINAL_CLASS | ( | AWT_graphic_tree | ) |
double AWT_graphic_tree::marked |
Definition at line 409 of file TreeDisplay.hxx.
double AWT_graphic_tree::partiallyMarked |
Definition at line 410 of file TreeDisplay.hxx.
|
protected |
Definition at line 460 of file TreeDisplay.hxx.
Referenced by create_tree_root(), and read_tree_settings().