//! 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
*/
//! 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;
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;
*/
void draw_sequence(GLfloat, GLfloat) const;
};
+
+void draw_narrow_track(SeqSpanRef ref, float left, float right);
#endif