HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_MLRegressionInferenceCore.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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <OP/OP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_MLRegressionInferenceCoreEnums
24 {
25  enum class Batch
26  {
27  SINGLE = 0,
29  };
30 
32  getToken(Batch enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Batch::SINGLE: return "single"_sh;
37  case Batch::MULTIPLEPACKED: return "multiplepacked"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class InputType
43  {
44  POINT = 0,
45  VOLUME
46  };
47 
49  getToken(InputType enum_value)
50  {
51  using namespace UT::Literal;
52  switch (enum_value) {
53  case InputType::POINT: return "point"_sh;
54  case InputType::VOLUME: return "volume"_sh;
55  default: UT_ASSERT(false); return ""_sh;
56  }
57  }
58 
59  enum class OutputType
60  {
61  POINT = 0,
62  VOLUME
63  };
64 
66  getToken(OutputType enum_value)
67  {
68  using namespace UT::Literal;
69  switch (enum_value) {
70  case OutputType::POINT: return "point"_sh;
71  case OutputType::VOLUME: return "volume"_sh;
72  default: UT_ASSERT(false); return ""_sh;
73  }
74  }
75 
76 }
77 
78 
80 {
81 public:
82  static int version() { return 1; }
83  struct Inputs
84  {
88 
89 
91  {
92  inputtype = 0;
93  inputpointattribute = "value"_UTsh;
94  inputvolumename = "density"_UTsh;
95 
96  }
97 
98  bool operator==(const Inputs &src) const
99  {
100  if (inputtype != src.inputtype) return false;
101  if (inputpointattribute != src.inputpointattribute) return false;
102  if (inputvolumename != src.inputvolumename) return false;
103 
104  return true;
105  }
106  bool operator!=(const Inputs &src) const
107  {
108  return !operator==(src);
109  }
110 
111  };
112 
114  {
116 
117  buf.strcat("[ ");
118  for (int i = 0; i < list.entries(); i++)
119  {
120  if (i)
121  buf.strcat(", ");
122  buf.strcat("( ");
123  buf.append("");
124  buf.appendSprintf("%d", (int) list(i).inputtype);
125  buf.append(", ");
126  { UT_String tmp; tmp = UT_StringWrap(list(i).inputpointattribute).makeQuotedString('"'); buf.strcat(tmp); }
127  buf.append(", ");
128  { UT_String tmp; tmp = UT_StringWrap(list(i).inputvolumename).makeQuotedString('"'); buf.strcat(tmp); }
129 
130  buf.strcat(" )");
131  }
132  buf.strcat(" ]");
133 
135  return result;
136  }
137  struct Outputs
138  {
144 
145 
147  {
148  outputtype = 0;
149  outputpointattribute = "value"_UTsh;
150  outputvolumename = "density"_UTsh;
151  outputvolumeresolution = UT_Vector3I(10,10,10);
152  outputtuplesize = 1;
153 
154  }
155 
156  bool operator==(const Outputs &src) const
157  {
158  if (outputtype != src.outputtype) return false;
159  if (outputpointattribute != src.outputpointattribute) return false;
160  if (outputvolumename != src.outputvolumename) return false;
161  if (outputvolumeresolution != src.outputvolumeresolution) return false;
162  if (outputtuplesize != src.outputtuplesize) return false;
163 
164  return true;
165  }
166  bool operator!=(const Outputs &src) const
167  {
168  return !operator==(src);
169  }
170 
171  };
172 
174  {
176 
177  buf.strcat("[ ");
178  for (int i = 0; i < list.entries(); i++)
179  {
180  if (i)
181  buf.strcat(", ");
182  buf.strcat("( ");
183  buf.append("");
184  buf.appendSprintf("%d", (int) list(i).outputtype);
185  buf.append(", ");
186  { UT_String tmp; tmp = UT_StringWrap(list(i).outputpointattribute).makeQuotedString('"'); buf.strcat(tmp); }
187  buf.append(", ");
188  { UT_String tmp; tmp = UT_StringWrap(list(i).outputvolumename).makeQuotedString('"'); buf.strcat(tmp); }
189  buf.append(", ");
190  buf.appendSprintf("(%" SYS_PRId64 ", %" SYS_PRId64 ", %" SYS_PRId64 ")", list(i).outputvolumeresolution.x(), list(i).outputvolumeresolution.y(), list(i).outputvolumeresolution.z());
191  buf.append(", ");
192  buf.appendSprintf("%d", (int) list(i).outputtuplesize);
193 
194  buf.strcat(" )");
195  }
196  buf.strcat(" ]");
197 
199  return result;
200  }
201 
203  {
204  myProvider = 0;
205  myDeviceid = 0;
206  myBatch = 0;
207  myDoMaxBatch = false;
208  myMaxBatch = 65536;
209  myModelFile = ""_UTsh;
210  raw_myModelFile = ""_UTsh;
211  myInputs.setSize(1);
212  myOutputs.setSize(1);
213 
214  }
215 
220 
222 
224  {
225  if (myProvider != src.myProvider) return false;
226  if (myDeviceid != src.myDeviceid) return false;
227  if (myBatch != src.myBatch) return false;
228  if (myDoMaxBatch != src.myDoMaxBatch) return false;
229  if (myMaxBatch != src.myMaxBatch) return false;
230  if (myModelFile != src.myModelFile) return false;
231  if (raw_myModelFile != src.raw_myModelFile) return false;
232  if (myInputs != src.myInputs) return false;
233  if (myOutputs != src.myOutputs) return false;
234 
235 
236  if (baseGetSignature() != src.baseGetSignature()) return false;
237 
238  return true;
239  }
241  {
242  return !operator==(src);
243  }
247 
248 
249 
250  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
251  {
252  myProvider = 0;
253  if (true)
254  graph->evalOpParm(myProvider, nodeidx, "provider", time, graph->isDirect()?nullptr:depnode);
255  myDeviceid = 0;
256  if (true && ( (true&&!(((false)))) ) )
257  graph->evalOpParm(myDeviceid, nodeidx, "deviceid", time, graph->isDirect()?nullptr:depnode);
258  myBatch = 0;
259  if (true)
260  graph->evalOpParm(myBatch, nodeidx, "batch", time, graph->isDirect()?nullptr:depnode);
261  myDoMaxBatch = false;
262  if (true)
263  graph->evalOpParm(myDoMaxBatch, nodeidx, "domaxbatch", time, graph->isDirect()?nullptr:depnode);
264  myMaxBatch = 65536;
265  if (true && ( (true&&!(((getDoMaxBatch()==0)))) ) )
266  graph->evalOpParm(myMaxBatch, nodeidx, "maxbatch", time, graph->isDirect()?nullptr:depnode);
267  myModelFile = ""_UTsh;
268  if (true)
269  graph->evalOpParm(myModelFile, nodeidx, "modelfile", time, graph->isDirect()?nullptr:depnode);
270  raw_myModelFile = ""_UTsh;
271  if (true)
272  graph->evalOpParmRaw(raw_myModelFile, nodeidx, "modelfile", time, graph->isDirect()?nullptr:depnode);
273  if (true)
274  {
275  int64 length = 0;
276  graph->evalOpParm(length, nodeidx, "inputs", time, graph->isDirect()?nullptr:depnode);
277  if (length < 0) length = 0;
278  myInputs.setSize(length);
279  for (exint i = 0; i < length; i++)
280  {
281  int parmidx[1];
282  int offsets[1];
283  parmidx[0] = i+1;
284  offsets[0] = 1;
285  auto && _curentry = myInputs(i);
286  (void) _curentry;
287  _curentry.inputtype = 0;
288  if (true)
289  graph->evalOpParmInst(_curentry.inputtype, nodeidx, "inputtype#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
290  _curentry.inputpointattribute = "value"_UTsh;
291  if (true && ( (true&&!(((_curentry.inputtype!=0)))) ) )
292  graph->evalOpParmInst(_curentry.inputpointattribute, nodeidx, "inputpointattribute#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
293  _curentry.inputvolumename = "density"_UTsh;
294  if (true && ( (true&&!(((_curentry.inputtype!=1)))) ) )
295  graph->evalOpParmInst(_curentry.inputvolumename, nodeidx, "inputvolumename#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
296 
297  }
298  }
299  else
300  myInputs.clear();
301  if (true)
302  {
303  int64 length = 0;
304  graph->evalOpParm(length, nodeidx, "outputs", time, graph->isDirect()?nullptr:depnode);
305  if (length < 0) length = 0;
306  myOutputs.setSize(length);
307  for (exint i = 0; i < length; i++)
308  {
309  int parmidx[1];
310  int offsets[1];
311  parmidx[0] = i+1;
312  offsets[0] = 1;
313  auto && _curentry = myOutputs(i);
314  (void) _curentry;
315  _curentry.outputtype = 0;
316  if (true)
317  graph->evalOpParmInst(_curentry.outputtype, nodeidx, "outputtype#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
318  _curentry.outputpointattribute = "value"_UTsh;
319  if (true && ( (true&&!(((_curentry.outputtype!=0)))) ) )
320  graph->evalOpParmInst(_curentry.outputpointattribute, nodeidx, "outputpointattribute#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
321  _curentry.outputvolumename = "density"_UTsh;
322  if (true && ( (true&&!(((_curentry.outputtype!=1)))) ) )
323  graph->evalOpParmInst(_curentry.outputvolumename, nodeidx, "outputvolumename#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
324  _curentry.outputvolumeresolution = UT_Vector3I(10,10,10);
325  if (true && ( (true&&!(((_curentry.outputtype!=1)))) ) )
326  graph->evalOpParmInst(_curentry.outputvolumeresolution, nodeidx, "outputvolumeresolution#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
327  _curentry.outputtuplesize = 1;
328  if (true)
329  graph->evalOpParmInst(_curentry.outputtuplesize, nodeidx, "outputtuplesize#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
330 
331  }
332  }
333  else
334  myOutputs.clear();
335 
336  }
337 
338 
339  void loadFromOpSubclass(const LoadParms &loadparms) override
340  {
341  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
342  }
343 
344 
345  void copyFrom(const OP_NodeParms *src) override
346  {
347  *this = *((const SOP_MLRegressionInferenceCoreParms *)src);
348  }
349 
350  template <typename T>
351  void
352  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
353  {
354  if (idx.size() < 1)
355  return;
356  UT_ASSERT(idx.size() == instance.size()+1);
357  if (idx.size() != instance.size()+1)
358  return;
359  switch (idx[0])
360  {
361  case 0:
362  coerceValue(value, myProvider);
363  break;
364  case 1:
365  coerceValue(value, myDeviceid);
366  break;
367  case 2:
368  coerceValue(value, myBatch);
369  break;
370  case 3:
371  coerceValue(value, myDoMaxBatch);
372  break;
373  case 4:
374  coerceValue(value, myMaxBatch);
375  break;
376  case 5:
377  coerceValue(value, myModelFile);
378  break;
379  case 6:
380  if (idx.size() == 1)
381  coerceValue(value, myInputs.entries());
382  else if (instance[0] < myInputs.entries())
383  {
384  auto && _data = myInputs(instance[0]);
385  switch (idx[1])
386  {
387  case 0:
388  coerceValue(value, _data.inputtype);
389  break;
390  case 1:
391  coerceValue(value, _data.inputpointattribute);
392  break;
393  case 2:
394  coerceValue(value, _data.inputvolumename);
395  break;
396 
397  }
398  }
399  break;
400  case 7:
401  if (idx.size() == 1)
402  coerceValue(value, myOutputs.entries());
403  else if (instance[0] < myOutputs.entries())
404  {
405  auto && _data = myOutputs(instance[0]);
406  switch (idx[1])
407  {
408  case 0:
409  coerceValue(value, _data.outputtype);
410  break;
411  case 1:
412  coerceValue(value, _data.outputpointattribute);
413  break;
414  case 2:
415  coerceValue(value, _data.outputvolumename);
416  break;
417  case 3:
418  coerceValue(value, _data.outputvolumeresolution);
419  break;
420  case 4:
421  coerceValue(value, _data.outputtuplesize);
422  break;
423 
424  }
425  }
426  break;
427 
428  }
429  }
430 
431  bool isParmColorRamp(exint idx) const override
432  {
433  switch (idx)
434  {
435 
436  }
437  return false;
438  }
439 
440  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
441  { doGetParmValue(idx, instance, value); }
442  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
443  { doGetParmValue(idx, instance, value); }
444  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
445  { doGetParmValue(idx, instance, value); }
446  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
447  { doGetParmValue(idx, instance, value); }
448  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
449  { doGetParmValue(idx, instance, value); }
450  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
451  { doGetParmValue(idx, instance, value); }
452  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
453  { doGetParmValue(idx, instance, value); }
454  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
455  { doGetParmValue(idx, instance, value); }
456  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
457  { doGetParmValue(idx, instance, value); }
458  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
459  { doGetParmValue(idx, instance, value); }
460  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
461  { doGetParmValue(idx, instance, value); }
462 
463  template <typename T>
464  void
465  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
466  {
467  if (idx.size() < 1)
468  return;
469  UT_ASSERT(idx.size() == instance.size()+1);
470  if (idx.size() != instance.size()+1)
471  return;
472  switch (idx[0])
473  {
474  case 0:
475  coerceValue(myProvider, ( ( value ) ));
476  break;
477  case 1:
478  coerceValue(myDeviceid, ( ( value ) ));
479  break;
480  case 2:
481  coerceValue(myBatch, clampMinValue(0, clampMaxValue(1, value ) ));
482  break;
483  case 3:
484  coerceValue(myDoMaxBatch, ( ( value ) ));
485  break;
486  case 4:
487  coerceValue(myMaxBatch, ( ( value ) ));
488  break;
489  case 5:
490  coerceValue(myModelFile, ( ( value ) ));
491  break;
492  case 6:
493  if (idx.size() == 1)
494  {
495  exint newsize;
496  coerceValue(newsize, value);
497  if (newsize < 0) newsize = 0;
498  myInputs.setSize(newsize);
499  }
500  else
501  {
502  if (instance[0] < 0)
503  return;
504  myInputs.setSizeIfNeeded(instance[0]+1);
505  auto && _data = myInputs(instance[0]);
506  switch (idx[1])
507  {
508  case 0:
509  coerceValue(_data.inputtype, value);
510  break;
511  case 1:
512  coerceValue(_data.inputpointattribute, value);
513  break;
514  case 2:
515  coerceValue(_data.inputvolumename, value);
516  break;
517 
518  }
519  }
520  break;
521  case 7:
522  if (idx.size() == 1)
523  {
524  exint newsize;
525  coerceValue(newsize, value);
526  if (newsize < 0) newsize = 0;
527  myOutputs.setSize(newsize);
528  }
529  else
530  {
531  if (instance[0] < 0)
532  return;
533  myOutputs.setSizeIfNeeded(instance[0]+1);
534  auto && _data = myOutputs(instance[0]);
535  switch (idx[1])
536  {
537  case 0:
538  coerceValue(_data.outputtype, value);
539  break;
540  case 1:
541  coerceValue(_data.outputpointattribute, value);
542  break;
543  case 2:
544  coerceValue(_data.outputvolumename, value);
545  break;
546  case 3:
547  coerceValue(_data.outputvolumeresolution, value);
548  break;
549  case 4:
550  coerceValue(_data.outputtuplesize, value);
551  break;
552 
553  }
554  }
555  break;
556 
557  }
558  }
559 
560  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
561  { doSetParmValue(idx, instance, value); }
562  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
563  { doSetParmValue(idx, instance, value); }
564  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
565  { doSetParmValue(idx, instance, value); }
566  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
567  { doSetParmValue(idx, instance, value); }
568  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
569  { doSetParmValue(idx, instance, value); }
570  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
571  { doSetParmValue(idx, instance, value); }
572  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
573  { doSetParmValue(idx, instance, value); }
574  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
575  { doSetParmValue(idx, instance, value); }
576  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
577  { doSetParmValue(idx, instance, value); }
578  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
579  { doSetParmValue(idx, instance, value); }
580  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
581  { doSetParmValue(idx, instance, value); }
582 
583  exint getNestNumParms(TempIndex idx) const override
584  {
585  if (idx.size() == 0)
586  return 8;
587  switch (idx[0])
588  {
589  case 6:
590  return 3;
591  case 7:
592  return 5;
593 
594  }
595  // Invalid
596  return 0;
597  }
598 
599  const char *getNestParmName(TempIndex fieldnum) const override
600  {
601  if (fieldnum.size() < 1)
602  return 0;
603  switch (fieldnum[0])
604  {
605  case 0:
606  return "provider";
607  case 1:
608  return "deviceid";
609  case 2:
610  return "batch";
611  case 3:
612  return "domaxbatch";
613  case 4:
614  return "maxbatch";
615  case 5:
616  return "modelfile";
617  case 6:
618  if (fieldnum.size() == 1)
619  return "inputs";
620  switch (fieldnum[1])
621  {
622  case 0:
623  return "inputtype#";
624  case 1:
625  return "inputpointattribute#";
626  case 2:
627  return "inputvolumename#";
628 
629  }
630  return 0;
631  case 7:
632  if (fieldnum.size() == 1)
633  return "outputs";
634  switch (fieldnum[1])
635  {
636  case 0:
637  return "outputtype#";
638  case 1:
639  return "outputpointattribute#";
640  case 2:
641  return "outputvolumename#";
642  case 3:
643  return "outputvolumeresolution#";
644  case 4:
645  return "outputtuplesize#";
646 
647  }
648  return 0;
649 
650  }
651  return 0;
652  }
653 
654  ParmType getNestParmType(TempIndex fieldnum) const override
655  {
656  if (fieldnum.size() < 1)
657  return PARM_UNSUPPORTED;
658  switch (fieldnum[0])
659  {
660  case 0:
661  return PARM_INTEGER;
662  case 1:
663  return PARM_INTEGER;
664  case 2:
665  return PARM_INTEGER;
666  case 3:
667  return PARM_INTEGER;
668  case 4:
669  return PARM_INTEGER;
670  case 5:
671  return PARM_STRING;
672  case 6:
673  if (fieldnum.size() == 1)
674  return PARM_MULTIPARM;
675  switch (fieldnum[1])
676  {
677  case 0:
678  return PARM_INTEGER;
679  case 1:
680  return PARM_STRING;
681  case 2:
682  return PARM_STRING;
683 
684  }
685  return PARM_UNSUPPORTED;
686  case 7:
687  if (fieldnum.size() == 1)
688  return PARM_MULTIPARM;
689  switch (fieldnum[1])
690  {
691  case 0:
692  return PARM_INTEGER;
693  case 1:
694  return PARM_STRING;
695  case 2:
696  return PARM_STRING;
697  case 3:
698  return PARM_VECTOR3;
699  case 4:
700  return PARM_INTEGER;
701 
702  }
703  return PARM_UNSUPPORTED;
704 
705  }
706  return PARM_UNSUPPORTED;
707  }
708 
709  // Boiler plate to load individual types.
710  static void loadData(UT_IStream &is, int64 &v)
711  { is.bread(&v, 1); }
712  static void loadData(UT_IStream &is, bool &v)
713  { int64 iv; is.bread(&iv, 1); v = iv; }
714  static void loadData(UT_IStream &is, fpreal64 &v)
715  { is.bread<fpreal64>(&v, 1); }
716  static void loadData(UT_IStream &is, UT_Vector2D &v)
717  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
718  static void loadData(UT_IStream &is, UT_Vector3D &v)
719  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
720  is.bread<fpreal64>(&v.z(), 1); }
721  static void loadData(UT_IStream &is, UT_Vector4D &v)
722  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
723  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
724  static void loadData(UT_IStream &is, UT_Matrix2D &v)
725  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
726  static void loadData(UT_IStream &is, UT_Matrix3D &v)
727  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
728  static void loadData(UT_IStream &is, UT_Matrix4D &v)
729  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
730  static void loadData(UT_IStream &is, UT_Vector2I &v)
731  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
732  static void loadData(UT_IStream &is, UT_Vector3I &v)
733  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
734  is.bread<int64>(&v.z(), 1); }
735  static void loadData(UT_IStream &is, UT_Vector4I &v)
736  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
737  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
739  { is.bread(v); }
741  { UT_StringHolder rampdata;
742  loadData(is, rampdata);
743  if (rampdata.isstring())
744  {
745  v.reset(new UT_Ramp());
746  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
747  v->load(istr);
748  }
749  else v.reset();
750  }
753  loadData(is, data);
754  if (data.isstring())
755  {
756  // Find the data type.
757  const char *colon = UT_StringWrap(data).findChar(':');
758  if (colon)
759  {
760  int typelen = colon - data.buffer();
762  type.strncpy(data.buffer(), typelen);
763  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
764 
765  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
766  }
767  }
768  else v.reset();
769  }
770 
771  static void saveData(std::ostream &os, int64 v)
772  { UTwrite(os, &v); }
773  static void saveData(std::ostream &os, bool v)
774  { int64 iv = v; UTwrite(os, &iv); }
775  static void saveData(std::ostream &os, fpreal64 v)
776  { UTwrite<fpreal64>(os, &v); }
777  static void saveData(std::ostream &os, UT_Vector2D v)
778  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
779  static void saveData(std::ostream &os, UT_Vector3D v)
780  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
781  UTwrite<fpreal64>(os, &v.z()); }
782  static void saveData(std::ostream &os, UT_Vector4D v)
783  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
784  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
785  static void saveData(std::ostream &os, UT_Matrix2D v)
787  static void saveData(std::ostream &os, UT_Matrix3D v)
789  static void saveData(std::ostream &os, UT_Matrix4D v)
791  static void saveData(std::ostream &os, UT_StringHolder s)
792  { UT_StringWrap(s).saveBinary(os); }
793  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
795  UT_OStringStream ostr;
796  if (s) s->save(ostr);
797  result = ostr.str();
798  saveData(os, result);
799  }
800  static void saveData(std::ostream &os, PRM_DataItemHandle s)
802  UT_OStringStream ostr;
803  if (s)
804  {
805  ostr << s->getDataTypeToken();
806  ostr << ":";
807  s->saveBinary(ostr);
808  }
809  result = ostr.str();
810  saveData(os, result);
811  }
812 
813 
814  void save(std::ostream &os) const
815  {
816  int32 v = version();
817  UTwrite(os, &v);
818  saveData(os, myProvider);
819  saveData(os, myDeviceid);
820  saveData(os, myBatch);
821  saveData(os, myDoMaxBatch);
822  saveData(os, myMaxBatch);
823  saveData(os, myModelFile);
824  saveData(os, raw_myModelFile);
825  {
826  int64 length = myInputs.entries();
827  UTwrite(os, &length);
828  for (exint i = 0; i < length; i++)
829  {
830  auto && _curentry = myInputs(i);
831  (void) _curentry;
832  saveData(os, _curentry.inputtype);
833  saveData(os, _curentry.inputpointattribute);
834  saveData(os, _curentry.inputvolumename);
835 
836  }
837  }
838  {
839  int64 length = myOutputs.entries();
840  UTwrite(os, &length);
841  for (exint i = 0; i < length; i++)
842  {
843  auto && _curentry = myOutputs(i);
844  (void) _curentry;
845  saveData(os, _curentry.outputtype);
846  saveData(os, _curentry.outputpointattribute);
847  saveData(os, _curentry.outputvolumename);
848  saveData(os, _curentry.outputvolumeresolution);
849  saveData(os, _curentry.outputtuplesize);
850 
851  }
852  }
853 
854  }
855 
856  bool load(UT_IStream &is)
857  {
858  int32 v;
859  is.bread(&v, 1);
860  if (version() != v)
861  {
862  // Fail incompatible versions
863  return false;
864  }
865  loadData(is, myProvider);
866  loadData(is, myDeviceid);
867  loadData(is, myBatch);
868  loadData(is, myDoMaxBatch);
869  loadData(is, myMaxBatch);
870  loadData(is, myModelFile);
871  loadData(is, raw_myModelFile);
872  {
873  int64 length;
874  is.read(&length, 1);
875  myInputs.setSize(length);
876  for (exint i = 0; i < length; i++)
877  {
878  auto && _curentry = myInputs(i);
879  (void) _curentry;
880  loadData(is, _curentry.inputtype);
881  loadData(is, _curentry.inputpointattribute);
882  loadData(is, _curentry.inputvolumename);
883 
884  }
885  }
886  {
887  int64 length;
888  is.read(&length, 1);
889  myOutputs.setSize(length);
890  for (exint i = 0; i < length; i++)
891  {
892  auto && _curentry = myOutputs(i);
893  (void) _curentry;
894  loadData(is, _curentry.outputtype);
895  loadData(is, _curentry.outputpointattribute);
896  loadData(is, _curentry.outputvolumename);
897  loadData(is, _curentry.outputvolumeresolution);
898  loadData(is, _curentry.outputtuplesize);
899 
900  }
901  }
902 
903  return true;
904  }
905 
906  int64 getProvider() const { return myProvider; }
907  void setProvider(int64 val) { myProvider = val; }
908  int64 opProvider(const SOP_NodeVerb::CookParms &cookparms) const
909  {
910  SOP_Node *thissop = cookparms.getNode();
911  if (!thissop) return getProvider();
912  int64 result;
913  OP_Utils::evalOpParm(result, thissop, "provider", cookparms.getCookTime(), 0);
914  return result;
915  }
916  int64 getDeviceid() const { return myDeviceid; }
917  void setDeviceid(int64 val) { myDeviceid = val; }
918  int64 opDeviceid(const SOP_NodeVerb::CookParms &cookparms) const
919  {
920  SOP_Node *thissop = cookparms.getNode();
921  if (!thissop) return getDeviceid();
922  int64 result;
923  OP_Utils::evalOpParm(result, thissop, "deviceid", cookparms.getCookTime(), 0);
924  return result;
925  }
926  Batch getBatch() const { return Batch(myBatch); }
927  void setBatch(Batch val) { myBatch = int64(val); }
928  Batch opBatch(const SOP_NodeVerb::CookParms &cookparms) const
929  {
930  SOP_Node *thissop = cookparms.getNode();
931  if (!thissop) return getBatch();
932  int64 result;
933  OP_Utils::evalOpParm(result, thissop, "batch", cookparms.getCookTime(), 0);
934  return Batch(result);
935  }
936  bool getDoMaxBatch() const { return myDoMaxBatch; }
937  void setDoMaxBatch(bool val) { myDoMaxBatch = val; }
938  bool opDoMaxBatch(const SOP_NodeVerb::CookParms &cookparms) const
939  {
940  SOP_Node *thissop = cookparms.getNode();
941  if (!thissop) return getDoMaxBatch();
942  bool result;
943  OP_Utils::evalOpParm(result, thissop, "domaxbatch", cookparms.getCookTime(), 0);
944  return result;
945  }
946  int64 getMaxBatch() const { return myMaxBatch; }
947  void setMaxBatch(int64 val) { myMaxBatch = val; }
948  int64 opMaxBatch(const SOP_NodeVerb::CookParms &cookparms) const
949  {
950  SOP_Node *thissop = cookparms.getNode();
951  if (!thissop) return getMaxBatch();
952  int64 result;
953  OP_Utils::evalOpParm(result, thissop, "maxbatch", cookparms.getCookTime(), 0);
954  return result;
955  }
956  const UT_StringHolder & getModelFile() const { return myModelFile; }
957  void setModelFile(const UT_StringHolder & val) { myModelFile = val; }
959  {
960  SOP_Node *thissop = cookparms.getNode();
961  if (!thissop) return getModelFile();
963  OP_Utils::evalOpParm(result, thissop, "modelfile", cookparms.getCookTime(), 0);
964  return result;
965  }
966  const UT_StringHolder & raw_getModelFile() const { return raw_myModelFile; }
967  void raw_setModelFile(const UT_StringHolder & val) { raw_myModelFile = val; }
969  {
970  SOP_Node *thissop = cookparms.getNode();
971  if (!thissop) return raw_getModelFile();
973  OP_Utils::evalOpParmRaw(result, thissop, "modelfile", cookparms.getCookTime(), 0);
974  return result;
975  }
976  const UT_Array<Inputs> &getInputs() const { return myInputs; }
977 void setInputs(const UT_Array<Inputs> &val) { myInputs = val; }
978  exint opInputs(const SOP_NodeVerb::CookParms &cookparms) const
979  {
980  SOP_Node *thissop = cookparms.getNode();
981  if (!thissop) return getInputs().entries();
982  exint result;
983  OP_Utils::evalOpParm(result, thissop, "inputs", cookparms.getCookTime(), 0);
984  return result;
985  }
986  int64 opInputs_inputtype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
987  { return opinstInputs_inputtype(cookparms, &_idx); }
988  int64 opinstInputs_inputtype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
989  {
990  SOP_Node *thissop = cookparms.getNode();
991  if (!thissop) return (myInputs(_idx[0]).inputtype);
992  int _parmidx[2-1];
993  _parmidx[1-1] = _idx[1-1] + 1;
994 
995  int64 result;
996  OP_Utils::evalOpParmInst(result, thissop, "inputtype#", _parmidx, cookparms.getCookTime(), 0, 2-1);
997  return (result);
998  }
1000  { return opinstInputs_inputpointattribute(cookparms, &_idx); }
1002  {
1003  SOP_Node *thissop = cookparms.getNode();
1004  if (!thissop) return (myInputs(_idx[0]).inputpointattribute);
1005  int _parmidx[2-1];
1006  _parmidx[1-1] = _idx[1-1] + 1;
1007 
1009  OP_Utils::evalOpParmInst(result, thissop, "inputpointattribute#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1010  return (result);
1011  }
1013  { return opinstInputs_inputvolumename(cookparms, &_idx); }
1015  {
1016  SOP_Node *thissop = cookparms.getNode();
1017  if (!thissop) return (myInputs(_idx[0]).inputvolumename);
1018  int _parmidx[2-1];
1019  _parmidx[1-1] = _idx[1-1] + 1;
1020 
1022  OP_Utils::evalOpParmInst(result, thissop, "inputvolumename#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1023  return (result);
1024  }
1025 
1026  const UT_Array<Outputs> &getOutputs() const { return myOutputs; }
1027 void setOutputs(const UT_Array<Outputs> &val) { myOutputs = val; }
1028  exint opOutputs(const SOP_NodeVerb::CookParms &cookparms) const
1029  {
1030  SOP_Node *thissop = cookparms.getNode();
1031  if (!thissop) return getOutputs().entries();
1032  exint result;
1033  OP_Utils::evalOpParm(result, thissop, "outputs", cookparms.getCookTime(), 0);
1034  return result;
1035  }
1036  int64 opOutputs_outputtype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
1037  { return opinstOutputs_outputtype(cookparms, &_idx); }
1038  int64 opinstOutputs_outputtype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
1039  {
1040  SOP_Node *thissop = cookparms.getNode();
1041  if (!thissop) return (myOutputs(_idx[0]).outputtype);
1042  int _parmidx[2-1];
1043  _parmidx[1-1] = _idx[1-1] + 1;
1044 
1045  int64 result;
1046  OP_Utils::evalOpParmInst(result, thissop, "outputtype#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1047  return (result);
1048  }
1050  { return opinstOutputs_outputpointattribute(cookparms, &_idx); }
1052  {
1053  SOP_Node *thissop = cookparms.getNode();
1054  if (!thissop) return (myOutputs(_idx[0]).outputpointattribute);
1055  int _parmidx[2-1];
1056  _parmidx[1-1] = _idx[1-1] + 1;
1057 
1059  OP_Utils::evalOpParmInst(result, thissop, "outputpointattribute#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1060  return (result);
1061  }
1063  { return opinstOutputs_outputvolumename(cookparms, &_idx); }
1065  {
1066  SOP_Node *thissop = cookparms.getNode();
1067  if (!thissop) return (myOutputs(_idx[0]).outputvolumename);
1068  int _parmidx[2-1];
1069  _parmidx[1-1] = _idx[1-1] + 1;
1070 
1072  OP_Utils::evalOpParmInst(result, thissop, "outputvolumename#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1073  return (result);
1074  }
1076  { return opinstOutputs_outputvolumeresolution(cookparms, &_idx); }
1078  {
1079  SOP_Node *thissop = cookparms.getNode();
1080  if (!thissop) return (myOutputs(_idx[0]).outputvolumeresolution);
1081  int _parmidx[2-1];
1082  _parmidx[1-1] = _idx[1-1] + 1;
1083 
1085  OP_Utils::evalOpParmInst(result, thissop, "outputvolumeresolution#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1086  return (result);
1087  }
1088  int64 opOutputs_outputtuplesize(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
1089  { return opinstOutputs_outputtuplesize(cookparms, &_idx); }
1090  int64 opinstOutputs_outputtuplesize(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
1091  {
1092  SOP_Node *thissop = cookparms.getNode();
1093  if (!thissop) return (myOutputs(_idx[0]).outputtuplesize);
1094  int _parmidx[2-1];
1095  _parmidx[1-1] = _idx[1-1] + 1;
1096 
1097  int64 result;
1098  OP_Utils::evalOpParmInst(result, thissop, "outputtuplesize#", _parmidx, cookparms.getCookTime(), 0, 2-1);
1099  return (result);
1100  }
1101 
1102 
1103 private:
1104  int64 myProvider;
1105  int64 myDeviceid;
1106  int64 myBatch;
1107  bool myDoMaxBatch;
1108  int64 myMaxBatch;
1109  UT_StringHolder myModelFile;
1110  UT_StringHolder raw_myModelFile;
1111  UT_Array<Inputs> myInputs;
1112  UT_Array<Outputs> myOutputs;
1113 
1114 };
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
type
Definition: core.h:556
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
int64 opMaxBatch(const SOP_NodeVerb::CookParms &cookparms) const
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
int64 opOutputs_outputtuplesize(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:403
bool opDoMaxBatch(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_MLRegressionInferenceCoreParms &src) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, bool v)
int64 opProvider(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
int64 opInputs_inputtype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void
Definition: png.h:1083
GLboolean * data
Definition: glcorearb.h:131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:495
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:63
UT_Vector3I opOutputs_outputvolumeresolution(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLsizei const GLfloat * value
Definition: glcorearb.h:824
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, int64 &v)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() const
Definition: OP_NodeParms.h:105
virtual void evalOpParmRaw(UT_StringHolder &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:669
int64 exint
Definition: SYS_Types.h:125
const char * getNestParmName(TempIndex fieldnum) const override
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
exint opOutputs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
**But if you need a result
Definition: thread.h:622
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
UT_Vector3T< int64 > UT_Vector3I
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
exint nodeIdx() const
Definition: OP_NodeParms.h:103
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 saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:493
int64 opOutputs_outputtype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
int64 opinstOutputs_outputtuplesize(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glcorearb.h:2621
static void loadData(UT_IStream &is, UT_Vector3D &v)
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:426
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_StringHolder opInputs_inputpointattribute(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
const UT_Array< Outputs > & getOutputs() const
void setOutputs(const UT_Array< Outputs > &val)
exint length() const
exint opInputs(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
UT_StringHolder opinstInputs_inputvolumename(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:497
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:271
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:102
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
SYS_FORCE_INLINE UT_StringHolder getToken(Batch enum_value)
int64 opinstInputs_inputtype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_StringHolder opinstOutputs_outputpointattribute(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
UT_StringHolder createString(const UT_Array< Inputs > &list) const
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, const int *inst, const int *offsets, fpreal time, DEP_MicroNode *depnode, int nestlevel=1) const =0
bool operator==(const SOP_MLRegressionInferenceCoreParms &src) const
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_Vector3D v)
UT_StringHolder opInputs_inputvolumename(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_Vector3I opinstOutputs_outputvolumeresolution(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_StringHolder &v)
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:306
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder createString(const UT_Array< Outputs > &list) const
GT_API const UT_StringHolder version
#define SYS_PRId64
Definition: SYS_Types.h:76
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:669
Batch opBatch(const SOP_NodeVerb::CookParms &cookparms) const
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
int64 opinstOutputs_outputtype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
UT_StringHolder opOutputs_outputvolumename(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
UT_StringHolder raw_opModelFile(const SOP_NodeVerb::CookParms &cookparms) const
int64 opDeviceid(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
fpreal64 fpreal
Definition: SYS_Types.h:283
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:107
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
UT_StringHolder opOutputs_outputpointattribute(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:499
SYS_FORCE_INLINE void append(char character)
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:302
#define SOP_API
Definition: SOP_API.h:10
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:432
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1421
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:165
UT_StringHolder opModelFile(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opinstOutputs_outputvolumename(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLboolean r
Definition: glcorearb.h:1222
exint bread(uint8 *buffer, exint asize=1)
static void loadData(UT_IStream &is, bool &v)
UT_StringHolder opinstInputs_inputpointattribute(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:667
static void saveData(std::ostream &os, UT_Matrix4D v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:428
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:665