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

#include <LabU8ColorSpace.h>

+ Inheritance diagram for LabU8ColorSpaceFactory:

Public Member Functions

KoID colorDepthId () const override
 
KoID colorModelId () const override
 
KoColorSpacecreateColorSpace (const KoColorProfile *p) const override
 
QString defaultProfile () const override
 
QString id () const override
 
 LabU8ColorSpaceFactory ()
 
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 50 of file LabU8ColorSpace.h.

Constructor & Destructor Documentation

◆ LabU8ColorSpaceFactory()

LabU8ColorSpaceFactory::LabU8ColorSpaceFactory ( )
inline

Definition at line 53 of file LabU8ColorSpace.h.

53: LcmsColorSpaceFactory(TYPE_LABA_8, cmsSigLabData) {}
#define TYPE_LABA_8
LcmsColorSpaceFactory(cmsUInt32Number cmType, cmsColorSpaceSignature colorSpaceSignature)

Member Function Documentation

◆ colorDepthId()

KoID LabU8ColorSpaceFactory::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 75 of file LabU8ColorSpace.h.

76 {
78 }
const KoID Integer8BitsColorDepthID("U8", ki18n("8-bit integer/channel"))

References Integer8BitsColorDepthID.

◆ colorModelId()

KoID LabU8ColorSpaceFactory::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 70 of file LabU8ColorSpace.h.

71 {
72 return LABAColorModelID;
73 }
const KoID LABAColorModelID("LABA", ki18n("L*a*b*/Alpha"))

References LABAColorModelID.

◆ createColorSpace()

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

creates a color space using the given profile.

Implements KoColorSpaceFactory.

Definition at line 85 of file LabU8ColorSpace.h.

86 {
87 return new LabU8ColorSpace(name(), p->clone());
88 }
const Params2D p
QString name() const override

References name(), and p.

◆ defaultProfile()

QString LabU8ColorSpaceFactory::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 90 of file LabU8ColorSpace.h.

91 {
92 return "Lab identity built-in";
93 }

◆ id()

QString LabU8ColorSpaceFactory::id ( ) const
inlineoverridevirtual

Return the unchanging name of this color space

Implements KoColorSpaceFactory.

Definition at line 60 of file LabU8ColorSpace.h.

61 {
63 }
static QString colorSpaceId()

References LabU8ColorSpace::colorSpaceId().

◆ name()

QString LabU8ColorSpaceFactory::name ( ) const
inlineoverridevirtual

return the i18n'able description.

Implements KoColorSpaceFactory.

Definition at line 65 of file LabU8ColorSpace.h.

66 {
67 return QString("%1 (%2)").arg(LABAColorModelID.name()).arg(Integer8BitsColorDepthID.name());
68 }
QString name() const
Definition KoID.cpp:68

References Integer8BitsColorDepthID, LABAColorModelID, and KoID::name().

◆ referenceDepth()

int LabU8ColorSpaceFactory::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 80 of file LabU8ColorSpace.h.

81 {
82 return 8;
83 }

◆ userVisible()

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

Implements KoColorSpaceFactory.

Definition at line 55 of file LabU8ColorSpace.h.

56 {
57 return true;
58 }

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