16 #ifndef _PATH_MODEL_H_ 17 #define _PATH_MODEL_H_ 23 #include <QStringList> 39 void toXml(QTextStream &stream, QString indent =
"",
40 QString extraAttributes =
"")
const {
41 stream << QString(
"%1<point frame=\"%2\" mapframe=\"%3\" %4/>\n")
46 int sampleRate)
const {
50 return list.join(delimiter);
70 PathModel(
int sampleRate,
int resolution,
bool notify =
true) :
73 virtual void toXml(QTextStream &out,
75 QString extraAttributes =
"")
const 80 QString(
"%1 subtype=\"path\"")
81 .arg(extraAttributes));
virtual void toXml(QTextStream &out, QString indent="", QString extraAttributes="") const
Stream this exportable object out to XML on a text stream.
virtual SortType getSortType(int) const
static RealTime frame2RealTime(long frame, unsigned int sampleRate)
Convert a sample frame at the given sample rate into a RealTime.
bool operator()(const PathPoint &p1, const PathPoint &p2) const
virtual QString getHeading(int) const
TabularModel is inherited via SparseModel, but we don't need it here.
virtual void toXml(QTextStream &out, QString indent="", QString extraAttributes="") const
Stream this exportable object out to XML on a text stream.
PathModel(int sampleRate, int resolution, bool notify=true)
QString toDelimitedDataString(QString delimiter, int sampleRate) const
void toXml(QTextStream &stream, QString indent="", QString extraAttributes="") const
bool operator()(const PathPoint &p1, const PathPoint &p2) const
int getDimensions() const
virtual bool isColumnTimeValue(int) const
std::string toString(bool align=false) const
Return a human-readable debug-type string to full precision (probably not a format to show to a user ...
Model containing sparse data (points with some properties).
PathPoint(long _frame, long _mapframe)