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;
16
31{
32public:
33 KoColorSpaceEngine(const QString& id, const QString& name);
34 ~KoColorSpaceEngine() override;
35 const QString& id() const;
36 const QString& name() const;
37 virtual const KoColorProfile* addProfile(const QString &filename) = 0;
38 virtual const KoColorProfile* addProfile(const QByteArray &data) = 0;
45 virtual const KoColorProfile* getProfile(const KoColorProfileQuery &query) = 0;
46 virtual void removeProfile(const QString &filename) = 0;
47
51 virtual bool supportsColorSpace(const QString& colorModelId, const QString& colorDepthId, const KoColorProfile *profile) const;
52
53private:
54 struct Private;
55 Private* const d;
56};
57
58class KRITAPIGMENT_EXPORT KoColorSpaceEngineRegistry : public KoGenericRegistry< KoColorSpaceEngine* >
59{
60public:
64};
65
66#endif
PythonPluginManager * instance
The KoColorProfileQuery struct.
virtual void removeProfile(const QString &filename)=0
const QString & name() const
const QString & id() const
virtual const KoColorProfile * getProfile(const KoColorProfileQuery &query)=0
getProfile This tries to generate a profile with the given characteristics and add it to the registry...
virtual const KoColorProfile * addProfile(const QString &filename)=0
virtual const KoColorProfile * addProfile(const QByteArray &data)=0