Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorSpaceEngine.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2008 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef _KO_COLOR_SPACE_ENGINE_H_
8#define _KO_COLOR_SPACE_ENGINE_H_
9
11#include <KoGenericRegistry.h>
13
14class KoColorProfile;
15
30{
31public:
32 KoColorSpaceEngine(const QString& id, const QString& name);
33 ~KoColorSpaceEngine() override;
34 const QString& id() const;
35 const QString& name() const;
36 virtual const KoColorProfile* addProfile(const QString &filename) = 0;
37 virtual const KoColorProfile* addProfile(const QByteArray &data) = 0;
48 virtual const KoColorProfile* getProfile(const QVector<double> &colorants, ColorPrimaries colorPrimaries, TransferCharacteristics transferFunction) = 0;
49 virtual void removeProfile(const QString &filename) = 0;
50
54 virtual bool supportsColorSpace(const QString& colorModelId, const QString& colorDepthId, const KoColorProfile *profile) const;
55
56private:
57 struct Private;
58 Private* const d;
59};
60
61class KRITAPIGMENT_EXPORT KoColorSpaceEngineRegistry : public KoGenericRegistry< KoColorSpaceEngine* >
62{
63public:
67};
68
69#endif
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 ...
PythonPluginManager * instance
virtual const KoColorProfile * getProfile(const QVector< double > &colorants, ColorPrimaries colorPrimaries, TransferCharacteristics transferFunction)=0
getProfile This tries to generate a profile with the given characteristics and add it to the registry...
virtual void removeProfile(const QString &filename)=0
const QString & name() const
const QString & id() const
virtual const KoColorProfile * addProfile(const QString &filename)=0
virtual const KoColorProfile * addProfile(const QByteArray &data)=0