add annot and motif classes to python interface
[mussa.git] / alg / glsequence.cpp
index 54a13fad5af915e8dd28190ceae135147e43b9ca..de262d461ce9dc283079842c9da879ac55fd0186 100644 (file)
@@ -63,7 +63,7 @@ GLfloat GlSequence::x() const
 
 GLfloat GlSequence::right() const
 {
-  return length()+seq_x;
+  return size()+seq_x;
 }
 
 void GlSequence::setY(GLfloat value)
@@ -81,7 +81,7 @@ GLfloat GlSequence::height() const
   return seq_height;
 }
 
-GLfloat GlSequence::length() const
+GLfloat GlSequence::size() const
 {
   return seq->size();
 }
@@ -236,7 +236,7 @@ void GlSequence::draw_annotations(GLfloat left, GLfloat right) const
        ++annot_itor)
   {
     glColor3f(0.0, 0.8, 0.0);
-    draw_box(left, right, seq_x+annot_itor->start, seq_x+annot_itor->end, 
+    draw_box(left, right, seq_x+annot_itor->begin, seq_x+annot_itor->end, 
              seq_height, annotation_z);
   }
   // if motifs?
@@ -245,7 +245,7 @@ void GlSequence::draw_annotations(GLfloat left, GLfloat right) const
        ++motifs_itor)
   {
     glColor3fv(color_mapper->lookup("motif", motifs_itor->sequence).get());
-    draw_box(left, right, seq_x+motifs_itor->start, seq_x+motifs_itor->end, 
+    draw_box(left, right, seq_x+motifs_itor->begin, seq_x+motifs_itor->end, 
              seq_height, annotation_z+1.0);
   }