diff data/model/PathModel.h @ 1679:0d89abd631ac single-point

Re-add the toDelimitedDataString stuff
author Chris Cannam
date Thu, 28 Mar 2019 16:03:36 +0000
parents f97d64b8674f
children cd6be949a16a
line wrap: on
line diff
--- a/data/model/PathModel.h	Thu Mar 28 13:37:09 2019 +0000
+++ b/data/model/PathModel.h	Thu Mar 28 16:03:36 2019 +0000
@@ -192,6 +192,24 @@
 
         out << indent << "</dataset>\n";
     }
+
+    QString toDelimitedDataString(QString delimiter,
+                                  DataExportOptions,
+                                  sv_frame_t startFrame,
+                                  sv_frame_t duration) const override {
+
+        QString s;
+        for (PathPoint p: m_points) {
+            if (p.frame < startFrame) continue;
+            if (p.frame >= startFrame + duration) break;
+            s += QString("%1%2%3\n")
+                .arg(p.frame)
+                .arg(delimiter)
+                .arg(p.mapframe);
+        }
+
+        return s;
+    }
     
 protected:
     sv_samplerate_t m_sampleRate;