ARB
|
#include "ad_trees.h"
#include "NT_local.h"
#include <aw_window.hxx>
#include <aw_root.hxx>
#include <aw_awar.hxx>
#include <aw_msg.hxx>
#include <awt_sel_boxes.hxx>
#include <TreeCallbacks.hxx>
#include <TreeAdmin.h>
#include <arb_progress.h>
#include <arb_global_defs.h>
#include <item_sel_list.h>
#include <set>
#include <map>
Go to the source code of this file.
Classes | |
class | SpeciesInTwoTrees |
Macros | |
#define | TREE_COMPARE_PREFIX "ad_tree/compare/" |
#define | AWAR_TREE_COMPARE_ACTION TREE_COMPARE_PREFIX "action" |
#define | AWAR_TREE_COMPARE_MIN_TAX_LEVELS TREE_COMPARE_PREFIX "taxdist" |
#define | AWAR_TREE_COMPARE_WRITE_FIELD TREE_COMPARE_PREFIX "field" |
Typedefs | |
typedef std::set< const char *, charpLess > | NameSet |
typedef std::map< const char *, SpeciesInTwoTrees, charpLess > | TwoTreeMap |
Enumerations | |
enum | Action { UNMARK = 0, MARK = 1, INVERT = 2 } |
enum | Target { ALL, TAX, COMMON, MISSING_LEFT, MISSING_RIGHT } |
Functions | |
static TreeNode * | findParentGroup (TreeNode *node) |
static int | countTaxLevel (TreeNode *node) |
static int | calcTaxDifference (TreeNode *g1, TreeNode *g2) |
static void | mapTree (TreeNode *node, TwoTreeMap &tmap, bool first) |
static void | mark_action (AW_window *aws, TREE_canvas *ntw, Target target) |
void | NT_create_compare_taxonomy_awars (AW_root *aw_root, AW_default props) |
AW_window * | NT_create_compare_taxonomy_window (AW_root *aw_root, TREE_canvas *ntw) |
#define TREE_COMPARE_PREFIX "ad_tree/compare/" |
Definition at line 30 of file NT_taxonomy.cxx.
#define AWAR_TREE_COMPARE_ACTION TREE_COMPARE_PREFIX "action" |
Definition at line 32 of file NT_taxonomy.cxx.
Referenced by mark_action(), NT_create_compare_taxonomy_awars(), and NT_create_compare_taxonomy_window().
#define AWAR_TREE_COMPARE_MIN_TAX_LEVELS TREE_COMPARE_PREFIX "taxdist" |
Definition at line 33 of file NT_taxonomy.cxx.
Referenced by mark_action(), NT_create_compare_taxonomy_awars(), and NT_create_compare_taxonomy_window().
#define AWAR_TREE_COMPARE_WRITE_FIELD TREE_COMPARE_PREFIX "field" |
Definition at line 34 of file NT_taxonomy.cxx.
Referenced by mark_action(), NT_create_compare_taxonomy_awars(), and NT_create_compare_taxonomy_window().
Definition at line 171 of file NT_taxonomy.cxx.
typedef std::map<const char *, SpeciesInTwoTrees, charpLess> TwoTreeMap |
Definition at line 172 of file NT_taxonomy.cxx.
enum Action |
Enumerator | |
---|---|
UNMARK | |
MARK | |
INVERT |
Definition at line 36 of file NT_taxonomy.cxx.
enum Target |
Enumerator | |
---|---|
ALL | |
TAX | |
COMMON | |
MISSING_LEFT | |
MISSING_RIGHT |
Definition at line 42 of file NT_taxonomy.cxx.
Definition at line 50 of file NT_taxonomy.cxx.
References TreeNode::father, TreeNode::is_normal_group(), and NULp.
Referenced by calcTaxDifference(), SpeciesInTwoTrees::calcTaxDiffLevel(), and countTaxLevel().
Definition at line 63 of file NT_taxonomy.cxx.
References findParentGroup(), TreeNode::is_leaf(), and TreeNode::is_normal_group().
Referenced by SpeciesInTwoTrees::calcTaxDiffLevel().
Definition at line 73 of file NT_taxonomy.cxx.
References findParentGroup(), TreeNode::is_normal_group(), min, TreeNode::name, and nt_assert.
Referenced by SpeciesInTwoTrees::calcTaxDiffLevel().
|
static |
Definition at line 174 of file NT_taxonomy.cxx.
References TreeNode::is_leaf(), TreeNode::leftson, TreeNode::name, nt_assert, and TreeNode::rightson.
Referenced by mark_action().
|
static |
Definition at line 185 of file NT_taxonomy.cxx.
References ALL, aw_message(), aw_message_if(), AW_root::awar(), AWAR_TREE_COMPARE_ACTION, AWAR_TREE_COMPARE_MIN_TAX_LEVELS, AWAR_TREE_COMPARE_WRITE_FIELD, SpeciesInTwoTrees::calcTaxDiffLevel(), COMMON, TreeAdmin::dest_tree_awar(), destroy(), error(), FIF_ALLOW_NONE, GB_await_error(), GB_incur_error(), gb_main, AWT_canvas::gb_main, GB_read_flag(), gb_species_data, GB_write_flag(), GB_write_lossless_int(), GBS_global_string(), GBT_find_species_rel_species_data(), GBT_get_names_of_species_in_tree(), GBT_get_species_data(), GBT_read_tree(), GBT_searchOrCreate_itemfield_according_to_changekey(), AW_window::get_root(), arb_progress::inc_and_check_user_abort(), INVERT, mapTree(), MARK, MISSING_LEFT, nt_assert, NT_mark_all_cb(), NULp, SpeciesInTwoTrees::occursInBothTrees(), prepare_and_get_selected_itemfield(), AW_awar::read_char_pntr(), AW_awar::read_int(), s, TreeAdmin::source_tree_awar(), SPECIES_get_selector(), ta, TAX, and UNMARK.
Referenced by NT_create_compare_taxonomy_window().
void NT_create_compare_taxonomy_awars | ( | AW_root * | aw_root, |
AW_default | props | ||
) |
Definition at line 335 of file NT_taxonomy.cxx.
References AW_root::awar(), AW_root::awar_int(), AW_root::awar_string(), AWAR_TREE_COMPARE_ACTION, AWAR_TREE_COMPARE_MIN_TAX_LEVELS, AWAR_TREE_COMPARE_WRITE_FIELD, AWAR_TREE_NAME, MARK, NO_FIELD_SELECTED, and AW_awar::read_string().
Referenced by nt_create_all_awars().
AW_window* NT_create_compare_taxonomy_window | ( | AW_root * | aw_root, |
TREE_canvas * | ntw | ||
) |
Definition at line 345 of file NT_taxonomy.cxx.
References ALL, AW_POPDOWN(), AWAR_TREE_COMPARE_ACTION, AWAR_TREE_COMPARE_MIN_TAX_LEVELS, AWAR_TREE_COMPARE_WRITE_FIELD, COMMON, create_itemfield_selection_button(), FIELD_FILTER_INT_WRITEABLE, AWT_canvas::gb_main, INVERT, AW_window::load_xfig(), makeHelpCallback(), MARK, mark_action(), MISSING_LEFT, MISSING_RIGHT, NT_create_twoTreeSelection(), SF_ALLOW_NEW, SPECIES_get_selector(), TAX, and UNMARK.
Referenced by popup_new_main_window().