The ITimeline interface implementation. More...
#include "murl_logic_timeline.h"
Public Member Functions | |
~Timeline () override | |
The destructor. | |
void | ProcessTick (const Logic::IState *state) override |
Implementation of IStepable::ProcessTick() method. More... | |
IStepablePtr | GetStepable () override |
Implementation of ITimeline::GetStepable() method. More... | |
Bool | SetAppTimeline (IAppTimelinePtr appTimeline) override |
Implementation of ITimeline::SetAppTimeline() method. More... | |
void | Evaluate () override |
Implementation of ITimeline::Evaluate() method. | |
void | Reset () override |
Implementation of ITimeline::Reset() and IStepable::Reset() method. | |
void | ResetTo (Real startTime) override |
Implementation of ITimeline::ResetTo() method. More... | |
Bool | Start () override |
Implementation of ITimeline::Start() method. More... | |
Bool | Start (Real startTime, Real endTime) override |
Implementation of ITimeline::Start(Real startTime, Real endTime) method. More... | |
Bool | Start (Real startTime, Real endTime, SInt32 numberOfLoops) override |
Implementation of ITimeline::Start(Real startTime, Real endTime, SInt32 numberOfLoops) method. More... | |
Bool | Start (Real startTime, Real endTime, Real loopStartTime, Real loopEndTime, SInt32 numberOfLoops) override |
Implementation of ITimeline::Start(Real startTime, Real endTime, Real loopStartTime, Real loopEndTime, SInt32 numberOfLoops) method. More... | |
Bool | Pause () override |
Implementation of ITimeline::Pause() method. More... | |
Bool | Stop () override |
Implementation of ITimeline::Stop() method. More... | |
Bool | Rewind () override |
Implementation of ITimeline::Rewind() method. More... | |
void | SetStartTime (Real startTime) override |
Implementation of ITimeline::SetStartTime() method. More... | |
Real | GetStartTime () const override |
Implementation of ITimeline::GetStartTime() method. More... | |
void | SetEndTime (Real endTime) override |
Implementation of ITimeline::SetEndTime() method. More... | |
Real | GetEndTime () const override |
Implementation of ITimeline::GetEndTime() method. More... | |
void | SetLoopStartTime (Real startTime) override |
Implementation of ITimeline::SetLoopStartTime() method. More... | |
Real | GetLoopStartTime () const override |
Implementation of ITimeline::GetLoopStartTime() method. More... | |
void | SetLoopEndTime (Real endTime) override |
Implementation of ITimeline::SetLoopEndTime() method. More... | |
Real | GetLoopEndTime () const override |
Implementation of ITimeline::GetLoopEndTime() method. More... | |
void | SetNumberOfLoops (SInt32 numberOfLoops) override |
Implementation of ITimeline::SetNumberOfLoops() method. More... | |
SInt32 | GetNumberOfLoops () const override |
Implementation of ITimeline::GetNumberOfLoops() method. More... | |
void | SetTimeScale (Real timeScale) override |
Implementation of ITimeline::SetTimeScale() method. More... | |
Real | GetTimeScale () const override |
Implementation of ITimeline::GetTimeScale() method. More... | |
void | SetAutoRewindEnabled (Bool enabled) override |
Implementation of ITimeline::SetAutoRewindEnabled() method. More... | |
Bool | IsAutoRewindEnabled () const override |
Implementation of ITimeline::IsAutoRewindEnabled() method. More... | |
Bool | IsRunning () const override |
Implementation of ITimeline::IsRunning() method. More... | |
Bool | IsPaused () const override |
Implementation of ITimeline::IsPaused() method. More... | |
Bool | IsStopped () const override |
Implementation of ITimeline::IsStopped() method. More... | |
Bool | WasStarted () const override |
Implementation of ITimeline::WasStarted() method. More... | |
Bool | WasRunning () const override |
Implementation of ITimeline::WasRunning() method. More... | |
Bool | IsOrWasRunning () const override |
Implementation of ITimeline::IsOrWasRunning() method. More... | |
Bool | HasPassedTime (Real time) const override |
Implementation of ITimeline::HasPassedTime() method. More... | |
Bool | HasPassedLoop (SInt32 loop) const override |
Implementation of ITimeline::HasPassedLoop() method. More... | |
Double | GetCurrentTime () const override |
Implementation of ITimeline::GetCurrentTime() method. More... | |
Double | GetRemainingTime () const override |
Implementation of ITimeline::GetRemainingTime() method. More... | |
void | SetCurrentTime (Double time) override |
Implementation of ITimeline::SetCurrentTime() method. More... | |
SInt32 | GetCurrentLoop () const override |
Implementation of ITimeline::GetCurrentLoop() method. More... | |
SInt32 | GetRemainingLoops () const override |
Implementation of ITimeline::GetRemainingLoops() method. More... | |
Bool | SetCurrentLoop (SInt32 loop) override |
Implementation of ITimeline::SetCurrentLoop() method. More... | |
IEnums::AnimationState | GetCurrentState () const override |
Implementation of ITimeline::GetCurrentState() method. More... | |
Public Member Functions inherited from Murl::Logic::Stepable | |
~Stepable () override | |
The destructor. | |
Bool | SetAppStepable (IAppStepablePtr appStepable) override |
Implementation of IStepable::SetAppStepable() method. More... | |
void | SetEnabled (Bool isEnabled) override |
Implementation of IStepable::SetEnabled() method. More... | |
Bool | IsEnabled () const override |
Implementation of IStepable::IsEnabled() method. More... | |
void | FinishTick (const Logic::IState *state) override |
Implementation of IStepable::FinishTick() method. More... | |
Static Public Member Functions | |
static ITimelinePtr | Create () |
Create a timeline object. More... | |
Static Public Member Functions inherited from Murl::Logic::Stepable | |
static IStepablePtr | Create () |
Create a stepable object. More... | |
Detailed Description
The ITimeline interface implementation.
Member Function Documentation
◆ Create()
|
static |
Create a timeline object.
- Returns
- The created timeline object, or null if failed.
◆ ProcessTick()
|
overridevirtual |
Implementation of IStepable::ProcessTick() method.
- Parameters
-
state The IState object.
Reimplemented from Murl::Logic::Stepable.
◆ GetStepable()
|
overridevirtual |
Implementation of ITimeline::GetStepable() method.
- Returns
- The stepable interface shared pointer.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::operator IStepablePtr(), and Murl::Logic::BaseTimeline::operator IStepablePtr().
◆ SetAppTimeline()
|
overridevirtual |
Implementation of ITimeline::SetAppTimeline() method.
- Parameters
-
appTimeline The timeline callback object.
- Returns
- true if successful.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::Animation(), and Murl::Logic::BaseTimeline::BaseTimeline().
◆ ResetTo()
|
overridevirtual |
Implementation of ITimeline::ResetTo() method.
- Parameters
-
startTime The start time in seconds.
Implements Murl::Logic::ITimeline.
◆ Start() [1/4]
|
overridevirtual |
Implementation of ITimeline::Start() method.
- Returns
- true if successful.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::StartBackward(), and Murl::Logic::Animation< DataType >::StartForward().
◆ Start() [2/4]
Implementation of ITimeline::Start(Real startTime, Real endTime) method.
- Parameters
-
startTime The start time in seconds. endTime The end time in seconds.
- Returns
- true if successful.
Implements Murl::Logic::ITimeline.
◆ Start() [3/4]
|
overridevirtual |
Implementation of ITimeline::Start(Real startTime, Real endTime, SInt32 numberOfLoops) method.
- Parameters
-
startTime The start time in seconds. endTime The end time in seconds. numberOfLoops Number of loops.
- Returns
- true if successful.
Implements Murl::Logic::ITimeline.
◆ Start() [4/4]
|
overridevirtual |
Implementation of ITimeline::Start(Real startTime, Real endTime, Real loopStartTime, Real loopEndTime, SInt32 numberOfLoops) method.
- Parameters
-
startTime The start time in seconds. endTime The end time in seconds. loopStartTime The loop start time in seconds. loopEndTime The loop end time in seconds. numberOfLoops Number of loops.
- Returns
- true if successful.
Implements Murl::Logic::ITimeline.
◆ Pause()
|
overridevirtual |
Implementation of ITimeline::Pause() method.
- Returns
- true if timeline was paused, false if timeline is not running.
Implements Murl::Logic::ITimeline.
◆ Stop()
|
overridevirtual |
Implementation of ITimeline::Stop() method.
- Returns
- true if timeline was stopped, false if timeline is already stopped.
Implements Murl::Logic::ITimeline.
◆ Rewind()
|
overridevirtual |
Implementation of ITimeline::Rewind() method.
- Returns
- true if successful.
Implements Murl::Logic::ITimeline.
◆ SetStartTime()
|
overridevirtual |
Implementation of ITimeline::SetStartTime() method.
- Parameters
-
startTime The start time in seconds.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::SetStartTimeFromKey().
◆ GetStartTime()
|
overridevirtual |
Implementation of ITimeline::GetStartTime() method.
- Returns
- The start time in seconds.
Implements Murl::Logic::ITimeline.
◆ SetEndTime()
|
overridevirtual |
Implementation of ITimeline::SetEndTime() method.
- Parameters
-
endTime The end time in seconds.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::SetEndTimeFromKey().
◆ GetEndTime()
|
overridevirtual |
Implementation of ITimeline::GetEndTime() method.
- Returns
- The end time in seconds.
Implements Murl::Logic::ITimeline.
◆ SetLoopStartTime()
|
overridevirtual |
Implementation of ITimeline::SetLoopStartTime() method.
- Parameters
-
startTime The loop start time in seconds.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::SetLoopStartTimeFromKey().
◆ GetLoopStartTime()
|
overridevirtual |
Implementation of ITimeline::GetLoopStartTime() method.
- Returns
- The loop start time in seconds.
Implements Murl::Logic::ITimeline.
◆ SetLoopEndTime()
|
overridevirtual |
Implementation of ITimeline::SetLoopEndTime() method.
- Parameters
-
endTime The loop end time in seconds.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::SetLoopEndTimeFromKey().
◆ GetLoopEndTime()
|
overridevirtual |
Implementation of ITimeline::GetLoopEndTime() method.
- Returns
- The loop end time in seconds.
Implements Murl::Logic::ITimeline.
◆ SetNumberOfLoops()
|
overridevirtual |
Implementation of ITimeline::SetNumberOfLoops() method.
- Parameters
-
numberOfLoops Number of loops.
Implements Murl::Logic::ITimeline.
◆ GetNumberOfLoops()
|
overridevirtual |
Implementation of ITimeline::GetNumberOfLoops() method.
- Returns
- The number of loops.
Implements Murl::Logic::ITimeline.
◆ SetTimeScale()
|
overridevirtual |
Implementation of ITimeline::SetTimeScale() method.
- Parameters
-
timeScale The time scale factor.
Implements Murl::Logic::ITimeline.
◆ GetTimeScale()
|
overridevirtual |
Implementation of ITimeline::GetTimeScale() method.
- Returns
- true The time scale factor.
Implements Murl::Logic::ITimeline.
◆ SetAutoRewindEnabled()
|
overridevirtual |
Implementation of ITimeline::SetAutoRewindEnabled() method.
- Parameters
-
enabled Enable automatic rewind if true.
Implements Murl::Logic::ITimeline.
◆ IsAutoRewindEnabled()
|
overridevirtual |
Implementation of ITimeline::IsAutoRewindEnabled() method.
- Returns
- true if automatic rewind.
Implements Murl::Logic::ITimeline.
◆ IsRunning()
|
overridevirtual |
Implementation of ITimeline::IsRunning() method.
- Returns
- true if running.
Implements Murl::Logic::ITimeline.
◆ IsPaused()
|
overridevirtual |
Implementation of ITimeline::IsPaused() method.
- Returns
- true if paused.
Implements Murl::Logic::ITimeline.
◆ IsStopped()
|
overridevirtual |
Implementation of ITimeline::IsStopped() method.
- Returns
- true if stopped.
Implements Murl::Logic::ITimeline.
◆ WasStarted()
|
overridevirtual |
Implementation of ITimeline::WasStarted() method.
- Returns
- true if started.
Implements Murl::Logic::ITimeline.
◆ WasRunning()
|
overridevirtual |
Implementation of ITimeline::WasRunning() method.
- Returns
- true if stopped.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::SoundFader::OnEvaluateAnimation().
◆ IsOrWasRunning()
|
overridevirtual |
Implementation of ITimeline::IsOrWasRunning() method.
- Returns
- true if IsRunning() or WasRunning() is true.
Implements Murl::Logic::ITimeline.
◆ HasPassedTime()
Implementation of ITimeline::HasPassedTime() method.
- Parameters
-
time The time to check in seconds.
- Returns
- true if the current time has passed a specified time within the most recent tick.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::HasPassedTimeFromKey().
◆ HasPassedLoop()
Implementation of ITimeline::HasPassedLoop() method.
- Parameters
-
loop The loop number to check.
- Returns
- true if the current loop has passed a specified loop within the most recent tick.
Implements Murl::Logic::ITimeline.
◆ GetCurrentTime()
|
overridevirtual |
Implementation of ITimeline::GetCurrentTime() method.
- Returns
- The current time in seconds.
Implements Murl::Logic::ITimeline.
Referenced by Murl::Logic::Animation< DataType >::IsOnTimeFromKey(), and Murl::Logic::SoundFader::OnEvaluateAnimation().
◆ GetRemainingTime()
|
overridevirtual |
Implementation of ITimeline::GetRemainingTime() method.
- Returns
- The remaining time in seconds.
Implements Murl::Logic::ITimeline.
◆ SetCurrentTime()
|
overridevirtual |
Implementation of ITimeline::SetCurrentTime() method.
- Parameters
-
time The current time to set in seconds.
Implements Murl::Logic::ITimeline.
◆ GetCurrentLoop()
|
overridevirtual |
Implementation of ITimeline::GetCurrentLoop() method.
- Returns
- The current loop, 0 if number of loops is 0.
Implements Murl::Logic::ITimeline.
◆ GetRemainingLoops()
|
overridevirtual |
Implementation of ITimeline::GetRemainingLoops() method.
- Returns
- The remaining loops, -1 if number of loops is < 0, 0 if number of loops is 0 or intro/outro is running.
Implements Murl::Logic::ITimeline.
◆ SetCurrentLoop()
Implementation of ITimeline::SetCurrentLoop() method.
- Parameters
-
loop The current loop to set.
- Returns
- true if successful, false if the loop number is out of range.
Implements Murl::Logic::ITimeline.
◆ GetCurrentState()
|
overridevirtual |
Implementation of ITimeline::GetCurrentState() method.
- Returns
- The current animation state.
Implements Murl::Logic::ITimeline.
The documentation for this class was generated from the following file:
- murl_logic_timeline.h