1#ifndef COIN_SBCOLOR4F_H
2#define COIN_SBCOLOR4F_H
27#include <Inventor/system/inttypes.h>
28#include <Inventor/SbColor.h>
38 SbColor4f(
const float r,
const float g,
const float b,
const float a = 1.0f);
40 void setValue(
const float r,
const float g,
const float b,
41 const float a = 1.0f);
44 void getValue(
float &r,
float &g,
float &b,
float &a);
51 void getHSVValue(
float &h,
float &s,
float &v)
const;
74 float red()
const {
return this->vec[0]; }
75 float green()
const {
return this->vec[1]; }
76 float blue()
const {
return this->vec[2]; }
77 float alpha()
const {
return this->vec[3]; }
The SbColor4f class contains the red, green, blue and alpha components which make up a color value.
Definition SbColor4f.h:32
SbColor4f & setHSVValue(float h, float s, float v, float a=1.0f)
Definition SbColor4f.cpp:225
SbColor4f & setPackedValue(const uint32_t rgba)
Definition SbColor4f.cpp:171
SbColor4f & operator+=(const SbColor4f &c)
Definition SbColor4f.cpp:363
uint32_t getPackedValue() const
Definition SbColor4f.cpp:185
void setValue(const float r, const float g, const float b, const float a=1.0f)
Definition SbColor4f.cpp:118
void getHSVValue(float &h, float &s, float &v) const
Definition SbColor4f.cpp:277
SbColor4f & setRGB(const SbColor &col)
Definition SbColor4f.cpp:198
void getRGB(SbColor &color)
Definition SbColor4f.cpp:210
float operator[](const int idx) const
Definition SbColor4f.cpp:317
SbColor4f & operator/=(const float d)
Definition SbColor4f.cpp:351
const float * getValue() const
Definition SbColor4f.cpp:145
SbColor4f(void)
Definition SbColor4f.cpp:59
SbColor4f & operator*=(const float d)
Definition SbColor4f.cpp:338
SbColor4f & operator-=(const SbColor4f &c)
Definition SbColor4f.cpp:375
The SbColor class contains the red, green and blue components which make up a color value.
Definition SbColor.h:30
The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition SbVec4f.h:34