digiKam
autoexpofilter.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 : 2010-15-02
7  * Description : auto exposure image filter.
8  *
9  * Copyright (C) 2010-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_AUTO_EXPO_FILTER_H
25 #define DIGIKAM_AUTO_EXPO_FILTER_H
26 
27 // Local includes
28 
29 #include "digikam_export.h"
30 #include "wbfilter.h"
31 #include "digikam_globals.h"
32 #include "filteraction.h"
33 
34 namespace Digikam
35 {
36 
37 class DImg;
38 
39 class DIGIKAM_EXPORT AutoExpoFilter : public WBFilter
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit AutoExpoFilter(QObject* const parent = nullptr);
46  AutoExpoFilter(DImg* const orgImage, const DImg* const refImage, QObject* const parent = nullptr);
47  ~AutoExpoFilter() override;
48 
49  static QString FilterIdentifier()
50  {
51  return QLatin1String("digikam:AutoExpoFilter");
52  }
53 
55  {
56  return QList<int>() << 1;
57  }
58 
59  static int CurrentVersion()
60  {
61  return 1;
62  }
63 
64  static QString DisplayableName();
65 
66  QString filterIdentifier() const override
67  {
68  return FilterIdentifier();
69  }
70 
71  FilterAction filterAction() override;
72 
73  void readParameters(const FilterAction& action) override;
74 
75 private:
76 
77  void filterImage() override;
78 
79 private:
80 
81  DImg m_refImage;
82 };
83 
84 } // namespace Digikam
85 
86 #endif // DIGIKAM_AUTO_EXPO_FILTER_H
Definition: autoexpofilter.h:40
static QList< int > SupportedVersions()
Definition: autoexpofilter.h:54
static int CurrentVersion()
Definition: autoexpofilter.h:59
QString filterIdentifier() const override
Definition: autoexpofilter.h:66
static QString FilterIdentifier()
Definition: autoexpofilter.h:49
Definition: dimg.h:62
Definition: filteraction.h:43
Definition: wbfilter.h:46
Definition: datefolderview.cpp:43