MythTV
master
|
Base animation class that is driven by a Myth pulse and implements variable speed. More...
#include <mythfrontend/galleryslide.h>
Signals | |
void | finished () |
Signals animation has finished. More... | |
Public Member Functions | |
AbstractAnimation ()=default | |
virtual void | Start (bool forwards, float speed=1.0) |
Initialise & start base animation. More... | |
virtual void | Stop () |
virtual void | SetSpeed (float speed) |
virtual void | Pulse ()=0 |
virtual void | Clear () |
Protected Slots | |
virtual void | Finished () |
To be called when animation completes. More... | |
Protected Attributes | |
bool | m_forwards {true} |
Play direction. More... | |
bool | m_running {false} |
True whilst animation is active. More... | |
float | m_speed {0.0F} |
Real-time = 1.0, Double-speed = 2.0. More... | |
Base animation class that is driven by a Myth pulse and implements variable speed.
Definition at line 26 of file galleryslide.h.
|
default |
|
virtual |
Initialise & start base animation.
forwards | Direction |
speed | Factor, 1 = real-time, 2 = double-time |
Reimplemented in Animation, ParallelAnimation, SequentialAnimation, and GroupAnimation.
Definition at line 33 of file galleryslide.cpp.
Referenced by Animation::Start(), and GroupAnimation::Start().
|
inlinevirtual |
Definition at line 32 of file galleryslide.h.
|
inlinevirtual |
Reimplemented in ParallelAnimation, SequentialAnimation, and GroupAnimation.
Definition at line 33 of file galleryslide.h.
Referenced by GroupAnimation::SetSpeed().
|
pure virtual |
Implemented in GroupAnimation, ParallelAnimation, SequentialAnimation, and Animation.
|
inlinevirtual |
Reimplemented in GroupAnimation.
Definition at line 35 of file galleryslide.h.
|
inlineprotectedvirtualslot |
To be called when animation completes.
Definition at line 39 of file galleryslide.h.
Referenced by GroupAnimation::Add(), SequentialAnimation::Finished(), ParallelAnimation::Finished(), and Animation::Pulse().
|
signal |
Signals animation has finished.
Referenced by GroupAnimation::Add(), Finished(), SequentialAnimation::Finished(), and GroupTransition::GroupTransition().
Play direction.
Definition at line 46 of file galleryslide.h.
Referenced by SequentialAnimation::Finished(), Animation::Pulse(), Start(), SequentialAnimation::Start(), and ParallelAnimation::Start().
True whilst animation is active.
Definition at line 47 of file galleryslide.h.
Referenced by Finished(), Animation::Pulse(), SequentialAnimation::Pulse(), ParallelAnimation::Pulse(), SequentialAnimation::SetSpeed(), Start(), Stop(), Animation::updateCurrentValue(), and PanAnimation::updateCurrentValue().
|
protected |
Real-time = 1.0, Double-speed = 2.0.
Definition at line 48 of file galleryslide.h.
Referenced by SequentialAnimation::Finished(), Animation::Pulse(), SetSpeed(), ParallelAnimation::SetSpeed(), Start(), SequentialAnimation::Start(), and ParallelAnimation::Start().