104 {
return setHSVValue(hsv[0], hsv[1], hsv[2]); }
111 { getHSVValue(hsv[0], hsv[1], hsv[2]); }
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
void getHSVValue(float &h, float &s, float &v) const
Returns 3 individual hsv components.
SbColor & setHSVValue(const float hsv[3])
Sets value of color vector from array of 3 HSV components.
void getHSVValue(float hsv[3]) const
Returns an array of 3 hsv components.
uint32_t getPackedValue(float transparency=0.0) const
Returns an RGBA packed color value, derived from the color vector and the passed transparency value.
SbColor()
Default constructor.
SbColor(float r, float g, float b)
Constructors for color vector.
SbColor & setPackedValue(uint32_t orderedRGBA, float &transparency)
Sets value of color vector from an RGBA packed color value.
SbColor(const SbVec3f vec3f)
Constructors for color vector.
SbColor(const float rgb[3])
Constructors for color vector.
SbColor & setHSVValue(float h, float s, float v)
Sets value of color vector from 3 HSV (Hue, Saturation, and Value) components.
SbVec3f & setValue(const float v[3])
Sets the vector components.
const float * getValue() const
Returns vector components.