X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=mussa.git;a=blobdiff_plain;f=alg%2Fglsequence.hpp;h=6f16a199e8c747cd89146316883a934ce8d51d42;hp=b772cd2fa75e77510e1c2128fd2f5af5db4f06d9;hb=3c5e9d09704b35421555398fe79bb50b4218d615;hpb=55f0a3e9612b3e1df2c588682d7f605203eab421 diff --git a/alg/glsequence.hpp b/alg/glsequence.hpp index b772cd2..6f16a19 100644 --- a/alg/glsequence.hpp +++ b/alg/glsequence.hpp @@ -37,6 +37,14 @@ public: //! search through sequence and add an annotation highlighting all the non AGCT characters void add_annotations_for_defined_sequence(Drawable::draw_func_ptr draw=0); + /**!search through our annotations and set the draw function for a particular "type" + * this is really a temporary solution to configuring annotation display styles + */ + void update_annotation_draw_function( + std::string type, + Drawable::draw_func_ptr draw, + ColorRef color + ); //! set our starting x (horizontal) coordinate void setX(float x); //! get our starting x (horizontal) coordinate @@ -116,10 +124,12 @@ protected: const GLfloat char_pix_per_world_unit; //! initalize a SeqSpanRef covering start, count - SeqSpanRef make_undefined_sequence_annotation( + SeqSpanRef make_drawable_annotation( Drawable::draw_func_ptr draw, + std::string name, size_type start, - size_type count); + size_type count, + ColorRef color); //! draw sequence as a bar void draw_track(GLfloat, GLfloat) const;