digiKam
hotpixelcontainer.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 : 2020-08-05
7  * Description : HotPixel filter settings container.
8  *
9  * Copyright (C) 2020-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)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_HOTPIXEL_CONTAINER_H
25 #define DIGIKAM_HOTPIXEL_CONTAINER_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QUrl>
31 #include <QList>
32 
33 // Local includes
34 
35 #include "digikam_export.h"
36 #include "hotpixelprops.h"
37 
38 namespace Digikam
39 {
40 
41 class FilterAction;
42 
43 class DIGIKAM_EXPORT HotPixelContainer
44 {
45 
46 public:
47 
49  {
50  AVERAGE_INTERPOLATION = 0,
51  LINEAR_INTERPOLATION = 1,
52  QUADRATIC_INTERPOLATION = 2,
53  CUBIC_INTERPOLATION = 3
54  };
55 
56  enum Direction
57  {
58  TWODIM_DIRECTION = 0,
59  VERTICAL_DIRECTION = 1,
60  HORIZONTAL_DIRECTION = 2
61  };
62 
63 public:
64 
65  explicit HotPixelContainer();
67 
68  bool isDefault() const;
69  bool operator==(const HotPixelContainer& other) const;
70 
71  void writeToFilterAction(FilterAction& action, const QString& prefix = QString()) const;
72 
73  static HotPixelContainer fromFilterAction(const FilterAction& action,
74  const QString& prefix = QString());
75 
76 public:
77 
81 };
82 
83 } // namespace Digikam
84 
85 #endif // DIGIKAM_HOTPIXEL_CONTAINER_H
Definition: filteraction.h:43
Definition: hotpixelcontainer.h:44
QUrl blackFrameUrl
Definition: hotpixelcontainer.h:78
Direction
Definition: hotpixelcontainer.h:57
InterpolationMethod filterMethod
Definition: hotpixelcontainer.h:80
InterpolationMethod
Definition: hotpixelcontainer.h:49
QList< HotPixelProps > hotPixelsList
Definition: hotpixelcontainer.h:79
Definition: piwigotalker.h:48
QStringView prefix
Definition: itemviewutilities.cpp:593
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49