00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _SO_MF_VEC3S_
00025 #define _SO_MF_VEC3S_
00026
00027 #include <Inventor/fields/SoSubField.h>
00028 #include <Inventor/SbLinear.h>
00029
00031
00032
00033
00035
00064 class SoMFVec3s : public SoMField {
00065
00066 SO_MFIELD_HEADER(SoMFVec3s, SbVec3s, const SbVec3s &);
00067
00068 SO_MFIELD_SETVALUESPOINTER_HEADER(short);
00069 SO_MFIELD_SETVALUESPOINTER_HEADER(SbVec3s);
00070 SO_FIELD_SUPPORT_MEMOBJ();
00071
00072 public:
00073
00074
00075
00076
00089 void setValues(int start, int num, const short xyz[][3]);
00090
00097 void set1Value(int index, short x, short y, short z);
00098
00105 void set1Value(int index, const short xyz[3]);
00106
00112 void setValue(short x, short y, short z);
00113
00119 void setValue(const short xyz[3]);
00120
00127 void set1Value(int index, const SbVec3f &vec3f);
00128
00134 void setValue(const SbVec3f &vec3f);
00135
00143 void setValues(int start, int num, const SbVec3f *vec3f);
00144
00145 private:
00146 static void initClass();
00147 static void exitClass();
00148 virtual void writeBinaryValues(SoOutput*, int , int ) const;
00149 virtual SbBool readBinaryValues( SoInput*, int, int );
00150
00151 private:
00152 virtual void writeBinaryValues(SoOutput *out) const;
00153 virtual SbBool readBinaryValues(SoInput *in, int numToRead);
00154
00155 };
00156
00157 #endif
00158
00159
00160