|
Krita Source Code Documentation
|
#include <KoColorSpaceFactory.h>
Inheritance diagram for KoColorSpaceFactory:Classes | |
| struct | ProfileRegistrationInterface |
Public Types | |
| using | CustomProfileNameAlias = QHash<QString, QString> |
Public Member Functions | |
| virtual QList< KoColorConversionTransformationFactory * > | colorConversionLinks () const =0 |
| virtual QList< KoColorConversionTransformationFactory * > | colorConversionLinksFromProfile (const KoColorProfile *profile) const |
| colorConversionLinksFromProfile Sometimes, we need to generate special color conversion links based on the properties of the profile. The Perceptual Quantizer profiles are an example of this. This function is called inside the color conversion system. | |
| virtual KoID | colorDepthId () const =0 |
| virtual KoID | colorModelId () const =0 |
| const KoColorProfile * | colorProfile (const QByteArray &rawData, ProfileRegistrationInterface *registrationInterface, const CustomProfileNameAlias &customProfileNameAlias) const |
| virtual QString | colorSpaceEngine () const =0 |
| virtual int | crossingCost () const =0 |
| virtual QString | defaultProfile () const =0 |
| const KoColorSpace * | grabColorSpace (const KoColorProfile *profile) |
| virtual QString | id () const =0 |
| virtual bool | isHdr () const =0 |
| virtual QString | name () const =0 |
| virtual bool | profileIsCompatible (const KoColorProfile *profile) const =0 |
| virtual int | referenceDepth () const =0 |
| virtual bool | userVisible () const =0 |
| virtual | ~KoColorSpaceFactory () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Public Attributes | |
| QHash< QString, KoColorSpace * > | availableColorspaces |
| QList< KoColorProfile * > | colorprofiles |
| QMutex | mutex |
| QHash< KoColorSpace *, QString > | stackInformation |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Protected Member Functions | |
| virtual KoColorProfile * | createColorProfile (const QByteArray &rawData) const =0 |
| virtual KoColorSpace * | createColorSpace (const KoColorProfile *) const =0 |
| KoColorSpaceFactory () | |
Private Attributes | |
| Private *const | d |
This class is used to create color spaces.
Definition at line 20 of file KoColorSpaceFactory.cpp.
| using KoColorSpaceFactory::CustomProfileNameAlias = QHash<QString, QString> |
Create a color profile from a memory array, if possible, otherwise return 0. If there is an existing profile with the same name, it will be used instead, and the binary data from rawData will be ignored
This will call the descendant's createColorProfile()
Definition at line 115 of file KoColorSpaceFactory.h.
|
protected |
Definition at line 29 of file KoColorSpaceFactory.cpp.
|
virtual |
Definition at line 33 of file KoColorSpaceFactory.cpp.
References d, errorPigment, KoColorSpaceRegistry::instance(), and KoColorSpaceRegistry::removeProfile().
|
pure virtual |
Implemented in KoAlphaColorSpaceFactoryImpl< _CSTrait >, KoSimpleColorSpaceFactory, and LcmsColorSpaceFactory.
|
inlinevirtual |
colorConversionLinksFromProfile Sometimes, we need to generate special color conversion links based on the properties of the profile. The Perceptual Quantizer profiles are an example of this. This function is called inside the color conversion system.
| profile | – the profile for which to create the links for. |
Reimplemented in RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, and RgbU8ColorSpaceFactory.
Definition at line 132 of file KoColorSpaceFactory.h.
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
| const KoColorProfile * KoColorSpaceFactory::colorProfile | ( | const QByteArray & | rawData, |
| ProfileRegistrationInterface * | registrationInterface, | ||
| const CustomProfileNameAlias & | customProfileNameAlias ) const |
Definition at line 55 of file KoColorSpaceFactory.cpp.
References colorProfile(), createColorProfile(), d, KoColorProfile::name, KoColorSpaceFactory::ProfileRegistrationInterface::profileByName(), KoColorSpaceFactory::ProfileRegistrationInterface::registerNewProfile(), and KoColorProfile::valid().
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, and LcmsColorSpaceFactory.
|
protectedpure virtual |
Implemented in KoSimpleColorSpaceFactory, and LcmsColorSpaceFactory.
|
protectedpure virtual |
creates a color space using the given profile.
Implemented in KoAlphaColorSpaceFactoryImpl< _CSTrait >, KoLabColorSpaceFactory, KoRgbU16ColorSpaceFactory, KoRgbU8ColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, and LcmsColorSpaceFactory.
|
pure virtual |
Returns the default icc profile for use with this colorspace. This may be ""
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
| const KoColorSpace * KoColorSpaceFactory::grabColorSpace | ( | const KoColorProfile * | profile | ) |
Create or reuse the existing colorspace for the given profile.
This will call the descendant's createColorSpace
Definition at line 70 of file KoColorSpaceFactory.cpp.
References createColorSpace(), d, KIS_ASSERT_X, and KoColorProfile::name.
|
pure virtual |
Return the unchanging name of this color space
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, LabF32ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, YCbCrF32ColorSpaceFactory, and LcmsColorSpaceFactory.
|
pure virtual |
return the i18n'able description.
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
|
pure virtual |
| profile | a pointer to a color profile |
Implemented in KoSimpleColorSpaceFactory, and LcmsColorSpaceFactory.
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
|
pure virtual |
Implemented in KoSimpleColorSpaceFactory, CmykF32ColorSpaceFactory, CmykU16ColorSpaceFactory, CmykU8ColorSpaceFactory, GrayF16ColorSpaceFactory, GrayF32ColorSpaceFactory, GrayAU16ColorSpaceFactory, GrayAU8ColorSpaceFactory, LabF32ColorSpaceFactory, LabU16ColorSpaceFactory, LabU8ColorSpaceFactory, RgbF16ColorSpaceFactory, RgbF32ColorSpaceFactory, RgbU16ColorSpaceFactory, RgbU8ColorSpaceFactory, XyzF16ColorSpaceFactory, XyzF32ColorSpaceFactory, XyzU16ColorSpaceFactory, XyzU8ColorSpaceFactory, YCbCrF32ColorSpaceFactory, YCbCrU16ColorSpaceFactory, and YCbCrU8ColorSpaceFactory.
| QHash<QString, KoColorSpace* > KoColorSpaceFactory::availableColorspaces |
Definition at line 22 of file KoColorSpaceFactory.cpp.
| QList<KoColorProfile*> KoColorSpaceFactory::colorprofiles |
Definition at line 21 of file KoColorSpaceFactory.cpp.
|
private |
Definition at line 145 of file KoColorSpaceFactory.h.
| QMutex KoColorSpaceFactory::mutex |
Definition at line 23 of file KoColorSpaceFactory.cpp.
| QHash<KoColorSpace*, QString> KoColorSpaceFactory::stackInformation |
Definition at line 25 of file KoColorSpaceFactory.cpp.