Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorProfileStorage.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOCOLORPROFILESTORAGE_H
8#define KOCOLORPROFILESTORAGE_H
9
10#include <QScopedPointer>
12
13class QByteArray;
14class QString;
15class KoColorProfile;
17
39{
40public:
43
48 void addProfile(KoColorProfile* profile);
49
56 void removeProfile(KoColorProfile* profile);
57
61 bool containsProfile(const KoColorProfile *profile);
62
67 void addProfileAlias(const QString& name, const QString& to);
68
72 QString profileAlias(const QString& name) const;
73
81 const KoColorProfile * profileByName(const QString & name) const ;
82
83
91 const KoColorProfile *profileByUniqueId(const QByteArray &id) const;
92
114 ColorPrimaries colorantType,
115 TransferCharacteristics transferType,
116 double error = 0.00001);
117
118private:
119 struct Private;
120 const QScopedPointer<Private> d;
121};
122
123#endif // KOCOLORPROFILESTORAGE_H
ColorPrimaries
The colorPrimaries enum Enum of colorants, follows ITU H.273 for values 0 to 255, and has extra known...
TransferCharacteristics
The transferCharacteristics enum Enum of transfer characteristics, follows ITU H.273 for values 0 to ...
The KoColorProfileStorage class is a "composite subclass" of KoColorSpaceRegistry that ensures that t...
const KoColorProfile * profileByName(const QString &name) const
QList< const KoColorProfile * > profilesFor(const KoColorSpaceFactory *csf) const
QString profileAlias(const QString &name) const
void removeProfile(KoColorProfile *profile)
bool containsProfile(const KoColorProfile *profile)
containsProfile shows if a profile is registered in the storage
const KoColorProfile * profileByUniqueId(const QByteArray &id) const
const QScopedPointer< Private > d
void addProfileAlias(const QString &name, const QString &to)
void addProfile(KoColorProfile *profile)