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

Abstract class for groups of animations. More...

#include <galleryslide.h>

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

Public Member Functions

 GroupAnimation ()=default
 
 ~GroupAnimation () override
 
void Pulse () override=0
 
void Start (bool forwards, float speed=1.0) override
 Initialise & start base animation. More...
 
void SetSpeed (float speed) 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 Attributes

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...
 
- Protected Slots inherited from AbstractAnimation
virtual void Finished ()
 To be called when animation completes. More...
 

Detailed Description

Abstract class for groups of animations.

Definition at line 90 of file galleryslide.h.

Constructor & Destructor Documentation

◆ GroupAnimation()

GroupAnimation::GroupAnimation ( )
default

◆ ~GroupAnimation()

GroupAnimation::~GroupAnimation ( )
inlineoverride

Definition at line 94 of file galleryslide.h.

Member Function Documentation

◆ Pulse()

void GroupAnimation::Pulse ( )
overridepure virtual

Implements AbstractAnimation.

Implemented in ParallelAnimation, and SequentialAnimation.

Referenced by GroupTransition::Pulse().

◆ Start()

void GroupAnimation::Start ( bool  forwards,
float  speed = 1.0 
)
inlineoverridevirtual

Initialise & start base animation.

Parameters
forwardsDirection
speedFactor, 1 = real-time, 2 = double-time

Reimplemented from AbstractAnimation.

Reimplemented in ParallelAnimation, and SequentialAnimation.

Definition at line 96 of file galleryslide.h.

Referenced by GroupTransition::Start(), SequentialAnimation::Start(), and ParallelAnimation::Start().

◆ SetSpeed()

void GroupAnimation::SetSpeed ( float  speed)
inlineoverridevirtual

◆ Add()

void GroupAnimation::Add ( AbstractAnimation child)
virtual

◆ Clear()

void GroupAnimation::Clear ( )
overridevirtual

Delete all child animations.

Reimplemented from AbstractAnimation.

Definition at line 137 of file galleryslide.cpp.

Referenced by GroupTransition::Start(), and ~GroupAnimation().

Member Data Documentation

◆ m_group

QList<AbstractAnimation *> GroupAnimation::m_group
protected

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