Files
oak-editor/app/widget/timelinewidget/timelinescaledobject.h
T
itsmattkc db146b376a implemented core UI caching feedback functionality
Not a perfect implementation yet, but this shows UI feedback on what frames are
cached and which ones aren't.
2020-01-03 05:38:20 +11:00

32 lines
622 B
C++

#ifndef TIMELINESCALEDOBJECT_H
#define TIMELINESCALEDOBJECT_H
#include "common/rational.h"
class TimelineScaledObject
{
public:
TimelineScaledObject();
const rational& timebase();
const double& timebase_dbl();
static rational SceneToTime(const double &x, const double& x_scale, const rational& timebase, bool round = false);
protected:
double TimeToScene(const rational& time);
rational SceneToTime(const double &x, bool round = false);
void SetTimebaseInternal(const rational& timebase);
double scale_;
private:
rational timebase_;
double timebase_dbl_;
};
#endif // TIMELINESCALEDOBJECT_H