Krita Source Code Documentation
Loading...
Searching...
No Matches
CmykF32ColorSpaceFactory Class Reference

#include <CmykF32ColorSpace.h>

+ Inheritance diagram for CmykF32ColorSpaceFactory:

Public Member Functions

 CmykF32ColorSpaceFactory ()
 
KoID colorDepthId () const override
 
KoID colorModelId () const override
 
KoColorSpacecreateColorSpace (const KoColorProfile *p) const override
 
QString defaultProfile () const override
 
QString id () const override
 
bool isHdr () const override
 
QString name () const override
 
int referenceDepth () const override
 
bool userVisible () const override
 
- Public Member Functions inherited from LcmsColorSpaceFactory
QList< KoColorConversionTransformationFactory * > colorConversionLinks () const override
 
QString colorSpaceEngine () const override
 
KoColorProfilecreateColorProfile (const QByteArray &rawData) const override
 
int crossingCost () const override
 
bool isHdr () const override
 
 LcmsColorSpaceFactory (cmsUInt32Number cmType, cmsColorSpaceSignature colorSpaceSignature)
 
bool profileIsCompatible (const KoColorProfile *profile) const override
 
- Public Member Functions inherited from KoColorSpaceFactory
const KoColorProfilecolorProfile (const QByteArray &rawData, ProfileRegistrationInterface *registrationInterface) const
 
const KoColorSpacegrabColorSpace (const KoColorProfile *profile)
 
virtual ~KoColorSpaceFactory ()
 
- Public Member Functions inherited from Private
 Private (KisCanvas2 *c)
 

Additional Inherited Members

- Public Attributes inherited from KoColorSpaceFactory
QHash< QString, KoColorSpace * > availableColorspaces
 
QList< KoColorProfile * > colorprofiles
 
QMutex mutex
 
QHash< KoColorSpace *, QString > stackInformation
 
- Public Attributes inherited from Private
KisCanvas2canvas
 
int displayedFrame
 
int intendedFrame
 
- Protected Member Functions inherited from KoColorSpaceFactory
 KoColorSpaceFactory ()
 

Detailed Description

Definition at line 57 of file CmykF32ColorSpace.h.

Constructor & Destructor Documentation

◆ CmykF32ColorSpaceFactory()

CmykF32ColorSpaceFactory::CmykF32ColorSpaceFactory ( )
inline

Definition at line 61 of file CmykF32ColorSpace.h.

62 : LcmsColorSpaceFactory(TYPE_CMYKA_FLT, cmsSigCmykData)
63 {
64 }
#define TYPE_CMYKA_FLT
LcmsColorSpaceFactory(cmsUInt32Number cmType, cmsColorSpaceSignature colorSpaceSignature)

Member Function Documentation

◆ colorDepthId()

KoID CmykF32ColorSpaceFactory::colorDepthId ( ) const
inlineoverridevirtual
Returns
a string that identify the bit depth (for instance "U8" or "F16" ...)
See also
KoColorModelStandardIds.h

Implements KoColorSpaceFactory.

Definition at line 86 of file CmykF32ColorSpace.h.

87 {
89 }
const KoID Float32BitsColorDepthID("F32", ki18n("32-bit float/channel"))

References Float32BitsColorDepthID.

◆ colorModelId()

KoID CmykF32ColorSpaceFactory::colorModelId ( ) const
inlineoverridevirtual
Returns
a string that identify the color model (for instance "RGB" or "CMYK" ...)
See also
KoColorModelStandardIds.h

Implements KoColorSpaceFactory.

Definition at line 81 of file CmykF32ColorSpace.h.

82 {
83 return CMYKAColorModelID;
84 }
const KoID CMYKAColorModelID("CMYKA", ki18n("CMYK/Alpha"))

References CMYKAColorModelID.

◆ createColorSpace()

KoColorSpace * CmykF32ColorSpaceFactory::createColorSpace ( const KoColorProfile * ) const
inlineoverridevirtual

creates a color space using the given profile.

Implements KoColorSpaceFactory.

Definition at line 96 of file CmykF32ColorSpace.h.

97 {
98 return new CmykF32ColorSpace(name(), p->clone());
99 }
const Params2D p
QString name() const override

References name(), and p.

◆ defaultProfile()

QString CmykF32ColorSpaceFactory::defaultProfile ( ) const
inlineoverridevirtual

Returns the default icc profile for use with this colorspace. This may be ""

Returns
the default icc profile name

Implements KoColorSpaceFactory.

Definition at line 101 of file CmykF32ColorSpace.h.

102 {
103 return "Chemical proof";
104 }

◆ id()

QString CmykF32ColorSpaceFactory::id ( ) const
inlineoverridevirtual

Return the unchanging name of this color space

Implements KoColorSpaceFactory.

Definition at line 71 of file CmykF32ColorSpace.h.

72 {
74 }
static QString colorSpaceId()

References CmykF32ColorSpace::colorSpaceId().

◆ isHdr()

bool CmykF32ColorSpaceFactory::isHdr ( ) const
inlineoverridevirtual
Returns
true if the color space supports High-Dynamic Range.

Implements KoColorSpaceFactory.

Definition at line 106 of file CmykF32ColorSpace.h.

107 {
108 return true;
109 }

◆ name()

QString CmykF32ColorSpaceFactory::name ( ) const
inlineoverridevirtual

return the i18n'able description.

Implements KoColorSpaceFactory.

Definition at line 76 of file CmykF32ColorSpace.h.

77 {
78 return QString("%1 (%2)").arg(CMYKAColorModelID.name()).arg(Float32BitsColorDepthID.name());
79 }
QString name() const
Definition KoID.cpp:68

References CMYKAColorModelID, Float32BitsColorDepthID, and KoID::name().

◆ referenceDepth()

int CmykF32ColorSpaceFactory::referenceDepth ( ) const
inlineoverridevirtual
Returns
the reference depth, that is for a color space where all channels have the same depth, this is the depth of one channel, for a color space with different bit depth for each channel, it's usually the highest bit depth. This value is used by the Color Conversion System to check if a lost of bit depth during a color conversion is acceptable, for instance when converting from RGB32bit to XYZ16bit, it's acceptable to go through a conversion to RGB16bit, while it's not the case for RGB32bit to XYZ32bit.

Implements KoColorSpaceFactory.

Definition at line 91 of file CmykF32ColorSpace.h.

92 {
93 return 32;
94 }

◆ userVisible()

bool CmykF32ColorSpaceFactory::userVisible ( ) const
inlineoverridevirtual
Returns
true if the color space should be shown in a User Interface, or false otherwise.

Implements KoColorSpaceFactory.

Definition at line 66 of file CmykF32ColorSpace.h.

67 {
68 return true;
69 }

The documentation for this class was generated from the following file: