2 tie-configuration.hh -- declare Tie_configuration
4 source file of the GNU LilyPond music typesetter
6 (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
10 #ifndef TIE_CONFIGURATION_HH
11 #define TIE_CONFIGURATION_HH
14 #include "lily-proto.hh"
15 #include "direction.hh"
16 #include "interval.hh"
18 #include "std-vector.hh"
20 class Tie_configuration
22 #if DEBUG_SLUR_SCORING
27 friend class Tie_formatting_problem;
30 Real score () const { return score_; }
31 string card () const { return score_card_; }
36 Drul_array<int> column_ranks_;
39 Interval attachment_x_;
41 void add_score (Real, string);
43 void center_tie_vertically (Tie_details const &);
44 Bezier get_transformed_bezier (Tie_details const &) const;
45 Bezier get_untransformed_bezier (Tie_details const &) const;
46 Real height (Tie_details const&) const;
48 static int compare (Tie_configuration const &a,
49 Tie_configuration const &b);
50 static Real distance (Tie_configuration const &a,
51 Tie_configuration const &b);
54 INSTANTIATE_COMPARE (Tie_configuration, Tie_configuration::compare);
56 class Ties_configuration : public vector<Tie_configuration>
61 vector<string> tie_score_cards_;
63 friend class Tie_formatting_problem;
65 Ties_configuration ();
66 void add_score (Real amount, string description);
67 void add_tie_score (Real amount, int i, string description);
71 string tie_card (int i) const { return tie_score_cards_[i]; }
74 #endif /* TIE_CONFIGURATION_HH */