void PictureZoneEditor::commitZones() { ZoneSet zones; BOOST_FOREACH(EditableZoneSet::Zone const& zone, m_zones) { zones.add(Zone(*zone.spline(), *zone.properties())); }
void FillZoneEditor::commitZones() { ZoneSet zones; BOOST_FOREACH(EditableZoneSet::Zone const& zone, m_zones) { SerializableSpline const spline( SerializableSpline(*zone.spline()).transformed(m_imageToOrig) ); zones.add(Zone(spline, *zone.properties())); }