digiKam
Loading...
Searching...
No Matches
transitionmngr.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2017-05-24
7 * Description : images transition manager.
8 *
9 * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QMap>
20#include <QString>
21#include <QImage>
22
23// Local includes
24
25#include "digikam_export.h"
26
27namespace Digikam
28{
29
30class DIGIKAM_EXPORT TransitionMngr
31{
32public:
33
66
67public:
68
69 explicit TransitionMngr();
71
72 void setOutputSize(const QSize& size);
73 void setTransition(TransType type);
74 void setInImage(const QImage& iimg);
75 void setOutImage(const QImage& oimg);
76
77 QImage currentFrame(int& tmout);
78
79 static QMap<TransType, QString> transitionNames();
80
81private:
82
83 // Disable
84 TransitionMngr(const TransitionMngr&) = delete;
85 TransitionMngr& operator=(const TransitionMngr&) = delete;
86
87private:
88
89 class Private;
90 Private* const d = nullptr;
91};
92
93} // namespace Digikam
Definition transitionmngr.h:31
TransType
Definition transitionmngr.h:35
@ CircleOut
Definition transitionmngr.h:45
@ SlideL2R
Definition transitionmngr.h:50
@ VerticalLines
Definition transitionmngr.h:44
@ ChessBoard
Definition transitionmngr.h:37
@ PushT2B
Definition transitionmngr.h:56
@ BlurIn
Definition transitionmngr.h:62
@ SwapB2T
Definition transitionmngr.h:61
@ PushR2L
Definition transitionmngr.h:55
@ SlideB2T
Definition transitionmngr.h:53
@ Growing
Definition transitionmngr.h:42
@ PushB2T
Definition transitionmngr.h:57
@ SlideT2B
Definition transitionmngr.h:52
@ Sweep
Definition transitionmngr.h:39
@ Blobs
Definition transitionmngr.h:48
@ MeltDown
Definition transitionmngr.h:38
@ Cubism
Definition transitionmngr.h:41
@ MultiCircleOut
Definition transitionmngr.h:46
@ BlurOut
Definition transitionmngr.h:63
@ SwapR2L
Definition transitionmngr.h:59
@ SwapT2B
Definition transitionmngr.h:60
@ SwapL2R
Definition transitionmngr.h:58
@ HorizontalLines
Definition transitionmngr.h:43
@ Fade
Definition transitionmngr.h:49
@ SlideR2L
Definition transitionmngr.h:51
@ Mosaic
Definition transitionmngr.h:40
@ PushL2R
Definition transitionmngr.h:54
@ SpiralIn
Definition transitionmngr.h:47
Definition datefolderview.cpp:34