center on path
[mussa.git] / alg / glseqbrowser.hpp
index af7efdc78d3b3630b195ce05b89aa0be4548a16d..fb9e4906e52539648713e2904917e15fb6612c5a 100644 (file)
@@ -26,6 +26,9 @@ public:
   //! select a region (using canvas coordinates)
   void GlSeqBrowser::selectRegion(int top, int left, int bottom, int right);
 
+  //! border size
+  float border() const;
+
   //! max world left coordinate
   float left() const;
   //! max world right coordinate
@@ -60,6 +63,8 @@ public:
   void link(const std::vector<int>& path, const std::vector<bool>& isRC, int length);
   //! returns the index of pathids based on order added by link
   const std::set<int>& selectedPaths() const;
+  //! center the provided path in the current viewport
+  void centerOnPath(const std::vector<int>&);
 
   //! Provide a logical name for a type discriminator for our glName stack
   enum FeatureType { MussaTrack, MussaSegment };
@@ -131,7 +136,7 @@ private:
   void draw_selection() const;
 
   //! number of pixels to reserve around the edges of our canvas
-  const int border;
+  const int border_width;
   //! the maximum dimensions that our scene is taking up (world coord)
   rect<float> max_ortho;
   //! the current viewable region (world coord)