summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/clipanimator_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Add clock property to QAbstractClipAnimatorChip Collier2017-07-241-0/+3
| | | | | | | | | Introduces "clock" property to QAbstractClipAnimator and updates associated tests. Updated backend animator nodes and associated evaluation jobs. Change-Id: Id18cabdd710b9b7253772642f21f63043d316a42 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add support for animation callbacksLaszlo Agocs2017-06-231-0/+1
| | | | | | | | Let QChannelMapping optionally specify a callback, which then gets invoked either directly on a worker thread or the gui thread. Change-Id: I871776f47cc921ceb254f9dc1a7b89ae5c5618d8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Pass argument by reference and make trivial function inlineSean Harmer2017-03-251-1/+1
| | | | | Change-Id: Ifc6897cea2f599b20bea82b00adfddbac5cc8e7f Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Add ClipAnimator::setLoops() for testing purposesSean Harmer2017-03-061-0/+1
| | | | | Change-Id: I6e491509b438954e526e1c958a7565a7704f0eac Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Remove AnimationUtils classSean Harmer2017-03-061-3/+3
| | | | | | | | | It was stateless, so make the static member functions free functions and export them for auto tests. We're already in the Qt3DAnimation::Animation namespace so this removes some visual clutter. Change-Id: I4e1a72c47d5bd4afb807ce5f6dc80dc0ce4bb213 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Update naming of animation building blocksSean Harmer2017-03-021-1/+1
| | | | | | | | | | | | | | | | | | | Rename: Groups -> Channels Channels -> ChannelComponents Update function and variable names accordingly. Also updated ChannelComponents to contain not only the component suffix to make them more readable in large files. Replaced animation clip in AnimationUtils unit test and adjusted suffix -> component index mapping code to use upper case. Will update clips in manual test in a follow up commit. Change-Id: If5ed565d57efbed07a4d6771336a14f6a4cddb65 Reviewed-by: Mike Krus <mike.krus@kdab.com>
* Fix build warnings in animationsAntti Määttä2017-02-021-1/+1
| | | | | | | Fix type name first seen using 'class' now seen using 'struct' warnings Change-Id: I5ff27e56216d22290de6c104f04eeec8d7389137 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Refactor clip evaluation and property mappingPaul Lemire2017-01-291-30/+8
| | | | | | | Ass this will be reused by the blend tree animator Change-Id: I61ef91b74e91778f380f794ba221f56761129cfa Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add loops property to ClipAnimator and implement logic for itSean Harmer2017-01-291-1/+5
| | | | | Change-Id: Ied67635f202e01c626177b4869b77db5bd3e80d4 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add job to process running clip animatorsSean Harmer2017-01-271-0/+37
| | | | | | | | | | 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>
* Add job to find all clip animators that should be runningSean Harmer2017-01-271-1/+4
| | | | | Change-Id: I198a5d0d198c56756e4ac045527e02969b4dcecb Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add channelMapper property to QClipAnimatorSean Harmer2017-01-271-1/+3
| | | | | Change-Id: I50a07e51188ae31f58e57d1baf98e22792ce88db Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add running property to QClipAnimatorSean Harmer2017-01-271-0/+6
| | | | | Change-Id: I5ef29ada7fd6584674d98162f7106177e199b720 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add a job to load animation clipsSean Harmer2017-01-271-3/+2
| | | | | | | | | | | Defers the actual work to AnimationClip. Also made all backend nodes have a common base class to make it easy to track the Handler. Added a manual test to exercise this and which we can build up over time as we add API. Change-Id: I7cdd8da948498544059ba51efe38642dd54ea410 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
* Add animation componentsSean Harmer2017-01-271-0/+86
Three levels of animation playback are available at present for keyframe animation: 1) Direct playback of a clip via QClipAnimator 2) Playback of a blend tree of clips via QBlendedClipAnimator 3) Playback of a set of blend trees controlled with a state machine via QConductedClipAnimator This commit adds the frontend and backend nodes for all 3 components and registers them. The blended and conducted animator components are just empty skeletons for now. Change-Id: If2f0a912c003f3d20f830a8f6174946eea6b47e6 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>