63 #define UT_BLACK (UT_Color::getConstantColor(0))
64 #define UT_BLUE (UT_Color::getConstantColor(1))
65 #define UT_GREEN (UT_Color::getConstantColor(2))
66 #define UT_RED (UT_Color::getConstantColor(3))
67 #define UT_CYAN (UT_Color::getConstantColor(4))
68 #define UT_MAGENTA (UT_Color::getConstantColor(5))
69 #define UT_YELLOW (UT_Color::getConstantColor(6))
70 #define UT_WHITE (UT_Color::getConstantColor(7))
71 #define UT_GREY1 (UT_Color::getConstantColor(8))
72 #define UT_GREY2 (UT_Color::getConstantColor(9))
73 #define UT_GREY3 (UT_Color::getConstantColor(10))
74 #define UT_GREY4 (UT_Color::getConstantColor(11))
75 #define UT_GREY5 (UT_Color::getConstantColor(12))
76 #define UT_GREY6 (UT_Color::getConstantColor(13))
77 #define UT_GREY7 (UT_Color::getConstantColor(14))
78 #define UT_GREY8 (UT_Color::getConstantColor(15))
79 #define UT_GREY9 (UT_Color::getConstantColor(16))
91 explicit UT_Color(
const char *colorname);
97 void getValue(
float &x,
float &y,
float &z)
const
98 { x = u; y =
v; z =
w;}
105 else getRGBConvert(r,g,b);
108 void getHSV(
float *
h,
float *
s,
float *
v)
const;
109 void getHSL(
float *
h,
float *
s,
float *l)
const;
110 void getXYZ(
float *x,
float *y,
float *z)
const;
111 void getLAB(
float *l,
float *
a,
float *
b)
const;
112 void getTMI(
float *t,
float *m,
float *i)
const;
126 fpreal relativeLuminance()
const;
135 void setLABluminance(
fpreal l);
137 void setUnique(
int64 idx);
139 void setColorByName(
const char *colorname);
143 void ghost(
fpreal gfactor = 0.75
f);
154 void brighten(
fpreal amount);
161 void gamma(
fpreal gamma );
167 int save(std::ostream &os,
int binary)
const;
168 void saveMinimalAsText(std::ostream &os)
const;
186 float *
r,
float *
g,
float *
b);
199 static void getUniqueColor(
int64 idx,
200 float *
r,
float *
g,
float *
b);
203 static const UT_Color &getConstantColor(
int i);
209 static void getRandomContrastingColor(
const UT_Vector3 * contrast_to,
234 void getRGBConvert(
float *
r,
float *
g,
float *
b)
const;
251 float burn = 0,
float maxtemp = 40000,
252 int N = 64,
bool tonemap =
true);
void getValue(float &x, float &y, float &z) const
void getRGB(float *r, float *g, float *b) const
const GLuint GLenum const void * binary
GLdouble GLdouble GLdouble z
GLboolean GLboolean GLboolean GLboolean a
JSON reader class which handles parsing of JSON or bJSON files.
void getValue(fpreal64 &x, fpreal64 &y, fpreal64 &z) const
UT_API void UT_TMItoRGB(fpreal *values, int nvalues)
Class which writes ASCII or binary JSON streams.
UT_API size_t format(char *buffer, size_t buffer_size, const UT_Color &v)
std::ostream & operator<<(std::ostream &ostr, const DataType &a)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
const char * className() const
UT_API void UT_HSVtoRGB(fpreal *values, int nvalues)
void setValue(fpreal x, fpreal y, fpreal z)
bool operator<(const GU_TetrahedronFacet &a, const GU_TetrahedronFacet &b)
UT_API void UT_RGBtoTMI(fpreal *values, int nvalues)
GLboolean GLboolean GLboolean b
UT_API void UTinitPhysicalBBRamp(UT_Ramp &ramp, float adaptation=0.15, float burn=0, float maxtemp=40000, int N=64, bool tonemap=true)
GLfloat GLfloat GLfloat GLfloat h
int operator!=(const UT_Color &c) const
GLenum GLsizei GLsizei GLint * values
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
GA_API const UT_StringHolder N
Class to store JSON objects as C++ objects.
UT_API UT_ColorType UTcolorTypeFromName(const char *cname)
UT_API const char * UTnameFromColorType(UT_ColorType ctype)
GLubyte GLubyte GLubyte GLubyte w
void getColor(UT_Color &c) const
UT_API void UT_RGBtoHSV(fpreal *values, int nvalues)
UT_ColorType getType() const