Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QColorMatrix Class Reference

#include <qcolormatrix_p.h>

+ Collaboration diagram for QColorMatrix:

Public Member Functions

constexpr bool isNull () const
 
constexpr float determinant () const
 
bool isValid () const
 
bool isIdentity () const noexcept
 
QColorMatrix inverted () const
 
QColorVector map (const QColorVector &c) const
 
QColorMatrix transposed () const
 
 Q_DECLARE_EQUALITY_COMPARABLE (QColorMatrix)
 

Static Public Member Functions

static QColorMatrix identity ()
 
static QColorMatrix fromScale (QColorVector v)
 
static QColorMatrix chromaticAdaptation (const QColorVector &whitePoint)
 
static QColorMatrix toXyzFromSRgb ()
 
static QColorMatrix toXyzFromAdobeRgb ()
 
static QColorMatrix toXyzFromDciP3D65 ()
 
static QColorMatrix toXyzFromProPhotoRgb ()
 

Public Attributes

QColorVector r
 
QColorVector g
 
QColorVector b
 

Friends

constexpr QColorMatrix operator* (const QColorMatrix &a, const QColorMatrix &o)
 
bool comparesEqual (const QColorMatrix &lhs, const QColorMatrix &rhs)
 

Detailed Description

Definition at line 204 of file qcolormatrix_p.h.

Member Function Documentation

◆ chromaticAdaptation()

static QColorMatrix QColorMatrix::chromaticAdaptation ( const QColorVector & whitePoint)
inlinestatic

Definition at line 288 of file qcolormatrix_p.h.

References QColorVector::D50(), and identity().

Referenced by QColorSpacePrivate::QColorSpacePrivate(), QColorSpacePrivate::QColorSpacePrivate(), QColorSpacePrivate::QColorSpacePrivate(), QColorSpacePrivate::QColorSpacePrivate(), QColorSpacePrivate::QColorSpacePrivate(), QIcc::fromIccProfile(), QColorSpace::setPrimaries(), QColorSpacePrivate::setToXyzMatrix(), QColorSpace::setWhitePoint(), QIcc::toIccProfile(), and QColorSpacePrivate::transformationToXYZ().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ determinant()

constexpr float QColorMatrix::determinant ( ) const
inlineconstexpr

Definition at line 216 of file qcolormatrix_p.h.

Referenced by inverted(), and isValid().

+ Here is the caller graph for this function:

◆ fromScale()

static QColorMatrix QColorMatrix::fromScale ( QColorVector v)
inlinestatic

Definition at line 282 of file qcolormatrix_p.h.

Referenced by QColorSpace::setWhitePoint(), and QColorSpacePrimaries::toXyzMatrix().

+ Here is the caller graph for this function:

◆ identity()

static QColorMatrix QColorMatrix::identity ( )
inlinestatic

Definition at line 278 of file qcolormatrix_p.h.

Referenced by chromaticAdaptation(), isIdentity(), QColorSpacePrivate::transformationToColorSpace(), and QColorSpacePrivate::transformationToXYZ().

+ Here is the caller graph for this function:

◆ inverted()

QColorMatrix QColorMatrix::inverted ( ) const
inline

Definition at line 232 of file qcolormatrix_p.h.

References determinant(), r, and QColorVector::x.

Referenced by QColorSpace::setWhitePoint(), and QColorSpacePrimaries::toXyzMatrix().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isIdentity()

bool QColorMatrix::isIdentity ( ) const
inlinenoexcept

Definition at line 227 of file qcolormatrix_p.h.

References identity().

Referenced by QColorTransformPrivate::isIdentity().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isNull()

constexpr bool QColorMatrix::isNull ( ) const
inlineconstexpr

Definition at line 212 of file qcolormatrix_p.h.

◆ isValid()

bool QColorMatrix::isValid ( ) const
inline

Definition at line 222 of file qcolormatrix_p.h.

References determinant().

Referenced by QColorTransformPrivate::applyGray(), QColorTransformPrivate::applyReturnGray(), and QColorSpacePrivate::isValid().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ map()

QColorVector QColorMatrix::map ( const QColorVector & c) const
inline

Definition at line 265 of file qcolormatrix_p.h.

References QColorVector::x.

Referenced by applyMatrix(), QColorTransformPrivate::map(), QColorTransformPrivate::mapExtended(), QColorSpacePrimaries::toXyzMatrix(), and visitElement().

+ Here is the caller graph for this function:

◆ Q_DECLARE_EQUALITY_COMPARABLE()

QColorMatrix::Q_DECLARE_EQUALITY_COMPARABLE ( QColorMatrix )

◆ toXyzFromAdobeRgb()

static QColorMatrix QColorMatrix::toXyzFromAdobeRgb ( )
inlinestatic

Definition at line 321 of file qcolormatrix_p.h.

Referenced by QIcc::parseRgbMatrix().

+ Here is the caller graph for this function:

◆ toXyzFromDciP3D65()

static QColorMatrix QColorMatrix::toXyzFromDciP3D65 ( )
inlinestatic

Definition at line 327 of file qcolormatrix_p.h.

Referenced by QIcc::parseRgbMatrix().

+ Here is the caller graph for this function:

◆ toXyzFromProPhotoRgb()

static QColorMatrix QColorMatrix::toXyzFromProPhotoRgb ( )
inlinestatic

Definition at line 333 of file qcolormatrix_p.h.

Referenced by QIcc::parseRgbMatrix().

+ Here is the caller graph for this function:

◆ toXyzFromSRgb()

static QColorMatrix QColorMatrix::toXyzFromSRgb ( )
inlinestatic

Definition at line 315 of file qcolormatrix_p.h.

Referenced by QIcc::parseRgbMatrix().

+ Here is the caller graph for this function:

◆ transposed()

QColorMatrix QColorMatrix::transposed ( ) const
inline

Definition at line 271 of file qcolormatrix_p.h.

Friends And Related Symbol Documentation

◆ comparesEqual

bool comparesEqual ( const QColorMatrix & lhs,
const QColorMatrix & rhs )
friend

Definition at line 343 of file qcolormatrix_p.h.

◆ operator*

constexpr QColorMatrix operator* ( const QColorMatrix & a,
const QColorMatrix & o )
friend

Definition at line 248 of file qcolormatrix_p.h.

Member Data Documentation

◆ b

QColorVector QColorMatrix::b

Definition at line 210 of file qcolormatrix_p.h.

Referenced by applyMatrix().

◆ g

QColorVector QColorMatrix::g

Definition at line 209 of file qcolormatrix_p.h.

Referenced by applyMatrix().

◆ r

QColorVector QColorMatrix::r

Definition at line 208 of file qcolormatrix_p.h.

Referenced by applyMatrix(), inverted(), QIcc::parseChad(), and QIcc::parseLutData().


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