#ifndef _GL_SEQUENCE_H_
#define _GL_SEQUENCE_H_
+#include <boost/shared_ptr.hpp>
+
#include "alg/annotation_colors.hpp"
#include "alg/sequence.hpp"
#include "alg/color.hpp"
class GlSequence
{
public:
- GlSequence(const Sequence & s, AnnotationColors &cm);
+ GlSequence(boost::shared_ptr<Sequence> s,
+ boost::shared_ptr<AnnotationColors> cm);
GlSequence(const GlSequence & s);
GlSequence &operator=(const GlSequence &s);
friend bool operator==(const GlSequence &left, const GlSequence &right);
protected:
- const Sequence& seq;
+ boost::shared_ptr<Sequence> seq;
GLfloat seq_x;
GLfloat seq_y;
GLfloat seq_z;
GLfloat seq_height;
- AnnotationColors& color_mapper;
+ boost::shared_ptr<AnnotationColors> color_mapper;
Color drawColor;
const GLfloat char_pix_per_world_unit;