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