16 #ifndef _ALIGNMENT_MODEL_H_ 17 #define _ALIGNMENT_MODEL_H_ 24 #include <QStringList> 39 virtual bool isOK()
const;
44 virtual bool isReady(
int *completion = 0)
const;
57 virtual void toXml(QTextStream &stream,
59 QString extraAttributes =
"")
const;
void pathCompletionChanged()
virtual int getStartFrame() const
Return the first audio frame spanned by the model.
const Model * getAlignedModel() const
int fromReference(int frame) const
void setPath(PathModel *path)
virtual void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const
Stream this exportable object out to XML on a text stream.
virtual bool isOK() const
Return true if the model was constructed successfully.
int toReference(int frame) const
void modelChangedWithin(int startFrame, int endFrame)
void constructReversePath() const
void constructPath() const
QString getTypeName() const
Return the type of the model.
AlignmentModel(Model *reference, Model *aligned, Model *inputModel, SparseTimeValueModel *path)
PathModel * m_reversePath
Model is the base class for all data models that represent any sort of data on a time scale based on ...
virtual bool isReady(int *completion=0) const
Return true if the model has finished loading or calculating all its data, for a model that is capabl...
virtual Model * clone() const
Return a copy of this model.
virtual int getEndFrame() const
Return the last audio frame spanned by the model.
virtual const ZoomConstraint * getZoomConstraint() const
If this model imposes a zoom constraint, i.e.
SparseTimeValueModel * m_rawPath
ZoomConstraint is a simple interface that describes a limitation on the available zoom sizes for a vi...
int align(PathModel *path, int frame) const
void pathChangedWithin(int startFrame, int endFrame)
const Model * getReferenceModel() const
virtual int getSampleRate() const
Return the frame rate in frames per second.