![]() |
Radium Engine
1.5.0
|
The Ra::Gui::Timeline
class provides display and management of Ra::Core::Animation::KeyFramedValue
s through the Ra::Core::Animation::KeyFramedValueController
class.
The Timeline UI is a widget allowing to manipulate time and display animation keyframes: The central part of the UI shows the time space, in which we have:
On the upper-left corner, one can define the time window for time flow, i.e.
On the upper-middle part, one can manipulate time flow, i.e.
On the upper-right part, one can manipulate animation keyframes, i.e.
On the upper-far-right corner, one can open the help window, displaying shortcuts and hints on how to manipulate the time space and the selected KeyFramedValue:
Ra::Core::Animation::KeyFramedValueController
s must be registered into the Ra::Gui::Timeline
, which can be done using the Ra::Gui::Timeline::registerKeyFramedValue
methods, binding them to the Ra::Engine::Scene::Entity
, Ra::Engine::Scene::Component
or Ra::Engine::Rendering::RenderObject
they belong to.
Those are Ra::Core::Animation::KeyFramedValue
s that are an explicit part of a Ra::Engine::Scene::Entity
, Ra::Engine::Scene::Component
or Ra::Engine::Rendering::RenderObject
data, either filled upon construction or through the Ra::Gui::Timeline
. Static Ra::Core::Animation::KeyFramedValue
s must be registered in the Ra::Gui::Timeline
after the object's construction. They usually are not bound to an UpdateCallback function since the object they belong to usually calls Ra::Core::Animation::KeyFramedValue::at
to query the current value.
Example Usage:
Those are Ra::Core::Animation::KeyFramedValue
s that are not part of an Ra::Engine::Scene::Entity
, Ra::Engine::Scene::Component
or Ra::Engine::Rendering::RenderObject
data, but are used to keyframe some of its data. Dynamic Ra::Core::Animation::KeyFramedValue
s must be created for and owned by the UI, and registered in the Ra::Gui::Timeline
. They are usually bound to an UpdateCallback function since they have to update the object's data they are linked to.
Example Usage: