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);
47 SbColor & setHSVValue(
const float hsv[3]);
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);}
60 #endif // !COIN_SBCOLOR_H
Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Sat Oct 26 2013 19:06:28 for Coin by Doxygen 1.8.4.