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);
39 void getHSVValue(
float &h,
float &s,
float &v)
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);}
SbColor(void)
Definition SbColor.cpp:49
void getHSVValue(float &h, float &s, float &v) const
Definition SbColor.cpp:181
uint32_t getPackedValue(const float transparency=0.0f) const
Definition SbColor.cpp:112
SbColor & setHSVValue(float h, float s, float v)
Definition SbColor.cpp:129
SbColor & setPackedValue(const uint32_t rgba, float &transparency)
Definition SbColor.cpp:94
SbVec3f(void)
Definition SbVec3f.h:42
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Thu Jan 16 2025 for Coin by Doxygen 1.13.2.