digiKam
curvescontainer.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 : 2004-12-01
7  * Description : image curves manipulation methods.
8  *
9  * Copyright (C) 2004-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_CURVES_CONTAINER_H
26 #define DIGIKAM_CURVES_CONTAINER_H
27 
28 // Qt includes
29 
30 #include <QPolygon>
31 #include <QString>
32 
33 // Local includes
34 
35 #include "digikam_globals.h"
36 #include "digikam_export.h"
37 
38 namespace Digikam
39 {
40 
41 class FilterAction;
42 
43 class DIGIKAM_EXPORT CurvesContainer
44 {
45 
46 public:
47 
54  CurvesContainer(int type, bool sixteenBit);
55 
59  void initialize();
60 
67  bool isEmpty() const;
68 
69  bool operator==(const CurvesContainer& other) const;
70 
76  bool isStoredLosslessly() const;
77  void writeToFilterAction(FilterAction& action, const QString& prefix = QString()) const;
78  static CurvesContainer fromFilterAction(const FilterAction& action, const QString& prefix = QString());
79 
80 public:
81 
87  QPolygon values[ColorChannels];
88 
89  bool sixteenBit;
90 };
91 
92 } // namespace Digikam
93 
94 #endif // DIGIKAM_CURVES_CONTAINER_H
Definition: curvescontainer.h:44
int curvesType
Definition: curvescontainer.h:86
bool sixteenBit
Definition: curvescontainer.h:89
Definition: filteraction.h:43
QStringView prefix
Definition: itemviewutilities.cpp:593
Definition: datefolderview.cpp:43
@ ColorChannels
Definition: digikam_globals.h:165
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49