ARB
pars_dtree.hxx
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : pars_dtree.hxx //
4 // Purpose : //
5 // //
6 // Institute of Microbiology (Technical University Munich) //
7 // http://www.arb-home.de/ //
8 // //
9 // =============================================================== //
10 
11 #ifndef PARS_DTREE_HXX
12 #define PARS_DTREE_HXX
13 
14 #ifndef TREEDISPLAY_HXX
15 #include <TreeDisplay.hxx>
16 #endif
17 
18 class arb_progress;
19 class ArbParsimony;
20 class AP_tree_nlen;
21 class AP_pars_root;
22 
24  ArbParsimony& parsimony;
25 
26  AW_gc_manager *init_devices(AW_window *, AW_device *, AWT_canvas *ntw) OVERRIDE;
27 
28  void show(AW_device *device) OVERRIDE;
29 
30  void handle_command(AW_device *device, AWT_graphic_event& event) OVERRIDE;
31  AP_tree_root *create_tree_root(AliView *aliview, AP_sequence *seq_prototype, bool insert_delete_cbs) OVERRIDE;
32 
33 public:
34  AWT_graphic_parsimony(ArbParsimony& parsimony_, GBDATA *gb_main_, AD_map_viewer_cb map_viewer_cb_);
35 
36  AP_tree_nlen *get_root_node() {
37  return DOWNCAST(AP_tree_nlen*, AWT_graphic_tree::get_root_node());
38  }
39  AP_pars_root *get_tree_root() { return DOWNCAST(AP_pars_root*, AWT_graphic_tree::get_tree_root()); }
40  ArbParsimony& get_parsimony() { return parsimony; }
41 };
42 
44 
45 #else
46 #error pars_dtree.hxx included twice
47 #endif // PARS_DTREE_HXX
AP_tree_root * get_tree_root()
void PARS_tree_init(AWT_graphic_parsimony *agt)
Definition: PARS_dtree.cxx:59
AP_tree_nlen * get_root_node()
Definition: pars_dtree.hxx:36
AWT_graphic_parsimony(ArbParsimony &parsimony_, GBDATA *gb_main_, AD_map_viewer_cb map_viewer_cb_)
Definition: PARS_dtree.cxx:285
#define DOWNCAST(totype, expr)
Definition: downcast.h:141
void(* AD_map_viewer_cb)(GBDATA *gbd, AD_MAP_VIEWER_TYPE type)
AP_pars_root * get_tree_root()
Definition: pars_dtree.hxx:39
#define OVERRIDE
Definition: cxxforward.h:112
AP_tree * get_root_node()
ArbParsimony & get_parsimony()
Definition: pars_dtree.hxx:40