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
QColorVector Class Reference

#include <qcolormatrix_p.h>

+ Collaboration diagram for QColorVector:

Public Member Functions

 QColorVector ()=default
 
constexpr QColorVector (float x, float y, float z, float w=0.0f) noexcept
 
constexpr bool isNull () const noexcept
 
bool isValid () const noexcept
 
constexpr QColorVector operator* (float f) const
 
constexpr QColorVector operator+ (const QColorVector &v) const
 
constexpr QColorVector operator- (const QColorVector &v) const
 
void operator+= (const QColorVector &v)
 
QPointF toChromaticity () const
 
QColorVector xyzToLab () const
 
QColorVector labToXyz () const
 
 Q_DECLARE_EQUALITY_COMPARABLE (QColorVector)
 

Static Public Member Functions

static constexpr QColorVector fromXYChromaticity (QPointF chr)
 
static constexpr bool isValidChromaticity (const QPointF &chr)
 
static constexpr QPointF D50Chromaticity ()
 
static constexpr QPointF D65Chromaticity ()
 
static constexpr QColorVector D50 ()
 
static constexpr QColorVector D65 ()
 

Public Attributes

float x = 0.0f
 
float y = 0.0f
 
float z = 0.0f
 
float w = 0.0f
 

Friends

bool comparesEqual (const QColorVector &lhs, const QColorVector &rhs)
 

Detailed Description

Definition at line 27 of file qcolormatrix_p.h.

Constructor & Destructor Documentation

◆ QColorVector() [1/2]

QColorVector::QColorVector ( )
default

Referenced by labToXyz(), operator*(), operator+(), operator-(), and xyzToLab().

+ Here is the caller graph for this function:

◆ QColorVector() [2/2]

constexpr QColorVector::QColorVector ( float x,
float y,
float z,
float w = 0.0f )
inlineconstexprnoexcept

Definition at line 31 of file qcolormatrix_p.h.

Member Function Documentation

◆ D50()

static constexpr QColorVector QColorVector::D50 ( )
inlinestaticconstexpr

Definition at line 75 of file qcolormatrix_p.h.

References D50Chromaticity(), and fromXYChromaticity().

Referenced by QColorMatrix::chromaticAdaptation(), QIcc::isValidIccProfile(), labToXyz(), QColorSpacePrivate::setToXyzMatrix(), QIcc::toIccProfile(), and xyzToLab().

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

◆ D50Chromaticity()

static constexpr QPointF QColorVector::D50Chromaticity ( )
inlinestaticconstexpr

Definition at line 73 of file qcolormatrix_p.h.

Referenced by QColorSpacePrimaries::QColorSpacePrimaries(), and D50().

+ Here is the caller graph for this function:

◆ D65()

static constexpr QColorVector QColorVector::D65 ( )
inlinestaticconstexpr

Definition at line 76 of file qcolormatrix_p.h.

References D65Chromaticity(), and fromXYChromaticity().

+ Here is the call graph for this function:

◆ D65Chromaticity()

static constexpr QPointF QColorVector::D65Chromaticity ( )
inlinestaticconstexpr

Definition at line 74 of file qcolormatrix_p.h.

Referenced by QColorSpacePrimaries::QColorSpacePrimaries(), and D65().

+ Here is the caller graph for this function:

◆ fromXYChromaticity()

static constexpr QColorVector QColorVector::fromXYChromaticity ( QPointF chr)
inlinestaticconstexpr

Definition at line 32 of file qcolormatrix_p.h.

Referenced by QColorSpacePrivate::QColorSpacePrivate(), D50(), D65(), QColorSpace::setPrimaries(), QColorSpacePrivate::setToXyzMatrix(), QColorSpace::setWhitePoint(), and QColorSpacePrimaries::toXyzMatrix().

+ Here is the caller graph for this function:

◆ isNull()

constexpr bool QColorVector::isNull ( ) const
inlineconstexprnoexcept

Definition at line 39 of file qcolormatrix_p.h.

References w.

Referenced by toChromaticity().

+ Here is the caller graph for this function:

◆ isValid()

bool QColorVector::isValid ( ) const
inlinenoexcept

Definition at line 43 of file qcolormatrix_p.h.

Referenced by QIcc::parseGrayMatrix().

+ Here is the caller graph for this function:

◆ isValidChromaticity()

static constexpr bool QColorVector::isValidChromaticity ( const QPointF & chr)
inlinestaticconstexpr

Definition at line 48 of file qcolormatrix_p.h.

Referenced by QColorSpacePrimaries::areValid().

+ Here is the caller graph for this function:

◆ labToXyz()

QColorVector QColorVector::labToXyz ( ) const
inline

Definition at line 143 of file qcolormatrix_p.h.

References QColorVector(), and D50().

Referenced by QColorTransformPrivate::mapExtended().

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

◆ operator*()

constexpr QColorVector QColorVector::operator* ( float f) const
inlineconstexpr

Definition at line 59 of file qcolormatrix_p.h.

References QColorVector().

+ Here is the call graph for this function:

◆ operator+()

constexpr QColorVector QColorVector::operator+ ( const QColorVector & v) const
inlineconstexpr

Definition at line 60 of file qcolormatrix_p.h.

References QColorVector().

+ Here is the call graph for this function:

◆ operator+=()

void QColorVector::operator+= ( const QColorVector & v)
inline

Definition at line 62 of file qcolormatrix_p.h.

◆ operator-()

constexpr QColorVector QColorVector::operator- ( const QColorVector & v) const
inlineconstexpr

Definition at line 61 of file qcolormatrix_p.h.

References QColorVector().

+ Here is the call graph for this function:

◆ Q_DECLARE_EQUALITY_COMPARABLE()

QColorVector::Q_DECLARE_EQUALITY_COMPARABLE ( QColorVector )

◆ toChromaticity()

QPointF QColorVector::toChromaticity ( ) const
inline

Definition at line 64 of file qcolormatrix_p.h.

References isNull(), and z.

Referenced by QColorSpace::whitePoint().

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

◆ xyzToLab()

QColorVector QColorVector::xyzToLab ( ) const
inline

Definition at line 78 of file qcolormatrix_p.h.

References QColorVector(), D50(), and out.

Referenced by QColorTransformPrivate::mapExtended().

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

Friends And Related Symbol Documentation

◆ comparesEqual

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

Definition at line 194 of file qcolormatrix_p.h.

Member Data Documentation

◆ w

float QColorVector::w = 0.0f

Definition at line 37 of file qcolormatrix_p.h.

Referenced by isNull().

◆ x

◆ y

float QColorVector::y = 0.0f

Definition at line 35 of file qcolormatrix_p.h.

Referenced by QColorCLUT::apply(), and QIcc::parseGrayMatrix().

◆ z

float QColorVector::z = 0.0f

Definition at line 36 of file qcolormatrix_p.h.

Referenced by QColorCLUT::apply(), QIcc::parseGrayMatrix(), and toChromaticity().


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