digiKam
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  * Copyright (C) 2017-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_TRANSITION_MNGR_H
24 #define DIGIKAM_TRANSITION_MNGR_H
25 
26 // Qt includes
27 
28 #include <QMap>
29 #include <QString>
30 #include <QImage>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT TransitionMngr
40 {
41 public:
42 
43  enum TransType
44  {
45  None = 0,
73  Random
74  };
75 
76 public:
77 
78  explicit TransitionMngr();
79  ~TransitionMngr();
80 
81  void setOutputSize(const QSize& size);
82  void setTransition(TransType type);
83  void setInImage(const QImage& iimg);
84  void setOutImage(const QImage& oimg);
85 
86  QImage currentFrame(int& tmout);
87 
88  static QMap<TransType, QString> transitionNames();
89 
90 private:
91 
92  // Disable
93  TransitionMngr(const TransitionMngr&) = delete;
94  TransitionMngr& operator=(const TransitionMngr&) = delete;
95 
96 private:
97 
98  class Private;
99  Private* const d;
100 };
101 
102 } // namespace Digikam
103 
104 #endif // DIGIKAM_TRANSITION_MNGR_H
Definition: transitionmngr.h:40
TransType
Definition: transitionmngr.h:44
@ CircleOut
Definition: transitionmngr.h:54
@ SlideL2R
Definition: transitionmngr.h:59
@ VerticalLines
Definition: transitionmngr.h:53
@ ChessBoard
Definition: transitionmngr.h:46
@ PushT2B
Definition: transitionmngr.h:65
@ BlurIn
Definition: transitionmngr.h:71
@ SwapB2T
Definition: transitionmngr.h:70
@ PushR2L
Definition: transitionmngr.h:64
@ SlideB2T
Definition: transitionmngr.h:62
@ Growing
Definition: transitionmngr.h:51
@ PushB2T
Definition: transitionmngr.h:66
@ SlideT2B
Definition: transitionmngr.h:61
@ Sweep
Definition: transitionmngr.h:48
@ Blobs
Definition: transitionmngr.h:57
@ MeltDown
Definition: transitionmngr.h:47
@ Cubism
Definition: transitionmngr.h:50
@ MultiCircleOut
Definition: transitionmngr.h:55
@ BlurOut
Definition: transitionmngr.h:72
@ SwapR2L
Definition: transitionmngr.h:68
@ SwapT2B
Definition: transitionmngr.h:69
@ SwapL2R
Definition: transitionmngr.h:67
@ HorizontalLines
Definition: transitionmngr.h:52
@ Fade
Definition: transitionmngr.h:58
@ SlideR2L
Definition: transitionmngr.h:60
@ Mosaic
Definition: transitionmngr.h:49
@ PushL2R
Definition: transitionmngr.h:63
@ SpiralIn
Definition: transitionmngr.h:56
Definition: datefolderview.cpp:43