GLfloat GlSequence::right() const
{
- return length()+seq_x;
+ return size()+seq_x;
}
void GlSequence::setY(GLfloat value)
return seq_height;
}
-GLfloat GlSequence::length() const
+GLfloat GlSequence::size() const
{
return seq->size();
}
++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?
++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);
}