18#include <QtGui/private/qtguiglobal_p.h>
44 return m_type == Type::Uninitialized || (m_type == Type::Function && m_fun.isLinear());
48 return m_type != Type::Uninitialized;
52 if (m_type == Type::Table)
53 return m_table.apply(
x);
54 if (m_type == Type::Function)
55 return m_fun.apply(
x);
60 if (
x >= 0.0f &&
x <= 1.0f)
62 if (m_type == Type::Function)
63 return std::copysign(m_fun.apply(std::abs(
x)),
x);
64 if (m_type == Type::Table)
65 return x < 0.0f ? 0.0f : 1.0f;
70 if (m_type == Type::Table)
71 return m_table.applyInverse(
x);
72 if (m_type == Type::Function)
73 return m_fun.inverted().apply(
x);
78 if (
x >= 0.0f &&
x <= 1.0f)
79 return applyInverse(
x);
80 if (m_type == Type::Function)
81 return std::copysign(applyInverse(std::abs(
x)),
x);
82 if (m_type == Type::Table)
83 return x < 0.0f ? 0.0f : 1.0f;
99 if (o1.
m_type == QColorTrc::Type::Function)
101 if (o1.
m_type == QColorTrc::Type::Table)
QColorTrc(const QColorTransferFunction &fun)
QColorTrc(const QColorTransferTable &table)
QColorTransferFunction m_fun
float applyInverseExtended(float x) const
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)
GLint GLint GLint GLint GLint x
[0]
GLenum GLenum GLsizei void * table
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)