digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2004-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 * SPDX-FileCopyrightText: 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QPolygon>
21#include <QString>
22
23// Local includes
24
25#include "digikam_globals.h"
26#include "digikam_export.h"
27#include "imagecurves.h"
28
29namespace Digikam
30{
31
32class FilterAction;
33
34class DIGIKAM_EXPORT CurvesContainer
35{
36
37public:
38
44 CurvesContainer() = default;
45 CurvesContainer(int type, bool sixteenBit);
46
50 void initialize();
51
58 bool isEmpty() const;
59
60 bool operator==(const CurvesContainer& other) const;
61
67 bool isStoredLosslessly() const;
68 void writeToFilterAction(FilterAction& action, const QString& prefix = QString()) const;
69 static CurvesContainer fromFilterAction(const FilterAction& action, const QString& prefix = QString());
70
71public:
72
77 int curvesType = ImageCurves::CURVE_SMOOTH;
78 QPolygon values[ColorChannels];
79
80 bool sixteenBit = false;
81};
82
83} // namespace Digikam
Definition curvescontainer.h:35
Definition filteraction.h:33
QStringView prefix
Definition itemviewutilities.cpp:586
Definition datefolderview.cpp:34
@ ColorChannels
Definition digikam_globals.h:152
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition searchtextbar.cpp:40