fix motif coloring
authorDiane Trout <diane@caltech.edu>
Thu, 16 Mar 2006 09:03:30 +0000 (09:03 +0000)
committerDiane Trout <diane@caltech.edu>
Thu, 16 Mar 2006 09:03:30 +0000 (09:03 +0000)
Need to force tying a GlSequence's AnnotationColor mapper to the one in
the mussa analysis, not the default being created in GlTracks

qui/PathWindow.cpp

index 5a1dc5389234301b1f7559d6bb540b9d34cd0811..883563acf6e3b6dba0cdf9557151e735b7963ed3 100644 (file)
@@ -305,12 +305,14 @@ void PathWindow::updateAnalysis()
 {
   cout << "analysis updated" << endl;
   path_view.scene().clear();
+  path_view.scene().setColorMapper(analysis->colorMapper());
   const vector<Sequence>& seqs = analysis->sequences();
   for(vector<Sequence>::const_iterator seq_i = seqs.begin();
       seq_i != seqs.end();
       ++seq_i)
   {
-    path_view.scene().push_sequence(*seq_i);
+    GlSequence *gs= new GlSequence(*seq_i, analysis->colorMapper());
+    path_view.scene().push_sequence(*gs);
   }
   updateLinks();
   path_view.updateTracks();