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

#include <qcolortrc_p.h>

+ Collaboration diagram for QColorTrc:

Public Types

enum class  Type { Uninitialized , Function , Table }
 

Public Member Functions

 QColorTrc () noexcept
 
 QColorTrc (const QColorTransferFunction &fun)
 
 QColorTrc (const QColorTransferTable &table)
 
 QColorTrc (QColorTransferFunction &&fun) noexcept
 
 QColorTrc (QColorTransferTable &&table) noexcept
 
bool isIdentity () const
 
bool isValid () const
 
float apply (float x) const
 
float applyExtended (float x) const
 
float applyInverse (float x) const
 
float applyInverseExtended (float x) const
 

Public Attributes

Type m_type
 
QColorTransferFunction m_fun
 
QColorTransferTable m_table
 

Friends

bool operator!= (const QColorTrc &o1, const QColorTrc &o2)
 
bool operator== (const QColorTrc &o1, const QColorTrc &o2)
 

Detailed Description

Definition at line 25 of file qcolortrc_p.h.

Member Enumeration Documentation

◆ Type

enum class QColorTrc::Type
strong
Enumerator
Uninitialized 
Function 
Table 

Definition at line 34 of file qcolortrc_p.h.

Constructor & Destructor Documentation

◆ QColorTrc() [1/5]

QColorTrc::QColorTrc ( )
inlinenoexcept

Definition at line 28 of file qcolortrc_p.h.

◆ QColorTrc() [2/5]

QColorTrc::QColorTrc ( const QColorTransferFunction & fun)
inline

Definition at line 29 of file qcolortrc_p.h.

◆ QColorTrc() [3/5]

QColorTrc::QColorTrc ( const QColorTransferTable & table)
inline

Definition at line 30 of file qcolortrc_p.h.

◆ QColorTrc() [4/5]

QColorTrc::QColorTrc ( QColorTransferFunction && fun)
inlinenoexcept

Definition at line 31 of file qcolortrc_p.h.

◆ QColorTrc() [5/5]

QColorTrc::QColorTrc ( QColorTransferTable && table)
inlinenoexcept

Definition at line 32 of file qcolortrc_p.h.

Member Function Documentation

◆ apply()

float QColorTrc::apply ( float x) const
inline

Definition at line 49 of file qcolortrc_p.h.

Referenced by QColorTransformPrivate::map(), and visitElement().

+ Here is the caller graph for this function:

◆ applyExtended()

float QColorTrc::applyExtended ( float x) const
inline

Definition at line 57 of file qcolortrc_p.h.

Referenced by loadPremultiplied< QRgbaFloat32 >(), loadUnpremultiplied< QRgbaFloat32 >(), and QColorTransformPrivate::mapExtended().

+ Here is the caller graph for this function:

◆ applyInverse()

float QColorTrc::applyInverse ( float x) const
inline

Definition at line 67 of file qcolortrc_p.h.

Referenced by QColorTransformPrivate::map().

+ Here is the caller graph for this function:

◆ applyInverseExtended()

float QColorTrc::applyInverseExtended ( float x) const
inline

Definition at line 75 of file qcolortrc_p.h.

Referenced by QColorTransformPrivate::mapExtended(), storeOpaque(), storePremultiplied(), and storeUnpremultiplied().

+ Here is the caller graph for this function:

◆ isIdentity()

bool QColorTrc::isIdentity ( ) const
inline

Definition at line 40 of file qcolortrc_p.h.

Referenced by QIcc::writeColorTrc().

+ Here is the caller graph for this function:

◆ isValid()

bool QColorTrc::isValid ( ) const
inline

Definition at line 45 of file qcolortrc_p.h.

Referenced by QColorTransformPrivate::updateLutsIn(), QColorTransformPrivate::updateLutsOut(), and visitElement().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

bool operator!= ( const QColorTrc & o1,
const QColorTrc & o2 )
friend

Definition at line 94 of file qcolortrc_p.h.

◆ operator==

bool operator== ( const QColorTrc & o1,
const QColorTrc & o2 )
friend

Definition at line 104 of file qcolortrc_p.h.

Member Data Documentation

◆ m_fun

◆ m_table

◆ m_type


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