diff data/model/EditableDenseThreeDimensionalModel.cpp @ 1701:81f50b70bdef single-point

The editable dense 3d model uses ready/completion status differently from the new implementation it was inheriting from the base class - it is always "ready" even if not yet complete
author Chris Cannam
date Tue, 07 May 2019 15:52:12 +0100
parents 0d89abd631ac
children 78fe29adfd16
line wrap: on
line diff
--- a/data/model/EditableDenseThreeDimensionalModel.cpp	Fri May 03 15:02:09 2019 +0100
+++ b/data/model/EditableDenseThreeDimensionalModel.cpp	Tue May 07 15:52:12 2019 +0100
@@ -57,6 +57,13 @@
     return true;
 }
 
+bool
+EditableDenseThreeDimensionalModel::isReady(int *completion) const
+{
+    if (completion) *completion = getCompletion();
+    return true;
+}
+
 sv_samplerate_t
 EditableDenseThreeDimensionalModel::getSampleRate() const
 {
@@ -486,6 +493,12 @@
     }
 }
 
+int
+EditableDenseThreeDimensionalModel::getCompletion() const
+{
+    return m_completion;
+}
+
 QString
 EditableDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter,
                                                           DataExportOptions,