]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add Skyline::clear()
authorJoe Neeman <joeneeman@gmail.com>
Fri, 24 Jul 2009 20:39:29 +0000 (13:39 -0700)
committerJoe Neeman <joeneeman@gmail.com>
Fri, 24 Jul 2009 20:39:29 +0000 (13:39 -0700)
lily/include/skyline.hh
lily/skyline.cc

index 26830b92c954062a029fc88892576c6e5e2031c0..38d922c6a51a1b5d1118d5a4834e542f039c9ca3 100644 (file)
@@ -67,6 +67,7 @@ public:
   Real height (Real airplane) const;
   Real max_height () const;
   void set_minimum_height (Real height);
+  void clear ();
   bool is_empty () const;
 };
 
index a3047a98bbcefffe4c071df3fa49618ee9ddc453..e733cfd0802ffab5f5c71328b66d8d4ddd173965 100644 (file)
@@ -542,6 +542,12 @@ Skyline::is_empty () const
   return b.end_ == infinity_f && b.y_intercept_ == -infinity_f;
 }
 
+void
+Skyline::clear ()
+{
+  buildings_.clear ();
+  empty_skyline (&buildings_);
+}
 
 /****************************************************************/