Use TimelinePlaybackContext helper interface class to defines the context of an animation playback.
More...
#include <kanzi/core.ui/animation/timeline_playback_context.hpp>
Use TimelinePlaybackContext helper interface class to defines the context of an animation playback.
Kanzi resolves paths to animated nodes relative to the node where you attach an Animation Player. Refer to AnimationPlayer for more details.
By using a TimelinePlaybackContext object you can:
- Define how to resolve objects for timelines.
- Should playback be relative or absolute.
kanzi::TimelinePlaybackContext::TimelinePlaybackContext |
( |
| ) |
|
|
inlineexplicit |
Constructor.
Sets the playback to be an absolute playback.
virtual kanzi::TimelinePlaybackContext::~TimelinePlaybackContext |
( |
| ) |
|
|
inlinevirtual |
virtual shared_ptr<Object> kanzi::TimelinePlaybackContext::lookupObject |
( |
string_view |
path | ) |
|
|
inlinevirtual |
Looks up for an object from a node's path.
Note that the resolved object may be another node or a resource within a node.
- Parameters
-
path | Relative path to use for the lookup. |
- Returns
- Pointer to the object, or empty if the object is not found.
void kanzi::TimelinePlaybackContext::setRelativePlayback |
( |
bool |
isRelative | ) |
|
|
inline |
bool kanzi::TimelinePlaybackContext::isRelativePlayback |
( |
| ) |
|
|
inline |
Returns the state of the playback.
- Returns
- If the playback is relative, true, otherwise false.
virtual shared_ptr<Object> kanzi::TimelinePlaybackContext::lookupObjectOverride |
( |
string_view |
path | ) |
|
|
protectedpure virtual |
Implement this function in inherited class to lookup for an object from a node.
- Parameters
-
path | Relative path to use for lookup. |
- Returns
- Pointer to the object, or empty if the object is not found.
Implemented in kanzi::SceneGraphTimelinePlaybackContext.
The documentation for this class was generated from the following file: