comparison data/model/EditableDenseThreeDimensionalModel.h @ 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
47 int height, 47 int height,
48 CompressionType compression, 48 CompressionType compression,
49 bool notifyOnAdd = true); 49 bool notifyOnAdd = true);
50 50
51 bool isOK() const override; 51 bool isOK() const override;
52 bool isReady(int *completion = 0) const override;
53 void setCompletion(int completion, bool update = true);
54 int getCompletion() const override;
52 55
53 sv_samplerate_t getSampleRate() const override; 56 sv_samplerate_t getSampleRate() const override;
54 sv_frame_t getStartFrame() const override; 57 sv_frame_t getStartFrame() const override;
55 sv_frame_t getEndFrame() const override; 58 sv_frame_t getEndFrame() const override;
56 59
180 * Return true if the distribution of values in the bins is such 183 * Return true if the distribution of values in the bins is such
181 * as to suggest a log scale (mapping to colour etc) may be better 184 * as to suggest a log scale (mapping to colour etc) may be better
182 * than a linear one. 185 * than a linear one.
183 */ 186 */
184 bool shouldUseLogValueScale() const override; 187 bool shouldUseLogValueScale() const override;
185
186 virtual void setCompletion(int completion, bool update = true);
187 int getCompletion() const override { return m_completion; }
188 188
189 QString getTypeName() const override { return tr("Editable Dense 3-D"); } 189 QString getTypeName() const override { return tr("Editable Dense 3-D"); }
190 190
191 QString toDelimitedDataString(QString delimiter, 191 QString toDelimitedDataString(QString delimiter,
192 DataExportOptions options, 192 DataExportOptions options,