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

#include <KoSimpleColorSpaceEngine.h>

+ Inheritance diagram for KoSimpleColorSpaceEngine:

Public Member Functions

const KoColorProfileaddProfile (const QByteArray &data) override
 
const KoColorProfileaddProfile (const QString &profile) override
 
KoColorConversionTransformationcreateColorTransformation (const KoColorSpace *srcColorSpace, const KoColorSpace *dstColorSpace, KoColorConversionTransformation::Intent renderingIntent, KoColorConversionTransformation::ConversionFlags conversionFlags) const override
 
const KoColorProfilegetProfile (const QVector< double > &colorants, ColorPrimaries colorPrimaries, TransferCharacteristics transferFunction) override
 getProfile This tries to generate a profile with the given characteristics and add it to the registry.
 
 KoSimpleColorSpaceEngine ()
 
void removeProfile (const QString &profile) override
 
 ~KoSimpleColorSpaceEngine () override
 
- Public Member Functions inherited from KoColorSpaceEngine
const QString & id () const
 
 KoColorSpaceEngine (const QString &id, const QString &name)
 
const QString & name () const
 
virtual bool supportsColorSpace (const QString &colorModelId, const QString &colorDepthId, const KoColorProfile *profile) const
 
 ~KoColorSpaceEngine () override
 
- Public Member Functions inherited from Private
 Private (KisCanvas2 *c)
 
- Public Member Functions inherited from KoColorConversionTransformationAbstractFactory
virtual KoColorProofingConversionTransformationcreateColorProofingTransformation (const KoColorSpace *srcColorSpace, const KoColorSpace *dstColorSpace, const KoColorSpace *proofingSpace, KoColorProofingConversionTransformation::Intent renderingIntent, KoColorProofingConversionTransformation::Intent proofingIntent, bool bpcFirstTransform, quint8 *gamutWarning, KoColorConversionTransformation::ConversionFlags displayConversionFlags) const
 
 KoColorConversionTransformationAbstractFactory ()
 
virtual ~KoColorConversionTransformationAbstractFactory ()
 

Additional Inherited Members

- Public Attributes inherited from KoColorSpaceEngine
QString id
 
QString name
 
- Public Attributes inherited from Private
KisCanvas2canvas
 
int displayedFrame
 
int intendedFrame
 

Detailed Description

Definition at line 14 of file KoSimpleColorSpaceEngine.h.

Constructor & Destructor Documentation

◆ KoSimpleColorSpaceEngine()

KoSimpleColorSpaceEngine::KoSimpleColorSpaceEngine ( )

Definition at line 57 of file KoSimpleColorSpaceEngine.cpp.

58 : KoColorSpaceEngine("simple", i18n("Simple Color Conversion Engine"))
59{
60}
KoColorSpaceEngine(const QString &id, const QString &name)

◆ ~KoSimpleColorSpaceEngine()

KoSimpleColorSpaceEngine::~KoSimpleColorSpaceEngine ( )
override

Definition at line 62 of file KoSimpleColorSpaceEngine.cpp.

63{
64}

Member Function Documentation

◆ addProfile() [1/2]

const KoColorProfile * KoSimpleColorSpaceEngine::addProfile ( const QByteArray & data)
inlineoverridevirtual

Implements KoColorSpaceEngine.

Definition at line 24 of file KoSimpleColorSpaceEngine.h.

24{ Q_UNUSED(data); return 0; }

◆ addProfile() [2/2]

const KoColorProfile * KoSimpleColorSpaceEngine::addProfile ( const QString & profile)
inlineoverridevirtual

Implements KoColorSpaceEngine.

Definition at line 23 of file KoSimpleColorSpaceEngine.h.

23{ Q_UNUSED(profile); return 0; }

◆ createColorTransformation()

KoColorConversionTransformation * KoSimpleColorSpaceEngine::createColorTransformation ( const KoColorSpace * srcColorSpace,
const KoColorSpace * dstColorSpace,
KoColorConversionTransformation::Intent renderingIntent,
KoColorConversionTransformation::ConversionFlags conversionFlags ) const
overridevirtual

Creates a color transformation between the source color space and the destination color space.

Parameters
srcColorSpacesource color space
dstColorSpacedestination color space
renderingIntentrendering intent
conversionFlagsconversion flags

Implements KoColorConversionTransformationAbstractFactory.

Definition at line 66 of file KoSimpleColorSpaceEngine.cpp.

70{
71 Q_UNUSED(renderingIntent);
72 Q_UNUSED(conversionFlags);
73 return new KoSimpleColorConversionTransformation(srcColorSpace, dstColorSpace);
74}

◆ getProfile()

const KoColorProfile * KoSimpleColorSpaceEngine::getProfile ( const QVector< double > & colorants,
ColorPrimaries colorPrimaries,
TransferCharacteristics transferFunction )
inlineoverridevirtual

getProfile This tries to generate a profile with the given characteristics and add it to the registry.

Parameters
colorantsa double of xy (for xyY) values, this expects the first two as the white point, then the red, green and blue. Will only be used if primaries is unspecified. If there's only a whitepoint, a grayscale profile will be returned.
colorPrimariesthe color primaries type as defined in KoColorProfile.
transferFunctionthe transfer function, as defined in KoColorProfile.
Returns
a profile that matches these characteristics.

Implements KoColorSpaceEngine.

Definition at line 27 of file KoSimpleColorSpaceEngine.h.

27 {
28 Q_UNUSED(colorants);
29 Q_UNUSED(colorPrimaries);
30 Q_UNUSED(transferFunction);
31 return nullptr;
32 }

◆ removeProfile()

void KoSimpleColorSpaceEngine::removeProfile ( const QString & profile)
inlineoverridevirtual

Implements KoColorSpaceEngine.

Definition at line 25 of file KoSimpleColorSpaceEngine.h.

25{ Q_UNUSED(profile); }

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