Mercurial > hg > svcore
changeset 1675:6804af71b7be osc-script
Write path points
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 10:39:02 +0000 |
parents | 69ab62d378bf |
children | 3b51df7695a4 |
files | data/model/PathModel.h |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
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: