LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 2007--2012 Han-Wen Nienhuys <hanwen@lilypond.org> | 4 Copyright (C) 2007--2012 Han-Wen Nienhuys <hanwen@lilypond.org> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 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 | 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 | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 Dot_configuration * | 40 Dot_configuration * |
41 Dot_formatting_problem::best () const | 41 Dot_formatting_problem::best () const |
42 { | 42 { |
43 return best_; | 43 return best_; |
44 } | 44 } |
45 | 45 |
46 Dot_formatting_problem::Dot_formatting_problem (vector<Box> const &boxes, | 46 Dot_formatting_problem::Dot_formatting_problem (vector<Box> const &boxes, |
47 Interval base_x) | 47 Interval base_x) |
48 : head_skyline_ (boxes, 0.2, Y_AXIS, RIGHT) | 48 : head_skyline_ (boxes, Y_AXIS, RIGHT) |
49 { | 49 { |
50 best_ = 0; | 50 best_ = 0; |
51 head_skyline_.set_minimum_height (base_x[RIGHT]); | 51 head_skyline_.set_minimum_height (base_x[RIGHT]); |
52 score_ = 1 << 30; | 52 score_ = 1 << 30; |
53 } | 53 } |
LEFT | RIGHT |