1#ifndef COIN_SOMFCOLORRGBA_H
2#define COIN_SOMFCOLORRGBA_H
36#include <Inventor/fields/SoMField.h>
37#include <Inventor/fields/SoSubField.h>
38#include <Inventor/SbColor4f.h>
40class COIN_DLL_API SoMFColorRGBA :
public SoMField {
45 SO_MFIELD_SETVALUESPOINTER_HEADER(
float);
46 SO_MFIELD_SETVALUESPOINTER_HEADER(
SbColor4f);
51 void setValues(
int start,
int num,
const float rgba[][4]);
54 void setValue(
const SbVec4f & vec);
55 void setValue(
float r,
float g,
float b,
float a);
56 void setValue(
const float rgba[4]);
58 void setHSVValue(
float h,
float s,
float v,
float a);
61 void set1Value(
int idx,
const SbVec4f & vec);
62 void set1Value(
int idx,
float r,
float g,
float b,
float a);
63 void set1Value(
int idx,
const float rgba[4]);
65 void set1HSVValue(
int idx,
float h,
float s,
float v,
float a);
The SbColor4f class contains the red, green, blue and alpha components which make up a color value.
Definition SbColor4f.h:42
The SbVec4f class is a 4 dimensional vector with floating point coordinates.
Definition SbVec4f.h:49
void setHSVValue(float h, float s, float v, float a)
Definition SoMFColorRGBA.cpp:166
void set1HSVValue(int idx, float h, float s, float v, float a)
Definition SoMFColorRGBA.cpp:218
void setHSVValues(int start, int num, const float hsv[][4])
Definition SoMFColorRGBA.cpp:121
SoMField(void)
Definition SoMField.cpp:335
static void initClass(void)
Definition SoMField.cpp:317
int num
Definition SoMField.h:80