X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fskyline.hh;h=638fd6d3f3b4c688634491a7d9ceee60e8c4b0a6;hb=1bbcb5955cad9c9067b66c88caf0b5e77ebb579a;hp=2eccdb2ef4363a14389935a19b2da5b3a0977d81;hpb=1f0bc9df2739a5271d23a897df85da27a00fefaf;p=lilypond.git diff --git a/lily/include/skyline.hh b/lily/include/skyline.hh index 2eccdb2ef4..638fd6d3f3 100644 --- a/lily/include/skyline.hh +++ b/lily/include/skyline.hh @@ -76,11 +76,22 @@ public: void raise (Real); void shift (Real); Real distance (Skyline const &, Real horizon_padding = 0) const; + Real touching_point (Skyline const &, Real horizon_padding = 0) const; Real height (Real airplane) const; Real max_height () const; + Real max_height_position () const; void set_minimum_height (Real height); void clear (); bool is_empty () const; + + DECLARE_SCHEME_CALLBACK (get_touching_point, (SCM, SCM, SCM)); + DECLARE_SCHEME_CALLBACK (get_distance, (SCM, SCM, SCM)); + DECLARE_SCHEME_CALLBACK (get_max_height, (SCM)); + DECLARE_SCHEME_CALLBACK (get_max_height_position, (SCM)); + DECLARE_SCHEME_CALLBACK (get_height, (SCM, SCM)); + +protected: + Real internal_distance (Skyline const &, Real horizon_padding, Real *touch_point) const; }; extern bool debug_skylines;