23 m_resolution(columnsPerPeak)
63 Profiler profiler(
"Dense3DModelPeakCache::getColumn");
104 Profiler profiler(
"Dense3DModelPeakCache::fillColumn");
118 for (
int j = 0; j < (int)peak.size() && j < (int)here.size(); ++j) {
119 if (here[j] > peak[j]) peak[j] = here[j];
void reset(size_t column)
void aboutToBeDeleted()
Emitted when something notifies this model (through calling aboutToDelete() that it is about to delet...
virtual float getValueAt(int column, int n) const
Get the single data point from the n'th bin of the given column.
DenseThreeDimensionalModel * m_source
virtual float getValueAt(int x, int n) const
Get a single value, from the n'th bin of the given column.
void sourceModelAboutToBeDeleted()
EditableDenseThreeDimensionalModel * m_cache
virtual int getWidth() const
Return the number of columns of bins in the model.
bool haveColumn(int column) const
void modelChanged()
Emitted when a model has been edited (or more data retrieved from cache, in the case of a cached mode...
virtual Column getColumn(int x) const
Get the set of bin values at the given column.
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.
virtual Column getColumn(int column) const =0
Get data from the given column of bin values.
bool get(size_t column) const
ResizeableBitset m_coverage
virtual int getResolution() const
Return the number of sample frames covered by each column of bins.
Dense3DModelPeakCache(DenseThreeDimensionalModel *source, int columnsPerPeak)
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.
virtual bool isColumnAvailable(int column) const =0
Return true if there are data available for the given column.
void fillColumn(int column) const
void sourceModelChanged()
virtual void setColumn(int x, const Column &values)
Set the entire set of bin values at the given column.
Profile point instance class.