Krita Source Code Documentation
Loading...
Searching...
No Matches
KoColorProfileQuery Struct Reference

The KoColorProfileQuery struct. More...

#include <KoColorProfileQuery.h>

Public Member Functions

bool isGrayscale () const
 
bool isRgb () const
 
bool isValid () const
 CICP-compatible enum value representing the transfer function.
 
 KoColorProfileQuery (ColorPrimaries primaries=PRIMARIES_UNSPECIFIED, TransferCharacteristics transfer=TRC_UNSPECIFIED)
 

Public Attributes

ColorPrimaries primaries
 Rgb Primaries of the profile. When empty, this is a query for a greyscale profile.
 
QList< KoColorimetryUtils::xyrgbColorants
 The desired white point of the profile.
 
TransferCharacteristics transfer
 CICP-compatible enum value representing the white point and primaries.
 
KoColorimetryUtils::xy whitePoint
 

Detailed Description

The KoColorProfileQuery struct.

This is a struct that represents the characteristics of a KoColorProfile for either search or generation.

Definition at line 19 of file KoColorProfileQuery.h.

Constructor & Destructor Documentation

◆ KoColorProfileQuery()

KoColorProfileQuery::KoColorProfileQuery ( ColorPrimaries primaries = PRIMARIES_UNSPECIFIED,
TransferCharacteristics transfer = TRC_UNSPECIFIED )
inline

Definition at line 20 of file KoColorProfileQuery.h.

23 {}
TransferCharacteristics transfer
CICP-compatible enum value representing the white point and primaries.
ColorPrimaries primaries
Rgb Primaries of the profile. When empty, this is a query for a greyscale profile.

Member Function Documentation

◆ isGrayscale()

bool KoColorProfileQuery::isGrayscale ( ) const
inline

Definition at line 35 of file KoColorProfileQuery.h.

35 {
37 && rgbColorants.isEmpty()
40 }
@ PRIMARIES_UNSPECIFIED
QList< KoColorimetryUtils::xy > rgbColorants
The desired white point of the profile.
KoColorimetryUtils::xy whitePoint

References primaries, PRIMARIES_UNSPECIFIED, rgbColorants, transfer, TRC_UNSPECIFIED, and whitePoint.

◆ isRgb()

bool KoColorProfileQuery::isRgb ( ) const
inline

◆ isValid()

bool KoColorProfileQuery::isValid ( ) const
inline

CICP-compatible enum value representing the transfer function.

Definition at line 31 of file KoColorProfileQuery.h.

31 {
32 return isGrayscale() || isRgb();
33 }

References isGrayscale(), and isRgb().

Member Data Documentation

◆ primaries

ColorPrimaries KoColorProfileQuery::primaries

Rgb Primaries of the profile. When empty, this is a query for a greyscale profile.

Definition at line 28 of file KoColorProfileQuery.h.

◆ rgbColorants

QList<KoColorimetryUtils::xy> KoColorProfileQuery::rgbColorants

The desired white point of the profile.

Definition at line 26 of file KoColorProfileQuery.h.

◆ transfer

TransferCharacteristics KoColorProfileQuery::transfer

CICP-compatible enum value representing the white point and primaries.

Definition at line 29 of file KoColorProfileQuery.h.

◆ whitePoint

KoColorimetryUtils::xy KoColorProfileQuery::whitePoint

Definition at line 25 of file KoColorProfileQuery.h.


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