]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/bezier.hh
patch::: 1.3.8.uu1
[lilypond.git] / lily / include / bezier.hh
index 274c9f59a481dce66c26e7c220a88578a4845661..73b6079104f7411e3f5d515610c03f880830017a 100644 (file)
@@ -1,7 +1,7 @@
 /*
   bezier.hh -- declare Bezier and Bezier_bow
 
-  (c) 1998 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1998--1999 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #ifndef BEZIER_HH
@@ -13,6 +13,8 @@
 
 #include "real.hh"
 #include "curve.hh"
+#include "drul-array.hh"
+#include "interval.hh"
 
 /**
   Simple bezier curve
@@ -62,16 +64,20 @@ public:
   bool check_fit_bo ();
   Real check_fit_f ();
   void print () const;
-  void set (Array<Offset> points, int dir);
+  void set (Array<Offset> points, Direction dir);
   void transform ();
   void transform_back ();
 
   Paper_def* paper_l_;
   Curve encompass_;
-  int dir_;
+  Direction dir_;
+  void set_direction (Direction d ) { dir_ =  d; }
+  Direction get_direction () const { return dir_; }
+
   Real alpha_;
   Offset origin_;
   Curve return_;
+  Drul_array<Interval> curve_extent_drul_;
 };