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
00078 class SoMFColorRGBA : public SoMField {
00079
00080 SO_MFIELD_HEADER(SoMFColorRGBA, SbColorRGBA, const SbColorRGBA &);
00081
00082 SO_MFIELD_SETVALUESPOINTER_HEADER(float);
00083
00084 public:
00085
00086
00087
00088
00104 void setValues(int start, int num, const float rgba[][4]);
00105
00113 void setHSVAValues(int start, int num, const float hsva[][4]);
00114
00123 void setValue(const SbVec4f &vec);
00124
00133 void setValue(float r, float g, float b, float a);
00134
00143 void setValue(const float rgba[4]);
00144
00153 void setHSVAValue(float h, float s, float v, float a);
00154
00163 void setHSVAValue(const float hsva[4]);
00164
00172 void set1Value(int index, const SbVec4f &vec);
00173
00181 void set1Value(int index, float r, float g, float b, float a);
00182
00190 void set1Value(int index, const float rgba[4]);
00191
00199 void set1HSVAValue(int index, float h, float s, float v, float a);
00200
00208 void set1HSVAValue(int index, const float hsva[4]);
00209
00210 private:
00211 static void initClass();
00212 static void exitClass();
00213
00214 private:
00215
00216 };
00217
00218 #endif
00219
00220