|
Krita Source Code Documentation
|
#include <IccColorProfile.h>
Inheritance diagram for IccColorProfile:Classes | |
| class | Container |
| class | Data |
| struct | Private |
Public Member Functions | |
| LcmsColorProfileContainer * | asLcms () const |
| KoColorProfile * | clone () const override |
| QString | colorModelID () const override |
| bool | compareTRC (TransferCharacteristics characteristics, float error) const override |
| void | delinearizeFloatValue (QVector< qreal > &Value) const override |
| void | delinearizeFloatValueFast (QVector< qreal > &Value) const override |
| QVector< qreal > | getColorantsxyY () const override |
| QVector< qreal > | getColorantsXYZ () const override |
| QVector< qreal > | getEstimatedTRC () const override |
| const QVector< KoChannelInfo::DoubleRange > & | getFloatUIMinMax (void) const |
| QVector< qreal > | getWhitePointxyY () const override |
| QVector< qreal > | getWhitePointXYZ () const override |
| bool | hasColorants () const override |
| bool | hasTRC () const override |
| IccColorProfile (const IccColorProfile &rhs) | |
| IccColorProfile (const QByteArray &rawData) | |
| IccColorProfile (const QString &fileName=QString()) | |
| IccColorProfile (const QVector< double > &colorants, const ColorPrimaries colorPrimariesType=PRIMARIES_UNSPECIFIED, const TransferCharacteristics transferFunction=TRC_LINEAR) | |
| bool | isLinear () const override |
| bool | isSuitableForDisplay () const override |
| bool | isSuitableForInput () const override |
| bool | isSuitableForOutput () const override |
| bool | isSuitableForPrinting () const override |
| bool | isSuitableForWorkspace () const override |
| void | linearizeFloatValue (QVector< qreal > &Value) const override |
| void | linearizeFloatValueFast (QVector< qreal > &Value) const override |
| bool | load () override |
| bool | operator== (const KoColorProfile &) const override |
| QByteArray | rawData () const override |
| virtual bool | save () |
| virtual bool | save (const QString &fileName) |
| bool | supportsAbsolute () const override |
| bool | supportsPerceptual () const override |
| bool | supportsRelative () const override |
| bool | supportsSaturation () const override |
| QString | type () const override |
| QByteArray | uniqueId () const override |
| bool | valid () const override |
| float | version () const override |
| ~IccColorProfile () override | |
Public Member Functions inherited from KoColorProfile | |
| QString | copyright () const |
| QString | fileName () const |
| virtual ColorPrimaries | getColorPrimaries () const |
| getColorPrimaries | |
| virtual TransferCharacteristics | getTransferCharacteristics () const |
| getTransferCharacteristics This function should be subclassed at some point so we can get the value from the lcms profile. | |
| QString | info () const |
| KoColorProfile (const KoColorProfile &profile) | |
| KoColorProfile (const QString &fileName=QString()) | |
| QString | manufacturer () const |
| QString | name () const |
| void | setFileName (const QString &filename) |
| virtual | ~KoColorProfile () |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Protected Member Functions | |
| bool | init () |
| void | setRawData (const QByteArray &rawData) |
Protected Member Functions inherited from KoColorProfile | |
| void | setCharacteristics (ColorPrimaries primaries, TransferCharacteristics curve) |
| setCharacteristics ideally, we'd read this from the icc profile curve, but that can be tricky, instead we'll set it on profile creation. | |
| void | setCopyright (const QString ©right) |
| void | setInfo (const QString &info) |
| void | setManufacturer (const QString &manufacturer) |
| void | setName (const QString &name) |
Private Attributes | |
| QScopedPointer< Private > | d |
Additional Inherited Members | |
Static Public Member Functions inherited from KoColorProfile | |
| static void | colorantsForType (ColorPrimaries primaries, QVector< double > &colorants) |
| colorantsForPrimaries fills a QVector<float> with the xy values of the whitepoint and red, green, blue colorants for a given predefined value. Will not change the vector when the primaries are set to 'undefined'. | |
| static QString | getColorPrimariesName (ColorPrimaries primaries) |
| getColorPrimariesName | |
| static QString | getTransferCharacteristicName (TransferCharacteristics curve) |
| getTransferCharacteristicName | |
Public Attributes inherited from KoColorProfile | |
| TransferCharacteristics | characteristics {TRC_UNSPECIFIED} |
| QString | copyright |
| QString | fileName |
| QString | info |
| QString | manufacturer |
| QString | name |
| int | primaries {-1} |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
This class contains an ICC color profile.
Definition at line 19 of file IccColorProfile.h.
|
explicit |
Definition at line 93 of file IccColorProfile.cpp.
|
explicit |
Definition at line 98 of file IccColorProfile.cpp.
References init(), rawData(), and setRawData().
|
explicit |
Definition at line 105 of file IccColorProfile.cpp.
References KoColorProfile::colorantsForType(), d, KoColorProfile::getColorPrimariesName(), KoColorProfile::getTransferCharacteristicName(), init(), KIS_ASSERT, LcmsColorProfileContainer::lcmsProfileToByteArray(), KoColorProfile::name, KoColorProfile::primaries, PRIMARIES_UNSPECIFIED, KoColorProfile::setCharacteristics(), KoColorProfile::setFileName(), setRawData(), LcmsColorProfileContainer::transferFunction(), and TRC_UNSPECIFIED.
| IccColorProfile::IccColorProfile | ( | const IccColorProfile & | rhs | ) |
Definition at line 178 of file IccColorProfile.cpp.
References d.
|
override |
Definition at line 185 of file IccColorProfile.cpp.
References d.
| LcmsColorProfileContainer * IccColorProfile::asLcms | ( | ) | const |
Definition at line 456 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Create a copy of this profile. Data that shall not change during the life time of the profile shouldn't be duplicated but shared, like for instance ICC data.
Data that shall be changed like a palette or hdr information such as exposure must be duplicated while cloning.
Implements KoColorProfile.
Definition at line 190 of file IccColorProfile.cpp.
References IccColorProfile().
|
overridevirtual |
Reimplemented from KoColorProfile.
Definition at line 220 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Comparing profile's TRC against the other with defined error threshold, returns true if profile TRC is matched.
Implements KoColorProfile.
Definition at line 378 of file IccColorProfile.cpp.
References KoColorProfile::characteristics, and d.
Delinearizes first 3 values of QVector, leaving other values unchanged. Returns the same QVector if it is not possible to delinearize. Effectively undoes LinearizeFloatValue.
Implements KoColorProfile.
Definition at line 391 of file IccColorProfile.cpp.
References d.
Implements KoColorProfile.
Definition at line 401 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 343 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 336 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 368 of file IccColorProfile.cpp.
References d.
| const QVector< KoChannelInfo::DoubleRange > & IccColorProfile::getFloatUIMinMax | ( | void | ) | const |
Returns the set of min/maxes for each channel in this profile. These (sometimes approximate) min and maxes are suitable for UI building. Furthermore, then only apply to the floating point uses of this profile, and not the integer variants.
Definition at line 471 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 359 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 350 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 317 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 324 of file IccColorProfile.cpp.
References d.
|
protected |
Definition at line 435 of file IccColorProfile.cpp.
References d, KoColorProfile::setCopyright(), KoColorProfile::setInfo(), KoColorProfile::setManufacturer(), and KoColorProfile::setName().
|
overridevirtual |
Implements KoColorProfile.
Definition at line 330 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 281 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 257 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 250 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 273 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 264 of file IccColorProfile.cpp.
References d.
Linearizes first 3 values of QVector, leaving other values unchanged. Returns the same QVector if it is not possible to linearize.
Implements KoColorProfile.
Definition at line 386 of file IccColorProfile.cpp.
References d.
More imprecise versions of the above(limited to 16bit, and can't delinearize above 1.0.) Use this for filters and images.
Implements KoColorProfile.
Definition at line 396 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Load the profile in memory.
Reimplemented from KoColorProfile.
Definition at line 416 of file IccColorProfile.cpp.
References KoColorProfile::fileName, init(), rawData(), and setRawData().
|
overridevirtual |
Implements KoColorProfile.
Definition at line 462 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Reimplemented from KoColorProfile.
Definition at line 195 of file IccColorProfile.cpp.
References d.
|
virtual |
Definition at line 430 of file IccColorProfile.cpp.
|
virtual |
Override this function to save the profile.
| fileName | destination |
Reimplemented from KoColorProfile.
Definition at line 61 of file KoColorProfile.cpp.
|
protected |
|
overridevirtual |
Implements KoColorProfile.
Definition at line 303 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 289 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 310 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 296 of file IccColorProfile.cpp.
References d.
|
inlineoverridevirtual |
Reimplemented from KoColorProfile.
Definition at line 116 of file IccColorProfile.h.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 407 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Implements KoColorProfile.
Definition at line 205 of file IccColorProfile.cpp.
References d.
|
overridevirtual |
Return version
Implements KoColorProfile.
Definition at line 212 of file IccColorProfile.cpp.
References d.
|
private |
Definition at line 138 of file IccColorProfile.h.