Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QColorSpacePrimaries Class Reference

#include <qcolorspace_p.h>

+ Collaboration diagram for QColorSpacePrimaries:

Public Member Functions

 QColorSpacePrimaries ()=default
 
 QColorSpacePrimaries (QColorSpace::Primaries primaries)
 
 QColorSpacePrimaries (QPointF whitePoint, QPointF redPoint, QPointF greenPoint, QPointF bluePoint)
 
QColorMatrix toXyzMatrix () const
 
bool areValid () const
 

Public Attributes

QPointF whitePoint
 
QPointF redPoint
 
QPointF greenPoint
 
QPointF bluePoint
 

Detailed Description

Definition at line 31 of file qcolorspace_p.h.

Constructor & Destructor Documentation

◆ QColorSpacePrimaries() [1/3]

QColorSpacePrimaries::QColorSpacePrimaries ( )
default

◆ QColorSpacePrimaries() [2/3]

QColorSpacePrimaries::QColorSpacePrimaries ( QColorSpace::Primaries  primaries)

Definition at line 35 of file qcolorspace.cpp.

References QColorSpace::AdobeRgb, QColorVector::D50Chromaticity(), QColorVector::D65Chromaticity(), QColorSpace::DciP3D65, QColorSpace::ProPhotoRgb, and QColorSpace::SRgb.

+ Here is the call graph for this function:

◆ QColorSpacePrimaries() [3/3]

QColorSpacePrimaries::QColorSpacePrimaries ( QPointF  whitePoint,
QPointF  redPoint,
QPointF  greenPoint,
QPointF  bluePoint 
)
inline

Definition at line 36 of file qcolorspace_p.h.

Member Function Documentation

◆ areValid()

bool QColorSpacePrimaries::areValid ( ) const

Definition at line 67 of file qcolorspace.cpp.

References bluePoint, greenPoint, QColorVector::isValidChromaticity(), redPoint, and whitePoint.

Referenced by QIcc::fromIccProfile(), and QPngHandlerPrivate::readPngHeader().

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

◆ toXyzMatrix()

QColorMatrix QColorSpacePrimaries::toXyzMatrix ( ) const

Definition at line 80 of file qcolorspace.cpp.

References bluePoint, QColorVector::D50(), QColorMatrix::fromScale(), greenPoint, QColorMatrix::inverted(), QColorMatrix::map(), QColorMatrix::r, redPoint, whitePoint, QColorVector::x, QColorVector::y, and QColorVector::z.

Referenced by QIcc::fromIccProfile(), and QColorSpacePrivate::setToXyzMatrix().

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

Member Data Documentation

◆ bluePoint

QPointF QColorSpacePrimaries::bluePoint

Definition at line 52 of file qcolorspace_p.h.

Referenced by areValid(), QPngHandlerPrivate::readPngHeader(), and toXyzMatrix().

◆ greenPoint

QPointF QColorSpacePrimaries::greenPoint

Definition at line 51 of file qcolorspace_p.h.

Referenced by areValid(), QPngHandlerPrivate::readPngHeader(), and toXyzMatrix().

◆ redPoint

QPointF QColorSpacePrimaries::redPoint

Definition at line 50 of file qcolorspace_p.h.

Referenced by areValid(), QPngHandlerPrivate::readPngHeader(), and toXyzMatrix().

◆ whitePoint


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