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);
31 Building (Box const &b, Real horizon_padding, Axis a, Direction d);
34 Real height (Real x) const;
35 Real intersection_x (Building const &other) const;
36 void leading_part (Real chop);
37 bool conceals_beginning (Building const &other) const;
38 bool conceals (Building const &other) const;
40 Building sloped_neighbour (Real horizon_padding, Direction d) const;
46 list<Building> buildings_;
49 void internal_merge_skyline (list<Building>*, list<Building>*,
50 list<Building> *const result);
51 void internal_build_skyline (list<Building>*, list<Building> *const result);
52 bool is_legal_skyline () const;
54 DECLARE_SIMPLE_SMOBS(Skyline);
57 Skyline (Skyline const &src);
58 Skyline (Direction sky);
59 Skyline (vector<Box> const &bldgs, Real horizon_padding, Axis a, Direction sky);
60 Skyline (Box const &b, Real horizon_padding, Axis a, Direction sky);
61 vector<Offset> to_points () const;
62 void merge (Skyline const &);
63 void insert (Box const &, Real horizon_padding, Axis);
67 Real distance (Skyline const &) const;
68 Real height (Real airplane) const;
69 Real max_height () const;
70 void set_minimum_height (Real height);
76 Drul_array<Skyline> skylines_;
78 DECLARE_SIMPLE_SMOBS(Skyline_pair);
81 Skyline_pair (vector<Box> const &boxes, Real horizon_padding, Axis a);
82 Skyline_pair (Box const &, Real horizon_padding, Axis a);
85 void insert (Box const &, Real horizon_padding, Axis);
86 void merge (Skyline_pair const &other);
87 Skyline &operator [] (Direction d);
88 Skyline const &operator [] (Direction d) const;
91 #endif /* SKYLINE_HH */