]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/slur.hh
release: 1.3.29
[lilypond.git] / lily / include / slur.hh
index bf61df4b860bf18e4a7071374ac06e1a3af0ec51..4f14512047e2d7bc7172ec1ca1b91c47ebc0cb71 100644 (file)
@@ -1,37 +1,45 @@
 /*
   slur.hh -- declare Slur
 
-  (c) 1996--1999 Han-Wen Nienhuys
+  (c) 1996--2000 Han-Wen Nienhuys
 */
 
 #ifndef SLUR_HH
 #define SLUR_HH
 
-#include "bow.hh"
+#include "spanner.hh"
 #include "rod.hh"
 
 /**
   A #Bow# which tries to drape itself around the stems too.
  */
-class Slur : public Bow
+class Slur : public Spanner
 {
 public:
   Slur ();
   VIRTUAL_COPY_CONS(Score_element);
 
   void add_column (Note_column*);
-  
-  Link_array<Note_column> encompass_arr_;
+
 
 protected:
+  virtual Molecule do_brew_molecule () const;
   virtual Array<Offset> get_encompass_offset_arr () const;
+  Bezier get_curve () const;
+  Drul_array<Real> dy_f_drul_;
+  Drul_array<Real> dx_f_drul_;
 
   virtual Direction get_default_dir () const;
   virtual void do_post_processing ();
   virtual void do_add_processing ();
-  virtual void do_pre_processing ();
-  virtual void do_substitute_element_pointer (Score_element*, Score_element*);
   Array<Rod> get_rods () const;
+
+private:  
+  void de_uglyfy (class Slur_bezier_bow* bb, Real default_height);
+  void set_extremities ();
+  void set_control_points ();
+  int cross_staff_count () const;
+  Offset encompass_offset (Note_column const* )const;
 };
 
 #endif // SLUR_HH