HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Measure.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_NodeVerb.h>
7 #include <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_MeasureEnums
22 {
23  enum class Type
24  {
25  PERIMETER = 0,
26  AREA,
27  CURVATURE,
28  VOLUME
29  };
30  enum class Curvetype
31  {
32  ALL = 0,
33  CONCAVE,
34  CONEX
35  };
36 }
37 
38 
40 {
41 public:
42  static int version() { return 1; }
43 
45  {
46  myGroup = ""_sh;
47  myType = 0;
48  myOverride = false;
49  myAttribname = "area"_sh;
50  myCurvetype = 0;
51  myCurve = UT_Vector2D(0,1000);
52  myT = UT_Vector3D(0,0,0);
53 
54  }
55 
56  explicit SOP_MeasureParms(const SOP_MeasureParms &) = default;
57 
58  virtual ~SOP_MeasureParms() {}
59 
60  bool operator==(const SOP_MeasureParms &src) const
61  {
62  if (myGroup != src.myGroup) return false;
63  if (myType != src.myType) return false;
64  if (myOverride != src.myOverride) return false;
65  if (myAttribname != src.myAttribname) return false;
66  if (myCurvetype != src.myCurvetype) return false;
67  if (myCurve != src.myCurve) return false;
68  if (myT != src.myT) return false;
69 
70  return true;
71  }
72  bool operator!=(const SOP_MeasureParms &src) const
73  {
74  return !operator==(src);
75  }
78 
79 
80 
81  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
82  {
83  if (true)
84  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
85  else myGroup = ""_sh;
86  if (true)
87  OP_Utils::evalOpParm(myType, node, "type", time, 0);
88  else myType = 0;
89  if (true)
90  OP_Utils::evalOpParm(myOverride, node, "override", time, 0);
91  else myOverride = false;
92  if (true && ( (!(((getOverride()==0)))) ) )
93  OP_Utils::evalOpParm(myAttribname, node, "attribname", time, 0);
94  else myAttribname = "area"_sh;
95  if (true && ( (!(((int64(getType())!=2)))) ) )
96  OP_Utils::evalOpParm(myCurvetype, node, "curvetype", time, 0);
97  else myCurvetype = 0;
98  if (true && ( (!(((int64(getType())!=2)))) ) )
99  OP_Utils::evalOpParm(myCurve, node, "curve", time, 0);
100  else myCurve = UT_Vector2D(0,1000);
101  if (true && ( (!(((int64(getType())!=3)))) ) )
102  OP_Utils::evalOpParm(myT, node, "t", time, 0);
103  else myT = UT_Vector3D(0,0,0);
104 
105  }
106 
107 
108  virtual void loadFromOpSubclass(const LoadParms &loadparms)
109  {
110  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
111  }
112 
113 
114  virtual void copyFrom(const SOP_NodeParms *src)
115  {
116  *this = *((const SOP_MeasureParms *)src);
117  }
118 
119  template <typename T>
120  void
121  doGetParmValue(exint idx, T &value) const
122  {
123  switch (idx)
124  {
125  case 0:
126  coerceValue(value, myGroup);
127  break;
128  case 1:
129  coerceValue(value, myType);
130  break;
131  case 2:
132  coerceValue(value, myOverride);
133  break;
134  case 3:
135  coerceValue(value, myAttribname);
136  break;
137  case 4:
138  coerceValue(value, myCurvetype);
139  break;
140  case 5:
141  coerceValue(value, myCurve);
142  break;
143  case 6:
144  coerceValue(value, myT);
145  break;
146 
147  }
148  }
149 
150  void getParmValue(exint idx, exint &value) const
151  { doGetParmValue(idx, value); }
152  void getParmValue(exint idx, fpreal &value) const
153  { doGetParmValue(idx, value); }
155  { doGetParmValue(idx, value); }
157  { doGetParmValue(idx, value); }
159  { doGetParmValue(idx, value); }
161  { doGetParmValue(idx, value); }
163  { doGetParmValue(idx, value); }
165  { doGetParmValue(idx, value); }
167  { doGetParmValue(idx, value); }
169  { doGetParmValue(idx, value); }
171  { doGetParmValue(idx, value); }
172 
173  template <typename T>
174  void
175  doSetParmValue(exint idx, const T &value)
176  {
177  switch (idx)
178  {
179  case 0:
180  coerceValue(myGroup, value);
181  break;
182  case 1:
183  coerceValue(myType, value);
184  break;
185  case 2:
186  coerceValue(myOverride, value);
187  break;
188  case 3:
189  coerceValue(myAttribname, value);
190  break;
191  case 4:
192  coerceValue(myCurvetype, value);
193  break;
194  case 5:
195  coerceValue(myCurve, value);
196  break;
197  case 6:
198  coerceValue(myT, value);
199  break;
200 
201  }
202  }
203 
204  void setParmValue(exint idx, const exint &value)
205  { doSetParmValue(idx, value); }
206  void setParmValue(exint idx, const fpreal &value)
207  { doSetParmValue(idx, value); }
208  void setParmValue(exint idx, const UT_Vector2D &value)
209  { doSetParmValue(idx, value); }
210  void setParmValue(exint idx, const UT_Vector3D &value)
211  { doSetParmValue(idx, value); }
212  void setParmValue(exint idx, const UT_Vector4D &value)
213  { doSetParmValue(idx, value); }
214  void setParmValue(exint idx, const UT_Matrix2D &value)
215  { doSetParmValue(idx, value); }
216  void setParmValue(exint idx, const UT_Matrix3D &value)
217  { doSetParmValue(idx, value); }
218  void setParmValue(exint idx, const UT_Matrix4D &value)
219  { doSetParmValue(idx, value); }
221  { doSetParmValue(idx, value); }
223  { doSetParmValue(idx, value); }
225  { doSetParmValue(idx, value); }
226 
227  virtual exint getNumParms() const
228  {
229  return 7;
230  }
231 
232  virtual const char *getParmName(exint fieldnum) const
233  {
234  switch (fieldnum)
235  {
236  case 0:
237  return "group";
238  case 1:
239  return "type";
240  case 2:
241  return "override";
242  case 3:
243  return "attribname";
244  case 4:
245  return "curvetype";
246  case 5:
247  return "curve";
248  case 6:
249  return "t";
250 
251  }
252  return 0;
253  }
254 
255  virtual ParmType getParmType(exint fieldnum) const
256  {
257  switch (fieldnum)
258  {
259  case 0:
260  return PARM_STRING;
261  case 1:
262  return PARM_INTEGER;
263  case 2:
264  return PARM_INTEGER;
265  case 3:
266  return PARM_STRING;
267  case 4:
268  return PARM_INTEGER;
269  case 5:
270  return PARM_VECTOR2;
271  case 6:
272  return PARM_VECTOR3;
273 
274  }
275  return PARM_UNSUPPORTED;
276  }
277 
278  // Boiler plate to load individual types.
279  static void loadData(UT_IStream &is, int64 &v)
280  { is.bread(&v, 1); }
281  static void loadData(UT_IStream &is, bool &v)
282  { int64 iv; is.bread(&iv, 1); v = iv; }
283  static void loadData(UT_IStream &is, fpreal64 &v)
284  { is.bread<fpreal64>(&v, 1); }
285  static void loadData(UT_IStream &is, UT_Vector2D &v)
286  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
287  static void loadData(UT_IStream &is, UT_Vector3D &v)
288  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
289  is.bread<fpreal64>(&v.z(), 1); }
290  static void loadData(UT_IStream &is, UT_Vector4D &v)
291  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
292  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
293  static void loadData(UT_IStream &is, UT_Matrix2D &v)
294  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
295  static void loadData(UT_IStream &is, UT_Matrix3D &v)
296  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
297  static void loadData(UT_IStream &is, UT_Matrix4D &v)
298  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
299  static void loadData(UT_IStream &is, UT_Vector2I &v)
300  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
301  static void loadData(UT_IStream &is, UT_Vector3I &v)
302  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
303  is.bread<int64>(&v.z(), 1); }
304  static void loadData(UT_IStream &is, UT_Vector4I &v)
305  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
306  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
308  { is.bread(v); }
310  { UT_StringHolder rampdata;
311  loadData(is, rampdata);
312  if (rampdata.isstring())
313  {
314  v.reset(new UT_Ramp());
315  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
316  v->load(istr);
317  }
318  else v.reset();
319  }
322  loadData(is, data);
323  if (data.isstring())
324  {
325  // Find the data type.
326  char *colon = UT_StringWrap(data).findChar(':');
327  if (colon)
328  {
329  int typelen = colon - data.buffer();
331  type.strncpy(data.buffer(), typelen);
332  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
333 
334  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
335  }
336  }
337  else v.reset();
338  }
339 
340  static void saveData(std::ostream &os, int64 v)
341  { UTwrite(os, &v); }
342  static void saveData(std::ostream &os, bool v)
343  { int64 iv = v; UTwrite(os, &iv); }
344  static void saveData(std::ostream &os, fpreal64 v)
345  { UTwrite<fpreal64>(os, &v); }
346  static void saveData(std::ostream &os, UT_Vector2D v)
347  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
348  static void saveData(std::ostream &os, UT_Vector3D v)
349  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
350  UTwrite<fpreal64>(os, &v.z()); }
351  static void saveData(std::ostream &os, UT_Vector4D v)
352  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
353  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
354  static void saveData(std::ostream &os, UT_Matrix2D v)
356  static void saveData(std::ostream &os, UT_Matrix3D v)
358  static void saveData(std::ostream &os, UT_Matrix4D v)
360  static void saveData(std::ostream &os, UT_StringHolder s)
361  { UT_StringWrap(s).saveBinary(os); }
362  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
363  { UT_StringHolder result;
364  UT_OStringStream ostr;
365  if (s) s->save(ostr);
366  result = ostr.str();
367  saveData(os, result);
368  }
369  static void saveData(std::ostream &os, PRM_DataItemHandle s)
370  { UT_StringHolder result;
371  UT_OStringStream ostr;
372  if (s)
373  {
374  ostr << s->getDataTypeToken();
375  ostr << ":";
376  s->saveBinary(ostr);
377  }
378  result = ostr.str();
379  saveData(os, result);
380  }
381 
382 
383  void save(std::ostream &os) const
384  {
385  int32 v = version();
386  UTwrite(os, &v);
387  saveData(os, myGroup);
388  saveData(os, myType);
389  saveData(os, myOverride);
390  saveData(os, myAttribname);
391  saveData(os, myCurvetype);
392  saveData(os, myCurve);
393  saveData(os, myT);
394 
395  }
396 
397  bool load(UT_IStream &is)
398  {
399  int32 v;
400  is.bread(&v, 1);
401  if (version() != v)
402  {
403  // Fail incompatible versions
404  return false;
405  }
406  loadData(is, myGroup);
407  loadData(is, myType);
408  loadData(is, myOverride);
409  loadData(is, myAttribname);
410  loadData(is, myCurvetype);
411  loadData(is, myCurve);
412  loadData(is, myT);
413 
414  return true;
415  }
416 
417  const UT_StringHolder & getGroup() const { return myGroup; }
418  void setGroup(const UT_StringHolder & val) { myGroup = val; }
420  {
421  SOP_Node *thissop = cookparms.getNode();
422  if (!thissop) return getGroup();
423  UT_StringHolder result;
424  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
425  return result;
426  }
427  Type getType() const { return Type(myType); }
428  void setType(Type val) { myType = int64(val); }
429  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
430  {
431  SOP_Node *thissop = cookparms.getNode();
432  if (!thissop) return getType();
433  int64 result;
434  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
435  return Type(result);
436  }
437  bool getOverride() const { return myOverride; }
438  void setOverride(bool val) { myOverride = val; }
439  bool opOverride(const SOP_NodeVerb::CookParms &cookparms) const
440  {
441  SOP_Node *thissop = cookparms.getNode();
442  if (!thissop) return getOverride();
443  bool result;
444  OP_Utils::evalOpParm(result, thissop, "override", cookparms.getCookTime(), 0);
445  return result;
446  }
447  const UT_StringHolder & getAttribname() const { return myAttribname; }
448  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
450  {
451  SOP_Node *thissop = cookparms.getNode();
452  if (!thissop) return getAttribname();
453  UT_StringHolder result;
454  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
455  return result;
456  }
457  Curvetype getCurvetype() const { return Curvetype(myCurvetype); }
458  void setCurvetype(Curvetype val) { myCurvetype = int64(val); }
460  {
461  SOP_Node *thissop = cookparms.getNode();
462  if (!thissop) return getCurvetype();
463  int64 result;
464  OP_Utils::evalOpParm(result, thissop, "curvetype", cookparms.getCookTime(), 0);
465  return Curvetype(result);
466  }
467  UT_Vector2D getCurve() const { return myCurve; }
468  void setCurve(UT_Vector2D val) { myCurve = val; }
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getCurve();
473  UT_Vector2D result;
474  OP_Utils::evalOpParm(result, thissop, "curve", cookparms.getCookTime(), 0);
475  return result;
476  }
477  UT_Vector3D getT() const { return myT; }
478  void setT(UT_Vector3D val) { myT = val; }
479  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getT();
483  UT_Vector3D result;
484  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
485  return result;
486  }
487 
488 private:
489  UT_StringHolder myGroup;
490  int64 myType;
491  bool myOverride;
492  UT_StringHolder myAttribname;
493  int64 myCurvetype;
494  UT_Vector2D myCurve;
495  UT_Vector3D myT;
496 
497 };
void setGroup(const UT_StringHolder &val)
bool operator==(const SOP_MeasureParms &src) const
static void loadData(UT_IStream &is, fpreal64 &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
bool opOverride(const SOP_NodeVerb::CookParms &cookparms) const
T & z(void)
Definition: UT_Vector4.h:379
static void saveData(std::ostream &os, UT_Matrix3D v)
void doSetParmValue(exint idx, const T &value)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
void setT(UT_Vector3D val)
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_Vector2T< fpreal64 > UT_Vector2D
void save(std::ostream &os) const
void setType(Type val)
void setParmValue(exint idx, const UT_Vector2D &value)
Type getType() const
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual const char * getParmName(exint fieldnum) const
static void saveData(std::ostream &os, UT_Matrix2D v)
An output stream object that owns its own string buffer storage.
const UT_StringHolder & getGroup() const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
void getParmValue(exint idx, fpreal &value) const
static void loadData(UT_IStream &is, bool &v)
void setAttribname(const UT_StringHolder &val)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Vector4D &value) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
virtual exint getNumParms() const
static void saveData(std::ostream &os, UT_StringHolder s)
UT_Vector3D getT() const
void getParmValue(exint idx, UT_Matrix2D &value) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
virtual ~SOP_MeasureParms()
static void saveData(std::ostream &os, int64 v)
void getParmValue(exint idx, UT_StringHolder &value) const
static void loadData(UT_IStream &is, int64 &v)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
void setParmValue(exint idx, const UT_Vector4D &value)
bool load(UT_IStream &is)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
static void saveData(std::ostream &os, UT_Matrix4D v)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
double fpreal64
Definition: SYS_Types.h:192
void getParmValue(exint idx, UT_Vector2D &value) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
Curvetype getCurvetype() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_Vector4D v)
void getParmValue(exint idx, UT_Matrix4D &value) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
void getParmValue(exint idx, UT_Vector3D &value) const
static void saveData(std::ostream &os, bool v)
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
bool getOverride() const
void setParmValue(exint idx, const UT_Matrix2D &value)
UT_Vector3T< fpreal64 > UT_Vector3D
void setParmValue(exint idx, const UT_Matrix3D &value)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
void setCurve(UT_Vector2D val)
GLboolean * data
Definition: glcorearb.h:130
bool operator!=(const SOP_MeasureParms &src) const
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void doGetParmValue(exint idx, T &value) const
void setParmValue(exint idx, const UT_StringHolder &value)
void getParmValue(exint idx, exint &value) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void setCurvetype(Curvetype val)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void setParmValue(exint idx, const fpreal &value)
void setOverride(bool val)
static void saveData(std::ostream &os, UT_Vector3D v)
void getParmValue(exint idx, UT_Matrix3D &value) const
virtual void copyFrom(const SOP_NodeParms *src)
virtual ParmType getParmType(exint fieldnum) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
UT_Vector2D getCurve() const
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
static void loadData(UT_IStream &is, UT_Matrix4D &v)
T & x(void)
Definition: UT_Vector4.h:375
void setParmValue(exint idx, const UT_Matrix4D &value)
T & y(void)
Definition: UT_Vector2.h:287
Curvetype opCurvetype(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1221
T & w(void)
Definition: UT_Vector4.h:381
void setParmValue(exint idx, const UT_Vector3D &value)
const UT_StringHolder & getAttribname() const
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector2D opCurve(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setParmValue(exint idx, const exint &value)
static void loadData(UT_IStream &is, UT_Vector2I &v)
GLenum src
Definition: glcorearb.h:1792
static int version()