ARB
|
#include "TreeDisplay.hxx"
#include "TreeCallbacks.hxx"
#include "GroupIterator.hxx"
#include <AP_TreeColors.hxx>
#include <AP_TreeShader.hxx>
#include <AP_TreeSet.hxx>
#include <nds.h>
#include <awt_config_manager.hxx>
#include <aw_preset.hxx>
#include <aw_awars.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <arb_defs.h>
#include <arb_diff.h>
#include <arb_global_defs.h>
#include <arb_strbuf.h>
#include <ad_cb.h>
#include <unistd.h>
#include <iostream>
#include <cfloat>
#include <algorithm>
Go to the source code of this file.
Classes | |
class | AWT_graphic_tree_group_state |
class | Dragged |
class | AP_tree_folding |
class | ClickedElement |
class | DragNDrop |
class | BranchMover |
class | Scaler |
class | DB_scalable |
class | RulerScaler |
class | BranchScaler |
class | BranchLinewidthScaler |
class | FINAL_TYPE< SEQTYPE > |
xml element More... | |
class | MarkerIdentifier |
class | MarkerXPos |
class | MarkerPosition |
struct | Subinfo |
struct | Column |
class | ListDisplayRow |
Macros | |
#define | RULER_LINEWIDTH "ruler/ruler_width" |
#define | RULER_SIZE "ruler/size" |
#define | DEFAULT_RULER_LINEWIDTH tree_defaults::LINEWIDTH |
#define | DEFAULT_RULER_LENGTH tree_defaults::LENGTH |
Enumerations | |
enum | ScaleMode { SCALE_LENGTH, SCALE_LENGTH_PRESERVING, SCALE_SPREAD } |
Variables | |
const int | MARKER_COLORS = 12 |
static int | MarkerGC [MARKER_COLORS] |
static GraphicTreeCallback | treeChangeIgnore_cb = makeGraphicTreeCallback(tree_change_ignore_cb) |
static AWT_config_mapping_def | tree_setting_config_mapping [] |
static const int | SCALER_WIDTH = 250 |
static const int | LABEL_WIDTH = 30 |
#define RULER_LINEWIDTH "ruler/ruler_width" |
Definition at line 40 of file TreeDisplay.cxx.
Referenced by AWT_graphic_tree::handle_command(), and AWT_graphic_tree::show_ruler().
#define RULER_SIZE "ruler/size" |
Definition at line 41 of file TreeDisplay.cxx.
Referenced by AWT_graphic_tree::handle_command(), and AWT_graphic_tree::show_ruler().
#define DEFAULT_RULER_LINEWIDTH tree_defaults::LINEWIDTH |
Definition at line 43 of file TreeDisplay.cxx.
Referenced by AWT_graphic_tree::handle_command(), and AWT_graphic_tree::show_ruler().
#define DEFAULT_RULER_LENGTH tree_defaults::LENGTH |
Definition at line 44 of file TreeDisplay.cxx.
Referenced by AWT_graphic_tree::handle_command(), and AWT_graphic_tree::show_ruler().
enum ScaleMode |
Enumerator | |
---|---|
SCALE_LENGTH | |
SCALE_LENGTH_PRESERVING | |
SCALE_SPREAD |
Definition at line 1610 of file TreeDisplay.cxx.
|
static |
Definition at line 68 of file TreeDisplay.cxx.
Definition at line 504 of file TreeDisplay.cxx.
References AWT_graphic_tree::get_logical_root(), TreeNode::is_inside(), and AWT_graphic_tree::set_logical_root_to().
Referenced by AWT_graphic_tree::load_from_DB().
|
static |
Definition at line 511 of file TreeDisplay.cxx.
References AWT_graphic_tree::get_logical_root(), AWT_graphic_tree::get_root_node(), NULp, and AWT_graphic_tree::set_logical_root_to().
Referenced by AWT_graphic_tree::load_from_DB().
|
inline |
Definition at line 671 of file TreeDisplay.cxx.
References AW_KEY_DOWN, AW_KEY_END, AW_KEY_HOME, AW_KEY_LEFT, AW_KEY_RIGHT, and AW_KEY_UP.
|
static |
Definition at line 709 of file TreeDisplay.cxx.
References GB_read_flag(), GBT_first_marked_species(), GBT_first_species(), GBT_next_marked_species(), GBT_next_species(), and NULp.
|
static |
Definition at line 1303 of file TreeDisplay.cxx.
References ADMVT_INFO, ADMVT_NONE, ADMVT_SELECT, ADMVT_WWW, AW_BUTTON_LEFT, AW_BUTTON_MIDDLE, AW_BUTTON_RIGHT, AW_Mouse_Press, AWT_MODE_INFO, AWT_MODE_MARK, AWT_MODE_WWW, AWT_graphic_event::button(), AWT_graphic_event::cmd(), GB_write_flag(), and AWT_graphic_event::type().
Referenced by AWT_graphic_tree::handle_command().
|
inline |
Definition at line 1499 of file TreeDisplay.cxx.
Referenced by DB_scalable::write().
|
static |
Definition at line 1604 of file TreeDisplay.cxx.
References AW::LineVector::head(), and AW_device::text().
|
inline |
calculates text coordinates for text placed at the tip of a vector
device | output device |
gc | context |
pos | tip of the vector (world coordinates) |
orientation | orientation of the vector (towards its tip) |
alignment | result param (alignment for call to text()) |
dist_factor | normally 1.0 (smaller => text nearer towards 'pos') |
Definition at line 1845 of file TreeDisplay.cxx.
References AW::Angle::cos(), AW_stylable::get_font_limits(), AW_font_limits::get_height(), AW_zoomable::get_unscale(), AW::Position::movey(), AW::Angle::normal(), AW::Vector::sety(), and AW::Vector::y().
Referenced by calc_text_coordinates_aside_line().
|
inline |
calculates text coordinates for text placed aside of a vector
device | output device |
gc | context |
pos | position on the vector, e.g. center of vector (world coordinates) |
orientation | orientation of the vector (towards its tip) |
right | true -> on right side of vector (otherwise on left side) |
alignment | result param (alignment for call to text()) |
dist_factor | normally 1.0 (smaller => text nearer towards 'pos') |
Definition at line 1871 of file TreeDisplay.cxx.
References calc_text_coordinates_near_tip(), AW::Angle::rotate270deg(), and AW::Angle::rotate90deg().
|
static |
Definition at line 1934 of file TreeDisplay.cxx.
References AWT_MODE_LENGTH, AWT_MODE_MULTIFURC, and AWT_MODE_SPREAD.
Referenced by AWT_graphic_tree::handle_command().
|
static |
Definition at line 2306 of file TreeDisplay.cxx.
|
inline |
Definition at line 3767 of file TreeDisplay.cxx.
References AP_tree_members::leaf_sum, AP_tree_members::mark_sum, and td_assert.
AWT_graphic_tree* NT_generate_tree | ( | AW_root * | root, |
GBDATA * | gb_main, | ||
AD_map_viewer_cb | map_viewer_cb | ||
) |
Definition at line 3919 of file TreeDisplay.cxx.
References AWT_graphic_tree::init(), and NULp.
Referenced by popup_new_main_window().
|
static |
Definition at line 3925 of file TreeDisplay.cxx.
References AW_root::awar(), AWAR_DTREE_GROUP_MARKED_THRESHOLD, AWAR_DTREE_GROUP_PARTIALLY_MARKED_THRESHOLD, AWAR_TREE_REFRESH, AW_awar::read_float(), AW_awar::touch(), and AW_awar::write_float().
Referenced by TREE_install_update_callbacks().
void TREE_create_awars | ( | AW_root * | aw_root, |
AW_default | db | ||
) |
Definition at line 3948 of file TreeDisplay.cxx.
References AP_JUMP_FORCE_VCENTER, AP_JUMP_KEEP_VISIBLE, AWAR_DTREE_ATTACH_GROUP, AWAR_DTREE_ATTACH_LEN, AWAR_DTREE_ATTACH_SIZE, AWAR_DTREE_AUTO_JUMP, AWAR_DTREE_AUTO_JUMP_TREE, AWAR_DTREE_AUTO_UNFOLD, 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_DENDRO_XPAD, AWAR_DTREE_DENDRO_ZOOM_TEXT, 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_RADIAL_XPAD, AWAR_DTREE_RADIAL_ZOOM_TEXT, AWAR_DTREE_SHOW_BRACKETS, AWAR_DTREE_VERICAL_DIST, AW_root::awar_float(), AW_root::awar_int(), AWAR_TREE_RECOMPUTE, AWAR_TREE_REFRESH, BS_PERCENT, BS_RECTANGULAR, GCM_MEMBERS, GIP_SEPARATED, GO_TOP, GS_TRAPEZE, and AW_awar::set_minmax().
Referenced by nt_create_all_awars(), and pars_create_all_awars().
|
static |
Definition at line 3996 of file TreeDisplay.cxx.
References DOWNCAST, AWT_graphic_tree::get_root_node(), AWT_canvas::gfx, AWT_graphic_tree::read_tree_settings(), AWT_canvas::request_resize(), and AWT_canvas::request_structure_update().
Referenced by TREE_install_update_callbacks().
|
static |
Definition at line 4006 of file TreeDisplay.cxx.
References AWT_canvas::request_resize().
Referenced by TREE_install_update_callbacks().
|
static |
Definition at line 4011 of file TreeDisplay.cxx.
References AW_root::awar(), AWAR_DTREE_BOOTSTRAP_MAX, AWAR_DTREE_BOOTSTRAP_MIN, AW_awar::read_int(), AWT_canvas::request_refresh(), and AW_awar::write_int().
Referenced by TREE_install_update_callbacks().
void TREE_install_update_callbacks | ( | TREE_canvas * | ntw | ) |
Definition at line 4037 of file TreeDisplay.cxx.
References AW_awar::add_callback(), AP_JUMP_REASON_SPECIES, 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_DENDRO_XPAD, AWAR_DTREE_DENDRO_ZOOM_TEXT, 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_RADIAL_XPAD, AWAR_DTREE_RADIAL_ZOOM_TEXT, AWAR_DTREE_SHOW_BRACKETS, AWAR_DTREE_VERICAL_DIST, AWAR_SPECIES_NAME, AWAR_TREE_RECOMPUTE, AWAR_TREE_REFRESH, AWT_canvas::awr, AWT_expose_cb(), bootstrap_range_changed_cb(), expose_cb(), GB_add_callback(), GB_CB_CHANGED, GB_CREATE_CONTAINER, AWT_canvas::gb_main, GB_search(), markerThresholdChanged_cb(), NT_reinit_treetype(), resize_cb(), TREE_auto_jump_cb(), TREE_recompute_and_resize_cb(), and TREE_resize_cb().
Referenced by pars_start_cb(), and popup_new_main_window().
|
static |
Definition at line 4097 of file TreeDisplay.cxx.
References AP_DONT_JUMP, AP_JUMP_FORCE_CENTER, AP_JUMP_FORCE_VCENTER, AP_JUMP_KEEP_VISIBLE, AW_window::at_newline(), AW_window::create_option_menu(), AW_window::insert_default_option(), AW_window::insert_option(), AW_window::label(), and AW_window::update_option_menu().
Referenced by TREE_create_settings_window().
Definition at line 4152 of file TreeDisplay.cxx.
References AW_window::at_newline(), AW_window::create_autosize_button(), GBS_global_string_copy(), and NULp.
Referenced by create_tree_bootstrap_settings_window(), create_tree_expert_settings_window(), and TREE_create_settings_window().
Definition at line 4159 of file TreeDisplay.cxx.
References AW_POPDOWN(), AWAR_DTREE_ATTACH_GROUP, AWAR_DTREE_ATTACH_LEN, AWAR_DTREE_ATTACH_SIZE, AWAR_DTREE_DENDRO_XPAD, AWAR_DTREE_DENDRO_ZOOM_TEXT, AWAR_DTREE_RADIAL_XPAD, AWAR_DTREE_RADIAL_ZOOM_TEXT, insert_section_header(), makeHelpCallback(), and NULp.
Referenced by TREE_create_settings_window().
Definition at line 4209 of file TreeDisplay.cxx.
References AW_POPDOWN(), AW_SCALER_EXP_LOWER, AWAR_DTREE_BOOTSTRAP_MAX, AWAR_DTREE_BOOTSTRAP_MIN, AWAR_DTREE_BOOTSTRAP_SHOW, AWAR_DTREE_BOOTSTRAP_STYLE, AWAR_DTREE_CIRCLE_ELLIPSE, AWAR_DTREE_CIRCLE_FILL, AWAR_DTREE_CIRCLE_LIMIT, AWAR_DTREE_CIRCLE_SHOW, AWAR_DTREE_CIRCLE_ZOOM, BS_FLOAT, BS_PERCENT, BS_PERCENT_NOSIGN, insert_section_header(), makeHelpCallback(), and NULp.
Referenced by TREE_create_settings_window().
Definition at line 4277 of file TreeDisplay.cxx.
References AW_POPDOWN(), AW_ROOT_DEFAULT, AW_SCALER_EXP_LOWER, AWAR_DTREE_AUTO_JUMP, AWAR_DTREE_AUTO_JUMP_TREE, AWAR_DTREE_AUTO_UNFOLD, AWAR_DTREE_BASELINEWIDTH, AWAR_DTREE_BOOTSTRAP_SHOW, AWAR_DTREE_BRANCH_STYLE, AWAR_DTREE_GREY_LEVEL, AWAR_DTREE_GROUP_DOWNSCALE, AWAR_DTREE_GROUP_ORIENT, AWAR_DTREE_GROUP_SCALE, AWAR_DTREE_GROUP_STYLE, AWAR_DTREE_GROUPCOUNTMODE, AWAR_DTREE_GROUPINFOPOS, AWAR_DTREE_SHOW_BRACKETS, AWAR_DTREE_VERICAL_DIST, AWT_insert_config_manager(), BS_DIAGONAL, BS_RECTANGULAR, create_tree_bootstrap_settings_window(), create_tree_expert_settings_window(), GCM_BOTH, GCM_BOTH_PC, GCM_MARKED, GCM_MEMBERS, GCM_NONE, GCM_PERCENT, GIP_ATTACHED, GIP_OVERLAYED, GIP_SEPARATED, GO_BOTTOM, GO_EXTERIOR, GO_INTERIOR, GO_TOP, GS_TRAPEZE, GS_TRIANGLE, insert_section_header(), makeHelpCallback(), NULp, and tree_insert_jump_option_menu().
Referenced by pars_start_cb(), and popup_new_main_window().
Definition at line 4396 of file TreeDisplay.cxx.
References AW_POPDOWN(), AWAR_DTREE_GROUP_MARKED_THRESHOLD, AWAR_DTREE_GROUP_PARTIALLY_MARKED_THRESHOLD, AWAR_DTREE_MARKER_WIDTH, AWAR_DTREE_PARTIAL_GREYLEVEL, makeHelpCallback(), and NULp.
Referenced by create_configuration_marker_window(), and create_probe_match_specificity_control_window().
const int MARKER_COLORS = 12 |
Definition at line 48 of file TreeDisplay.cxx.
|
static |
Definition at line 49 of file TreeDisplay.cxx.
|
static |
Definition at line 2307 of file TreeDisplay.cxx.
Referenced by AWT_graphic_tree::uninstall_tree_changed_callback().
|
static |
Definition at line 4108 of file TreeDisplay.cxx.
|
static |
Definition at line 4149 of file TreeDisplay.cxx.
Referenced by SEC_create_display_window().
|
static |
Definition at line 4150 of file TreeDisplay.cxx.