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_;
29 void precompute (Real max_slope);
30 Building (Real start, Real start_height, Real end_height, Real end, Real max_slope);
33 Real height (Real x) const;
34 Real intersection (Building const &other) const;
35 void leading_part (Real chop, Real h);
36 bool obstructs (Building const &other) const;
42 list<Building> buildings_;
44 Real max_slope_; // fixme: not part of skyline per se?
46 void internal_merge_skyline (list<Building>*, list<Building>*,
47 list<Building> *const result);
48 void internal_build_skyline (list<Building>*,
49 list<Building> *const result);
50 bool is_legal_skyline () const;
52 DECLARE_SIMPLE_SMOBS(Skyline);
55 Skyline (Skyline const &src);
56 Skyline (Direction sky);
57 Skyline (vector<Box> const &bldgs, Axis a, Direction sky);
58 Skyline (vector<Offset> const &points, Real max_slope, Direction sky);
59 vector<Offset> to_points () const;
60 void merge (Skyline const &);
61 void insert (Box const &, Axis);
64 Real distance (Skyline const &) const;
65 Real height (Real airplane) const;
66 Real max_height () const;
67 void set_minimum_height (Real height);
70 #endif /* SKYLINE_HH */