36#include <Inventor/system/inttypes.h>
37#include <Inventor/SbVec3f.h>
43 SbColor(
const float*
const rgb);
44 SbColor(
const float r,
const float g,
const float b);
46 SbColor & setHSVValue(
float h,
float s,
float v);
48 void getHSVValue(
float &h,
float &s,
float &v)
const;
49 void getHSVValue(
float hsv[3])
const;
50 SbColor & setPackedValue(
const uint32_t rgba,
float& transparency);
51 uint32_t getPackedValue(
const float transparency = 0.0f)
const;
54 float red(
void)
const {
return (*
this)[0]; }
55 float green(
void)
const {
return (*
this)[1]; }
56 float blue(
void)
const {
return (*
this)[2]; }
57 uint32_t convertToUInt(
const float val) {
return static_cast<uint32_t
>(
val*255.0f);}
The SbColor class contains the red, green and blue components which make up a color value.
Definition SbColor.h:39
The SbList class is a template container class for lists.
Definition SbList.h:70
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51