diff data/model/PathModel.h @ 1675:6804af71b7be osc-script

Write path points
author Chris Cannam
date Thu, 28 Mar 2019 10:39:02 +0000
parents dfcd05e8bd2f
children f97d64b8674f
line wrap: on
line diff
--- a/data/model/PathModel.h	Wed Mar 27 16:06:35 2019 +0000
+++ b/data/model/PathModel.h	Thu Mar 28 10:39:02 2019 +0000
@@ -179,7 +179,14 @@
              .arg(getObjectExportId(&m_points))
              .arg(extraAttributes));
 
+        out << indent << QString("<dataset id=\"%1\" dimensions=\"2\">\n")
+            .arg(getObjectExportId(&m_points));
         
+        for (PathPoint p: m_points) {
+            p.toXml(out, indent + "  ", "");
+        }
+
+        out << indent << "</dataset>\n";
     }
     
 protected: