MythTV  master
Public Member Functions | Protected Attributes | List of all members
GroupTransition Class Referenceabstract

Abstract class implementing sequential & parallel animations. More...

#include <gallerytransitions.h>

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

Public Member Functions

 GroupTransition (GroupAnimation *animation, const QString &name)
 Create group transition. More...
 
 ~GroupTransition () override
 Destroy group transition. More...
 
void Start (Slide &from, Slide &to, bool forwards, float speed=1.0) override
 Start group transition. More...
 
void SetSpeed (float speed) override
 Change transition speed. More...
 
void Pulse (int interval) override
 Update group transition. More...
 
void Initialise () override=0
 
void Finalise () override=0
 
- Public Member Functions inherited from Transition
 Transition (const QString &name)
 
 ~Transition () override=default
 

Protected Attributes

GroupAnimationm_animation {nullptr}
 
- 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 ()
 
- Protected Slots inherited from Transition
virtual void Finished ()
 Transition has completed. More...
 

Detailed Description

Abstract class implementing sequential & parallel animations.

Definition at line 84 of file gallerytransitions.h.

Constructor & Destructor Documentation

◆ GroupTransition()

GroupTransition::GroupTransition ( GroupAnimation animation,
const QString &  name 
)

Create group transition.

Parameters
animationGroup animation
nameThe name for this transition. This string will be used in log messages.

Definition at line 147 of file gallerytransitions.cpp.

◆ ~GroupTransition()

GroupTransition::~GroupTransition ( )
override

Destroy group transition.

Definition at line 158 of file gallerytransitions.cpp.

Member Function Documentation

◆ Start()

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

Start group transition.

Parameters
fromImage currently displayed
toImage to be displayed
forwardsDirection
speedFactor, 1.0 = real-time

Reimplemented from Transition.

Definition at line 172 of file gallerytransitions.cpp.

◆ SetSpeed()

void GroupTransition::SetSpeed ( float  speed)
overridevirtual

Change transition speed.

Parameters
speedFactor, 1x, 2x etc.

Reimplemented from Transition.

Definition at line 190 of file gallerytransitions.cpp.

◆ Pulse()

void GroupTransition::Pulse ( int  interval)
overridevirtual

Update group transition.

Parameters
intervalMillisecs since last update

Implements Transition.

Definition at line 201 of file gallerytransitions.cpp.

◆ Initialise()

void GroupTransition::Initialise ( )
overridepure virtual

◆ Finalise()

void GroupTransition::Finalise ( )
overridepure virtual

Member Data Documentation

◆ m_animation

GroupAnimation* GroupTransition::m_animation {nullptr}
protected

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