Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1700:c1208b211d8c | 1701:81f50b70bdef |
---|---|
52 } | 52 } |
53 | 53 |
54 bool | 54 bool |
55 EditableDenseThreeDimensionalModel::isOK() const | 55 EditableDenseThreeDimensionalModel::isOK() const |
56 { | 56 { |
57 return true; | |
58 } | |
59 | |
60 bool | |
61 EditableDenseThreeDimensionalModel::isReady(int *completion) const | |
62 { | |
63 if (completion) *completion = getCompletion(); | |
57 return true; | 64 return true; |
58 } | 65 } |
59 | 66 |
60 sv_samplerate_t | 67 sv_samplerate_t |
61 EditableDenseThreeDimensionalModel::getSampleRate() const | 68 EditableDenseThreeDimensionalModel::getSampleRate() const |
484 emit completionChanged(); | 491 emit completionChanged(); |
485 } | 492 } |
486 } | 493 } |
487 } | 494 } |
488 | 495 |
496 int | |
497 EditableDenseThreeDimensionalModel::getCompletion() const | |
498 { | |
499 return m_completion; | |
500 } | |
501 | |
489 QString | 502 QString |
490 EditableDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter, | 503 EditableDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter, |
491 DataExportOptions, | 504 DataExportOptions, |
492 sv_frame_t startFrame, | 505 sv_frame_t startFrame, |
493 sv_frame_t duration) const | 506 sv_frame_t duration) const |