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
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 ()
 

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 135 of file qcolortransferfunction_p.h.

Constructor & Destructor Documentation

◆ QColorTransferFunction() [1/2]

QColorTransferFunction::QColorTransferFunction ( )
inlinenoexcept

Definition at line 29 of file qcolortransferfunction_p.h.

Referenced by fromGamma(), fromProPhotoRgb(), fromSRgb(), and inverted().

+ 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.

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.

◆ fromGamma()

static QColorTransferFunction QColorTransferFunction::fromGamma ( float gamma)
inlinestatic

Definition at line 101 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), Calculated, IsGamma, IsIdentity, and NoHint.

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

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

◆ fromProPhotoRgb()

static QColorTransferFunction QColorTransferFunction::fromProPhotoRgb ( )
inlinestatic

Definition at line 112 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), and Calculated.

Referenced by QColorSpacePrivate::setTransferFunction().

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

◆ fromSRgb()

static QColorTransferFunction QColorTransferFunction::fromSRgb ( )
inlinestatic

Definition at line 107 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), Calculated, and IsSRgb.

Referenced by QColorTransferTable::asColorTransferFunction(), QIcc::parseTRCs(), and QColorSpacePrivate::setTransferFunction().

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

◆ inverted()

QColorTransferFunction QColorTransferFunction::inverted ( ) const
inline

Definition at line 67 of file qcolortransferfunction_p.h.

References QColorTransferFunction(), d, 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.

References IsGamma.

◆ isIdentity()

bool QColorTransferFunction::isIdentity ( ) const
inline

Definition at line 43 of file qcolortransferfunction_p.h.

References IsIdentity.

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.

References IsSRgb.

Referenced by QColorSpacePrivate::setTransferFunctionTable().

+ Here is the caller graph for this function:

◆ matches()

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

Definition at line 117 of file qcolortransferfunction_p.h.

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

◆ Q_DECLARE_FLAGS()

QColorTransferFunction::Q_DECLARE_FLAGS ( Hints ,
Hint  )

Friends And Related Symbol Documentation

◆ operator!=

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

Definition at line 186 of file qcolortransferfunction_p.h.

◆ operator==

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

Definition at line 182 of file qcolortransferfunction_p.h.

Member Data Documentation

◆ m_a

float QColorTransferFunction::m_a

Definition at line 127 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().

◆ m_b

float QColorTransferFunction::m_b

Definition at line 128 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().

◆ m_c

float QColorTransferFunction::m_c

Definition at line 129 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().

◆ m_d

float QColorTransferFunction::m_d

Definition at line 130 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().

◆ m_e

float QColorTransferFunction::m_e

Definition at line 131 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().

◆ m_f

float QColorTransferFunction::m_f

Definition at line 132 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().

◆ m_g

float QColorTransferFunction::m_g

Definition at line 133 of file qcolortransferfunction_p.h.

Referenced by apply(), inverted(), and matches().


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