| 1 | #ifndef RNA3D_GRAPHICS_HXX |
|---|
| 2 | #define RNA3D_GRAPHICS_HXX |
|---|
| 3 | |
|---|
| 4 | #define RNA3D_assert(cond) arb_assert(cond) |
|---|
| 5 | |
|---|
| 6 | #ifndef AWT_CANVAS_HXX |
|---|
| 7 | #include <awt_canvas.hxx> |
|---|
| 8 | #endif |
|---|
| 9 | |
|---|
| 10 | enum { |
|---|
| 11 | RNA3D_GC_FOREGROUND, |
|---|
| 12 | RNA3D_GC_MOL_BACKBONE, |
|---|
| 13 | RNA3D_GC_MAPPED_SPECIES, |
|---|
| 14 | RNA3D_GC_DELETION, |
|---|
| 15 | RNA3D_GC_INSERTION, |
|---|
| 16 | RNA3D_GC_MOL_POS, |
|---|
| 17 | RNA3D_GC_BASES_HELIX, |
|---|
| 18 | RNA3D_GC_BASES_UNPAIRED_HELIX, |
|---|
| 19 | RNA3D_GC_BASES_NON_HELIX, |
|---|
| 20 | RNA3D_GC_HELIX, |
|---|
| 21 | RNA3D_GC_HELIX_SKELETON, |
|---|
| 22 | RNA3D_GC_HELIX_MIDPOINT, |
|---|
| 23 | |
|---|
| 24 | RNA3D_GC_SBACK_0, // User 1 // Background for search |
|---|
| 25 | RNA3D_GC_SBACK_1, // User 2 |
|---|
| 26 | RNA3D_GC_SBACK_2, // Probe |
|---|
| 27 | RNA3D_GC_SBACK_3, // Primer (local) |
|---|
| 28 | RNA3D_GC_SBACK_4, // Primer (region) |
|---|
| 29 | RNA3D_GC_SBACK_5, // Primer (global) |
|---|
| 30 | RNA3D_GC_SBACK_6, // Signature (local) |
|---|
| 31 | RNA3D_GC_SBACK_7, // Signature (region) |
|---|
| 32 | RNA3D_GC_SBACK_8, // Signature (global) |
|---|
| 33 | |
|---|
| 34 | RNA3D_GC_CBACK_0, // Ranges for SAI visualization |
|---|
| 35 | RNA3D_GC_CBACK_1, |
|---|
| 36 | RNA3D_GC_CBACK_2, |
|---|
| 37 | RNA3D_GC_CBACK_3, |
|---|
| 38 | RNA3D_GC_CBACK_4, |
|---|
| 39 | RNA3D_GC_CBACK_5, |
|---|
| 40 | RNA3D_GC_CBACK_6, |
|---|
| 41 | RNA3D_GC_CBACK_7, |
|---|
| 42 | RNA3D_GC_CBACK_8, |
|---|
| 43 | RNA3D_GC_CBACK_9, |
|---|
| 44 | |
|---|
| 45 | RNA3D_GC_PSEUDOKNOT, |
|---|
| 46 | RNA3D_GC_TRIPLE_BASE, |
|---|
| 47 | RNA3D_GC_CURSOR_POSITION, |
|---|
| 48 | RNA3D_GC_COMMENTS, |
|---|
| 49 | RNA3D_GC_MASK, |
|---|
| 50 | |
|---|
| 51 | RNA3D_GC_MAX |
|---|
| 52 | }; |
|---|
| 53 | |
|---|
| 54 | struct RNA3D_Graphics : public AWT_nonDB_graphic, virtual Noncopyable { |
|---|
| 55 | GBDATA *gb_main; |
|---|
| 56 | AW_root *aw_root; |
|---|
| 57 | |
|---|
| 58 | RNA3D_Graphics(AW_root *aw_root, GBDATA *gb_main); |
|---|
| 59 | ~RNA3D_Graphics() OVERRIDE; |
|---|
| 60 | |
|---|
| 61 | AW_gc_manager *init_devices(AW_window *, AW_device *, AWT_canvas *scr) OVERRIDE; |
|---|
| 62 | |
|---|
| 63 | void show(AW_device *device) OVERRIDE; |
|---|
| 64 | void paint(AW_device *device); |
|---|
| 65 | void handle_command(AW_device *, AWT_graphic_event&) OVERRIDE {} |
|---|
| 66 | }; |
|---|
| 67 | |
|---|
| 68 | #else |
|---|
| 69 | #error RNA3D_Graphics.hxx included twice |
|---|
| 70 | #endif |
|---|