Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(112)

Delta Between Two Patch Sets: lily/dot-formatting-problem.cc

Issue 5626052: Gets vertical skylines from grob stencils (Closed)
Left Patch Set: Adds polygon support Created 13 years, 1 month ago
Right Patch Set: Run astyle on c++ files Created 12 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « lily/clef.cc ('k') | lily/flag.cc » ('j') | lily/skyline.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b