|
MythTV master
|
Invokes random transitions. More...
#include <mythfrontend/gallerytransitions.h>
Public Member Functions | |
| TransitionRandom (QList< Transition * > peers) | |
| void | Start (Slide &from, Slide &to, bool forwards, float speed=1.0) override |
| Starts a random transition from a set of its peer transitions,. More... | |
| void | SetSpeed (float speed) override |
| void | Pulse () override |
| void | Initialise () override |
| void | Finalise () override |
Public Member Functions inherited from Transition | |
| Transition (const QString &name) | |
| ~Transition () override=default | |
| virtual void | Start (Slide &from, Slide &to, bool forwards, float speed=1.0) |
| Start base transition. More... | |
| virtual void | SetSpeed (float) |
| virtual void | Pulse ()=0 |
| virtual void | Initialise () |
| virtual void | Finalise () |
Protected Slots | |
| void | Finished () override |
| Invoked when peer transition completes. More... | |
Protected Slots inherited from Transition | |
| virtual void | Finished () |
| Transition has completed. More... | |
Protected Attributes | |
| QList< Transition * > | m_peers |
| Set of distinct transitions. More... | |
| Transition * | m_current {nullptr} |
| Selected transition. More... | |
Protected Attributes inherited from Transition | |
| std::chrono::milliseconds | m_duration {1s} |
| Seconds transition will last. More... | |
| Slide * | m_old {nullptr} |
| The image currently displayed, which will be replaced (whatever the transition direction) More... | |
| Slide * | m_new {nullptr} |
| The new image that will replace the current one (whatever the transition direction) More... | |
| Slide * | m_prev {nullptr} |
| The image occurring earlier in the slideshow sequence. More... | |
| Slide * | m_next {nullptr} |
| The image occurring later in the slideshow sequence. More... | |
Additional Inherited Members | |
Signals inherited from Transition | |
| void | finished () |
Invokes random transitions.
Definition at line 156 of file gallerytransitions.h.
|
inlineexplicit |
Definition at line 160 of file gallerytransitions.h.
|
inlineoverridevirtual |
Reimplemented from Transition.
Definition at line 169 of file gallerytransitions.h.
|
overrideprotectedslot |
Invoked when peer transition completes.
Definition at line 419 of file gallerytransitions.cpp.
Referenced by Start().
|
inlineoverridevirtual |
Reimplemented from Transition.
Definition at line 167 of file gallerytransitions.h.
|
inlineoverridevirtual |
Implements Transition.
Definition at line 165 of file gallerytransitions.h.
|
inlineoverridevirtual |
Reimplemented from Transition.
Definition at line 163 of file gallerytransitions.h.
|
overridevirtual |
Starts a random transition from a set of its peer transitions,.
| from | Image currently displayed |
| to | Image to be displayed |
| forwards | Direction |
| speed | Unused |
Reimplemented from Transition.
Definition at line 405 of file gallerytransitions.cpp.
|
protected |
Selected transition.
Definition at line 179 of file gallerytransitions.h.
Referenced by Finalise(), Finished(), Initialise(), Pulse(), SetSpeed(), and Start().
|
protected |
Set of distinct transitions.
Definition at line 177 of file gallerytransitions.h.
Referenced by Start().