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

#include <GrayF16ColorSpace.h>

+ Inheritance diagram for GrayF16ColorSpaceFactory:

Public Member Functions

KoID colorDepthId () const override
 
KoID colorModelId () const override
 
KoColorSpacecreateColorSpace (const KoColorProfile *p) const override
 
QString defaultProfile () const override
 
 GrayF16ColorSpaceFactory ()
 
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 59 of file GrayF16ColorSpace.h.

Constructor & Destructor Documentation

◆ GrayF16ColorSpaceFactory()

GrayF16ColorSpaceFactory::GrayF16ColorSpaceFactory ( )
inline

Definition at line 62 of file GrayF16ColorSpace.h.

64 {
65 }
#define TYPE_GRAYA_HALF_FLT
LcmsColorSpaceFactory(cmsUInt32Number cmType, cmsColorSpaceSignature colorSpaceSignature)

Member Function Documentation

◆ colorDepthId()

KoID GrayF16ColorSpaceFactory::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 82 of file GrayF16ColorSpace.h.

83 {
85 }
const KoID Float16BitsColorDepthID("F16", ki18n("16-bit float/channel"))

References Float16BitsColorDepthID.

◆ colorModelId()

KoID GrayF16ColorSpaceFactory::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 77 of file GrayF16ColorSpace.h.

78 {
79 return GrayAColorModelID;
80 }
const KoID GrayAColorModelID("GRAYA", ki18n("Grayscale/Alpha"))

References GrayAColorModelID.

◆ createColorSpace()

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

creates a color space using the given profile.

Implements KoColorSpaceFactory.

Definition at line 97 of file GrayF16ColorSpace.h.

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

References name(), and p.

◆ defaultProfile()

QString GrayF16ColorSpaceFactory::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 102 of file GrayF16ColorSpace.h.

103 {
104 return "Gray-D50-elle-V2-g10.icc";
105 }

◆ id()

QString GrayF16ColorSpaceFactory::id ( ) const
inlineoverridevirtual

Return the unchanging name of this color space

Implements KoColorSpaceFactory.

Definition at line 67 of file GrayF16ColorSpace.h.

68 {
70 }
static QString colorSpaceId()

References GrayF16ColorSpace::colorSpaceId().

◆ isHdr()

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

Implements KoColorSpaceFactory.

Definition at line 107 of file GrayF16ColorSpace.h.

108 {
109 return true;
110 }

◆ name()

QString GrayF16ColorSpaceFactory::name ( ) const
inlineoverridevirtual

return the i18n'able description.

Implements KoColorSpaceFactory.

Definition at line 72 of file GrayF16ColorSpace.h.

73 {
74 return QString("%1 (%2)").arg(GrayAColorModelID.name()).arg(Float16BitsColorDepthID.name());
75 }
QString name() const
Definition KoID.cpp:68

References Float16BitsColorDepthID, GrayAColorModelID, and KoID::name().

◆ referenceDepth()

int GrayF16ColorSpaceFactory::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 87 of file GrayF16ColorSpace.h.

88 {
89 return 16;
90 }

◆ userVisible()

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

Implements KoColorSpaceFactory.

Definition at line 92 of file GrayF16ColorSpace.h.

93 {
94 return true;
95 }

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