27 #include <Inventor/system/inttypes.h>
28 #include <Inventor/SbVec3f.h>
34 SbColor(
const float*
const rgb);
35 SbColor(
const float r,
const float g,
const float b);
37 SbColor & setHSVValue(
float h,
float s,
float v);
38 SbColor & setHSVValue(
const float hsv[3]);
39 void getHSVValue(
float &h,
float &s,
float &v)
const;
40 void getHSVValue(
float hsv[3])
const;
41 SbColor & setPackedValue(
const uint32_t rgba,
float& transparency);
42 uint32_t getPackedValue(
const float transparency = 0.0f)
const;
45 float red(
void)
const {
return (*
this)[0]; }
46 float green(
void)
const {
return (*
this)[1]; }
47 float blue(
void)
const {
return (*
this)[2]; }
48 uint32_t convertToUInt(
const float val) {
return (uint32_t)(val*255.0f);}
51 #endif // !COIN_SBCOLOR_H
void getHSVValue(float &h, float &s, float &v) const
Definition: SbColor.cpp:181
SbColor & setHSVValue(float h, float s, float v)
Definition: SbColor.cpp:129
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
SbColor & setPackedValue(const uint32_t rgba, float &transparency)
Definition: SbColor.cpp:94
SbVec3f & setValue(const float v[3])
Definition: SbVec3f.cpp:461
The SbColor class contains the red, green and blue components which make up a color value.
Definition: SbColor.h:30
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition: SbVec3f.h:37
uint32_t getPackedValue(const float transparency=0.0f) const
Definition: SbColor.cpp:112
SbColor(void)
Definition: SbColor.cpp:49
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17