Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QColorTransferFunction Class Reference

#include <qcolortransferfunction_p.h>

Collaboration diagram for QColorTransferFunction:

Public Types

enum class  Hint : quint32 {
  NoHint = 0 , Calculated = 1 , IsGamma = 2 , IsIdentity = 4 ,
  IsSRgb = 8
}

Public Member Functions

 QColorTransferFunction () noexcept
 QColorTransferFunction (float a, float b, float c, float d, float e, float f, float g) noexcept
bool isGamma () const
bool isIdentity () const
bool isSRgb () const
float apply (float x) const
QColorTransferFunction inverted () const
bool matches (const QColorTransferFunction &o) const
 Q_DECLARE_FLAGS (Hints, Hint)

Static Public Member Functions

static QColorTransferFunction fromGamma (float gamma)
static QColorTransferFunction fromSRgb ()
static QColorTransferFunction fromProPhotoRgb ()
static QColorTransferFunction fromBt2020 ()

Public Attributes

float m_a
float m_b
float m_c
float m_d
float m_e
float m_f
float m_g

Friends

bool operator== (const QColorTransferFunction &f1, const QColorTransferFunction &f2)
bool operator!= (const QColorTransferFunction &f1, const QColorTransferFunction &f2)

Detailed Description

Definition at line 26 of file qcolortransferfunction_p.h.

Member Enumeration Documentation

◆ Hint

Enumerator
NoHint 
Calculated 
IsGamma 
IsIdentity 
IsSRgb 

Definition at line 141 of file qcolortransferfunction_p.h.

Constructor & Destructor Documentation

◆ QColorTransferFunction() [1/2]

QColorTransferFunction::QColorTransferFunction ( )
inlinenoexcept

Definition at line 29 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), m_a, m_b, m_c, m_d, m_e, m_f, and m_g.

Referenced by QColorTransferFunction(), QIcc::parseTRC(), and QIcc::parseTRCs().

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

◆ QColorTransferFunction() [2/2]

QColorTransferFunction::QColorTransferFunction ( float a,
float b,
float c,
float d,
float e,
float f,
float g )
inlinenoexcept

Definition at line 34 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), m_a, m_b, m_c, m_d, m_e, m_f, and m_g.

Referenced by QColorTransferFunction(), inverted(), and QIcc::parseTRC().

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

Member Function Documentation

◆ apply()

float QColorTransferFunction::apply ( float x) const
inline

Definition at line 54 of file qcolortransferfunction_p.h.

References m_a, m_b, m_c, m_d, m_e, m_f, and m_g.

◆ fromBt2020()

QColorTransferFunction QColorTransferFunction::fromBt2020 ( )
inlinestatic

Definition at line 118 of file qcolortransferfunction_p.h.

References Calculated.

◆ fromGamma()

QColorTransferFunction QColorTransferFunction::fromGamma ( float gamma)
inlinestatic

Definition at line 102 of file qcolortransferfunction_p.h.

References Calculated, IsGamma, IsIdentity, and NoHint.

Referenced by QIcc::parseTRC(), and QIcc::parseTRCs().

Here is the caller graph for this function:

◆ fromProPhotoRgb()

QColorTransferFunction QColorTransferFunction::fromProPhotoRgb ( )
inlinestatic

Definition at line 113 of file qcolortransferfunction_p.h.

References Calculated.

◆ fromSRgb()

QColorTransferFunction QColorTransferFunction::fromSRgb ( )
inlinestatic

Definition at line 108 of file qcolortransferfunction_p.h.

References Calculated, and IsSRgb.

Referenced by QIcc::parseTRCs().

Here is the caller graph for this function:

◆ inverted()

QColorTransferFunction QColorTransferFunction::inverted ( ) const
inline

Definition at line 68 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), m_a, m_b, m_c, m_d, m_e, m_f, and m_g.

Here is the call graph for this function:

◆ isGamma()

bool QColorTransferFunction::isGamma ( ) const
inline

Definition at line 38 of file qcolortransferfunction_p.h.

Referenced by QIcc::writeColorTrc().

Here is the caller graph for this function:

◆ isIdentity()

bool QColorTransferFunction::isIdentity ( ) const
inline

Definition at line 43 of file qcolortransferfunction_p.h.

Referenced by QColorSpacePrivate::setTransferFunctionTable().

Here is the caller graph for this function:

◆ isSRgb()

bool QColorTransferFunction::isSRgb ( ) const
inline

Definition at line 48 of file qcolortransferfunction_p.h.

Referenced by QColorSpacePrivate::setTransferFunctionTable().

Here is the caller graph for this function:

◆ matches()

bool QColorTransferFunction::matches ( const QColorTransferFunction & o) const
inline

Definition at line 123 of file qcolortransferfunction_p.h.

References m_a, m_b, m_c, m_d, m_e, m_f, and m_g.

Referenced by operator!=, and operator==.

Here is the caller graph for this function:

◆ Q_DECLARE_FLAGS()

QColorTransferFunction::Q_DECLARE_FLAGS ( Hints ,
Hint  )

◆ operator!=

bool operator!= ( const QColorTransferFunction & f1,
const QColorTransferFunction & f2 )
friend

Definition at line 192 of file qcolortransferfunction_p.h.

References matches().

◆ operator==

bool operator== ( const QColorTransferFunction & f1,
const QColorTransferFunction & f2 )
friend

Definition at line 188 of file qcolortransferfunction_p.h.

References matches().

Member Data Documentation

◆ m_a

float QColorTransferFunction::m_a

◆ m_b

float QColorTransferFunction::m_b

◆ m_c

float QColorTransferFunction::m_c

◆ m_d

float QColorTransferFunction::m_d

◆ m_e

float QColorTransferFunction::m_e

◆ m_f

float QColorTransferFunction::m_f

◆ m_g

float QColorTransferFunction::m_g

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