diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2017-01-26 16:45:00 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-01-27 21:14:54 +0000 |
commit | 2b66b38004d30a6ef607565e1cbeb559ed83213b (patch) | |
tree | e2179cfdcb558b00e5235a74e5aafa1ff878b73d /src/animation/backend/handler_p.h | |
parent | 744c51c33e4da37bb70528f5398e56e5faf5c504 (diff) |
Add job to process running clip animators
Introduces more logic to QNode::sceneChangeEvent to set
properties being animated without every QNode subclass
needing to override it. We can like do a follow up commit
that removes some such overrides.
Change-Id: I2a96e0929b2fbd39ca3866908fee11c842bede42
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/backend/handler_p.h')
-rw-r--r-- | src/animation/backend/handler_p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/animation/backend/handler_p.h b/src/animation/backend/handler_p.h index 9c1e68492..4729f1889 100644 --- a/src/animation/backend/handler_p.h +++ b/src/animation/backend/handler_p.h @@ -78,6 +78,7 @@ class ChannelMapperManager; class FindRunningClipAnimatorsJob; class LoadAnimationClipJob; +class EvaluateClipAnimatorJob; class Q_AUTOTEST_EXPORT Handler { @@ -91,6 +92,8 @@ public: ClipAnimatorDirty }; + qint64 simulationTime() const { return m_simulationTime; } + void setDirty(DirtyFlag flag, Qt3DCore::QNodeId nodeId); void setClipAnimatorRunning(const HClipAnimator &handle, bool running); @@ -121,6 +124,9 @@ private: QSharedPointer<LoadAnimationClipJob> m_loadAnimationClipJob; QSharedPointer<FindRunningClipAnimatorsJob> m_findRunningClipAnimatorsJob; + QVector<QSharedPointer<EvaluateClipAnimatorJob>> m_evaluateClipAnimatorJobs; + + qint64 m_simulationTime; #if defined(QT_BUILD_INTERNAL) friend class QT_PREPEND_NAMESPACE(tst_Handler); |