]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/skyline-pair.hh
Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / lily / include / skyline-pair.hh
1 /* 
2   skyline-pair.hh -- declare Skyline_pair
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 2008 Han-Wen Nienhuys <hanwen@lilypond.org>
7   
8 */
9
10 #ifndef SKYLINE_PAIR_HH
11 #define SKYLINE_PAIR_HH
12
13 #include "skyline.hh"
14
15 class Skyline_pair
16 {
17 private:
18   Drul_array<Skyline> skylines_;
19
20   DECLARE_SIMPLE_SMOBS(Skyline_pair);
21 public:
22   Skyline_pair ();
23   Skyline_pair (vector<Box> const &boxes, Real horizon_padding, Axis a);
24   Skyline_pair (Box const &, Real horizon_padding, Axis a);
25   void raise (Real);
26   void shift (Real);
27   void insert (Box const &, Real horizon_padding, Axis);
28   void merge (Skyline_pair const &other);
29   Skyline &operator [] (Direction d);
30   Skyline const &operator [] (Direction d) const;
31   bool is_empty () const;
32   void print () const;
33   void print_points () const;
34 };
35
36 #endif /* SKYLINE_PAIR_HH */