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

Delta Between Two Patch Sets: lily/line-spanner.cc

Issue 5626052: Gets vertical skylines from grob stencils (Closed)
Left Patch Set: Speeds up skyline code and removes kludgy transparency stuff Created 13 years 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/lily-parser.cc ('k') | lily/main.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) 2000--2012 Jan Nieuwenhuizen <janneke@gnu.org> 4 Copyright (C) 2000--2012 Jan Nieuwenhuizen <janneke@gnu.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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 349 }
350 350
351 for (LEFT_and_RIGHT (d)) 351 for (LEFT_and_RIGHT (d))
352 { 352 {
353 if (stencils[d]) 353 if (stencils[d])
354 span_points[d] += dz_dir * 354 span_points[d] += dz_dir *
355 (stencils[d]->extent (X_AXIS)[-d] / dz_dir[X_AXIS]); 355 (stencils[d]->extent (X_AXIS)[-d] / dz_dir[X_AXIS]);
356 } 356 }
357 357
358 Offset adjust = dz.direction () * Staff_symbol_referencer::staff_space (me); 358 Offset adjust = dz.direction () * Staff_symbol_referencer::staff_space (me);
359
360 Offset line_left = span_points[LEFT] + (arrows[LEFT] ? adjust * 1.4 : Offset ( 0, 0)); 359 Offset line_left = span_points[LEFT] + (arrows[LEFT] ? adjust * 1.4 : Offset ( 0, 0));
361 Offset line_right = span_points[RIGHT] - (arrows[RIGHT] ? adjust * 0.55 : Offs et (0, 0)); 360 Offset line_right = span_points[RIGHT] - (arrows[RIGHT] ? adjust * 0.55 : Offs et (0, 0));
361
362 if (line_right[X_AXIS] > line_left[X_AXIS]) 362 if (line_right[X_AXIS] > line_left[X_AXIS])
363 { 363 {
364 line.add_stencil (Line_interface::line (me, line_left, line_right)); 364 line.add_stencil (Line_interface::line (me, line_left, line_right));
365 365
366 line.add_stencil (Line_interface::arrows (me, 366 line.add_stencil (Line_interface::arrows (me,
367 span_points[LEFT], 367 span_points[LEFT],
368 span_points[RIGHT], 368 span_points[RIGHT],
369 arrows[LEFT], 369 arrows[LEFT],
370 arrows[RIGHT])); 370 arrows[RIGHT]));
371 } 371 }
(...skipping 14 matching lines...) Expand all
386 "bound-details " 386 "bound-details "
387 "extra-dy " 387 "extra-dy "
388 "gap " 388 "gap "
389 "left-bound-info " 389 "left-bound-info "
390 "note-columns " 390 "note-columns "
391 "right-bound-info " 391 "right-bound-info "
392 "simple-Y " 392 "simple-Y "
393 "thickness " 393 "thickness "
394 "to-barline " 394 "to-barline "
395 ); 395 );
LEFTRIGHT

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