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

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

#include <mythfrontend/gallerytransitions.h>

Inheritance diagram for GroupTransition:
[legend]
Collaboration diagram for GroupTransition:
[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 () 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
std::chrono::milliseconds m_duration {1s}
 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 144 of file gallerytransitions.cpp.

◆ ~GroupTransition()

GroupTransition::~GroupTransition ( )
override

Destroy group transition.

Definition at line 155 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 169 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 186 of file gallerytransitions.cpp.

◆ Pulse()

void GroupTransition::Pulse ( )
overridevirtual

Update group transition.

Implements Transition.

Definition at line 195 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: