1#ifndef COIN_SBCOLOR4F_H
2#define COIN_SBCOLOR4F_H
27#include <Inventor/system/inttypes.h>
28#include <Inventor/SbVec4f.h>
29#include <Inventor/SbColor.h>
39 SbColor4f(
const float r,
const float g,
const float b,
const float a = 1.0f);
41 void setValue(
const float r,
const float g,
const float b,
42 const float a = 1.0f);
45 void getValue(
float &r,
float &g,
float &b,
float &a);
49 SbColor4f& setHSVValue(
float h,
float s,
float v,
float a = 1.0f);
50 SbColor4f& setHSVValue(
const float hsv[3],
float alpha = 1.0f);
51 void getHSVValue(
float &h,
float &s,
float &v)
const;
52 void getHSVValue(
float hsv[3])
const;
53 SbColor4f& setPackedValue(
const uint32_t rgba);
54 uint32_t getPackedValue()
const;
73 float red()
const {
return this->vec[0]; }
74 float green()
const {
return this->vec[1]; }
75 float blue()
const {
return this->vec[2]; }
76 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:33
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:40
SbVec4f & operator-=(const SbVec4f &v)
Definition SbVec4f.h:74
SbVec4f & operator/=(float d)
Definition SbVec4f.h:72
SbVec4f & setValue(const float v[4])
Definition SbVec4f.h:50
int operator!=(const SbVec4f &v1, const SbVec4f &v2)
Definition SbVec4f.h:109
SbVec4f & operator*=(float d)
Definition SbVec4f.h:71
SbVec4f operator*(const SbVec4f &v, float d)
Definition SbVec4f.h:84
int operator==(const SbVec4f &v1, const SbVec4f &v2)
Definition SbVec4f.h:105
const float * getValue(void) const
Definition SbVec4f.h:57
SbVec4f operator+(const SbVec4f &v1, const SbVec4f &v2)
Definition SbVec4f.h:97
SbVec4f & operator+=(const SbVec4f &v)
Definition SbVec4f.h:73
SbVec4f operator-(void) const
Definition SbVec4f.h:75
float & operator[](int i)
Definition SbVec4f.h:60
SbVec4f operator/(const SbVec4f &v, float d)
Definition SbVec4f.h:92
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.