From 07a505b1b271f64a1ffb2da32da0548d32cd13de Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 5 Apr 2013 11:27:26 -0400 Subject: lots of tweaking and adding debug output including operator< + #include "pbd/xml++.h" #include "pbd/compose.h" + #include "canvas/poly_item.h" +#include "canvas/canvas.h" using namespace std; using namespace ArdourCanvas; @@ -33,6 +36,7 @@ PolyItem::compute_bounding_box () const } } + if (!have_one) { _bounding_box = boost::optional (); } else { @@ -99,3 +103,14 @@ PolyItem::set_poly_item_state (XMLNode const * node) _bounding_box_dirty = true; } + +void +PolyItem::dump (ostream& o) const +{ + Item::dump (o); + + o << _canvas->indent() << _points.size() << " points" << endl; + for (Points::const_iterator i = _points.begin(); i != _points.end(); ++i) { + o << i->x << ", " << i->y << endl; + } +} -- cgit v1.2.3