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"
27 Building (Real start, Real start_height, Real end_height, Real end);
29 Real height (Real x) const;
30 Real intersection (Building const &other) const;
31 void leading_part (Real chop);
32 bool obstructs (Building const &other) const;
39 list<Building> buildings_;
41 Real last_visible_point (Building const &b, list<Building> *const sky);
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);
62 #endif /* SKYLINE_HH */