set annotation draw function by type
[mussa.git] / alg / glseqbrowser.cpp
index d04f6f3a199feb9cfaab21ad74996ee9d5ff24d0..c3f5cb19a8f4199e7debd2892fd40615d63c1465 100644 (file)
@@ -354,7 +354,12 @@ void GlSeqBrowser::push_sequence(GlSequence gs)
 
 void GlSeqBrowser::push_sequence(GlSequenceRef gs)
 {
+  ColorRef default_color(new Color(0.0, 0.8, 0.0));
   GlSequenceRef new_gs(new GlSequence(gs));
+  new_gs->update_annotation_draw_function("gene", draw_narrow_track, default_color);
+  // mark where the sequence is
+  new_gs->add_annotations_for_defined_sequence(draw_track);
+  
   clear_links();
   track_container.push_back(new_gs);
   update_layout();