digiKam
Loading...
Searching...
No Matches
invertfilter.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 : 2005-17-07
7 * Description : An invert image threaded image filter.
8 *
9 * SPDX-FileCopyrightText: 2005-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010 by Martin Klapetek <martin dot klapetek at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Local includes
19
20#include "digikam_export.h"
21#include "dimgthreadedfilter.h"
22
23namespace Digikam
24{
25
26class DIGIKAM_EXPORT InvertFilter : public DImgThreadedFilter
27{
28 Q_OBJECT
29
30public:
31
32 explicit InvertFilter(QObject* const parent = nullptr);
33 explicit InvertFilter(DImg* const orgImage, QObject* const parent = nullptr);
34
35 // Constructor for slave mode: execute immediately in current thread with specified master filter
36 explicit InvertFilter(DImgThreadedFilter* const parentFilter, const DImg& orgImage, DImg& destImage,
37 int progressBegin = 0, int progressEnd = 100);
38
39 ~InvertFilter() override;
40
41
42
43 static QString FilterIdentifier()
44 {
45 return QLatin1String("digikam:InvertFilter");
46 }
47
48 static QString DisplayableName();
49
50 static QList<int> SupportedVersions()
51 {
52 return QList<int>() << 1;
53 }
54
55 static int CurrentVersion()
56 {
57 return 1;
58 }
59
60 void readParameters(const FilterAction& action) override;
61
62 QString filterIdentifier() const override
63 {
64 return FilterIdentifier();
65 }
66
67 FilterAction filterAction() override;
68
69private:
70
71 void filterImage() override;
72};
73
74} // namespace Digikam
Definition dimgthreadedfilter.h:31
Definition dimg.h:52
Definition filteraction.h:33
Definition invertfilter.h:27
QString filterIdentifier() const override
Definition invertfilter.h:62
static QList< int > SupportedVersions()
Definition invertfilter.h:50
static int CurrentVersion()
Definition invertfilter.h:55
static QString FilterIdentifier()
Definition invertfilter.h:43
Definition datefolderview.cpp:34