2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2004--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef SLUR_CONFIGURATION_HH
21 #define SLUR_CONFIGURATION_HH
24 #include "lily-proto.hh"
25 #include "std-vector.hh"
27 class Slur_configuration
33 Drul_array<Offset> attachment_;
50 Slur_configuration ();
52 Real score () const { return score_; }
53 string card () const { return score_card_; }
54 void add_score (Real, string);
56 void generate_curve (Slur_score_state const &state, Real r0, Real h_inf,
57 vector<Offset> const &);
58 void run_next_scorer (Slur_score_state const &);
60 static Slur_configuration *new_config (Drul_array<Offset> const &offs, int idx);
63 void score_extra_encompass (Slur_score_state const &);
64 void score_slopes (Slur_score_state const &);
65 void score_edges (Slur_score_state const &);
66 void score_encompass (Slur_score_state const &);
68 friend class Slur_configuration_less;
71 // Comparator for a queue of Beam_configuration*.
72 class Slur_configuration_less
75 bool operator () (Slur_configuration* const& l, Slur_configuration* const& r)
78 return l->score_ > r->score_;
82 #endif /* SLUR_CONFIGURATION_HH */