2 skyline.hh -- declare Skyline class.
4 source file of the GNU LilyPond music typesetter
6 (c) 2006 Joe Neeman <joeneeman@gmail.com>
16 #include "interval.hh"
17 #include "direction.hh"
18 #include "std-vector.hh"
24 Drul_array<Real> height_;
30 Building (Real start, Real start_height, Real end_height, Real end);
33 Real height (Real x) const;
34 Real intersection (Building const &other) const;
35 void leading_part (Real chop);
36 bool conceals_beginning (Building const &other) const;
37 bool conceals (Building const &other) const;
43 list<Building> buildings_;
46 void internal_merge_skyline (list<Building>*, list<Building>*,
47 list<Building> *const result);
48 void internal_build_skyline (list<Building>*, list<Building> *const result);
49 bool is_legal_skyline () const;
51 DECLARE_SIMPLE_SMOBS(Skyline);
54 Skyline (Skyline const &src);
55 Skyline (Direction sky);
56 Skyline (vector<Box> const &bldgs, Axis a, Direction sky);
57 Skyline (vector<Offset> const &points, Direction sky);
58 vector<Offset> to_points () const;
59 void merge (Skyline const &);
60 void insert (Box const &, Axis);
63 Real distance (Skyline const &) const;
64 Real height (Real airplane) const;
65 Real max_height () const;
66 void set_minimum_height (Real height);
69 #endif /* SKYLINE_HH */