HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribCreate-2.0.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 <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 namespace SOP_AttribCreate_2_0Enums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
28  VERTICES,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33  enum class Existing
34  {
35  ERROR = 0,
36  WARN,
37  REPLACE,
38  BETTER
39  };
40  enum class Class
41  {
42  DETAIL = 0,
43  PRIMITIVE,
44  POINT,
45  VERTEX
46  };
47  enum class Type
48  {
49  FLOAT = 0,
50  INT,
51  VECTOR,
52  INDEX,
53  FLOATARRAY,
54  INTARRAY,
56  DICT,
57  DICTARRAY
58  };
59  enum class Typeinfo
60  {
61  GUESS = 0,
62  NONE,
63  POINT,
64  VECTOR,
65  NORMAL,
66  COLOR,
67  QUATERNION,
68  TRANFORM,
70  };
71  enum class Precision
72  {
73  _8 = 0,
74  _16,
75  _32,
76  _64,
77  AUTO
78  };
79 }
80 
81 
83 {
84 public:
85  static int version() { return 1; }
86  struct Numattr
87  {
88  bool enable;
94  bool savetoinfo;
101  bool uselocal;
104 
105 
107  {
108  enable = true;
109  name = "attribute#"_sh;
110  existing = 3;
111  createvarmap = false;
112  varname = ""_sh;
113  _class = 2;
114  savetoinfo = false;
115  type = 0;
116  typeinfo = 0;
117  precision = 4;
118  size = 1;
119  defaultv = UT_Vector4D(0,0,0,0);
120  writevalues = true;
121  uselocal = true;
122  valuev = UT_Vector4D(0,0,0,0);
123  string = ""_sh;
124 
125  }
126 
127  bool operator==(const Numattr &src) const
128  {
129  if (enable != src.enable) return false;
130  if (name != src.name) return false;
131  if (existing != src.existing) return false;
132  if (createvarmap != src.createvarmap) return false;
133  if (varname != src.varname) return false;
134  if (_class != src._class) return false;
135  if (savetoinfo != src.savetoinfo) return false;
136  if (type != src.type) return false;
137  if (typeinfo != src.typeinfo) return false;
138  if (precision != src.precision) return false;
139  if (size != src.size) return false;
140  if (defaultv != src.defaultv) return false;
141  if (writevalues != src.writevalues) return false;
142  if (uselocal != src.uselocal) return false;
143  if (valuev != src.valuev) return false;
144  if (string != src.string) return false;
145 
146  return true;
147  }
148  bool operator!=(const Numattr &src) const
149  {
150  return !operator==(src);
151  }
152 
153  };
154 
156  {
158 
159  buf.strcat("[ ");
160  for (int i = 0; i < list.entries(); i++)
161  {
162  if (i)
163  buf.strcat(", ");
164  buf.strcat("( ");
165  buf.append("");
166  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
167  buf.append(", ");
168  { UT_String tmp; tmp = UT_StringWrap(list(i).name).makeQuotedString('"'); buf.strcat(tmp); }
169  buf.append(", ");
170  buf.appendSprintf("%d", (int) list(i).existing);
171  buf.append(", ");
172  buf.appendSprintf("%s", (list(i).createvarmap) ? "true" : "false");
173  buf.append(", ");
174  { UT_String tmp; tmp = UT_StringWrap(list(i).varname).makeQuotedString('"'); buf.strcat(tmp); }
175  buf.append(", ");
176  buf.appendSprintf("%d", (int) list(i)._class);
177  buf.append(", ");
178  buf.appendSprintf("%s", (list(i).savetoinfo) ? "true" : "false");
179  buf.append(", ");
180  buf.appendSprintf("%d", (int) list(i).type);
181  buf.append(", ");
182  buf.appendSprintf("%d", (int) list(i).typeinfo);
183  buf.append(", ");
184  buf.appendSprintf("%d", (int) list(i).precision);
185  buf.append(", ");
186  buf.appendSprintf("%d", (int) list(i).size);
187  buf.append(", ");
188  buf.appendSprintf("(%f, %f, %f, %f)", list(i).defaultv.x(), list(i).defaultv.y(), list(i).defaultv.z(), list(i).defaultv.w());
189  buf.append(", ");
190  buf.appendSprintf("%s", (list(i).writevalues) ? "true" : "false");
191  buf.append(", ");
192  buf.appendSprintf("%s", (list(i).uselocal) ? "true" : "false");
193  buf.append(", ");
194  buf.appendSprintf("(%f, %f, %f, %f)", list(i).valuev.x(), list(i).valuev.y(), list(i).valuev.z(), list(i).valuev.w());
195  buf.append(", ");
196  { UT_String tmp; tmp = UT_StringWrap(list(i).string).makeQuotedString('"'); buf.strcat(tmp); }
197 
198  buf.strcat(" )");
199  }
200  buf.strcat(" ]");
201 
203  return result;
204  }
205 
207  {
208  myGroup = ""_sh;
209  myGrouptype = 0;
210  myEncodenames = false;
211 
212  }
213 
214  explicit SOP_AttribCreate_2_0Parms(const SOP_AttribCreate_2_0Parms &) = default;
215 
217 
219  {
220  if (myGroup != src.myGroup) return false;
221  if (myGrouptype != src.myGrouptype) return false;
222  if (myEncodenames != src.myEncodenames) return false;
223  if (myNumattr != src.myNumattr) return false;
224 
225  return true;
226  }
228  {
229  return !operator==(src);
230  }
237 
238 
239 
240  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
241  {
242  myGroup = ""_sh;
243  if (true)
244  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
245  myGrouptype = 0;
246  if (true)
247  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
248  myEncodenames = false;
249  if (true)
250  graph->evalOpParm(myEncodenames, nodeidx, "encodenames", time, 0);
251  if (true)
252  {
253  int64 length = 0;
254  graph->evalOpParm(length, nodeidx, "numattr", time, 0);
255  myNumattr.entries(length);
256  for (exint i = 0; i < length; i++)
257  {
258  int parmidx = i+1;
259  auto && _curentry = myNumattr(i);
260  (void) _curentry;
261  myNumattr(i).enable = true;
262  if (true)
263  graph->evalOpParmInst(myNumattr(i).enable, nodeidx, "enable#", &parmidx, time, 0);
264  myNumattr(i).name = "attribute#"_sh;
265  if (true && ( (!(((_curentry.enable==0)))) ) )
266  graph->evalOpParmInst(myNumattr(i).name, nodeidx, "name#", &parmidx, time, 0);
267  myNumattr(i).existing = 3;
268  if (true && ( (!(((_curentry.enable==0)))) ) )
269  graph->evalOpParmInst(myNumattr(i).existing, nodeidx, "existing#", &parmidx, time, 0);
270  myNumattr(i).createvarmap = false;
271  if (true && ( (!(((_curentry.enable==0)))) ) )
272  graph->evalOpParmInst(myNumattr(i).createvarmap, nodeidx, "createvarmap#", &parmidx, time, 0);
273  myNumattr(i).varname = ""_sh;
274  if (true && ( (!(((_curentry.enable==0))||((_curentry.createvarmap==0)))) ) )
275  graph->evalOpParmInst(myNumattr(i).varname, nodeidx, "varname#", &parmidx, time, 0);
276  myNumattr(i)._class = 2;
277  if (true && ( (!(((_curentry.enable==0)))) ) )
278  graph->evalOpParmInst(myNumattr(i)._class, nodeidx, "class#", &parmidx, time, 0);
279  myNumattr(i).savetoinfo = false;
280  if (true && ( (!(((_curentry.enable==0))||((_curentry._class!=0)))) ) )
281  graph->evalOpParmInst(myNumattr(i).savetoinfo, nodeidx, "savetoinfo#", &parmidx, time, 0);
282  myNumattr(i).type = 0;
283  if (true && ( (!(((_curentry.enable==0)))) ) )
284  graph->evalOpParmInst(myNumattr(i).type, nodeidx, "type#", &parmidx, time, 0);
285  myNumattr(i).typeinfo = 0;
286  if (true && ( (!(((_curentry.enable==0))||((_curentry.type!=0)&&(_curentry.type!=4)))) ) )
287  graph->evalOpParmInst(myNumattr(i).typeinfo, nodeidx, "typeinfo#", &parmidx, time, 0);
288  myNumattr(i).precision = 4;
289  if (true && ( (!(((_curentry.enable==0))||((_curentry.type==3))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
290  graph->evalOpParmInst(myNumattr(i).precision, nodeidx, "precision#", &parmidx, time, 0);
291  myNumattr(i).size = 1;
292  if (true && ( (!(((_curentry.enable==0))||((_curentry.type==2))||((_curentry.type==3)))) ) )
293  graph->evalOpParmInst(myNumattr(i).size, nodeidx, "size#", &parmidx, time, 0);
294  myNumattr(i).defaultv = UT_Vector4D(0,0,0,0);
295  if (true && ( (!(((_curentry.enable==0))||((_curentry.type==3))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
296  graph->evalOpParmInst(myNumattr(i).defaultv, nodeidx, "default#v", &parmidx, time, 0);
297  myNumattr(i).writevalues = true;
298  if (true && ( (!(((_curentry.enable==0))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
299  graph->evalOpParmInst(myNumattr(i).writevalues, nodeidx, "writevalues#", &parmidx, time, 0);
300  myNumattr(i).uselocal = true;
301  if (true && ( (!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type==4))||((_curentry.type==5))||((_curentry.type==6))||((_curentry.type==7))||((_curentry.type==8)))) ) )
302  graph->evalOpParmInst(myNumattr(i).uselocal, nodeidx, "uselocal#", &parmidx, time, 0);
303  myNumattr(i).valuev = UT_Vector4D(0,0,0,0);
304  if (true && ( (!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type!=0)&&(_curentry.type!=1)&&(_curentry.type!=2)))) ) )
305  graph->evalOpParmInst(myNumattr(i).valuev, nodeidx, "value#v", &parmidx, time, 0);
306  myNumattr(i).string = ""_sh;
307  if (true && ( (!(((_curentry.enable==0))||((_curentry.writevalues==0))||((_curentry.type!=3)))) ) )
308  graph->evalOpParmInst(myNumattr(i).string, nodeidx, "string#", &parmidx, time, 0);
309 
310  }
311  }
312  else
313  myNumattr.clear();
314 
315  }
316 
317 
318  void loadFromOpSubclass(const LoadParms &loadparms) override
319  {
320  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
321  }
322 
323 
324  void copyFrom(const SOP_NodeParms *src) override
325  {
326  *this = *((const SOP_AttribCreate_2_0Parms *)src);
327  }
328 
329  template <typename T>
330  void
331  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
332  {
333  if (idx.size() < 1)
334  return;
335  UT_ASSERT(idx.size() == instance.size()+1);
336  if (idx.size() != instance.size()+1)
337  return;
338  switch (idx[0])
339  {
340  case 0:
341  coerceValue(value, myGroup);
342  break;
343  case 1:
344  coerceValue(value, myGrouptype);
345  break;
346  case 2:
347  coerceValue(value, myEncodenames);
348  break;
349  case 3:
350  if (idx.size() == 1)
351  coerceValue(value, myNumattr.entries());
352  else if (instance[0] < myNumattr.entries())
353  {
354  auto && _data = myNumattr(instance[0]);
355  switch (idx[1])
356  {
357  case 0:
358  coerceValue(value, _data.enable);
359  break;
360  case 1:
361  coerceValue(value, _data.name);
362  break;
363  case 2:
364  coerceValue(value, _data.existing);
365  break;
366  case 3:
367  coerceValue(value, _data.createvarmap);
368  break;
369  case 4:
370  coerceValue(value, _data.varname);
371  break;
372  case 5:
373  coerceValue(value, _data._class);
374  break;
375  case 6:
376  coerceValue(value, _data.savetoinfo);
377  break;
378  case 7:
379  coerceValue(value, _data.type);
380  break;
381  case 8:
382  coerceValue(value, _data.typeinfo);
383  break;
384  case 9:
385  coerceValue(value, _data.precision);
386  break;
387  case 10:
388  coerceValue(value, _data.size);
389  break;
390  case 11:
391  coerceValue(value, _data.defaultv);
392  break;
393  case 12:
394  coerceValue(value, _data.writevalues);
395  break;
396  case 13:
397  coerceValue(value, _data.uselocal);
398  break;
399  case 14:
400  coerceValue(value, _data.valuev);
401  break;
402  case 15:
403  coerceValue(value, _data.string);
404  break;
405 
406  }
407  }
408  break;
409 
410  }
411  }
412 
413  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
414  { doGetParmValue(idx, instance, value); }
415  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
416  { doGetParmValue(idx, instance, value); }
417  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
418  { doGetParmValue(idx, instance, value); }
419  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
420  { doGetParmValue(idx, instance, value); }
421  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
422  { doGetParmValue(idx, instance, value); }
423  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
424  { doGetParmValue(idx, instance, value); }
425  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
426  { doGetParmValue(idx, instance, value); }
427  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
428  { doGetParmValue(idx, instance, value); }
429  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
430  { doGetParmValue(idx, instance, value); }
431  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
432  { doGetParmValue(idx, instance, value); }
433  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
434  { doGetParmValue(idx, instance, value); }
435 
436  template <typename T>
437  void
438  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
439  {
440  if (idx.size() < 1)
441  return;
442  UT_ASSERT(idx.size() == instance.size()+1);
443  if (idx.size() != instance.size()+1)
444  return;
445  switch (idx[0])
446  {
447  case 0:
448  coerceValue(myGroup, value);
449  break;
450  case 1:
451  coerceValue(myGrouptype, value);
452  break;
453  case 2:
454  coerceValue(myEncodenames, value);
455  break;
456  case 3:
457  if (idx.size() == 1)
458  {
459  exint newsize;
460  coerceValue(newsize, value);
461  myNumattr.setSize(newsize);
462  }
463  else
464  {
465  myNumattr.setSizeIfNeeded(instance[0]+1);
466  auto && _data = myNumattr(instance[0]);
467  switch (idx[1])
468  {
469  case 0:
470  coerceValue(_data.enable, value);
471  break;
472  case 1:
473  coerceValue(_data.name, value);
474  break;
475  case 2:
476  coerceValue(_data.existing, value);
477  break;
478  case 3:
479  coerceValue(_data.createvarmap, value);
480  break;
481  case 4:
482  coerceValue(_data.varname, value);
483  break;
484  case 5:
485  coerceValue(_data._class, value);
486  break;
487  case 6:
488  coerceValue(_data.savetoinfo, value);
489  break;
490  case 7:
491  coerceValue(_data.type, value);
492  break;
493  case 8:
494  coerceValue(_data.typeinfo, value);
495  break;
496  case 9:
497  coerceValue(_data.precision, value);
498  break;
499  case 10:
500  coerceValue(_data.size, value);
501  break;
502  case 11:
503  coerceValue(_data.defaultv, value);
504  break;
505  case 12:
506  coerceValue(_data.writevalues, value);
507  break;
508  case 13:
509  coerceValue(_data.uselocal, value);
510  break;
511  case 14:
512  coerceValue(_data.valuev, value);
513  break;
514  case 15:
515  coerceValue(_data.string, value);
516  break;
517 
518  }
519  }
520  break;
521 
522  }
523  }
524 
525  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
526  { doSetParmValue(idx, instance, value); }
527  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
528  { doSetParmValue(idx, instance, value); }
529  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
530  { doSetParmValue(idx, instance, value); }
531  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
532  { doSetParmValue(idx, instance, value); }
533  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
534  { doSetParmValue(idx, instance, value); }
535  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
536  { doSetParmValue(idx, instance, value); }
537  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
538  { doSetParmValue(idx, instance, value); }
539  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
540  { doSetParmValue(idx, instance, value); }
541  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
542  { doSetParmValue(idx, instance, value); }
543  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
544  { doSetParmValue(idx, instance, value); }
545  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
546  { doSetParmValue(idx, instance, value); }
547 
548  exint getNestNumParms(TempIndex idx) const override
549  {
550  if (idx.size() == 0)
551  return 4;
552  switch (idx[0])
553  {
554  case 3:
555  return 16;
556 
557  }
558  // Invalid
559  return 0;
560  }
561 
562  const char *getNestParmName(TempIndex fieldnum) const override
563  {
564  if (fieldnum.size() < 1)
565  return 0;
566  switch (fieldnum[0])
567  {
568  case 0:
569  return "group";
570  case 1:
571  return "grouptype";
572  case 2:
573  return "encodenames";
574  case 3:
575  if (fieldnum.size() == 1)
576  return "numattr";
577  switch (fieldnum[1])
578  {
579  case 0:
580  return "enable#";
581  case 1:
582  return "name#";
583  case 2:
584  return "existing#";
585  case 3:
586  return "createvarmap#";
587  case 4:
588  return "varname#";
589  case 5:
590  return "class#";
591  case 6:
592  return "savetoinfo#";
593  case 7:
594  return "type#";
595  case 8:
596  return "typeinfo#";
597  case 9:
598  return "precision#";
599  case 10:
600  return "size#";
601  case 11:
602  return "default#v";
603  case 12:
604  return "writevalues#";
605  case 13:
606  return "uselocal#";
607  case 14:
608  return "value#v";
609  case 15:
610  return "string#";
611 
612  }
613  return 0;
614 
615  }
616  return 0;
617  }
618 
619  ParmType getNestParmType(TempIndex fieldnum) const override
620  {
621  if (fieldnum.size() < 1)
622  return PARM_UNSUPPORTED;
623  switch (fieldnum[0])
624  {
625  case 0:
626  return PARM_STRING;
627  case 1:
628  return PARM_INTEGER;
629  case 2:
630  return PARM_INTEGER;
631  case 3:
632  if (fieldnum.size() == 1)
633  return PARM_MULTIPARM;
634  switch (fieldnum[1])
635  {
636  case 0:
637  return PARM_INTEGER;
638  case 1:
639  return PARM_STRING;
640  case 2:
641  return PARM_INTEGER;
642  case 3:
643  return PARM_INTEGER;
644  case 4:
645  return PARM_STRING;
646  case 5:
647  return PARM_INTEGER;
648  case 6:
649  return PARM_INTEGER;
650  case 7:
651  return PARM_INTEGER;
652  case 8:
653  return PARM_INTEGER;
654  case 9:
655  return PARM_INTEGER;
656  case 10:
657  return PARM_INTEGER;
658  case 11:
659  return PARM_VECTOR4;
660  case 12:
661  return PARM_INTEGER;
662  case 13:
663  return PARM_INTEGER;
664  case 14:
665  return PARM_VECTOR4;
666  case 15:
667  return PARM_STRING;
668 
669  }
670  return PARM_UNSUPPORTED;
671 
672  }
673  return PARM_UNSUPPORTED;
674  }
675 
676  // Boiler plate to load individual types.
677  static void loadData(UT_IStream &is, int64 &v)
678  { is.bread(&v, 1); }
679  static void loadData(UT_IStream &is, bool &v)
680  { int64 iv; is.bread(&iv, 1); v = iv; }
681  static void loadData(UT_IStream &is, fpreal64 &v)
682  { is.bread<fpreal64>(&v, 1); }
683  static void loadData(UT_IStream &is, UT_Vector2D &v)
684  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
685  static void loadData(UT_IStream &is, UT_Vector3D &v)
686  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
687  is.bread<fpreal64>(&v.z(), 1); }
688  static void loadData(UT_IStream &is, UT_Vector4D &v)
689  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
690  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
691  static void loadData(UT_IStream &is, UT_Matrix2D &v)
692  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
693  static void loadData(UT_IStream &is, UT_Matrix3D &v)
694  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
695  static void loadData(UT_IStream &is, UT_Matrix4D &v)
696  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
697  static void loadData(UT_IStream &is, UT_Vector2I &v)
698  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
699  static void loadData(UT_IStream &is, UT_Vector3I &v)
700  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
701  is.bread<int64>(&v.z(), 1); }
702  static void loadData(UT_IStream &is, UT_Vector4I &v)
703  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
704  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
706  { is.bread(v); }
708  { UT_StringHolder rampdata;
709  loadData(is, rampdata);
710  if (rampdata.isstring())
711  {
712  v.reset(new UT_Ramp());
713  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
714  v->load(istr);
715  }
716  else v.reset();
717  }
720  loadData(is, data);
721  if (data.isstring())
722  {
723  // Find the data type.
724  const char *colon = UT_StringWrap(data).findChar(':');
725  if (colon)
726  {
727  int typelen = colon - data.buffer();
729  type.strncpy(data.buffer(), typelen);
730  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
731 
732  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
733  }
734  }
735  else v.reset();
736  }
737 
738  static void saveData(std::ostream &os, int64 v)
739  { UTwrite(os, &v); }
740  static void saveData(std::ostream &os, bool v)
741  { int64 iv = v; UTwrite(os, &iv); }
742  static void saveData(std::ostream &os, fpreal64 v)
743  { UTwrite<fpreal64>(os, &v); }
744  static void saveData(std::ostream &os, UT_Vector2D v)
745  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
746  static void saveData(std::ostream &os, UT_Vector3D v)
747  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
748  UTwrite<fpreal64>(os, &v.z()); }
749  static void saveData(std::ostream &os, UT_Vector4D v)
750  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
751  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
752  static void saveData(std::ostream &os, UT_Matrix2D v)
754  static void saveData(std::ostream &os, UT_Matrix3D v)
756  static void saveData(std::ostream &os, UT_Matrix4D v)
758  static void saveData(std::ostream &os, UT_StringHolder s)
759  { UT_StringWrap(s).saveBinary(os); }
760  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
762  UT_OStringStream ostr;
763  if (s) s->save(ostr);
764  result = ostr.str();
765  saveData(os, result);
766  }
767  static void saveData(std::ostream &os, PRM_DataItemHandle s)
769  UT_OStringStream ostr;
770  if (s)
771  {
772  ostr << s->getDataTypeToken();
773  ostr << ":";
774  s->saveBinary(ostr);
775  }
776  result = ostr.str();
777  saveData(os, result);
778  }
779 
780 
781  void save(std::ostream &os) const
782  {
783  int32 v = version();
784  UTwrite(os, &v);
785  saveData(os, myGroup);
786  saveData(os, myGrouptype);
787  saveData(os, myEncodenames);
788  {
789  int64 length = myNumattr.entries();
790  UTwrite(os, &length);
791  for (exint i = 0; i < length; i++)
792  {
793  saveData(os, myNumattr(i).enable);
794  saveData(os, myNumattr(i).name);
795  saveData(os, myNumattr(i).existing);
796  saveData(os, myNumattr(i).createvarmap);
797  saveData(os, myNumattr(i).varname);
798  saveData(os, myNumattr(i)._class);
799  saveData(os, myNumattr(i).savetoinfo);
800  saveData(os, myNumattr(i).type);
801  saveData(os, myNumattr(i).typeinfo);
802  saveData(os, myNumattr(i).precision);
803  saveData(os, myNumattr(i).size);
804  saveData(os, myNumattr(i).defaultv);
805  saveData(os, myNumattr(i).writevalues);
806  saveData(os, myNumattr(i).uselocal);
807  saveData(os, myNumattr(i).valuev);
808  saveData(os, myNumattr(i).string);
809 
810  }
811  }
812 
813  }
814 
815  bool load(UT_IStream &is)
816  {
817  int32 v;
818  is.bread(&v, 1);
819  if (version() != v)
820  {
821  // Fail incompatible versions
822  return false;
823  }
824  loadData(is, myGroup);
825  loadData(is, myGrouptype);
826  loadData(is, myEncodenames);
827  {
828  int64 length;
829  is.read(&length, 1);
830  myNumattr.entries(length);
831  for (exint i = 0; i < length; i++)
832  {
833  loadData(is, myNumattr(i).enable);
834  loadData(is, myNumattr(i).name);
835  loadData(is, myNumattr(i).existing);
836  loadData(is, myNumattr(i).createvarmap);
837  loadData(is, myNumattr(i).varname);
838  loadData(is, myNumattr(i)._class);
839  loadData(is, myNumattr(i).savetoinfo);
840  loadData(is, myNumattr(i).type);
841  loadData(is, myNumattr(i).typeinfo);
842  loadData(is, myNumattr(i).precision);
843  loadData(is, myNumattr(i).size);
844  loadData(is, myNumattr(i).defaultv);
845  loadData(is, myNumattr(i).writevalues);
846  loadData(is, myNumattr(i).uselocal);
847  loadData(is, myNumattr(i).valuev);
848  loadData(is, myNumattr(i).string);
849 
850  }
851  }
852 
853  return true;
854  }
855 
856  const UT_StringHolder & getGroup() const { return myGroup; }
857  void setGroup(const UT_StringHolder & val) { myGroup = val; }
859  {
860  SOP_Node *thissop = cookparms.getNode();
861  if (!thissop) return getGroup();
863  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
864  return result;
865  }
866  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
867  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
869  {
870  SOP_Node *thissop = cookparms.getNode();
871  if (!thissop) return getGrouptype();
872  int64 result;
873  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
874  return Grouptype(result);
875  }
876  bool getEncodenames() const { return myEncodenames; }
877  void setEncodenames(bool val) { myEncodenames = val; }
878  bool opEncodenames(const SOP_NodeVerb::CookParms &cookparms) const
879  {
880  SOP_Node *thissop = cookparms.getNode();
881  if (!thissop) return getEncodenames();
882  bool result;
883  OP_Utils::evalOpParm(result, thissop, "encodenames", cookparms.getCookTime(), 0);
884  return result;
885  }
886  const UT_Array<Numattr> &getNumattr() const { return myNumattr; }
887  void setNumattr(const UT_Array<Numattr> &val) { myNumattr = val; }
888  exint opNumattr(const SOP_NodeVerb::CookParms &cookparms) const
889  {
890  SOP_Node *thissop = cookparms.getNode();
891  if (!thissop) return getNumattr().entries();
892  exint result;
893  OP_Utils::evalOpParm(result, thissop, "numattr", cookparms.getCookTime(), 0);
894  return result;
895  }
896  bool opNumattr_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
897  {
898  SOP_Node *thissop = cookparms.getNode();
899  if (!thissop) return (myNumattr(_idx).enable);
900  int _parmidx = _idx + 1;
901  bool result;
902  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
903  return (result);
904  }
906  {
907  SOP_Node *thissop = cookparms.getNode();
908  if (!thissop) return (myNumattr(_idx).name);
909  int _parmidx = _idx + 1;
911  OP_Utils::evalOpParmInst(result, thissop, "name#", &_parmidx, cookparms.getCookTime(), 0);
912  return (result);
913  }
915  {
916  SOP_Node *thissop = cookparms.getNode();
917  if (!thissop) return (myNumattr(_idx).existing);
918  int _parmidx = _idx + 1;
919  int64 result;
920  OP_Utils::evalOpParmInst(result, thissop, "existing#", &_parmidx, cookparms.getCookTime(), 0);
921  return (result);
922  }
923  bool opNumattr_createvarmap(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
924  {
925  SOP_Node *thissop = cookparms.getNode();
926  if (!thissop) return (myNumattr(_idx).createvarmap);
927  int _parmidx = _idx + 1;
928  bool result;
929  OP_Utils::evalOpParmInst(result, thissop, "createvarmap#", &_parmidx, cookparms.getCookTime(), 0);
930  return (result);
931  }
933  {
934  SOP_Node *thissop = cookparms.getNode();
935  if (!thissop) return (myNumattr(_idx).varname);
936  int _parmidx = _idx + 1;
938  OP_Utils::evalOpParmInst(result, thissop, "varname#", &_parmidx, cookparms.getCookTime(), 0);
939  return (result);
940  }
941  int64 opNumattr__class(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
942  {
943  SOP_Node *thissop = cookparms.getNode();
944  if (!thissop) return (myNumattr(_idx)._class);
945  int _parmidx = _idx + 1;
946  int64 result;
947  OP_Utils::evalOpParmInst(result, thissop, "class#", &_parmidx, cookparms.getCookTime(), 0);
948  return (result);
949  }
950  bool opNumattr_savetoinfo(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
951  {
952  SOP_Node *thissop = cookparms.getNode();
953  if (!thissop) return (myNumattr(_idx).savetoinfo);
954  int _parmidx = _idx + 1;
955  bool result;
956  OP_Utils::evalOpParmInst(result, thissop, "savetoinfo#", &_parmidx, cookparms.getCookTime(), 0);
957  return (result);
958  }
959  int64 opNumattr_type(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
960  {
961  SOP_Node *thissop = cookparms.getNode();
962  if (!thissop) return (myNumattr(_idx).type);
963  int _parmidx = _idx + 1;
964  int64 result;
965  OP_Utils::evalOpParmInst(result, thissop, "type#", &_parmidx, cookparms.getCookTime(), 0);
966  return (result);
967  }
969  {
970  SOP_Node *thissop = cookparms.getNode();
971  if (!thissop) return (myNumattr(_idx).typeinfo);
972  int _parmidx = _idx + 1;
973  int64 result;
974  OP_Utils::evalOpParmInst(result, thissop, "typeinfo#", &_parmidx, cookparms.getCookTime(), 0);
975  return (result);
976  }
978  {
979  SOP_Node *thissop = cookparms.getNode();
980  if (!thissop) return (myNumattr(_idx).precision);
981  int _parmidx = _idx + 1;
982  int64 result;
983  OP_Utils::evalOpParmInst(result, thissop, "precision#", &_parmidx, cookparms.getCookTime(), 0);
984  return (result);
985  }
986  int64 opNumattr_size(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
987  {
988  SOP_Node *thissop = cookparms.getNode();
989  if (!thissop) return (myNumattr(_idx).size);
990  int _parmidx = _idx + 1;
991  int64 result;
992  OP_Utils::evalOpParmInst(result, thissop, "size#", &_parmidx, cookparms.getCookTime(), 0);
993  return (result);
994  }
996  {
997  SOP_Node *thissop = cookparms.getNode();
998  if (!thissop) return (myNumattr(_idx).defaultv);
999  int _parmidx = _idx + 1;
1001  OP_Utils::evalOpParmInst(result, thissop, "default#v", &_parmidx, cookparms.getCookTime(), 0);
1002  return (result);
1003  }
1004  bool opNumattr_writevalues(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
1005  {
1006  SOP_Node *thissop = cookparms.getNode();
1007  if (!thissop) return (myNumattr(_idx).writevalues);
1008  int _parmidx = _idx + 1;
1009  bool result;
1010  OP_Utils::evalOpParmInst(result, thissop, "writevalues#", &_parmidx, cookparms.getCookTime(), 0);
1011  return (result);
1012  }
1013  bool opNumattr_uselocal(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
1014  {
1015  SOP_Node *thissop = cookparms.getNode();
1016  if (!thissop) return (myNumattr(_idx).uselocal);
1017  int _parmidx = _idx + 1;
1018  bool result;
1019  OP_Utils::evalOpParmInst(result, thissop, "uselocal#", &_parmidx, cookparms.getCookTime(), 0);
1020  return (result);
1021  }
1023  {
1024  SOP_Node *thissop = cookparms.getNode();
1025  if (!thissop) return (myNumattr(_idx).valuev);
1026  int _parmidx = _idx + 1;
1028  OP_Utils::evalOpParmInst(result, thissop, "value#v", &_parmidx, cookparms.getCookTime(), 0);
1029  return (result);
1030  }
1032  {
1033  SOP_Node *thissop = cookparms.getNode();
1034  if (!thissop) return (myNumattr(_idx).string);
1035  int _parmidx = _idx + 1;
1037  OP_Utils::evalOpParmInst(result, thissop, "string#", &_parmidx, cookparms.getCookTime(), 0);
1038  return (result);
1039  }
1040 
1041 
1042 private:
1043  UT_StringHolder myGroup;
1044  int64 myGrouptype;
1045  bool myEncodenames;
1046  UT_Array<Numattr> myNumattr;
1047 
1048 };
static void loadData(UT_IStream &is, UT_Vector4D &v)
GLdouble s
Definition: glew.h:1390
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
bool opNumattr_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLsizeiptr size
Definition: glew.h:1681
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GLuint const GLchar * name
Definition: glew.h:1814
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, int *inst, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNumattr(const UT_Array< Numattr > &val)
exint bread(int32 *buffer, exint asize=1)
static void saveData(std::ostream &os, UT_Vector4D v)
GT_API const UT_StringHolder time
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
fpreal getTime() const
Definition: OP_Context.h:60
exint getNestNumParms(TempIndex idx) const override
GLuint const GLfloat * val
Definition: glew.h:2794
UT_StringHolder opNumattr_string(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void loadData(UT_IStream &is, fpreal64 &v)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
UT_Vector4D opNumattr_defaultv(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
bool opNumattr_writevalues(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const UT_StringHolder & getGroup() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool operator==(const Numattr &src) const
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool operator==(const SOP_AttribCreate_2_0Parms &src) const
bool operator!=(const SOP_AttribCreate_2_0Parms &src) const
const GLdouble * v
Definition: glew.h:1391
int64 opNumattr_existing(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
int64 opNumattr_type(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void loadFromOpSubclass(const LoadParms &loadparms) override
bool opNumattr_savetoinfo(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const char * getNestParmName(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void copyFrom(const SOP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
double fpreal64
Definition: SYS_Types.h:201
static void saveData(std::ostream &os, bool v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
int64 opNumattr_typeinfo(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
typedef INT(WINAPI *PFNWGLGETGPUINFOAMDPROC)(UINT id
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
exint length() const
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
bool opNumattr_uselocal(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
ParmType getNestParmType(TempIndex fieldnum) const override
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
int64 opNumattr_precision(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:284
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void
Definition: png.h:1083
const GLfloat * c
Definition: glew.h:16296
GLuint GLsizei GLsizei * length
Definition: glew.h:1825
UT_Vector4D opNumattr_valuev(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
int64 opNumattr__class(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
long long int64
Definition: SYS_Types.h:116
bool opNumattr_createvarmap(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
exint opNumattr(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_StringHolder opNumattr_varname(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1253
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
UT_StringHolder opNumattr_name(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void save(std::ostream &os) const
SYS_FORCE_INLINE void strcat(const char *src)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void saveData(std::ostream &os, UT_Matrix4D v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:460
UT_StringHolder createString(const UT_Array< Numattr > &list) const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static void loadData(UT_IStream &is, UT_Vector2I &v)
const UT_Array< Numattr > & getNumattr() const
fpreal64 fpreal
Definition: SYS_Types.h:277
bool operator!=(const Numattr &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void append(char character)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, fpreal64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
int64 opNumattr_size(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1368
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
UT_Vector4T< fpreal64 > UT_Vector4D
static void loadData(UT_IStream &is, int64 &v)
GLenum GLuint GLsizei const GLchar * buf
Definition: glew.h:2580
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLenum GLint GLint * precision
Definition: glew.h:3500
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GLsizei const GLfloat * value
Definition: glew.h:1849
static void loadData(UT_IStream &is, bool &v)
GLboolean enable
Definition: glew.h:2745
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
SYS_FORCE_INLINE bool isstring() const
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
bool opEncodenames(const SOP_NodeVerb::CookParms &cookparms) const