MythTV  master
Public Member Functions | Protected Slots | Protected Attributes | List of all members
TransitionRandom Class Reference

Invokes random transitions. More...

#include <gallerytransitions.h>

Inheritance diagram for TransitionRandom:
Inheritance graph
[legend]
Collaboration diagram for TransitionRandom:
Collaboration graph
[legend]

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 (int interval) override
 
void Initialise () override
 
void Finalise () override
 
- Public Member Functions inherited from Transition
 Transition (const QString &name)
 
 ~Transition () override=default
 

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...
 
Transitionm_current {nullptr}
 Selected transition. More...
 
- Protected Attributes inherited from Transition
int m_duration {1000}
 Seconds transition will last. More...
 
Slidem_old {nullptr}
 The image currently displayed, which will be replaced (whatever the transition direction) More...
 
Slidem_new {nullptr}
 The new image that will replace the current one (whatever the transition direction) More...
 
Slidem_prev {nullptr}
 The image occurring earlier in the slideshow sequence. More...
 
Slidem_next {nullptr}
 The image occurring later in the slideshow sequence. More...
 

Additional Inherited Members

- Signals inherited from Transition
void finished ()
 

Detailed Description

Invokes random transitions.

Definition at line 156 of file gallerytransitions.h.

Constructor & Destructor Documentation

◆ TransitionRandom()

TransitionRandom::TransitionRandom ( QList< Transition * >  peers)
inlineexplicit

Definition at line 160 of file gallerytransitions.h.

Member Function Documentation

◆ Start()

void TransitionRandom::Start ( Slide from,
Slide to,
bool  forwards,
float  speed = 1.0 
)
overridevirtual

Starts a random transition from a set of its peer transitions,.

Parameters
fromImage currently displayed
toImage to be displayed
forwardsDirection
speedUnused

Reimplemented from Transition.

Definition at line 411 of file gallerytransitions.cpp.

◆ SetSpeed()

void TransitionRandom::SetSpeed ( float  speed)
inlineoverridevirtual

Reimplemented from Transition.

Definition at line 163 of file gallerytransitions.h.

◆ Pulse()

void TransitionRandom::Pulse ( int  interval)
inlineoverridevirtual

Implements Transition.

Definition at line 165 of file gallerytransitions.h.

◆ Initialise()

void TransitionRandom::Initialise ( void  )
inlineoverridevirtual

Reimplemented from Transition.

Definition at line 167 of file gallerytransitions.h.

◆ Finalise()

void TransitionRandom::Finalise ( )
inlineoverridevirtual

Reimplemented from Transition.

Definition at line 169 of file gallerytransitions.h.

◆ Finished

void TransitionRandom::Finished ( )
overrideprotectedslot

Invoked when peer transition completes.

Definition at line 429 of file gallerytransitions.cpp.

Referenced by Start().

Member Data Documentation

◆ m_peers

QList<Transition*> TransitionRandom::m_peers
protected

Set of distinct transitions.

Definition at line 177 of file gallerytransitions.h.

Referenced by Start().

◆ m_current

Transition* TransitionRandom::m_current {nullptr}
protected

Selected transition.

Definition at line 179 of file gallerytransitions.h.

Referenced by Finalise(), Finished(), Initialise(), Pulse(), SetSpeed(), and Start().


The documentation for this class was generated from the following files: