Show discrete/toggled automation as stepped line.
[ardour.git] / libs / canvas / canvas / poly_line.h
index 72c20e06748ff8cb0235bc24e6791c0d50edd23f..04b05f5df1f33b2b7fede5a787e2bb29bf5874db 100644 (file)
@@ -28,12 +28,24 @@ namespace ArdourCanvas {
 
 class LIBCANVAS_API PolyLine : public PolyItem
 {
-public:
-       PolyLine (Group *);
-
+  public:
+       PolyLine (Canvas*);
+       PolyLine (Item*);
+       
        void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
 
+       virtual void set_steps (Points const &, bool stepped);
+       
         bool covers (Duple const &) const;
+       /**
+        * Set the distance at which a point will be considered to be covered
+        * by the line. For the definition of "distance" see
+        * utils.cc:distance_to_segment_squared()
+        */
+       void set_covers_threshold (double);
+
+  private:
+       double _threshold;
 };
        
 }