comparison data/model/ImageModel.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 73077ec5aed6
comparison
equal deleted inserted replaced
1678:1078f0ef3012 1679:0d89abd631ac
259 Event::ExportNameOptions options; 259 Event::ExportNameOptions options;
260 options.uriAttributeName = "image"; 260 options.uriAttributeName = "image";
261 261
262 m_events.toXml(out, indent, QString("dimensions=\"1\""), options); 262 m_events.toXml(out, indent, QString("dimensions=\"1\""), options);
263 } 263 }
264 264
265 QString toDelimitedDataString(QString delimiter,
266 DataExportOptions options,
267 sv_frame_t startFrame,
268 sv_frame_t duration) const override {
269 return m_events.toDelimitedDataString(delimiter,
270 options,
271 startFrame,
272 duration,
273 m_sampleRate,
274 m_resolution,
275 Event().withValue(0.f));
276 }
277
265 protected: 278 protected:
266 sv_samplerate_t m_sampleRate; 279 sv_samplerate_t m_sampleRate;
267 int m_resolution; 280 int m_resolution;
268 281
269 DeferredNotifier m_notifier; 282 DeferredNotifier m_notifier;