| 1 | // =============================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : pars_dtree.hxx // |
|---|
| 4 | // Purpose : phylogenetic tree display // |
|---|
| 5 | // (specialized for ARB_PARSIMONY) // |
|---|
| 6 | // // |
|---|
| 7 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 8 | // http://www.arb-home.de/ // |
|---|
| 9 | // // |
|---|
| 10 | // =============================================================== // |
|---|
| 11 | |
|---|
| 12 | #ifndef PARS_DTREE_HXX |
|---|
| 13 | #define PARS_DTREE_HXX |
|---|
| 14 | |
|---|
| 15 | #ifndef TREEDISPLAY_HXX |
|---|
| 16 | #include <TreeDisplay.hxx> |
|---|
| 17 | #endif |
|---|
| 18 | |
|---|
| 19 | class arb_progress; |
|---|
| 20 | class ArbParsimony; |
|---|
| 21 | class AP_tree_nlen; |
|---|
| 22 | class AP_pars_root; |
|---|
| 23 | |
|---|
| 24 | class AWT_graphic_parsimony : public AWT_graphic_tree, virtual Noncopyable { |
|---|
| 25 | ArbParsimony& parsimony; |
|---|
| 26 | |
|---|
| 27 | AW_gc_manager *init_devices(AW_window *, AW_device *, AWT_canvas *ntw) OVERRIDE; |
|---|
| 28 | |
|---|
| 29 | void show(AW_device *device) OVERRIDE; |
|---|
| 30 | |
|---|
| 31 | void handle_command(AW_device *device, AWT_graphic_event& event) OVERRIDE; |
|---|
| 32 | AP_tree_root *create_tree_root(AliView *aliview, AP_sequence *seq_prototype, bool insert_delete_cbs) OVERRIDE; |
|---|
| 33 | |
|---|
| 34 | public: |
|---|
| 35 | AWT_graphic_parsimony(ArbParsimony& parsimony_, GBDATA *gb_main_, AD_map_viewer_cb map_viewer_cb_); |
|---|
| 36 | |
|---|
| 37 | AP_tree_nlen *get_root_node() { |
|---|
| 38 | return DOWNCAST(AP_tree_nlen*, AWT_graphic_tree::get_root_node()); |
|---|
| 39 | } |
|---|
| 40 | AP_pars_root *get_tree_root() { return DOWNCAST(AP_pars_root*, AWT_graphic_tree::get_tree_root()); } |
|---|
| 41 | ArbParsimony& get_parsimony() { return parsimony; } |
|---|
| 42 | }; |
|---|
| 43 | |
|---|
| 44 | void PARS_tree_init(AWT_graphic_parsimony *agt); |
|---|
| 45 | |
|---|
| 46 | #else |
|---|
| 47 | #error pars_dtree.hxx included twice |
|---|
| 48 | #endif // PARS_DTREE_HXX |
|---|