1 #ifndef COIN_SBCOLOR4F_H
2 #define COIN_SBCOLOR4F_H
36 #include <Inventor/system/inttypes.h>
37 #include <Inventor/SbVec4f.h>
38 #include <Inventor/SbColor.h>
48 SbColor4f(
const float r,
const float g,
const float b,
const float a = 1.0f);
50 void setValue(
const float r,
const float g,
const float b,
51 const float a = 1.0f);
54 void getValue(
float &r,
float &g,
float &b,
float &a);
58 SbColor4f& setHSVValue(
float h,
float s,
float v,
float a = 1.0f);
59 SbColor4f& setHSVValue(
const float hsv[3],
float alpha = 1.0f);
60 void getHSVValue(
float &h,
float &s,
float &v)
const;
61 void getHSVValue(
float hsv[3])
const;
62 SbColor4f& setPackedValue(
const uint32_t rgba);
63 uint32_t getPackedValue()
const;
82 float red()
const {
return this->vec[0]; }
83 float green()
const {
return this->vec[1]; }
84 float blue()
const {
return this->vec[2]; }
85 float alpha()
const {
return this->vec[3]; }
98 #endif // !COIN_SBCOLOR4F_H
The SbColor class contains the red, green and blue components which make up a color value...
Definition: SbColor.h:39
The SbVec4f class is a 4 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec4f.h:49
SbVec4f operator-(void) const
Definition: SbVec4f.h:84
The SbColor4f class contains the red, green, blue and alpha components which make up a color value...
Definition: SbColor4f.h:42
int operator!=(const SbBox2d &b1, const SbBox2d &b2)
Definition: SbBox2d.h:106
SbVec4f & setValue(const float v[4])
Definition: SbVec4f.h:59
int operator==(const SbBox2d &b1, const SbBox2d &b2)
Definition: SbBox2d.h:102
SbVec4f & operator-=(const SbVec4f &v)
Definition: SbVec4f.h:83
SbVec4f operator*(const SbVec4f &v, float d)
Definition: SbVec4f.h:93
const float * getValue(void) const
Definition: SbVec4f.h:66
SbVec4f & operator*=(float d)
Definition: SbVec4f.h:80
SbVec4f operator+(const SbVec4f &v1, const SbVec4f &v2)
Definition: SbVec4f.h:106
SbVec4f & operator/=(float d)
Definition: SbVec4f.h:81
SbVec2d operator*(const SbVec2d &v, double d)
Definition: SbVec2d.h:91
SbVec2d operator-(const SbVec2d &v1, const SbVec2d &v2)
Definition: SbVec2d.h:108
float & operator[](int i)
Definition: SbVec4f.h:69
SbVec4f & operator+=(const SbVec4f &v)
Definition: SbVec4f.h:82
int operator==(const SbVec4f &v1, const SbVec4f &v2)
Definition: SbVec4f.h:114
SbVec2d operator/(const SbVec2d &v, double d)
Definition: SbVec2d.h:99
int operator!=(const SbVec4f &v1, const SbVec4f &v2)
Definition: SbVec4f.h:118
SbVec2d operator+(const SbVec2d &v1, const SbVec2d &v2)
Definition: SbVec2d.h:104
SbVec4f operator/(const SbVec4f &v, float d)
Definition: SbVec4f.h:101