4#ifndef GALLERYTRANSITIONS_H
5#define GALLERYTRANSITIONS_H
35 virtual void Start(
Slide &from,
Slide &to,
bool forwards,
float speed = 1.0);
78 bool forwards,
float speed = 1.0)
override;
90 bool forwards,
float speed = 1.0)
override;
92 void Pulse()
override;
162 void Start(
Slide &from,
Slide &to,
bool forwards,
float speed = 1.0)
override;
Abstract class for groups of animations.
Abstract class implementing sequential & parallel animations.
void Start(Slide &from, Slide &to, bool forwards, float speed=1.0) override
Start group transition.
void Finalise() override=0
void Initialise() override=0
void Pulse() override
Update group transition.
void SetSpeed(float speed) override
Change transition speed.
GroupTransition(GroupAnimation *animation, const QString &name)
Create group transition.
~GroupTransition() override
Destroy group transition.
GroupAnimation * m_animation
A group of animations to be played simultaneously.
A group of animations to be played sequentially.
A specialised image for slideshows.
Image blends into the next by fading.
void Finalise() override
Reset Blend transition.
void Initialise() override
Set up Blend transition.
Switches images instantly with no effects.
void Start(Slide &from, Slide &to, bool forwards, float speed=1.0) override
Switch images.
Invokes random transitions.
void SetSpeed(float speed) override
TransitionRandom(QList< Transition * > peers)
void Finished() override
Invoked when peer transition completes.
Transition * m_current
Selected transition.
void Start(Slide &from, Slide &to, bool forwards, float speed=1.0) override
Starts a random transition from a set of its peer transitions,.
void Initialise() override
QList< Transition * > m_peers
Set of distinct transitions.
Manages transitions available to s psinter.
Transition & Select(int setting)
Returns the requested transition or an alternative if it is not suitable for the painter.
TransitionRegistry(bool includeAnimations)
Constructor.
TransitionNone m_immediate
A transition that updates instantly.
TransitionMap GetAll() const
TransitionMap m_map
All possible transitions.
Slide on from right, then off to left.
void Initialise() override
Set up Slide transition.
void Finalise() override
Reset Slide transition.
Images blend whilst rotating.
void Initialise() override
Set up Spin transition.
void Finalise() override
Reset Spin transition.
Image twists into the next.
void Finalise() override
Reset Twist transition.
void Initialise() override
Set up Twist transition.
Zooms from right, then away to left.
void Finalise() override
Reset Zoom transition.
void Initialise() override
Set up Zoom transition.
Base class of an animated transition that can be accelerated & reversed.
virtual void Finished()
Transition has completed.
virtual void Start(Slide &from, Slide &to, bool forwards, float speed=1.0)
Start base transition.
virtual void Initialise()
Transition(const QString &name)
Slide * m_next
The image occurring later in the slideshow sequence.
Slide * m_prev
The image occurring earlier in the slideshow sequence.
std::chrono::milliseconds m_duration
Seconds transition will last.
Slide * m_new
The new image that will replace the current one (whatever the transition direction)
virtual void SetSpeed(float)
Slide * m_old
The image currently displayed, which will be replaced (whatever the transition direction)
~Transition() override=default
Defines specialised images used by the Gallery slideshow and the animation framework used by transfor...
ImageTransitionType
Available transitions.
QMap< int, Transition * > TransitionMap