HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Add.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 <SOP/SOP_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_AddEnums
24 {
25  enum class Add
26  {
27  ALL = 0,
28  GROUP,
29  SKIP,
30  SEP,
31  ATTRIBUTE
32  };
33 
35  getToken(Add enum_value)
36  {
37  using namespace UT::Literal;
38  switch (enum_value) {
39  case Add::ALL: return "all"_sh;
40  case Add::GROUP: return "group"_sh;
41  case Add::SKIP: return "skip"_sh;
42  case Add::SEP: return "sep"_sh;
43  case Add::ATTRIBUTE: return "attribute"_sh;
44  default: UT_ASSERT(false); return ""_sh;
45  }
46  }
47 
48 }
49 
50 
52 {
53 public:
54  static int version() { return 1; }
55  struct Points
56  {
57  bool usept;
60 
61 
63  {
64  usept = true;
65  pt = UT_Vector3D(0,0,0);
66  weight = 1;
67 
68  }
69 
70  bool operator==(const Points &src) const
71  {
72  if (usept != src.usept) return false;
73  if (pt != src.pt) return false;
74  if (weight != src.weight) return false;
75 
76  return true;
77  }
78  bool operator!=(const Points &src) const
79  {
80  return !operator==(src);
81  }
82 
83  };
84 
86  {
88 
89  buf.strcat("[ ");
90  for (int i = 0; i < list.entries(); i++)
91  {
92  if (i)
93  buf.strcat(", ");
94  buf.strcat("( ");
95  buf.append("");
96  buf.appendSprintf("%s", (list(i).usept) ? "true" : "false");
97  buf.append(", ");
98  buf.appendSprintf("(%f, %f, %f)", list(i).pt.x(), list(i).pt.y(), list(i).pt.z());
99  buf.append(", ");
100  buf.appendSprintf("%f", (list(i).weight));
101 
102  buf.strcat(" )");
103  }
104  buf.strcat(" ]");
105 
107  return result;
108  }
109  struct Prims
110  {
112  bool closed;
113 
114 
116  {
117  prim = ""_UTsh;
118  closed = false;
119 
120  }
121 
122  bool operator==(const Prims &src) const
123  {
124  if (prim != src.prim) return false;
125  if (closed != src.closed) return false;
126 
127  return true;
128  }
129  bool operator!=(const Prims &src) const
130  {
131  return !operator==(src);
132  }
133 
134  };
135 
137  {
139 
140  buf.strcat("[ ");
141  for (int i = 0; i < list.entries(); i++)
142  {
143  if (i)
144  buf.strcat(", ");
145  buf.strcat("( ");
146  buf.append("");
147  { UT_String tmp; tmp = UT_StringWrap(list(i).prim).makeQuotedString('"'); buf.strcat(tmp); }
148  buf.append(", ");
149  buf.appendSprintf("%s", (list(i).closed) ? "true" : "false");
150 
151  buf.strcat(" )");
152  }
153  buf.strcat(" ]");
154 
156  return result;
157  }
158 
160  {
161  myKeep = false;
162  myPoints.setSize(0);
163  myRemove = false;
164  myPrims.setSize(1);
165  mySwitcher = 0;
166  myGroup = ""_UTsh;
167  myAdd = 0;
168  myInc = 2;
169  myAttrname = ""_UTsh;
170  myClosedall = false;
171  myAddparticlesystem = false;
172  myParticlegroup = ""_UTsh;
173  myAppendunusedtoparticlesystem = false;
174 
175  }
176 
177  explicit SOP_AddParms(const SOP_AddParms &) = default;
178  SOP_AddParms &operator=(const SOP_AddParms &) = default;
179  SOP_AddParms(SOP_AddParms &&) noexcept = default;
180  SOP_AddParms &operator=(SOP_AddParms &&) noexcept = default;
181 
182  ~SOP_AddParms() override {}
183 
184  bool operator==(const SOP_AddParms &src) const
185  {
186  if (myKeep != src.myKeep) return false;
187  if (myPoints != src.myPoints) return false;
188  if (myRemove != src.myRemove) return false;
189  if (myPrims != src.myPrims) return false;
190  if (mySwitcher != src.mySwitcher) return false;
191  if (myGroup != src.myGroup) return false;
192  if (myAdd != src.myAdd) return false;
193  if (myInc != src.myInc) return false;
194  if (myAttrname != src.myAttrname) return false;
195  if (myClosedall != src.myClosedall) return false;
196  if (myAddparticlesystem != src.myAddparticlesystem) return false;
197  if (myParticlegroup != src.myParticlegroup) return false;
198  if (myAppendunusedtoparticlesystem != src.myAppendunusedtoparticlesystem) return false;
199 
200  return true;
201  }
202  bool operator!=(const SOP_AddParms &src) const
203  {
204  return !operator==(src);
205  }
207 
208 
209 
210  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
211  {
212  myKeep = false;
213  if (true && ( (true&&!((((graph->getInput(nodeidx,0)>=0)==0)))) ) )
214  graph->evalOpParm(myKeep, nodeidx, "keep", time, 0);
215  if (true)
216  {
217  int64 length = 0;
218  graph->evalOpParm(length, nodeidx, "points", time, 0);
219  if (length < 0) length = 0;
220  myPoints.setSize(length);
221  for (exint i = 0; i < length; i++)
222  {
223  int parmidx[1];
224  int offsets[1];
225  parmidx[0] = i+0;
226  offsets[0] = 0;
227  auto && _curentry = myPoints(i);
228  (void) _curentry;
229  _curentry.usept = true;
230  if (true)
231  graph->evalOpParmInst(_curentry.usept, nodeidx, "usept#", parmidx, offsets, time, 0, 2-1);
232  _curentry.pt = UT_Vector3D(0,0,0);
233  if (true && ( (true&&!(((_curentry.usept==0)))) ) )
234  graph->evalOpParmInst(_curentry.pt, nodeidx, "pt#", parmidx, offsets, time, 0, 2-1);
235  _curentry.weight = 1;
236  if (true && ( (true&&!(((_curentry.usept==0)))) ) )
237  graph->evalOpParmInst(_curentry.weight, nodeidx, "weight#", parmidx, offsets, time, 0, 2-1);
238 
239  }
240  }
241  else
242  myPoints.clear();
243  myRemove = false;
244  if (true)
245  graph->evalOpParm(myRemove, nodeidx, "remove", time, 0);
246  if (true)
247  {
248  int64 length = 0;
249  graph->evalOpParm(length, nodeidx, "prims", time, 0);
250  if (length < 0) length = 0;
251  myPrims.setSize(length);
252  for (exint i = 0; i < length; i++)
253  {
254  int parmidx[1];
255  int offsets[1];
256  parmidx[0] = i+0;
257  offsets[0] = 0;
258  auto && _curentry = myPrims(i);
259  (void) _curentry;
260  _curentry.prim = ""_UTsh;
261  if (true)
262  graph->evalOpParmInst(_curentry.prim, nodeidx, "prim#", parmidx, offsets, time, 0, 2-1);
263  _curentry.closed = false;
264  if (true)
265  graph->evalOpParmInst(_curentry.closed, nodeidx, "closed#", parmidx, offsets, time, 0, 2-1);
266 
267  }
268  }
269  else
270  myPrims.clear();
271  mySwitcher = 0;
272  if (true)
273  graph->evalOpParm(mySwitcher, nodeidx, "switcher", time, 0);
274  myGroup = ""_UTsh;
275  if (true)
276  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
277  myAdd = 0;
278  if (true)
279  graph->evalOpParm(myAdd, nodeidx, "add", time, 0);
280  myInc = 2;
281  if (true && ( (true&&!(((int64(getAdd())==0))||((int64(getAdd())==3))||((int64(getAdd())==4)))) ) )
282  graph->evalOpParm(myInc, nodeidx, "inc", time, 0);
283  myAttrname = ""_UTsh;
284  if (true && ( (true&&!(((int64(getAdd())!=4)))) ) )
285  graph->evalOpParm(myAttrname, nodeidx, "attrname", time, 0);
286  myClosedall = false;
287  if (true)
288  graph->evalOpParm(myClosedall, nodeidx, "closedall", time, 0);
289  myAddparticlesystem = false;
290  if (true)
291  graph->evalOpParm(myAddparticlesystem, nodeidx, "addparticlesystem", time, 0);
292  myParticlegroup = ""_UTsh;
293  if (true && ( (true&&!(((getAddparticlesystem()==0)))) ) )
294  graph->evalOpParm(myParticlegroup, nodeidx, "particlegroup", time, 0);
295  myAppendunusedtoparticlesystem = false;
296  if (true)
297  graph->evalOpParm(myAppendunusedtoparticlesystem, nodeidx, "appendunusedtoparticlesystem", time, 0);
298 
299  }
300 
301 
302  void loadFromOpSubclass(const LoadParms &loadparms) override
303  {
304  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
305  }
306 
307 
308  void copyFrom(const OP_NodeParms *src) override
309  {
310  *this = *((const SOP_AddParms *)src);
311  }
312 
313  template <typename T>
314  void
315  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
316  {
317  if (idx.size() < 1)
318  return;
319  UT_ASSERT(idx.size() == instance.size()+1);
320  if (idx.size() != instance.size()+1)
321  return;
322  switch (idx[0])
323  {
324  case 0:
325  coerceValue(value, myKeep);
326  break;
327  case 1:
328  if (idx.size() == 1)
329  coerceValue(value, myPoints.entries());
330  else if (instance[0] < myPoints.entries())
331  {
332  auto && _data = myPoints(instance[0]);
333  switch (idx[1])
334  {
335  case 0:
336  coerceValue(value, _data.usept);
337  break;
338  case 1:
339  coerceValue(value, _data.pt);
340  break;
341  case 2:
342  coerceValue(value, _data.weight);
343  break;
344 
345  }
346  }
347  break;
348  case 2:
349  coerceValue(value, myRemove);
350  break;
351  case 3:
352  if (idx.size() == 1)
353  coerceValue(value, myPrims.entries());
354  else if (instance[0] < myPrims.entries())
355  {
356  auto && _data = myPrims(instance[0]);
357  switch (idx[1])
358  {
359  case 0:
360  coerceValue(value, _data.prim);
361  break;
362  case 1:
363  coerceValue(value, _data.closed);
364  break;
365 
366  }
367  }
368  break;
369  case 4:
370  coerceValue(value, mySwitcher);
371  break;
372  case 5:
373  coerceValue(value, myGroup);
374  break;
375  case 6:
376  coerceValue(value, myAdd);
377  break;
378  case 7:
379  coerceValue(value, myInc);
380  break;
381  case 8:
382  coerceValue(value, myAttrname);
383  break;
384  case 9:
385  coerceValue(value, myClosedall);
386  break;
387  case 10:
388  coerceValue(value, myAddparticlesystem);
389  break;
390  case 11:
391  coerceValue(value, myParticlegroup);
392  break;
393  case 12:
394  coerceValue(value, myAppendunusedtoparticlesystem);
395  break;
396 
397  }
398  }
399 
400  bool isParmColorRamp(exint idx) const override
401  {
402  switch (idx)
403  {
404 
405  }
406  return false;
407  }
408 
409  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
410  { doGetParmValue(idx, instance, value); }
411  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
412  { doGetParmValue(idx, instance, value); }
413  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
414  { doGetParmValue(idx, instance, value); }
415  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
416  { doGetParmValue(idx, instance, value); }
417  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
418  { doGetParmValue(idx, instance, value); }
419  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
420  { doGetParmValue(idx, instance, value); }
421  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
422  { doGetParmValue(idx, instance, value); }
423  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
424  { doGetParmValue(idx, instance, value); }
425  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
426  { doGetParmValue(idx, instance, value); }
427  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
428  { doGetParmValue(idx, instance, value); }
429  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
430  { doGetParmValue(idx, instance, value); }
431 
432  template <typename T>
433  void
434  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
435  {
436  if (idx.size() < 1)
437  return;
438  UT_ASSERT(idx.size() == instance.size()+1);
439  if (idx.size() != instance.size()+1)
440  return;
441  switch (idx[0])
442  {
443  case 0:
444  coerceValue(myKeep, ( ( value ) ));
445  break;
446  case 1:
447  if (idx.size() == 1)
448  {
449  exint newsize;
450  coerceValue(newsize, value);
451  if (newsize < 0) newsize = 0;
452  myPoints.setSize(newsize);
453  }
454  else
455  {
456  if (instance[0] < 0)
457  return;
458  myPoints.setSizeIfNeeded(instance[0]+1);
459  auto && _data = myPoints(instance[0]);
460  switch (idx[1])
461  {
462  case 0:
463  coerceValue(_data.usept, value);
464  break;
465  case 1:
466  coerceValue(_data.pt, value);
467  break;
468  case 2:
469  coerceValue(_data.weight, value);
470  break;
471 
472  }
473  }
474  break;
475  case 2:
476  coerceValue(myRemove, ( ( value ) ));
477  break;
478  case 3:
479  if (idx.size() == 1)
480  {
481  exint newsize;
482  coerceValue(newsize, value);
483  if (newsize < 0) newsize = 0;
484  myPrims.setSize(newsize);
485  }
486  else
487  {
488  if (instance[0] < 0)
489  return;
490  myPrims.setSizeIfNeeded(instance[0]+1);
491  auto && _data = myPrims(instance[0]);
492  switch (idx[1])
493  {
494  case 0:
495  coerceValue(_data.prim, value);
496  break;
497  case 1:
498  coerceValue(_data.closed, value);
499  break;
500 
501  }
502  }
503  break;
504  case 4:
505  coerceValue(mySwitcher, ( ( value ) ));
506  break;
507  case 5:
508  coerceValue(myGroup, ( ( value ) ));
509  break;
510  case 6:
511  coerceValue(myAdd, clampMinValue(0, clampMaxValue(4, value ) ));
512  break;
513  case 7:
514  coerceValue(myInc, clampMinValue(1, ( value ) ));
515  break;
516  case 8:
517  coerceValue(myAttrname, ( ( value ) ));
518  break;
519  case 9:
520  coerceValue(myClosedall, ( ( value ) ));
521  break;
522  case 10:
523  coerceValue(myAddparticlesystem, ( ( value ) ));
524  break;
525  case 11:
526  coerceValue(myParticlegroup, ( ( value ) ));
527  break;
528  case 12:
529  coerceValue(myAppendunusedtoparticlesystem, ( ( value ) ));
530  break;
531 
532  }
533  }
534 
535  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
536  { doSetParmValue(idx, instance, value); }
537  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
538  { doSetParmValue(idx, instance, value); }
539  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
540  { doSetParmValue(idx, instance, value); }
541  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
542  { doSetParmValue(idx, instance, value); }
543  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
544  { doSetParmValue(idx, instance, value); }
545  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
546  { doSetParmValue(idx, instance, value); }
547  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
548  { doSetParmValue(idx, instance, value); }
549  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
550  { doSetParmValue(idx, instance, value); }
551  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
552  { doSetParmValue(idx, instance, value); }
553  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
554  { doSetParmValue(idx, instance, value); }
555  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
556  { doSetParmValue(idx, instance, value); }
557 
558  exint getNestNumParms(TempIndex idx) const override
559  {
560  if (idx.size() == 0)
561  return 13;
562  switch (idx[0])
563  {
564  case 1:
565  return 3;
566  case 3:
567  return 2;
568 
569  }
570  // Invalid
571  return 0;
572  }
573 
574  const char *getNestParmName(TempIndex fieldnum) const override
575  {
576  if (fieldnum.size() < 1)
577  return 0;
578  switch (fieldnum[0])
579  {
580  case 0:
581  return "keep";
582  case 1:
583  if (fieldnum.size() == 1)
584  return "points";
585  switch (fieldnum[1])
586  {
587  case 0:
588  return "usept#";
589  case 1:
590  return "pt#";
591  case 2:
592  return "weight#";
593 
594  }
595  return 0;
596  case 2:
597  return "remove";
598  case 3:
599  if (fieldnum.size() == 1)
600  return "prims";
601  switch (fieldnum[1])
602  {
603  case 0:
604  return "prim#";
605  case 1:
606  return "closed#";
607 
608  }
609  return 0;
610  case 4:
611  return "switcher";
612  case 5:
613  return "group";
614  case 6:
615  return "add";
616  case 7:
617  return "inc";
618  case 8:
619  return "attrname";
620  case 9:
621  return "closedall";
622  case 10:
623  return "addparticlesystem";
624  case 11:
625  return "particlegroup";
626  case 12:
627  return "appendunusedtoparticlesystem";
628 
629  }
630  return 0;
631  }
632 
633  ParmType getNestParmType(TempIndex fieldnum) const override
634  {
635  if (fieldnum.size() < 1)
636  return PARM_UNSUPPORTED;
637  switch (fieldnum[0])
638  {
639  case 0:
640  return PARM_INTEGER;
641  case 1:
642  if (fieldnum.size() == 1)
643  return PARM_MULTIPARM;
644  switch (fieldnum[1])
645  {
646  case 0:
647  return PARM_INTEGER;
648  case 1:
649  return PARM_VECTOR3;
650  case 2:
651  return PARM_FLOAT;
652 
653  }
654  return PARM_UNSUPPORTED;
655  case 2:
656  return PARM_INTEGER;
657  case 3:
658  if (fieldnum.size() == 1)
659  return PARM_MULTIPARM;
660  switch (fieldnum[1])
661  {
662  case 0:
663  return PARM_STRING;
664  case 1:
665  return PARM_INTEGER;
666 
667  }
668  return PARM_UNSUPPORTED;
669  case 4:
670  return PARM_INTEGER;
671  case 5:
672  return PARM_STRING;
673  case 6:
674  return PARM_INTEGER;
675  case 7:
676  return PARM_INTEGER;
677  case 8:
678  return PARM_STRING;
679  case 9:
680  return PARM_INTEGER;
681  case 10:
682  return PARM_INTEGER;
683  case 11:
684  return PARM_STRING;
685  case 12:
686  return PARM_INTEGER;
687 
688  }
689  return PARM_UNSUPPORTED;
690  }
691 
692  // Boiler plate to load individual types.
693  static void loadData(UT_IStream &is, int64 &v)
694  { is.bread(&v, 1); }
695  static void loadData(UT_IStream &is, bool &v)
696  { int64 iv; is.bread(&iv, 1); v = iv; }
697  static void loadData(UT_IStream &is, fpreal64 &v)
698  { is.bread<fpreal64>(&v, 1); }
699  static void loadData(UT_IStream &is, UT_Vector2D &v)
700  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
701  static void loadData(UT_IStream &is, UT_Vector3D &v)
702  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
703  is.bread<fpreal64>(&v.z(), 1); }
704  static void loadData(UT_IStream &is, UT_Vector4D &v)
705  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
706  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
707  static void loadData(UT_IStream &is, UT_Matrix2D &v)
708  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
709  static void loadData(UT_IStream &is, UT_Matrix3D &v)
710  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
711  static void loadData(UT_IStream &is, UT_Matrix4D &v)
712  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
713  static void loadData(UT_IStream &is, UT_Vector2I &v)
714  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
715  static void loadData(UT_IStream &is, UT_Vector3I &v)
716  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
717  is.bread<int64>(&v.z(), 1); }
718  static void loadData(UT_IStream &is, UT_Vector4I &v)
719  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
720  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
722  { is.bread(v); }
724  { UT_StringHolder rampdata;
725  loadData(is, rampdata);
726  if (rampdata.isstring())
727  {
728  v.reset(new UT_Ramp());
729  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
730  v->load(istr);
731  }
732  else v.reset();
733  }
736  loadData(is, data);
737  if (data.isstring())
738  {
739  // Find the data type.
740  const char *colon = UT_StringWrap(data).findChar(':');
741  if (colon)
742  {
743  int typelen = colon - data.buffer();
745  type.strncpy(data.buffer(), typelen);
746  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
747 
748  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
749  }
750  }
751  else v.reset();
752  }
753 
754  static void saveData(std::ostream &os, int64 v)
755  { UTwrite(os, &v); }
756  static void saveData(std::ostream &os, bool v)
757  { int64 iv = v; UTwrite(os, &iv); }
758  static void saveData(std::ostream &os, fpreal64 v)
759  { UTwrite<fpreal64>(os, &v); }
760  static void saveData(std::ostream &os, UT_Vector2D v)
761  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
762  static void saveData(std::ostream &os, UT_Vector3D v)
763  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
764  UTwrite<fpreal64>(os, &v.z()); }
765  static void saveData(std::ostream &os, UT_Vector4D v)
766  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
767  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
768  static void saveData(std::ostream &os, UT_Matrix2D v)
770  static void saveData(std::ostream &os, UT_Matrix3D v)
772  static void saveData(std::ostream &os, UT_Matrix4D v)
774  static void saveData(std::ostream &os, UT_StringHolder s)
775  { UT_StringWrap(s).saveBinary(os); }
776  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
778  UT_OStringStream ostr;
779  if (s) s->save(ostr);
780  result = ostr.str();
781  saveData(os, result);
782  }
783  static void saveData(std::ostream &os, PRM_DataItemHandle s)
785  UT_OStringStream ostr;
786  if (s)
787  {
788  ostr << s->getDataTypeToken();
789  ostr << ":";
790  s->saveBinary(ostr);
791  }
792  result = ostr.str();
793  saveData(os, result);
794  }
795 
796 
797  void save(std::ostream &os) const
798  {
799  int32 v = version();
800  UTwrite(os, &v);
801  saveData(os, myKeep);
802  {
803  int64 length = myPoints.entries();
804  UTwrite(os, &length);
805  for (exint i = 0; i < length; i++)
806  {
807  auto && _curentry = myPoints(i);
808  (void) _curentry;
809  saveData(os, _curentry.usept);
810  saveData(os, _curentry.pt);
811  saveData(os, _curentry.weight);
812 
813  }
814  }
815  saveData(os, myRemove);
816  {
817  int64 length = myPrims.entries();
818  UTwrite(os, &length);
819  for (exint i = 0; i < length; i++)
820  {
821  auto && _curentry = myPrims(i);
822  (void) _curentry;
823  saveData(os, _curentry.prim);
824  saveData(os, _curentry.closed);
825 
826  }
827  }
828  saveData(os, mySwitcher);
829  saveData(os, myGroup);
830  saveData(os, myAdd);
831  saveData(os, myInc);
832  saveData(os, myAttrname);
833  saveData(os, myClosedall);
834  saveData(os, myAddparticlesystem);
835  saveData(os, myParticlegroup);
836  saveData(os, myAppendunusedtoparticlesystem);
837 
838  }
839 
840  bool load(UT_IStream &is)
841  {
842  int32 v;
843  is.bread(&v, 1);
844  if (version() != v)
845  {
846  // Fail incompatible versions
847  return false;
848  }
849  loadData(is, myKeep);
850  {
851  int64 length;
852  is.read(&length, 1);
853  myPoints.setSize(length);
854  for (exint i = 0; i < length; i++)
855  {
856  auto && _curentry = myPoints(i);
857  (void) _curentry;
858  loadData(is, _curentry.usept);
859  loadData(is, _curentry.pt);
860  loadData(is, _curentry.weight);
861 
862  }
863  }
864  loadData(is, myRemove);
865  {
866  int64 length;
867  is.read(&length, 1);
868  myPrims.setSize(length);
869  for (exint i = 0; i < length; i++)
870  {
871  auto && _curentry = myPrims(i);
872  (void) _curentry;
873  loadData(is, _curentry.prim);
874  loadData(is, _curentry.closed);
875 
876  }
877  }
878  loadData(is, mySwitcher);
879  loadData(is, myGroup);
880  loadData(is, myAdd);
881  loadData(is, myInc);
882  loadData(is, myAttrname);
883  loadData(is, myClosedall);
884  loadData(is, myAddparticlesystem);
885  loadData(is, myParticlegroup);
886  loadData(is, myAppendunusedtoparticlesystem);
887 
888  return true;
889  }
890 
891  bool getKeep() const { return myKeep; }
892  void setKeep(bool val) { myKeep = val; }
893  bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
894  {
895  SOP_Node *thissop = cookparms.getNode();
896  if (!thissop) return getKeep();
897  bool result;
898  OP_Utils::evalOpParm(result, thissop, "keep", cookparms.getCookTime(), 0);
899  return result;
900  }
901  const UT_Array<Points> &getPoints() const { return myPoints; }
902 void setPoints(const UT_Array<Points> &val) { myPoints = val; }
903  exint opPoints(const SOP_NodeVerb::CookParms &cookparms) const
904  {
905  SOP_Node *thissop = cookparms.getNode();
906  if (!thissop) return getPoints().entries();
907  exint result;
908  OP_Utils::evalOpParm(result, thissop, "points", cookparms.getCookTime(), 0);
909  return result;
910  }
911  bool opPoints_usept(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
912  { return opinstPoints_usept(cookparms, &_idx); }
913  bool opinstPoints_usept(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
914  {
915  SOP_Node *thissop = cookparms.getNode();
916  if (!thissop) return (myPoints(_idx[0]).usept);
917  int _parmidx[2-1];
918  _parmidx[1-1] = _idx[1-1] + 0;
919 
920  bool result;
921  OP_Utils::evalOpParmInst(result, thissop, "usept#", _parmidx, cookparms.getCookTime(), 0, 2-1);
922  return (result);
923  }
924  UT_Vector3D opPoints_pt(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
925  { return opinstPoints_pt(cookparms, &_idx); }
926  UT_Vector3D opinstPoints_pt(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
927  {
928  SOP_Node *thissop = cookparms.getNode();
929  if (!thissop) return (myPoints(_idx[0]).pt);
930  int _parmidx[2-1];
931  _parmidx[1-1] = _idx[1-1] + 0;
932 
934  OP_Utils::evalOpParmInst(result, thissop, "pt#", _parmidx, cookparms.getCookTime(), 0, 2-1);
935  return (result);
936  }
937  fpreal64 opPoints_weight(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
938  { return opinstPoints_weight(cookparms, &_idx); }
939  fpreal64 opinstPoints_weight(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
940  {
941  SOP_Node *thissop = cookparms.getNode();
942  if (!thissop) return (myPoints(_idx[0]).weight);
943  int _parmidx[2-1];
944  _parmidx[1-1] = _idx[1-1] + 0;
945 
947  OP_Utils::evalOpParmInst(result, thissop, "weight#", _parmidx, cookparms.getCookTime(), 0, 2-1);
948  return (result);
949  }
950 
951  bool getRemove() const { return myRemove; }
952  void setRemove(bool val) { myRemove = val; }
953  bool opRemove(const SOP_NodeVerb::CookParms &cookparms) const
954  {
955  SOP_Node *thissop = cookparms.getNode();
956  if (!thissop) return getRemove();
957  bool result;
958  OP_Utils::evalOpParm(result, thissop, "remove", cookparms.getCookTime(), 0);
959  return result;
960  }
961  const UT_Array<Prims> &getPrims() const { return myPrims; }
962 void setPrims(const UT_Array<Prims> &val) { myPrims = val; }
963  exint opPrims(const SOP_NodeVerb::CookParms &cookparms) const
964  {
965  SOP_Node *thissop = cookparms.getNode();
966  if (!thissop) return getPrims().entries();
967  exint result;
968  OP_Utils::evalOpParm(result, thissop, "prims", cookparms.getCookTime(), 0);
969  return result;
970  }
971  UT_StringHolder opPrims_prim(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
972  { return opinstPrims_prim(cookparms, &_idx); }
973  UT_StringHolder opinstPrims_prim(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
974  {
975  SOP_Node *thissop = cookparms.getNode();
976  if (!thissop) return (myPrims(_idx[0]).prim);
977  int _parmidx[2-1];
978  _parmidx[1-1] = _idx[1-1] + 0;
979 
981  OP_Utils::evalOpParmInst(result, thissop, "prim#", _parmidx, cookparms.getCookTime(), 0, 2-1);
982  return (result);
983  }
984  bool opPrims_closed(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
985  { return opinstPrims_closed(cookparms, &_idx); }
986  bool opinstPrims_closed(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
987  {
988  SOP_Node *thissop = cookparms.getNode();
989  if (!thissop) return (myPrims(_idx[0]).closed);
990  int _parmidx[2-1];
991  _parmidx[1-1] = _idx[1-1] + 0;
992 
993  bool result;
994  OP_Utils::evalOpParmInst(result, thissop, "closed#", _parmidx, cookparms.getCookTime(), 0, 2-1);
995  return (result);
996  }
997 
998  int64 getSwitcher() const { return mySwitcher; }
999  void setSwitcher(int64 val) { mySwitcher = val; }
1000  int64 opSwitcher(const SOP_NodeVerb::CookParms &cookparms) const
1001  {
1002  SOP_Node *thissop = cookparms.getNode();
1003  if (!thissop) return getSwitcher();
1004  int64 result;
1005  OP_Utils::evalOpParm(result, thissop, "switcher", cookparms.getCookTime(), 0);
1006  return result;
1007  }
1008  const UT_StringHolder & getGroup() const { return myGroup; }
1009  void setGroup(const UT_StringHolder & val) { myGroup = val; }
1011  {
1012  SOP_Node *thissop = cookparms.getNode();
1013  if (!thissop) return getGroup();
1015  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
1016  return result;
1017  }
1018  Add getAdd() const { return Add(myAdd); }
1019  void setAdd(Add val) { myAdd = int64(val); }
1020  Add opAdd(const SOP_NodeVerb::CookParms &cookparms) const
1021  {
1022  SOP_Node *thissop = cookparms.getNode();
1023  if (!thissop) return getAdd();
1024  int64 result;
1025  OP_Utils::evalOpParm(result, thissop, "add", cookparms.getCookTime(), 0);
1026  return Add(result);
1027  }
1028  int64 getInc() const { return myInc; }
1029  void setInc(int64 val) { myInc = val; }
1030  int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
1031  {
1032  SOP_Node *thissop = cookparms.getNode();
1033  if (!thissop) return getInc();
1034  int64 result;
1035  OP_Utils::evalOpParm(result, thissop, "inc", cookparms.getCookTime(), 0);
1036  return result;
1037  }
1038  const UT_StringHolder & getAttrname() const { return myAttrname; }
1039  void setAttrname(const UT_StringHolder & val) { myAttrname = val; }
1041  {
1042  SOP_Node *thissop = cookparms.getNode();
1043  if (!thissop) return getAttrname();
1045  OP_Utils::evalOpParm(result, thissop, "attrname", cookparms.getCookTime(), 0);
1046  return result;
1047  }
1048  bool getClosedall() const { return myClosedall; }
1049  void setClosedall(bool val) { myClosedall = val; }
1050  bool opClosedall(const SOP_NodeVerb::CookParms &cookparms) const
1051  {
1052  SOP_Node *thissop = cookparms.getNode();
1053  if (!thissop) return getClosedall();
1054  bool result;
1055  OP_Utils::evalOpParm(result, thissop, "closedall", cookparms.getCookTime(), 0);
1056  return result;
1057  }
1058  bool getAddparticlesystem() const { return myAddparticlesystem; }
1059  void setAddparticlesystem(bool val) { myAddparticlesystem = val; }
1060  bool opAddparticlesystem(const SOP_NodeVerb::CookParms &cookparms) const
1061  {
1062  SOP_Node *thissop = cookparms.getNode();
1063  if (!thissop) return getAddparticlesystem();
1064  bool result;
1065  OP_Utils::evalOpParm(result, thissop, "addparticlesystem", cookparms.getCookTime(), 0);
1066  return result;
1067  }
1068  const UT_StringHolder & getParticlegroup() const { return myParticlegroup; }
1069  void setParticlegroup(const UT_StringHolder & val) { myParticlegroup = val; }
1071  {
1072  SOP_Node *thissop = cookparms.getNode();
1073  if (!thissop) return getParticlegroup();
1075  OP_Utils::evalOpParm(result, thissop, "particlegroup", cookparms.getCookTime(), 0);
1076  return result;
1077  }
1078  bool getAppendunusedtoparticlesystem() const { return myAppendunusedtoparticlesystem; }
1079  void setAppendunusedtoparticlesystem(bool val) { myAppendunusedtoparticlesystem = val; }
1081  {
1082  SOP_Node *thissop = cookparms.getNode();
1083  if (!thissop) return getAppendunusedtoparticlesystem();
1084  bool result;
1085  OP_Utils::evalOpParm(result, thissop, "appendunusedtoparticlesystem", cookparms.getCookTime(), 0);
1086  return result;
1087  }
1088 
1089 private:
1090  bool myKeep;
1091  UT_Array<Points> myPoints;
1092  bool myRemove;
1093  UT_Array<Prims> myPrims;
1094  int64 mySwitcher;
1095  UT_StringHolder myGroup;
1096  int64 myAdd;
1097  int64 myInc;
1098  UT_StringHolder myAttrname;
1099  bool myClosedall;
1100  bool myAddparticlesystem;
1101  UT_StringHolder myParticlegroup;
1102  bool myAppendunusedtoparticlesystem;
1103 
1104 };
const UT_StringHolder & getGroup() const
bool operator==(const SOP_AddParms &src) const
bool isParmColorRamp(exint idx) const override
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
fpreal64 opPoints_weight(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
bool opClosedall(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const Prims &src) const
Add getAdd() const
const UT_StringHolder & getParticlegroup() const
static void saveData(std::ostream &os, UT_Matrix3D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
const UT_StringHolder & getAttrname() const
static void saveData(std::ostream &os, UT_Matrix2D v)
UT_StringHolder prim
const char * getNestParmName(TempIndex fieldnum) const override
bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
bool operator!=(const SOP_AddParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void
Definition: png.h:1083
exint bread(int32 *buffer, exint asize=1)
bool opPrims_closed(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_Vector4I &v)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
bool opPoints_usept(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setSwitcher(int64 val)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setClosedall(bool val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
GLdouble s
Definition: glad.h:3009
void setPrims(const UT_Array< Prims > &val)
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Vector4D v)
bool getRemove() const
void setAdd(Add val)
**But if you need a result
Definition: thread.h:613
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
void setParticlegroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
UT_StringHolder createString(const UT_Array< Prims > &list) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
virtual NodeIdx getInput(NodeIdx idx, int input, bool markused=false) const =0
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void saveData(std::ostream &os, UT_Matrix4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glcorearb.h:2621
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint length() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool opinstPrims_closed(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
SYS_FORCE_INLINE const char * buffer() const
bool operator==(const Points &src) const
Definition: SOP_Add.proto.h:70
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
bool getAppendunusedtoparticlesystem() const
UT_Vector3D opinstPoints_pt(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void copyFrom(const OP_NodeParms *src) override
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:276
bool opAddparticlesystem(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint opPoints(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
UT_Vector3D opPoints_pt(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
bool getKeep() 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
exint opPrims(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
bool getAddparticlesystem() const
UT_Vector3T< fpreal64 > UT_Vector3D
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool opRemove(const SOP_NodeVerb::CookParms &cookparms) const
int64 opSwitcher(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE UT_StringHolder getToken(Add enum_value)
Definition: SOP_Add.proto.h:35
bool opinstPoints_usept(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void saveData(std::ostream &os, UT_Vector3D v)
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, fpreal64 &v)
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:648
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool operator!=(const Points &src) const
Definition: SOP_Add.proto.h:78
void setInc(int64 val)
static void saveData(std::ostream &os, bool v)
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
bool load(UT_IStream &is)
UT_StringHolder opAttrname(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const Prims &src) const
int64 getSwitcher() const
int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
void setAppendunusedtoparticlesystem(bool val)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
UT_StringHolder opinstPrims_prim(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setGroup(const UT_StringHolder &val)
Add opAdd(const SOP_NodeVerb::CookParms &cookparms) const
LeafData & operator=(const LeafData &)=delete
bool getClosedall() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void saveData(std::ostream &os, int64 v)
const UT_Array< Points > & getPoints() const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
SYS_FORCE_INLINE void append(char character)
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
fpreal64 opinstPoints_weight(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
int64 getInc() const
#define SOP_API
Definition: SOP_API.h:10
static int version()
Definition: SOP_Add.proto.h:54
const UT_Array< Prims > & getPrims() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setPoints(const UT_Array< Points > &val)
UT_StringHolder opPrims_prim(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
void setAttrname(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void setAddparticlesystem(bool val)
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_Matrix2D &v)
type
Definition: core.h:1059
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_StringHolder opParticlegroup(const SOP_NodeVerb::CookParms &cookparms) const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void save(std::ostream &os) const
bool opAppendunusedtoparticlesystem(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setKeep(bool val)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
UT_StringHolder createString(const UT_Array< Points > &list) const
Definition: SOP_Add.proto.h:85
void setRemove(bool val)