2 skyline.hh -- declare Skyline class.
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Joe Neeman <joeneeman@gmail.com>
15 #include "interval.hh"
16 #include "direction.hh"
17 #include "std-vector.hh"
28 Building (Real start, Real start_height, Real end_height, Real end, Real max_slope);
30 Real height (Real x) const;
31 Real intersection (Building const &other) const;
32 void leading_part (Real chop, Real h);
33 bool obstructs (Building const &other) const;
39 list<Building> buildings_;
42 void internal_merge_skyline (list<Building>*, list<Building>*,
43 list<Building> *const result);
44 void internal_build_skyline (list<Building>*,
45 list<Building> *const result);
46 bool is_legal_skyline () const;
50 Skyline (Direction sky);
51 Skyline (vector<Box> const &bldgs, Axis a, Direction sky);
53 void merge (Skyline const &);
54 void insert (Box const &, Axis);
56 Real distance (Skyline const &) const;
57 Real height (Real airplane) const;
58 Real max_height () const;
59 void set_minimum_height (Real height);
63 #endif /* SKYLINE_HH */