ARB
RNA3D_Graphics.cxx
Go to the documentation of this file.
1 #include "RNA3D_GlobalHeader.hxx"
2 #include "RNA3D_Graphics.hxx"
3 #include "RNA3D_Interface.hxx"
4 #include "RNA3D_OpenGLEngine.hxx"
5 
6 #include <aw_msg.hxx>
7 #include <aw_preset.hxx>
8 
9 
10 using namespace std;
11 
12 
14  AW_gc_manager *gc_manager =
15  AW_manage_GC (aww,
16  scr->get_gc_base_name(),
17  device,
20  makeGcChangedCallback(AWT_GC_changed_cb, scr),
21  "#000000",
22  "+-Foreground$#FFFFFF", "+-MOLECULE Skeleton$#606060", "-Mapped Species$#FF0000",
23  "+-BASE: Deletion$#FF0000", "+-BASE: Insertion$#00FF00", "-BASE: Positions$#FFAA00",
24  "+-BASE: Helix$#55AAFF", "+-BASE: Unpaired$#AAFF00", "-BASE: Non-Helix$#FFAA55",
25  "+-HELIX$#FF0000", "+-HELIX Skeleton$#606060", "-HELIX MidPoint$#FFFFFF",
26 
27  // colors used to Paint search patterns
28  // (do not change the names of these gcs)
29  "+-User1$#B8E2F8", "+-User2$#B8E2F8", "-Probe$#B8E2F8",
30  "+-Primer(l)$#A9FE54", "+-Primer(r)$#A9FE54", "-Primer(g)$#A9FE54",
31  "+-Sig(l)$#DBB0FF", "+-Sig(r)$#DBB0FF", "-Sig(g)$#DBB0FF",
32 
33  // Color Ranges to paint SAIs
34  "+-RANGE 0$#FFFFFF", "+-RANGE 1$#E0E0E0", "-RANGE 2$#C0C0C0",
35  "+-RANGE 3$#A0A0A0", "+-RANGE 4$#909090", "-RANGE 5$#808080",
36  "+-RANGE 6$#808080", "+-RANGE 7$#505050", "-RANGE 8$#404040",
37  "+-RANGE 9$#303030", "+-Pseudoknots$#FFAAFF", "-Triple Bases$#55FF00",
38 
39  "+-Cursor$#FFFFFF", "+-Comments$#808080", "-MoleculeMask$#00FF00",
40  NULp);
41 
42  return gc_manager;
43 }
44 
46  exports.zoom_mode = AWT_ZOOM_NEVER;
47  exports.fit_mode = AWT_FIT_NEVER;
48 
49  exports.set_standard_default_padding();
50 
51  this->aw_root = aw_root_;
52  this->gb_main = gb_main_;
53 }
54 
56 
58  paint(device);
59 }
60 
61 void RNA3D_Graphics::paint(AW_device * /* device */) {
62  MapDisplayParameters(aw_root);
64 }
65 
66 
67 
void RefreshOpenGLDisplay()
void paint(AW_device *device)
STL namespace.
~RNA3D_Graphics() OVERRIDE
AW_gc_manager * AW_manage_GC(AW_window *aww, const char *gc_base_name, AW_device *device, int base_drag, AW_GCM_AREA area, const GcChangedCallback &changecb, const char *default_background_color,...)
Definition: AW_preset.cxx:969
const char * get_gc_base_name() const
Definition: awt_canvas.hxx:391
AW_gc_manager * init_devices(AW_window *, AW_device *, AWT_canvas *scr) OVERRIDE
RNA3D_Graphics(AW_root *aw_root, GBDATA *gb_main)
void show(AW_device *device) OVERRIDE
void MapDisplayParameters(AW_root *root)
#define NULp
Definition: cxxforward.h:97
GBDATA * gb_main
Definition: adname.cxx:33
void AWT_GC_changed_cb(GcChange whatChanged, AWT_canvas *scr)
Definition: AWT_canvas.cxx:394