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