1 #ifndef _MUSSA_GUI_CONN_VIEW_H_
2 #define _MUSSA_GUI_CONN_VIEW_H_
3 // This file is part of the Mussa source distribution.
4 // http://mussa.caltech.edu/
5 // Contact author: Tristan De Buysscher, tristan@caltech.edu
7 // This program and all associated source code files are Copyright (C) 2005
8 // the California Institute of Technology, Pasadena, CA, 91125 USA. It is
9 // under the GNU Public License; please see the included LICENSE.txt
10 // file for more information, or contact Tristan directly.
17 #include "mussa_gui_annot_window.hh"
18 #include "mussa_gui_subana.hh"
21 class ConnView : public Fl_Box
24 ConnView(int x_top,int y_top,int x_bot,int y_bot) :
25 Fl_Box(x_top,y_top,x_bot,y_bot)
28 void setup(std::string name, int sq_num, int win_len,
29 std::vector<Sequence> *, Nway_Paths *);
37 void set_bar_interval(int new_bar_len);
39 void set_line_interval(int new_line_len);
44 int seq_num, window, threshold;
45 bool win_append, thres_append;
47 //this data is passed as pointers to the instantiated classes
48 std::vector<Sequence> *S;
54 int drag_start, drag_end;
56 int ref_seq_num, max_seq_len;
57 bool dragging, selected;
58 std::list<bool> highlight;
60 //path data scaled for current view size
61 std::list<std::vector<int> > scaled_pathz;
62 std::vector<int> seq_lens;
63 std::vector<int> seq_scales;
64 int bar_interval, line_interval;
65 bool show_bars, show_lines;
67 //keeps track of all the motifs the user has inputed
68 std::vector<motif> some_motifs;
69 MotifWindow *motif_find_window;
71 //keeps track of the colors assigned to each motif type
72 std::vector<annot_color> some_annots;
73 AnnotWindow *annot_color_window;
79 void draw_sequence_stuff();
81 void resize(int x, int y, int w, int h);
83 void check_new_motifs();
85 //for drawing function debugging
86 void reporter(std::string var, int value);
87 void report_float(std::string var, float value);