16 #ifndef _DENSE_3D_MODEL_PEAK_CACHE_H_ 17 #define _DENSE_3D_MODEL_PEAK_CACHE_H_ 32 virtual bool isOK()
const {
76 virtual float getValueAt(
int column,
int n)
const;
86 QString
getTypeName()
const {
return tr(
"Dense 3-D Peak Cache"); }
virtual int getWidth() const =0
Return the number of columns of bins in the model.
virtual int getCompletion() const =0
virtual int getHeight() const
Return the number of bins in each column.
virtual int getCompletion() const
virtual float getValueAt(int column, int n) const
Get the single data point from the n'th bin of the given column.
virtual bool shouldUseLogValueScale() const =0
Estimate whether a logarithmic scale might be appropriate for the value scale.
DenseThreeDimensionalModel * m_source
virtual int getStartFrame() const =0
Return the first audio frame spanned by the model.
void sourceModelAboutToBeDeleted()
virtual bool shouldUseLogValueScale() const
Estimate whether a logarithmic scale might be appropriate for the value scale.
virtual float getMinimumLevel() const =0
Return the minimum permissible value in each bin.
virtual int getEndFrame() const
Return the last audio frame spanned by the model.
EditableDenseThreeDimensionalModel * m_cache
virtual QString getBinName(int n) const
Get the name of a given bin (i.e.
virtual int getSampleRate() const
Return the frame rate in frames per second.
virtual int getWidth() const
Return the number of columns of bins in the model.
virtual bool isOK() const
Return true if the model was constructed successfully.
virtual float getMinimumLevel() const
Return the minimum permissible value in each bin.
virtual int getResolution() const =0
Return the number of sample frames covered by each column of bins.
virtual bool isOK() const =0
Return true if the model was constructed successfully.
bool haveColumn(int column) const
virtual Model * clone() const
Return a copy of this model.
virtual int getStartFrame() const
Return the first audio frame spanned by the model.
QString getTypeName() const
Return the type of the model.
virtual int getSampleRate() const =0
Return the frame rate in frames per second.
virtual bool isColumnAvailable(int column) const
Return true if there are data available for the given column.
Model is the base class for all data models that represent any sort of data on a time scale based on ...
ResizeableBitset m_coverage
virtual QString getBinName(int n) const =0
Get the name of a given bin (i.e.
virtual int getEndFrame() const =0
Return the last audio frame spanned by the model.
virtual int getResolution() const
Return the number of sample frames covered by each column of bins.
virtual float getMaximumLevel() const
Return the maximum permissible value in each bin.
Dense3DModelPeakCache(DenseThreeDimensionalModel *source, int columnsPerPeak)
virtual float getMaximumLevel() const =0
Return the maximum permissible value in each bin.
virtual int getHeight() const =0
Return the number of bins in each column.
virtual Column getColumn(int column) const
Get data from the given column of bin values.
void fillColumn(int column) const
void sourceModelChanged()