set annotation draw function by type
[mussa.git] / alg / glseqbrowser.cpp
index 5accb2cd0dc2bc89342b977c6e810a66409d5306..c3f5cb19a8f4199e7debd2892fd40615d63c1465 100644 (file)
@@ -354,9 +354,11 @@ 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));
-  // mark where the undefined sequence is
-  new_gs->add_annotations_for_undefined_sequence(draw_narrow_track);
+  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);