comparison 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
comparison
equal deleted inserted replaced
1678:1078f0ef3012 1679:0d89abd631ac
190 p.toXml(out, indent + " ", ""); 190 p.toXml(out, indent + " ", "");
191 } 191 }
192 192
193 out << indent << "</dataset>\n"; 193 out << indent << "</dataset>\n";
194 } 194 }
195
196 QString toDelimitedDataString(QString delimiter,
197 DataExportOptions,
198 sv_frame_t startFrame,
199 sv_frame_t duration) const override {
200
201 QString s;
202 for (PathPoint p: m_points) {
203 if (p.frame < startFrame) continue;
204 if (p.frame >= startFrame + duration) break;
205 s += QString("%1%2%3\n")
206 .arg(p.frame)
207 .arg(delimiter)
208 .arg(p.mapframe);
209 }
210
211 return s;
212 }
195 213
196 protected: 214 protected:
197 sv_samplerate_t m_sampleRate; 215 sv_samplerate_t m_sampleRate;
198 int m_resolution; 216 int m_resolution;
199 217