]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/slur-configuration.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / slur-configuration.hh
index 3039bd960cebf7f5fa015f6cc0dbfc3a6272071e..c798d38bcad89617faa7d441d7a6abbb8b4d2fe8 100644 (file)
@@ -3,35 +3,48 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #ifndef SLUR_CONFIGURATION_HH
 #define SLUR_CONFIGURATION_HH
 
 #include "bezier.hh"
-#include "parray.hh"
-#include "main.hh"
+#include "lily-proto.hh"
+#include "std-vector.hh"
+
+
+enum Configuration_tag
+  {
+    SLUR_STEM = 0x01,
+    SLUR_HEAD = 0x02,
+    SLUR_FREE = 0x04,
+    SLUR_FREE_HEAD = 0x08,
+    SLUR_FREE_STEM = 0x10,
+    SLUR_STEM_TIP = 0x10,
+  };
 
 class Slur_configuration
 {
+  Real score_;
+  string score_card_;
+
 public:
   Drul_array<Offset> attachment_;
-  Real score_;
   Bezier curve_;
   Real height_;
-
+  unsigned tags_;
   int index_;
 
-#if DEBUG_SLUR_SCORING
-  std::string score_card_;
-#endif
-
   Slur_configuration ();
 
+  Real score () const { return score_; }
+  string card () const { return score_card_; } 
+  void add_score (Real, string);
+  
   void generate_curve (Slur_score_state const &state, Real r0, Real h_inf,
-                      Array<Offset> const &);
-  void score (Slur_score_state const &);
+                      vector<Offset> const &);
+  void calculate_score (Slur_score_state const &);
 protected:
   void score_extra_encompass (Slur_score_state const &);
   void score_slopes (Slur_score_state const &);