diff options
author | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-09-05 13:03:19 +0300 |
---|---|---|
committer | Mahmoud Badri <mahmoud.badri@qt.io> | 2019-09-05 13:22:12 +0300 |
commit | dc81b986f4aff9737796e3028cad8c41588d3687 (patch) | |
tree | f5dc5451e79f4bb15157a44ff6ddc9b35e150129 /src/dm/systems/cores/AnimationCoreProducer.cpp | |
parent | 3ca369a6ab81151b46898e34c8ddf6c5f429cde3 (diff) |
Add support to get a bezier curve extreme values
Add logic to get the extreme values of a curve segment. This is used by
the studio to fit an animation curve.
Change-Id: I65564802524bfd49793624a560d98cc67d22e055
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/dm/systems/cores/AnimationCoreProducer.cpp')
-rw-r--r-- | src/dm/systems/cores/AnimationCoreProducer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dm/systems/cores/AnimationCoreProducer.cpp b/src/dm/systems/cores/AnimationCoreProducer.cpp index 6de5827..6168ccf 100644 --- a/src/dm/systems/cores/AnimationCoreProducer.cpp +++ b/src/dm/systems/cores/AnimationCoreProducer.cpp @@ -378,6 +378,13 @@ float CAnimationCoreProducer::EvaluateAnimation(Qt3DSDMAnimationHandle animation return m_Data->EvaluateAnimation(animation, time); } +std::pair<float, float> CAnimationCoreProducer::getAnimationExtrema( + Qt3DSDMAnimationHandle animation, + long startTime, long endTime) const +{ + return m_Data->getAnimationExtrema(animation, startTime, endTime); +} + bool CAnimationCoreProducer::KeyframeValid(Qt3DSDMKeyframeHandle inKeyframe) const { return m_Data->KeyframeValid(inKeyframe); |