33 #ifndef CXPLAYBACKTIME_H_
34 #define CXPLAYBACKTIME_H_
36 #include "cxResourceExport.h"
42 #include <boost/shared_ptr.hpp>
66 void initialize(QDateTime start, qint64
length);
68 void forward(qint64 msecs);
69 void rewind(qint64 msecs);
70 bool isPlaying()
const;
72 void setTime(QDateTime time);
73 QDateTime getTime()
const;
74 void setOffset(qint64 val);
75 void moveOffset(qint64 delta);
76 qint64 getOffset()
const;
77 qint64 getLength()
const;
78 QDateTime getStartTime()
const;
79 void setSpeed(
double val);
80 double getSpeed()
const;
81 void setResolution(qint64 val);
82 double getResolution();
102 QDateTime mPlayStart;
103 qint64 mLastPlayOffset;
117 TimelineEvent(QString description,
double start,
double end) : mDescription(description), mStartTime(start), mEndTime(end) {}
118 TimelineEvent(QString description,
double time) : mDescription(description), mStartTime(time), mEndTime(time) {}
125 bool isInside(
double time,
double tol_ms=0)
const;
126 bool isSingular()
const;
bool operator<(const Landmark &lhs, const Landmark &rhs)
Description of one event in time.
TimelineEvent(QString description, double start, double end)
RealScalar length() const
TimelineEvent(QString description, double time)
Controller for historic time, playback etc.
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr