18#include <QtGui/private/qtguiglobal_p.h>
42 return (m_type == Type::Function && m_fun.isIdentity())
43 || (m_type == Type::Table && m_table.isIdentity());
47 return m_type != Type::Uninitialized;
51 if (m_type == Type::Table)
52 return m_table.apply(
x);
53 if (m_type == Type::Function)
54 return m_fun.apply(
x);
59 if (
x >= 0.0f &&
x <= 1.0f)
61 if (m_type == Type::Function)
62 return std::copysign(m_fun.apply(std::abs(
x)),
x);
63 if (m_type == Type::Table)
64 return x < 0.0f ? 0.0f : 1.0f;
69 if (m_type == Type::Table)
70 return m_table.applyInverse(
x);
71 if (m_type == Type::Function)
72 return m_fun.inverted().apply(
x);
77 if (
x >= 0.0f &&
x <= 1.0f)
78 return applyInverse(
x);
79 if (m_type == Type::Function)
80 return std::copysign(applyInverse(std::abs(
x)),
x);
81 if (m_type == Type::Table)
82 return x < 0.0f ? 0.0f : 1.0f;
96 if (o1.m_type != o2.m_type)
98 if (o1.m_type == QColorTrc::Type::Function)
99 return o1.m_fun != o2.m_fun;
100 if (o1.m_type == QColorTrc::Type::Table)
101 return o1.m_table != o2.m_table;
QColorTrc(const QColorTransferFunction &fun)
QColorTrc(const QColorTransferTable &table)
QColorTransferFunction m_fun
float applyInverseExtended(float x) const
QColorTrc(QColorTransferTable &&table) noexcept
QColorTrc(QColorTransferFunction &&fun) noexcept
float applyExtended(float x) const
float apply(float x) const
float applyInverse(float x) const
QColorTransferTable m_table
Combined button and popup list for selecting options.
bool operator!=(const QColorTrc &o1, const QColorTrc &o2)
bool operator==(const QColorTrc &o1, const QColorTrc &o2)
constexpr bool operator!=(const timespec &t1, const timespec &t2)
constexpr int Uninitialized
GLint GLint GLint GLint GLint x
[0]
GLenum GLenum GLsizei void * table
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)