#include <boost/python.hpp>
using namespace boost::python;
+#include <boost/shared_ptr.hpp>
+#include "alg/annotation_colors.hpp"
#include "alg/glsequence.hpp"
#include "alg/sequence.hpp"
void export_glsequence()
{
- class_<GlSequence>("GlSequence", init<Sequence &>())
+ class_<GlSequence, bases<Sequence> >("GlSequence",
+ init<
+ const Sequence &,
+ boost::shared_ptr<AnnotationColors>
+ >())
.def(init<GlSequence &>())
.def("draw", &GlSequence::draw)
- .def("sequence", &GlSequence::sequence,
- return_internal_reference<>())
.add_property("x", &GlSequence::x, &GlSequence::setX)
.add_property("y", &GlSequence::y, &GlSequence::setY)
- .add_property("length", &GlSequence::length)
+ .add_property("size", &GlSequence::size)
;
}