MythTV  master
Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
Transition Class Referenceabstract

Base class of an animated transition that can be accelerated & reversed. More...

#include <gallerytransitions.h>

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

Signals

void finished ()
 

Public Member Functions

 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 (int interval)=0
 
virtual void Initialise ()
 
virtual void Finalise ()
 

Protected Slots

virtual void Finished ()
 Transition has completed. More...
 

Protected Attributes

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...
 

Detailed Description

Base class of an animated transition that can be accelerated & reversed.

Definition at line 28 of file gallerytransitions.h.

Constructor & Destructor Documentation

◆ Transition()

Transition::Transition ( const QString &  name)
explicit

Definition at line 14 of file gallerytransitions.cpp.

◆ ~Transition()

Transition::~Transition ( )
overridedefault

Member Function Documentation

◆ Start()

void Transition::Start ( Slide from,
Slide to,
bool  forwards,
float  speed = 1.0 
)
virtual

Start base transition.

Parameters
fromImage currently displayed
toImage to be displayed
forwardsDirection
speedUnused

Reimplemented in TransitionRandom, GroupTransition, and TransitionNone.

Definition at line 83 of file gallerytransitions.cpp.

Referenced by GallerySlideView::SlideAvailable(), TransitionNone::Start(), GroupTransition::Start(), and TransitionRandom::Start().

◆ SetSpeed()

virtual void Transition::SetSpeed ( float  )
inlinevirtual

Reimplemented in TransitionRandom, and GroupTransition.

Definition at line 36 of file gallerytransitions.h.

Referenced by TransitionRandom::SetSpeed(), and GallerySlideView::SlideAvailable().

◆ Pulse()

virtual void Transition::Pulse ( int  interval)
pure virtual

◆ Initialise()

virtual void Transition::Initialise ( )
inlinevirtual

◆ Finalise()

virtual void Transition::Finalise ( )
inlinevirtual

◆ Finished

void Transition::Finished ( )
protectedvirtualslot

Transition has completed.

Definition at line 109 of file gallerytransitions.cpp.

Referenced by GroupTransition::GroupTransition(), and TransitionNone::Start().

◆ finished

void Transition::finished ( )
signal

Member Data Documentation

◆ m_duration

int Transition::m_duration {1000}
protected

◆ m_old

Slide* Transition::m_old {nullptr}
protected

The image currently displayed, which will be replaced (whatever the transition direction)

Definition at line 52 of file gallerytransitions.h.

Referenced by TransitionBlend::Finalise(), TransitionTwist::Finalise(), TransitionSlide::Finalise(), TransitionZoom::Finalise(), TransitionSpin::Finalise(), Finished(), TransitionSlide::Initialise(), TransitionZoom::Initialise(), and Start().

◆ m_new

Slide* Transition::m_new {nullptr}
protected

The new image that will replace the current one (whatever the transition direction)

Definition at line 55 of file gallerytransitions.h.

Referenced by Finished(), TransitionBlend::Initialise(), TransitionTwist::Initialise(), TransitionSlide::Initialise(), TransitionZoom::Initialise(), and Start().

◆ m_prev

Slide* Transition::m_prev {nullptr}
protected

The image occurring earlier in the slideshow sequence.

Definition at line 63 of file gallerytransitions.h.

Referenced by TransitionBlend::Initialise(), TransitionTwist::Initialise(), TransitionSlide::Initialise(), TransitionZoom::Initialise(), TransitionSpin::Initialise(), and Start().

◆ m_next

Slide* Transition::m_next {nullptr}
protected

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