show where the Ns are
[mussa.git] / alg / glsequence.hpp
index 39cb36d53e076ca971c9b080a69783d68b7471bf..190401a956644ddc3aed36af42857be5bba7715f 100644 (file)
@@ -59,6 +59,11 @@ public:
   //! return our annotation color mapper
   AnnotationColorsRef colorMapper() { return color_mapper; }
 
+  //! draw a from left to right +/- height/2
+  static
+  void draw_box(GLfloat world_left, GLfloat world_right, 
+                GLfloat left, GLfloat right, GLfloat height,
+                GLfloat y, GLfloat z);
   //! draw a track 
   /*! left and right are the edges of the current viewport
    */
@@ -83,10 +88,12 @@ public:
   //! return a subsequence as a GlSequence (instead of a Sequence subsequence)
   GlSequence subseq(size_type start, size_type count) const;
   
+  //! Return the pixel width of the opengl viewport.
+  static int get_viewport_width_in_pixels();
   //! how big is a pixel in world coordinats
-  GLfloat pixelWidth(GLfloat, GLfloat) const;
+  static GLfloat pixelWidth(GLfloat, GLfloat);
   //! how big is a pixel in world coordinats (specifying viewport size)
-  GLfloat pixelWidth(GLfloat, GLfloat, int) const;
+  static GLfloat pixelWidth(GLfloat, GLfloat, int);
 
   //! are we close enough that it would make sense to view the base pairs?
   bool is_sequence_renderable(GLfloat left, GLfloat right) const;
@@ -113,10 +120,6 @@ protected:
     size_type start,
     size_type count);
 
-  //! Return the pixel width of the opengl viewport.
-  static int get_viewport_width_in_pixels();
-  //! draw a from left to right +/- height/2
-  void draw_box(GLfloat world_left, GLfloat world_right, GLfloat left, GLfloat right, GLfloat height, GLfloat z) const;
   //! draw sequence as a bar
   void draw_track(GLfloat, GLfloat) const;
   void draw_annotations(GLfloat, GLfloat) const;
@@ -125,4 +128,6 @@ protected:
    */
   void draw_sequence(GLfloat, GLfloat) const;
 };
+
+void draw_narrow_track(SeqSpanRef ref, float left, float right);
 #endif