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 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:30
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.