X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fglsequence.hpp;h=a2b5704a66024f0e6b61f7749d6126b4e9e8fffe;hp=af1e14c569e3b9dc0359005bfc2d3c8b6e5370e3;hb=709adb67d249056f6864402c17f421a9b31f6119;hpb=170d8624e1370fd396ba41be7b15d7fce179eb90 diff --git a/alg/glsequence.hpp b/alg/glsequence.hpp index af1e14c..a2b5704 100644 --- a/alg/glsequence.hpp +++ b/alg/glsequence.hpp @@ -110,7 +110,7 @@ public: 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; + static bool is_sequence_renderable(GLfloat left, GLfloat right); //! are we close enough that it would make sense to view the base pairs? /*! though we don't actually check to see if there's sequence in our * view, just that there's enough pixels to render something if @@ -120,13 +120,12 @@ public: * coordinates * \param[in] pixel_width allow setting the current viewport pixel width */ - bool is_sequence_renderable(GLfloat, GLfloat, int) const; + static bool is_sequence_renderable(GLfloat, GLfloat, int); friend bool operator==(const GlSequence &left, const GlSequence &right); protected: AnnotationColorsRef color_mapper; - const GLfloat char_pix_per_world_unit; //! initalize a SeqSpanRef covering start, count SeqSpanRef make_drawable_annotation( @@ -145,6 +144,8 @@ protected: void draw_sequence(GLfloat, GLfloat) const; }; -void draw_track(SeqSpanRef ref, float left, float right); +//! draw sequence track when we're far enough out not to see the AGCTs. +void draw_summarized_track(SeqSpanRef ref, float left, float right); +//! draw a 1/4 width centered track void draw_narrow_track(SeqSpanRef ref, float left, float right); #endif