149 void setRGBValue(
unsigned char r,
unsigned char g,
unsigned char b)
150 {
setValue(r / 255.f, g / 255.f, b / 255.f); }
uint32_t getPackedValueEndiannessOrder(float transparency=0.0) const
Returns an RGBA packed color value, derived from the color vector and the passed transparency value.
SbColor & setHSVValue(const float hsv[3])
Sets value of color vector from array of 3 HSV components.
void getHSVValue(float &h, float &s, float &v) const
Returns 3 individual HSV components.
void getHSVValue(float hsv[3]) const
Returns an array of 3 HSV components.
SbColor & setPackedValue(uint32_t orderedRGBA, float &transparency)
Sets value of color vector from an RGBA packed color value.
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.
void setRGBValue(unsigned char r, unsigned char g, unsigned char b)
Set RGB values as unsigned char.
SbColor(float r, float g, float b)
Constructor that takes 3 floats.
SbColor & setHSVValue(float h, float s, float v)
Sets value of color vector from 3 HSV (Hue, Saturation, and Value) components.
SbColor(const SbVec3f vec3f)
Constructor that takes a vector value.
SbColor(const float rgb[3])
Constructor that takes an array of 3 floats.
SoDEPRECATED uint32_t getPackedValueInternal(float transparency=0.0) const
SbVec3f & setValue(const float v[3])
Sets the vector components.
const float * getValue() const
Returns vector components.