00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _SO_MF_COLORRGBA_
00026 #define _SO_MF_COLORRGBA_
00027
00028 #include <Inventor/fields/SoSubField.h>
00029 #include <Inventor/SbColorRGBA.h>
00030 #include <Inventor/fields/SoMFVec4f.h>
00031
00033
00034
00035
00037
00079 class SoMFColorRGBA : public SoMField {
00080
00081 SO_MFIELD_HEADER(SoMFColorRGBA, SbColorRGBA, const SbColorRGBA &);
00082
00083 SO_MFIELD_SETVALUESPOINTER_HEADER(float);
00084
00085 public:
00086
00087
00088
00089
00105 void setValues(int start, int num, const float rgba[][4]);
00106
00114 void setHSVAValues(int start, int num, const float hsva[][4]);
00115
00124 void setValue(const SbVec4f &vec);
00125
00134 void setValue(float r, float g, float b, float a);
00135
00144 void setValue(const float rgba[4]);
00145
00154 void setHSVAValue(float h, float s, float v, float a);
00155
00164 void setHSVAValue(const float hsva[4]);
00165
00173 void set1Value(int index, const SbVec4f &vec);
00174
00182 void set1Value(int index, float r, float g, float b, float a);
00183
00191 void set1Value(int index, const float rgba[4]);
00192
00200 void set1HSVAValue(int index, float h, float s, float v, float a);
00201
00209 void set1HSVAValue(int index, const float hsva[4]);
00210
00211 private:
00212 static void initClass();
00213 static void exitClass();
00214
00215 private:
00216
00217 };
00218
00219 #endif
00220
00221