LEFT | RIGHT |
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) 2006--2020 Joe Neeman <joeneeman@gmail.com> | 4 Copyright (C) 2006--2020 Joe Neeman <joeneeman@gmail.com> |
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 void normalize (); | 63 void normalize (); |
64 | 64 |
65 public: | 65 public: |
66 Skyline (); | 66 Skyline (); |
67 Skyline (Direction sky); | 67 Skyline (Direction sky); |
68 Skyline (std::vector<Box> const &bldgs, Axis a, Direction sky); | 68 Skyline (std::vector<Box> const &bldgs, Axis a, Direction sky); |
69 Skyline (std::vector<Drul_array<Offset> > const &bldgs, Axis a, Direction sky)
; | 69 Skyline (std::vector<Drul_array<Offset> > const &bldgs, Axis a, Direction sky)
; |
70 Skyline (std::vector<Skyline_pair> const &skypairs, Direction sky); | 70 Skyline (std::vector<Skyline_pair> const &skypairs, Direction sky); |
71 Skyline (Box const &b, Axis a, Direction sky); | 71 Skyline (Box const &b, Axis a, Direction sky); |
72 | 72 |
73 std::vector<Offset> to_points (Axis) const; | 73 void raise (Real); |
| 74 void shift (Real); |
| 75 void clear (); |
74 void merge (Skyline const &); | 76 void merge (Skyline const &); |
75 void insert (Box const &, Axis); | 77 void insert (Box const &, Axis); |
| 78 void set_minimum_height (Real height); |
| 79 |
| 80 std::vector<Offset> to_points (Axis) const; |
76 void print () const; | 81 void print () const; |
77 void print_points () const; | 82 void print_points () const; |
78 void raise (Real); | |
79 void shift (Real); | |
80 Real distance (Skyline const &, Real horizon_padding = 0) const; | 83 Real distance (Skyline const &, Real horizon_padding = 0) const; |
81 Real touching_point (Skyline const &, Real horizon_padding = 0) const; | 84 Real touching_point (Skyline const &, Real horizon_padding = 0) const; |
82 Real shift_to_avoid (Skyline const &other, Real, Direction d, Real horizon_pad
ding = 0); | |
83 Real raise_to_avoid (Skyline const &other, Real, Direction d, Real horizon_pad
ding = 0); | |
84 Drul_array<Real> shifts_to_avoid_intersection (Skyline const &, Real horizon_p
adding = 0) const; | |
85 Interval raises_to_avoid_intersection (Skyline const &, Real horizon_padding =
0) const; | |
86 Real height (Real airplane) const; | 85 Real height (Real airplane) const; |
87 Real max_height () const; | 86 Real max_height () const; |
88 Real max_height_position () const; | 87 Real max_height_position () const; |
89 Real left () const; | 88 Real left () const; |
90 Real right () const; | 89 Real right () const; |
91 Direction direction () const; | 90 Direction direction () const; |
92 void set_minimum_height (Real height); | |
93 void clear (); | |
94 bool is_empty () const; | 91 bool is_empty () const; |
95 Skyline padded (Real horizon_padding) const; | 92 Skyline padded (Real horizon_padding) const; |
96 | 93 |
97 DECLARE_SCHEME_CALLBACK (get_touching_point, (SCM, SCM, SCM)); | 94 DECLARE_SCHEME_CALLBACK (get_touching_point, (SCM, SCM, SCM)); |
98 DECLARE_SCHEME_CALLBACK (get_distance, (SCM, SCM, SCM)); | 95 DECLARE_SCHEME_CALLBACK (get_distance, (SCM, SCM, SCM)); |
99 DECLARE_SCHEME_CALLBACK (get_max_height, (SCM)); | 96 DECLARE_SCHEME_CALLBACK (get_max_height, (SCM)); |
100 DECLARE_SCHEME_CALLBACK (get_max_height_position, (SCM)); | 97 DECLARE_SCHEME_CALLBACK (get_max_height_position, (SCM)); |
101 DECLARE_SCHEME_CALLBACK (get_height, (SCM, SCM)); | 98 DECLARE_SCHEME_CALLBACK (get_height, (SCM, SCM)); |
102 }; | 99 }; |
103 | 100 |
104 extern bool debug_skylines; | 101 extern bool debug_skylines; |
105 | 102 |
106 #endif /* SKYLINE_HH */ | 103 #endif /* SKYLINE_HH */ |
LEFT | RIGHT |