]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/skyline.hh
2003 -> 2004
[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--2004 Han-Wen Nienhuys <hanwen@cs.uu.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
24
25 void
26 merge_skyline (Array<Skyline_entry> *a1, Array<Skyline_entry> const  & a2,
27                Direction);
28 void insert_extent_into_skyline (Array<Skyline_entry> *line, Box b, Axis line_axis,
29                                  Direction d);
30 Array<Skyline_entry>
31 extents_to_skyline (Array<Box> const & extents, Axis a, Direction d);
32 Array<Skyline_entry> empty_skyline (Direction d);
33 void heighten_skyline (Array<Skyline_entry> *buildings, Real ground);
34 Real
35 skyline_meshing_distance (Array<Skyline_entry> const &buildings,
36                           Array<Skyline_entry> const &clouds);
37
38
39 #endif /* SKYLINE_HH */
40