1 | // =============================================================== // |
---|
2 | // // |
---|
3 | // File : RNA3D_Main.cxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Coded by Yadhukumar in December 2004 // |
---|
7 | // Institute of Microbiology (Technical University Munich) // |
---|
8 | // http://www.arb-home.de/ // |
---|
9 | // // |
---|
10 | // =============================================================== // |
---|
11 | |
---|
12 | #include "RNA3D_GlobalHeader.hxx" |
---|
13 | #include "RNA3D_Global.hxx" |
---|
14 | #include "RNA3D_Interface.hxx" |
---|
15 | #include "rna3d_extern.hxx" |
---|
16 | |
---|
17 | #include <aw_root.hxx> |
---|
18 | #include <aw_window.hxx> |
---|
19 | #include <arbdb.h> |
---|
20 | |
---|
21 | static void CreateRNA3DAwars(AW_root *root) { |
---|
22 | // Display Base Section |
---|
23 | root->awar_int(AWAR_3D_DISPLAY_BASES, 0, AW_ROOT_DEFAULT); |
---|
24 | root->awar_float(AWAR_3D_DISPLAY_SIZE, 10, AW_ROOT_DEFAULT); |
---|
25 | root->awar_int(AWAR_3D_BASES_MODE, 0, AW_ROOT_DEFAULT); |
---|
26 | root->awar_int(AWAR_3D_BASES_HELIX, 1, AW_ROOT_DEFAULT); |
---|
27 | root->awar_int(AWAR_3D_BASES_UNPAIRED_HELIX, 1, AW_ROOT_DEFAULT); |
---|
28 | root->awar_int(AWAR_3D_BASES_NON_HELIX, 1, AW_ROOT_DEFAULT); |
---|
29 | root->awar_int(AWAR_3D_SHAPES_HELIX, 1, AW_ROOT_DEFAULT); |
---|
30 | root->awar_int(AWAR_3D_SHAPES_UNPAIRED_HELIX, 3, AW_ROOT_DEFAULT); |
---|
31 | root->awar_int(AWAR_3D_SHAPES_NON_HELIX, 1, AW_ROOT_DEFAULT); |
---|
32 | |
---|
33 | // Display Helix Section |
---|
34 | root->awar_int(AWAR_3D_DISPLAY_HELIX, 0, AW_ROOT_DEFAULT); |
---|
35 | root->awar_int(AWAR_3D_HELIX_BACKBONE, 0, AW_ROOT_DEFAULT); |
---|
36 | root->awar_int(AWAR_3D_HELIX_MIDPOINT, 0, AW_ROOT_DEFAULT); |
---|
37 | root->awar_int(AWAR_3D_HELIX_FROM, 1, AW_ROOT_DEFAULT); |
---|
38 | root->awar_int(AWAR_3D_HELIX_TO, 50, AW_ROOT_DEFAULT); |
---|
39 | root->awar_int(AWAR_3D_HELIX_NUMBER, 0, AW_ROOT_DEFAULT); |
---|
40 | root->awar_float(AWAR_3D_HELIX_SIZE, 0.5, AW_ROOT_DEFAULT); |
---|
41 | root->awar_int(AWAR_3D_DISPLAY_TERTIARY_INTRACTIONS, 0, AW_ROOT_DEFAULT); |
---|
42 | |
---|
43 | // General Molecule Display Section |
---|
44 | root->awar_int(AWAR_3D_MOL_BACKBONE, 1, AW_ROOT_DEFAULT); |
---|
45 | root->awar_int(AWAR_3D_MOL_COLORIZE, 0, AW_ROOT_DEFAULT); |
---|
46 | root->awar_int(AWAR_3D_MAP_SPECIES, 0, AW_ROOT_DEFAULT); |
---|
47 | root->awar_int(AWAR_3D_MAP_SPECIES_DISP_BASE, 1, AW_ROOT_DEFAULT); |
---|
48 | root->awar_int(AWAR_3D_MAP_SPECIES_DISP_POS, 0, AW_ROOT_DEFAULT); |
---|
49 | root->awar_int(AWAR_3D_MAP_SPECIES_DISP_DELETIONS, 1, AW_ROOT_DEFAULT); |
---|
50 | root->awar_int(AWAR_3D_MAP_SPECIES_DISP_MISSING, 1, AW_ROOT_DEFAULT); |
---|
51 | root->awar_int(AWAR_3D_MAP_SPECIES_DISP_INSERTIONS, 1, AW_ROOT_DEFAULT); |
---|
52 | root->awar_int(AWAR_3D_MAP_SPECIES_DISP_INSERTIONS_INFO, 0, AW_ROOT_DEFAULT); |
---|
53 | root->awar_int(AWAR_3D_CURSOR_POSITION, 0, AW_ROOT_DEFAULT); |
---|
54 | root->awar_float(AWAR_3D_MOL_SIZE, 0.5, AW_ROOT_DEFAULT); |
---|
55 | root->awar_int(AWAR_3D_MOL_DISP_POS, 0, AW_ROOT_DEFAULT); |
---|
56 | root->awar_int(AWAR_3D_MOL_ROTATE, 0, AW_ROOT_DEFAULT); |
---|
57 | root->awar_int(AWAR_3D_MOL_POS_INTERVAL, 25, AW_ROOT_DEFAULT); |
---|
58 | root->awar_string(AWAR_3D_SELECTED_SPECIES, "", AW_ROOT_DEFAULT); |
---|
59 | |
---|
60 | // Display SAI Section |
---|
61 | root->awar_int(AWAR_3D_MAP_SAI, 0, AW_ROOT_DEFAULT); |
---|
62 | root->awar_int(AWAR_3D_MAP_ENABLE, 0, AW_ROOT_DEFAULT); |
---|
63 | root->awar_int(AWAR_3D_MAP_SEARCH_STRINGS, 0, AW_ROOT_DEFAULT); |
---|
64 | |
---|
65 | root->awar_int(AWAR_3D_DISPLAY_MASK, 0, AW_ROOT_DEFAULT); |
---|
66 | root->awar_int(AWAR_3D_23S_RRNA_MOL, 3, AW_ROOT_DEFAULT); |
---|
67 | } |
---|
68 | |
---|
69 | AW_window *start_RNA3D_plugin(ED4_plugin_host& host) { |
---|
70 | CreateRNA3DAwars(host.get_application_root()); |
---|
71 | return CreateRNA3DMainWindow(host.get_application_root(), host.get_database(), host); |
---|
72 | } |
---|
73 | |
---|