X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fglsequence.hpp;h=190401a956644ddc3aed36af42857be5bba7715f;hp=39cb36d53e076ca971c9b080a69783d68b7471bf;hb=15f9eb9d7ba5ffe32cbe7bc67a9d85b714c27871;hpb=9d76ff624ae315a1262d6ceba1faeb68484ebd85 diff --git a/alg/glsequence.hpp b/alg/glsequence.hpp index 39cb36d..190401a 100644 --- a/alg/glsequence.hpp +++ b/alg/glsequence.hpp @@ -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