The base class for the timeline framework.
This class provides an interface for any timeline or timeline group. The basic operations that can be performed on any item in the timeline framework include the playback methods, as well as the ability to query duration, direction, and amount completed.
This class cannot be instantiated.
#include <animation/YiAbstractTimeline.h>

Public Types | |
| enum | YI_FRAME_MODE { YI_ABSOLUTE, YI_RELATIVE } |
| enum | STATUS { STOPPED, PLAYING } |
| enum | DIRECTION { FORWARD, REVERSE } |
Public Attributes | |
| CYISignal | Playing |
| called whenever the timeline starts playing (from any position) More... | |
| CYISignal | Paused |
| called whenever the timeline stops playing, including if the timeline execution completes normally More... | |
| CYISignal | Aborted |
| called when the timeline execution is aborted by the Abort() function More... | |
| CYISignal | Started |
| called when playback of the timeline is initiated by one of the Start() functions More... | |
| CYISignal | Completed |
| called when playback of the timeline completes normally (or when the Finish() function is called) More... | |
| CYISignal | PlayingForward |
| same as Playing, but triggered only when direction is forward More... | |
| CYISignal | PlayingReverse |
| same as Playing, but triggered only when direction is reverse More... | |
| CYISignal | PausedForward |
| same as Paused, but triggered only when direction is forward More... | |
| CYISignal | PausedReverse |
| same as Paused, but triggered only when direction is reverse More... | |
| CYISignal | StartedForward |
| same as Started, but triggered only when direction is forward More... | |
| CYISignal | StartedReverse |
| same as Started, but triggered only when direction is reverse More... | |
| CYISignal | CompletedForward |
| same as Completed, but triggered only when direction is forward More... | |
| CYISignal | CompletedReverse |
| same as Completed, but triggered only when direction is reverse More... | |
Protected Member Functions | |
| CYIAbstractTimeline (CYIAbstractTimelinePriv *pPriv) | |
Protected Member Functions inherited from CYIScriptableRTTIObject | |
| virtual std::pair< const CYIRuntimeTypeInfo *, const void * > | GetRuntimeTypeInfoWithObject () const =0 |
Protected Attributes | |
| CYIAbstractTimelinePriv * | m_pPriv |
Friends | |
| class | CYITimelineGroup |
| class | CYISerialTimelineGroup |
| class | CYIParallelTimelineGroup |
| class | CYITimelineLoop |
|
virtual |
|
protected |
| void CYIAbstractTimeline::Abort | ( | ) |
Pauses this timeline at its current execution point. Does not reset position. Unlike Pause(), this function does not trigger the PausedSig signals. Instead, the Aborted signal is triggered.
| bool CYIAbstractTimeline::ClearSourcePositions | ( | CYISceneNode * | pNode | ) |
A helper function to remove the source value of any track that uses the target node pNode and affects nodes' position. Has no effect if no track has the provided target node and affects positions.
| bool CYIAbstractTimeline::ClearTargetPositions | ( | CYISceneNode * | pNode | ) |
A helper function to remove the target value of any track that uses the target node pNode and affects nodes' position. Has no effect if no track has the provided target node and affects positions.
| void CYIAbstractTimeline::Continue | ( | ) |
Resumes playback of this timeline from the current execution point in the current direction. The PlaySig signal will be triggered, along with the PlayForwardSig or PlayReverseSig signal (depending on the current direction.)
| void CYIAbstractTimeline::ContinueForward | ( | ) |
Resumes playback of this timeline from the current execution point in the forward direction. This is equivalent to calling "SetDirection(FORWARD); Continue();". The PlaySig and PlayForwardSig signals will be triggered.
| void CYIAbstractTimeline::ContinueReverse | ( | ) |
Resumes playback of this timeline from the current execution point in the reverse direction. This is equivalent to calling "SetDirection(REVERSE); Continue();". The PlaySig and PlayReverseSig signals will be triggered.
| void CYIAbstractTimeline::Finish | ( | ) |
Stops playback of this timeline and moves to the end of the timeline (or beginning, depending on the playback direction). The Paused and Completed signals will be triggered, along with either PausedForward and CompletedForward, or PausedReverse and CompletedReverse (depending on the current direction).
| uint64_t CYIAbstractTimeline::GetCurrentTime | ( | ) | const |
Returns the current position in this timeline, in milliseconds.
| DIRECTION CYIAbstractTimeline::GetDirection | ( | ) | const |
Returns the current direction of the timeline.
| const std::shared_ptr<CYITimelineProxy>& CYIAbstractTimeline::GetProxy | ( | ) | const |
Returns a proxy object which protects the caller against deletion of the CYITimeline object. This should only be used from non-UI threads.
| const std::shared_ptr<CYISceneNodeProxy>& CYIAbstractTimeline::GetRootNode | ( | ) | const |
Returns the root scene node that this timeline is associated with.
| uint64_t CYIAbstractTimeline::GetStartTime | ( | ) | const |
Returns the start time for this timeline. It is important to note that the time will be in the time space of the backing store attached to this timeline.
| STATUS CYIAbstractTimeline::GetStatus | ( | ) | const |
Returns the current status of the timeline.
| float CYIAbstractTimeline::GetTimeAsPercentage | ( | ) | const |
Calculates and returns the percentage of the current position of the timeline. Returns values between 0.0 and 1.0 inclusively.
| uint64_t CYIAbstractTimeline::GetTotalTime | ( | ) | const |
Returns the length of this timeline in milliseconds.
| void CYIAbstractTimeline::Pause | ( | ) |
Pauses this timeline at its current execution point. Does not reset position. The Paused signal will be triggered, along with the PausedForward or PausedReverse signal (depending on the current direction.)
| void CYIAbstractTimeline::SeekToPercentage | ( | float | fPercentage | ) |
Seeks to the given percentage within the timeline. Values of fPercentage must be between 0.0 and 1.0.
| void CYIAbstractTimeline::SeekToTime | ( | uint64_t | uMillis | ) |
Seeks to the given time within the timeline. Values of uMillis < 0 will be interpreted as 0. Values of uMillis > total time will be interpreted as total time.
| void CYIAbstractTimeline::SetDirection | ( | DIRECTION | direction | ) |
Sets the playback direction to the provided direction. Changing the playback direction of a currently-playing timeline may result in unexpected behaviours.
| void CYIAbstractTimeline::SetDirectionForward | ( | ) |
Sets the playback direction to Forward. Changing the playback direction of a currently-playing timeline may result in unexpected behaviours.
| void CYIAbstractTimeline::SetDirectionReverse | ( | ) |
Sets the playback direction to Reverse. Changing the playback direction of a currently-playing timeline may result in unexpected behaviours.
| void CYIAbstractTimeline::SetDisablesInput | ( | bool | bDisablesInput | ) |
Set disables input setting
| void CYIAbstractTimeline::SetFrameModes | ( | YI_FRAME_MODE | eStartFrameMode, |
| YI_FRAME_MODE | eEndFrameMode | ||
| ) |
Sets the frame modes for the start and end frames of this timeline to eStartFrameMode and eEndFrameMode.
| void CYIAbstractTimeline::SetRootNode | ( | CYISceneNode * | pRootNode | ) |
Sets the root scene node that this timeline is associated with. This is typically the owner of the timeline.
| bool CYIAbstractTimeline::SetSourcePositions | ( | CYISceneNode * | pNode, |
| const glm::vec3 & | vPosition | ||
| ) |
A helper function to set the source value of any track that uses the target node pNode and affects nodes' position to vPosition. Has no effect if no track has the provided target node and affects positions.
| bool CYIAbstractTimeline::SetTargetPositions | ( | CYISceneNode * | pNode, |
| const glm::vec3 & | vPosition | ||
| ) |
A helper function to set the target value of any track that uses the target node pNode and affects nodes' position to vPosition. Has no effect if no track has the provided target node and affects positions.
| void CYIAbstractTimeline::Start | ( | ) |
Starts playback of this timeline from the beginning (or from the end if the current direction is Reverse). The Playing and Started signals will be triggered, along with either PlayingForward and StartedForward, or PlayingReverse and StartedReverse (depending on the current direction). Paused signals will NOT be triggered.
| void CYIAbstractTimeline::StartForward | ( | ) |
Start playback of this timeline from the beginning in the forward direction. The PlaySig, PlayForwardSig, Started and StartedForward signals will be triggered. This is equivalent to calling "SetDirection(FORWARD); Start();".
| void CYIAbstractTimeline::StartReverse | ( | ) |
Start playback of this timeline from the beginning in the reverse direction. The PlaySig, PlayReverseSig, Started and StartedReverse signals will be triggered. This is equivalent to calling "SetDirection(REVERSE); Start();".
| void CYIAbstractTimeline::Track | ( | ) |
Starts tracking a timeline and all its updates. A log message will be printed on the console You can use Untrack() to stop tracking a timeline.
Note: The following attributes will not be tracked:
| void CYIAbstractTimeline::Untrack | ( | ) |
|
friend |
|
friend |
|
friend |
|
friend |
| CYISignal CYIAbstractTimeline::Aborted |
called when the timeline execution is aborted by the Abort() function
| CYISignal CYIAbstractTimeline::Completed |
called when playback of the timeline completes normally (or when the Finish() function is called)
| CYISignal CYIAbstractTimeline::CompletedForward |
same as Completed, but triggered only when direction is forward
| CYISignal CYIAbstractTimeline::CompletedReverse |
same as Completed, but triggered only when direction is reverse
|
protected |
| CYISignal CYIAbstractTimeline::Paused |
called whenever the timeline stops playing, including if the timeline execution completes normally
| CYISignal CYIAbstractTimeline::PausedForward |
same as Paused, but triggered only when direction is forward
| CYISignal CYIAbstractTimeline::PausedReverse |
same as Paused, but triggered only when direction is reverse
| CYISignal CYIAbstractTimeline::Playing |
called whenever the timeline starts playing (from any position)
| CYISignal CYIAbstractTimeline::PlayingForward |
same as Playing, but triggered only when direction is forward
| CYISignal CYIAbstractTimeline::PlayingReverse |
same as Playing, but triggered only when direction is reverse
| CYISignal CYIAbstractTimeline::Started |
called when playback of the timeline is initiated by one of the Start() functions
| CYISignal CYIAbstractTimeline::StartedForward |
same as Started, but triggered only when direction is forward
| CYISignal CYIAbstractTimeline::StartedReverse |
same as Started, but triggered only when direction is reverse