summaryrefslogtreecommitdiffstats
path: root/src/dm/systems/cores/SimpleAnimationCore.h
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2019-09-05 13:03:19 +0300
committerMahmoud Badri <mahmoud.badri@qt.io>2019-09-05 13:22:12 +0300
commitdc81b986f4aff9737796e3028cad8c41588d3687 (patch)
treef5dc5451e79f4bb15157a44ff6ddc9b35e150129 /src/dm/systems/cores/SimpleAnimationCore.h
parent3ca369a6ab81151b46898e34c8ddf6c5f429cde3 (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/SimpleAnimationCore.h')
-rw-r--r--src/dm/systems/cores/SimpleAnimationCore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dm/systems/cores/SimpleAnimationCore.h b/src/dm/systems/cores/SimpleAnimationCore.h
index c204026..c782496 100644
--- a/src/dm/systems/cores/SimpleAnimationCore.h
+++ b/src/dm/systems/cores/SimpleAnimationCore.h
@@ -158,6 +158,9 @@ public: // Use
// Animation Evaluation.
float EvaluateAnimation(Qt3DSDMAnimationHandle animation, long time) const override;
+ std::pair<float, float> getAnimationExtrema(Qt3DSDMAnimationHandle animation,
+ long startTime = -1,
+ long endTime = -1) const override;
bool KeyframeValid(Qt3DSDMKeyframeHandle inKeyframe) const override;
bool AnimationValid(Qt3DSDMAnimationHandle inAnimation) const override;