drawing sequence basepairs.
[mussa.git] / qui / GlSequence.h
index 4fb37da049457784e11da11d9435a52e0d8ac4f7..343f9ff29a76aad96127a21e1e8c409ae626c4a0 100644 (file)
@@ -15,9 +15,12 @@ public:
   GlSequence(const GlSequence & s);
   GlSequence &operator=(const GlSequence &s);
 
-  void draw() const;
+  //! draw a track 
+  /*! left and right are the current edges of the viewable world
+   */
+  void draw(GLfloat left, GLfloat right) const;
 
-  const Sequence &sequence() const;
+  const Sequencesequence() const;
   void setX(GLfloat);
   GLfloat x() const;
   void setY(GLfloat);
@@ -25,13 +28,18 @@ public:
   void setWidth(GLfloat);
   GLfloat width() const;
 
-private:
+protected:
   const Sequence& seq;
   GLfloat seq_x;
   GLfloat seq_y;
   GLfloat seq_z;
   GLfloat seq_width;
   GLfloat seq_height;
+
+  //! render a sequence (if we have enough space
+  /*! left and right are the current edges of the viewable world
+   */
+  void draw_sequence(GLfloat, GLfloat) const;
 };
 
 const float gl_track_height = 10.0;