]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/skyline.hh
* The grand 2005-2006 replace.
[lilypond.git] / lily / include / skyline.hh
1 /*
2   skyline.hh -- declare Skyline_entry and funcbs.
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2002--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef SKYLINE_HH
10 #define SKYLINE_HH
11
12 #include "array.hh"
13 #include "box.hh"
14
15 struct Skyline_entry
16 {
17   Interval width_;
18   Real height_;
19   Skyline_entry ();
20   Skyline_entry (Interval, Real);
21 };
22
23 void
24 merge_skyline (Array<Skyline_entry> *a1, Array<Skyline_entry> const &a2,
25                Direction);
26 void insert_extent_into_skyline (Array<Skyline_entry> *line, Box b, Axis line_axis,
27                                  Direction d);
28 Array<Skyline_entry>
29 extents_to_skyline (Array<Box> const &extents, Axis a, Direction d);
30 Array<Skyline_entry> empty_skyline (Direction d);
31 void heighten_skyline (Array<Skyline_entry> *buildings, Real ground);
32 Real
33 skyline_meshing_distance (Array<Skyline_entry> const &buildings,
34                           Array<Skyline_entry> const &clouds);
35
36 Real
37 skyline_height (Array<Skyline_entry> const &buildings,
38                 Real airplane, Direction sky_dir);
39
40 #endif /* SKYLINE_HH */
41