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

A group of animations to be played sequentially. More...

#include <galleryslide.h>

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

Public Member Functions

 SequentialAnimation ()=default
 
void Pulse () override
 Progress sequential animation. More...
 
void Start (bool forwards, float speed=1.0) override
 Start sequential animation. More...
 
void SetSpeed (float speed) override
 Change speed of current child animation and all subsequent ones. More...
 
- Public Member Functions inherited from GroupAnimation
 GroupAnimation ()=default
 
 ~GroupAnimation () override
 
virtual void Add (AbstractAnimation *child)
 Add child animation to group. More...
 
void Clear () override
 Delete all child animations. More...
 
- Public Member Functions inherited from AbstractAnimation
 AbstractAnimation ()=default
 
virtual void Stop ()
 

Protected Slots

void Finished () override
 A child animation has completed. More...
 
- Protected Slots inherited from AbstractAnimation
virtual void Finished ()
 To be called when animation completes. More...
 

Protected Attributes

int m_current {-1}
 Index of child currently playing. More...
 
- Protected Attributes inherited from GroupAnimation
QList< AbstractAnimation * > m_group
 
- Protected Attributes inherited from AbstractAnimation
bool m_forwards {true}
 Play direction. More...
 
bool m_running {false}
 True whilst animation is active. More...
 
float m_speed {0.0F}
 Real-time = 1.0, Double-speed = 2.0. More...
 

Additional Inherited Members

- Signals inherited from AbstractAnimation
void finished ()
 Signals animation has finished. More...
 

Detailed Description

A group of animations to be played sequentially.

When played backwards the last animation will play first (backwards)

Definition at line 110 of file galleryslide.h.

Constructor & Destructor Documentation

◆ SequentialAnimation()

SequentialAnimation::SequentialAnimation ( )
default

Member Function Documentation

◆ Pulse()

void SequentialAnimation::Pulse ( )
overridevirtual

Progress sequential animation.

Implements GroupAnimation.

Definition at line 141 of file galleryslide.cpp.

◆ Start()

void SequentialAnimation::Start ( bool  forwards,
float  speed = 1.0 
)
overridevirtual

Start sequential animation.

Parameters
forwardsDirection. If false, the last child will be played (backwards) first
speedFactor, 1x, 2x etc

Reimplemented from GroupAnimation.

Definition at line 156 of file galleryslide.cpp.

◆ SetSpeed()

void SequentialAnimation::SetSpeed ( float  speed)
overridevirtual

Change speed of current child animation and all subsequent ones.

Parameters
speedNew speed factor

Reimplemented from GroupAnimation.

Definition at line 173 of file galleryslide.cpp.

◆ Finished

void SequentialAnimation::Finished ( )
overrideprotectedslot

A child animation has completed.

Definition at line 189 of file galleryslide.cpp.

Member Data Documentation

◆ m_current

int SequentialAnimation::m_current {-1}
protected

Index of child currently playing.

Definition at line 123 of file galleryslide.h.

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


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