diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-01-28 15:22:19 +0000 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2017-01-29 13:59:24 +0000 |
commit | 9efbf9abd5452dd2c05250449efe1abf5887f481 (patch) | |
tree | 8ee8731491f9de28e451935cbc00034e372bf94c /src/animation/backend/clipanimator_p.h | |
parent | ddc85a1244c49fbe1873fa2c83e74dfb485d3598 (diff) |
Add loops property to ClipAnimator and implement logic for it
Change-Id: Ied67635f202e01c626177b4869b77db5bd3e80d4
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation/backend/clipanimator_p.h')
-rw-r--r-- | src/animation/backend/clipanimator_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/animation/backend/clipanimator_p.h b/src/animation/backend/clipanimator_p.h index 91403b918..f5c5ae03d 100644 --- a/src/animation/backend/clipanimator_p.h +++ b/src/animation/backend/clipanimator_p.h @@ -72,6 +72,7 @@ public: void setRunning(bool running); bool isRunning() const { return m_running; } + int loops() const { return m_loops; } void sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e) Q_DECL_OVERRIDE; @@ -92,7 +93,7 @@ public: static double localTimeFromGlobalTime(double t_global, double t_start_global, double playbackRate, double duration, - int loopCount); + int loopCount, int *currentLoop = nullptr); static QVector<int> channelsToIndices(const ChannelGroup &channelGroup, int dataType, @@ -106,10 +107,13 @@ private: int offset, const QStringList &suffixes); + // Mirror of frontend properties Qt3DCore::QNodeId m_clipId; Qt3DCore::QNodeId m_mapperId; bool m_running; + int m_loops; + // Working state qint64 m_startGlobalTime; QVector<float> m_channelResults; |