X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fskyline-pair.hh;h=f7946c1851d50123979a6dd2623e62b90609ae32;hb=5c7507115ca03b8f2f2b46e34d670ed50074b00d;hp=f4b5ced9e300a8c00a1d2014e25afc4827c51cbf;hpb=bb8a0a5387af94dd2702877256334b160575a730;p=lilypond.git diff --git a/lily/include/skyline-pair.hh b/lily/include/skyline-pair.hh index f4b5ced9e3..f7946c1851 100644 --- a/lily/include/skyline-pair.hh +++ b/lily/include/skyline-pair.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2008--2011 Han-Wen Nienhuys + Copyright (C) 2008--2015 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,25 +22,33 @@ #include "skyline.hh" -class Skyline_pair +class Skyline_pair : public Simple_smob { +public: + static const char * const type_p_name_; private: Drul_array skylines_; - DECLARE_SIMPLE_SMOBS (Skyline_pair); public: Skyline_pair (); - Skyline_pair (vector const &boxes, Real horizon_padding, Axis a); - Skyline_pair (Box const &, Real horizon_padding, Axis a); + Skyline_pair (vector const &boxes, Axis a); + Skyline_pair (vector > const &buildings, Axis a); + Skyline_pair (vector const &skypairs); + Skyline_pair (Box const &, Axis a); + + Real left () const; + Real right () const; void raise (Real); void shift (Real); - void insert (Box const &, Real horizon_padding, Axis); + void insert (Box const &, Axis); void merge (Skyline_pair const &other); Skyline &operator [] (Direction d); Skyline const &operator [] (Direction d) const; bool is_empty () const; void print () const; void print_points () const; + + DECLARE_SCHEME_CALLBACK (skyline, (SCM, SCM)); }; #endif /* SKYLINE_PAIR_HH */