//! select a region (using canvas coordinates)
void selectRegion(int top, int left, int bottom, int right);
+ //! turn off selection
+ void clearSelection();
//! border size
float border() const;
void centerOnPath(const std::vector<int>&);
void setColorMapper(boost::shared_ptr<AnnotationColors> cm);
- const AnnotationColors& colorMapper();
+ const AnnotationColorsRef colorMapper();
//! clear our tracks and connections
void clear();
//! copy sequence from selected track using formating function
template<class Item>
size_t copySelectedTracks(std::list<Item>& result,
- Item (*format_track)(boost::shared_ptr<Sequence> s,
- int left,
- int right));
+ Item (*format_track)(const Sequence& s, int left, int right));
//! copy sequence from selected tracks as FASTA sequences
/*! \return number of base pairs copied
*/
//! the center of our current viewport (world coord) (used for scrollbar)
float viewport_center;
double zoom_level;
- boost::shared_ptr<AnnotationColors> color_mapper;
+ AnnotationColorsRef color_mapper;
//! counter for each path added to us via connect
int pathid;
protected:
//! container of all the GlSequences loaded into our scene
- std::vector<boost::shared_ptr<GlSequence> > track_container;
+ std::vector<GlSequenceRef > track_container;
//! where to draw our box (world coordinates)
rect<float> selectedRegion;
//! true if we have a selection