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

Delta Between Two Patch Sets: lily/align-interface.cc

Issue 5626052: Gets vertical skylines from grob stencils (Closed)
Left Patch Set: Adds vertical skylines to more grobs 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
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) 2000--2012 Han-Wen Nienhuys <hanwen@xs4all.nl> 4 Copyright (C) 2000--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 if (Axis_group_interface::has_interface (g) 114 if (Axis_group_interface::has_interface (g)
115 && !Hara_kiri_group_spanner::request_suicide (g, start, end)) 115 && !Hara_kiri_group_spanner::request_suicide (g, start, end))
116 { 116 {
117 extent = Axis_group_interface::rest_of_line_pure_height (g, start, end); 117 extent = Axis_group_interface::rest_of_line_pure_height (g, start, end);
118 Interval begin_of_line_extent = Axis_group_interface::begin_of_lin e_pure_height (g, start); 118 Interval begin_of_line_extent = Axis_group_interface::begin_of_lin e_pure_height (g, start);
119 if (!begin_of_line_extent.is_empty ()) 119 if (!begin_of_line_extent.is_empty ())
120 { 120 {
121 Box b; 121 Box b;
122 b[a] = begin_of_line_extent; 122 b[a] = begin_of_line_extent;
123 b[other_axis (a)] = Interval (-infinity_f, -1); 123 b[other_axis (a)] = Interval (-infinity_f, -1);
124 skylines.insert (b, 0, other_axis (a)); 124 skylines.insert (b, other_axis (a));
125 } 125 }
126 } 126 }
127 127
128 if (!extent.is_empty ()) 128 if (!extent.is_empty ())
129 { 129 {
130 Box b; 130 Box b;
131 b[a] = extent; 131 b[a] = extent;
132 b[other_axis (a)] = Interval (0, infinity_f); 132 b[other_axis (a)] = Interval (0, infinity_f);
133 skylines.insert (b, 0, other_axis (a)); 133 skylines.insert (b, other_axis (a));
134 } 134 }
135 } 135 }
136 136
137 if (skylines.is_empty ()) 137 if (skylines.is_empty ())
138 elements->erase (elements->begin () + i); 138 elements->erase (elements->begin () + i);
139 else 139 else
140 ret->push_back (skylines); 140 ret->push_back (skylines);
141 } 141 }
142 reverse (*ret); 142 reverse (*ret);
143 } 143 }
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 /* properties */ 386 /* properties */
387 "align-dir " 387 "align-dir "
388 "axes " 388 "axes "
389 "full-score-pure-minimum-translations " 389 "full-score-pure-minimum-translations "
390 "elements " 390 "elements "
391 "padding " 391 "padding "
392 "positioning-done " 392 "positioning-done "
393 "stacking-dir " 393 "stacking-dir "
394 ); 394 );
LEFTRIGHT

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