Kuesa Runtime

AnimationPulse Class

class Kuesa::AnimationPulse

Given a pulse animation, emits signals when the pulse goes up or down. More...

Header: #include <Kuesa/AnimationPulse>
Since: Kuesa 1.4
Instantiated By: AnimationPulse
Inherits: Kuesa::AnimationPlayer
Inherited By:

Kuesa::SteppedAnimationPlayer

This class was introduced in Kuesa 1.4.

Public Functions

float pulse() const

Signals

void pulseChanged(float pulse)

Detailed Description

AnimationPulse is an utility class designed to let the designer encode certain events directly on the 3D design tool. Given an animation, it emits an up signal when qRound(animatedValue) increases and a down signal when qRound(animatedValue) decreases.

In combination with a STEP pulse animation, a designer can encode the moment in which certain actions should happen, for example, pausing an animation, directly from the 3D design tool.

Note: To support AnimationPulse without any glTF extension, the animation should animate the translation property of a glTF.Node. In particular, the pulse fcurve should animate the "y" property of the translation.