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  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
386  { doGetParmValue(idx, instance, value); }
387  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
388  { doGetParmValue(idx, instance, value); }
389  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
390  { doGetParmValue(idx, instance, value); }
391  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
392  { doGetParmValue(idx, instance, value); }
393  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
394  { doGetParmValue(idx, instance, value); }
395  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
396  { doGetParmValue(idx, instance, value); }
397  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
398  { doGetParmValue(idx, instance, value); }
399  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
400  { doGetParmValue(idx, instance, value); }
401  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
402  { doGetParmValue(idx, instance, value); }
403  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
404  { doGetParmValue(idx, instance, value); }
405  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
406  { doGetParmValue(idx, instance, value); }
407 
408  template <typename T>
409  void
410  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
411  {
412  if (idx.size() < 1)
413  return;
414  UT_ASSERT(idx.size() == instance.size()+1);
415  if (idx.size() != instance.size()+1)
416  return;
417  switch (idx[0])
418  {
419  case 0:
420  coerceValue(myKeep, ( ( value ) ));
421  break;
422  case 1:
423  if (idx.size() == 1)
424  {
425  exint newsize;
426  coerceValue(newsize, value);
427  if (newsize < 0) newsize = 0;
428  myPoints.setSize(newsize);
429  }
430  else
431  {
432  if (instance[0] < 0)
433  return;
434  myPoints.setSizeIfNeeded(instance[0]+1);
435  auto && _data = myPoints(instance[0]);
436  switch (idx[1])
437  {
438  case 0:
439  coerceValue(_data.usept, value);
440  break;
441  case 1:
442  coerceValue(_data.pt, value);
443  break;
444  case 2:
445  coerceValue(_data.weight, value);
446  break;
447 
448  }
449  }
450  break;
451  case 2:
452  coerceValue(myRemove, ( ( value ) ));
453  break;
454  case 3:
455  if (idx.size() == 1)
456  {
457  exint newsize;
458  coerceValue(newsize, value);
459  if (newsize < 0) newsize = 0;
460  myPrims.setSize(newsize);
461  }
462  else
463  {
464  if (instance[0] < 0)
465  return;
466  myPrims.setSizeIfNeeded(instance[0]+1);
467  auto && _data = myPrims(instance[0]);
468  switch (idx[1])
469  {
470  case 0:
471  coerceValue(_data.prim, value);
472  break;
473  case 1:
474  coerceValue(_data.closed, value);
475  break;
476 
477  }
478  }
479  break;
480  case 4:
481  coerceValue(mySwitcher, ( ( value ) ));
482  break;
483  case 5:
484  coerceValue(myGroup, ( ( value ) ));
485  break;
486  case 6:
487  coerceValue(myAdd, clampMinValue(0, clampMaxValue(4, value ) ));
488  break;
489  case 7:
490  coerceValue(myInc, clampMinValue(1, ( value ) ));
491  break;
492  case 8:
493  coerceValue(myAttrname, ( ( value ) ));
494  break;
495  case 9:
496  coerceValue(myClosedall, ( ( value ) ));
497  break;
498  case 10:
499  coerceValue(myAddparticlesystem, ( ( value ) ));
500  break;
501  case 11:
502  coerceValue(myParticlegroup, ( ( value ) ));
503  break;
504  case 12:
505  coerceValue(myAppendunusedtoparticlesystem, ( ( value ) ));
506  break;
507 
508  }
509  }
510 
511  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
512  { doSetParmValue(idx, instance, value); }
513  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
514  { doSetParmValue(idx, instance, value); }
515  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
516  { doSetParmValue(idx, instance, value); }
517  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
518  { doSetParmValue(idx, instance, value); }
519  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
520  { doSetParmValue(idx, instance, value); }
521  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
522  { doSetParmValue(idx, instance, value); }
523  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
524  { doSetParmValue(idx, instance, value); }
525  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
526  { doSetParmValue(idx, instance, value); }
527  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
528  { doSetParmValue(idx, instance, value); }
529  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
530  { doSetParmValue(idx, instance, value); }
531  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
532  { doSetParmValue(idx, instance, value); }
533 
534  exint getNestNumParms(TempIndex idx) const override
535  {
536  if (idx.size() == 0)
537  return 13;
538  switch (idx[0])
539  {
540  case 1:
541  return 3;
542  case 3:
543  return 2;
544 
545  }
546  // Invalid
547  return 0;
548  }
549 
550  const char *getNestParmName(TempIndex fieldnum) const override
551  {
552  if (fieldnum.size() < 1)
553  return 0;
554  switch (fieldnum[0])
555  {
556  case 0:
557  return "keep";
558  case 1:
559  if (fieldnum.size() == 1)
560  return "points";
561  switch (fieldnum[1])
562  {
563  case 0:
564  return "usept#";
565  case 1:
566  return "pt#";
567  case 2:
568  return "weight#";
569 
570  }
571  return 0;
572  case 2:
573  return "remove";
574  case 3:
575  if (fieldnum.size() == 1)
576  return "prims";
577  switch (fieldnum[1])
578  {
579  case 0:
580  return "prim#";
581  case 1:
582  return "closed#";
583 
584  }
585  return 0;
586  case 4:
587  return "switcher";
588  case 5:
589  return "group";
590  case 6:
591  return "add";
592  case 7:
593  return "inc";
594  case 8:
595  return "attrname";
596  case 9:
597  return "closedall";
598  case 10:
599  return "addparticlesystem";
600  case 11:
601  return "particlegroup";
602  case 12:
603  return "appendunusedtoparticlesystem";
604 
605  }
606  return 0;
607  }
608 
609  ParmType getNestParmType(TempIndex fieldnum) const override
610  {
611  if (fieldnum.size() < 1)
612  return PARM_UNSUPPORTED;
613  switch (fieldnum[0])
614  {
615  case 0:
616  return PARM_INTEGER;
617  case 1:
618  if (fieldnum.size() == 1)
619  return PARM_MULTIPARM;
620  switch (fieldnum[1])
621  {
622  case 0:
623  return PARM_INTEGER;
624  case 1:
625  return PARM_VECTOR3;
626  case 2:
627  return PARM_FLOAT;
628 
629  }
630  return PARM_UNSUPPORTED;
631  case 2:
632  return PARM_INTEGER;
633  case 3:
634  if (fieldnum.size() == 1)
635  return PARM_MULTIPARM;
636  switch (fieldnum[1])
637  {
638  case 0:
639  return PARM_STRING;
640  case 1:
641  return PARM_INTEGER;
642 
643  }
644  return PARM_UNSUPPORTED;
645  case 4:
646  return PARM_INTEGER;
647  case 5:
648  return PARM_STRING;
649  case 6:
650  return PARM_INTEGER;
651  case 7:
652  return PARM_INTEGER;
653  case 8:
654  return PARM_STRING;
655  case 9:
656  return PARM_INTEGER;
657  case 10:
658  return PARM_INTEGER;
659  case 11:
660  return PARM_STRING;
661  case 12:
662  return PARM_INTEGER;
663 
664  }
665  return PARM_UNSUPPORTED;
666  }
667 
668  // Boiler plate to load individual types.
669  static void loadData(UT_IStream &is, int64 &v)
670  { is.bread(&v, 1); }
671  static void loadData(UT_IStream &is, bool &v)
672  { int64 iv; is.bread(&iv, 1); v = iv; }
673  static void loadData(UT_IStream &is, fpreal64 &v)
674  { is.bread<fpreal64>(&v, 1); }
675  static void loadData(UT_IStream &is, UT_Vector2D &v)
676  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
677  static void loadData(UT_IStream &is, UT_Vector3D &v)
678  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
679  is.bread<fpreal64>(&v.z(), 1); }
680  static void loadData(UT_IStream &is, UT_Vector4D &v)
681  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
682  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
683  static void loadData(UT_IStream &is, UT_Matrix2D &v)
684  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
685  static void loadData(UT_IStream &is, UT_Matrix3D &v)
686  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
687  static void loadData(UT_IStream &is, UT_Matrix4D &v)
688  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
689  static void loadData(UT_IStream &is, UT_Vector2I &v)
690  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
691  static void loadData(UT_IStream &is, UT_Vector3I &v)
692  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
693  is.bread<int64>(&v.z(), 1); }
694  static void loadData(UT_IStream &is, UT_Vector4I &v)
695  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
696  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
698  { is.bread(v); }
700  { UT_StringHolder rampdata;
701  loadData(is, rampdata);
702  if (rampdata.isstring())
703  {
704  v.reset(new UT_Ramp());
705  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
706  v->load(istr);
707  }
708  else v.reset();
709  }
712  loadData(is, data);
713  if (data.isstring())
714  {
715  // Find the data type.
716  const char *colon = UT_StringWrap(data).findChar(':');
717  if (colon)
718  {
719  int typelen = colon - data.buffer();
721  type.strncpy(data.buffer(), typelen);
722  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
723 
724  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
725  }
726  }
727  else v.reset();
728  }
729 
730  static void saveData(std::ostream &os, int64 v)
731  { UTwrite(os, &v); }
732  static void saveData(std::ostream &os, bool v)
733  { int64 iv = v; UTwrite(os, &iv); }
734  static void saveData(std::ostream &os, fpreal64 v)
735  { UTwrite<fpreal64>(os, &v); }
736  static void saveData(std::ostream &os, UT_Vector2D v)
737  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
738  static void saveData(std::ostream &os, UT_Vector3D v)
739  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
740  UTwrite<fpreal64>(os, &v.z()); }
741  static void saveData(std::ostream &os, UT_Vector4D v)
742  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
743  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
744  static void saveData(std::ostream &os, UT_Matrix2D v)
746  static void saveData(std::ostream &os, UT_Matrix3D v)
748  static void saveData(std::ostream &os, UT_Matrix4D v)
750  static void saveData(std::ostream &os, UT_StringHolder s)
751  { UT_StringWrap(s).saveBinary(os); }
752  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
754  UT_OStringStream ostr;
755  if (s) s->save(ostr);
756  result = ostr.str();
757  saveData(os, result);
758  }
759  static void saveData(std::ostream &os, PRM_DataItemHandle s)
761  UT_OStringStream ostr;
762  if (s)
763  {
764  ostr << s->getDataTypeToken();
765  ostr << ":";
766  s->saveBinary(ostr);
767  }
768  result = ostr.str();
769  saveData(os, result);
770  }
771 
772 
773  void save(std::ostream &os) const
774  {
775  int32 v = version();
776  UTwrite(os, &v);
777  saveData(os, myKeep);
778  {
779  int64 length = myPoints.entries();
780  UTwrite(os, &length);
781  for (exint i = 0; i < length; i++)
782  {
783  auto && _curentry = myPoints(i);
784  (void) _curentry;
785  saveData(os, _curentry.usept);
786  saveData(os, _curentry.pt);
787  saveData(os, _curentry.weight);
788 
789  }
790  }
791  saveData(os, myRemove);
792  {
793  int64 length = myPrims.entries();
794  UTwrite(os, &length);
795  for (exint i = 0; i < length; i++)
796  {
797  auto && _curentry = myPrims(i);
798  (void) _curentry;
799  saveData(os, _curentry.prim);
800  saveData(os, _curentry.closed);
801 
802  }
803  }
804  saveData(os, mySwitcher);
805  saveData(os, myGroup);
806  saveData(os, myAdd);
807  saveData(os, myInc);
808  saveData(os, myAttrname);
809  saveData(os, myClosedall);
810  saveData(os, myAddparticlesystem);
811  saveData(os, myParticlegroup);
812  saveData(os, myAppendunusedtoparticlesystem);
813 
814  }
815 
816  bool load(UT_IStream &is)
817  {
818  int32 v;
819  is.bread(&v, 1);
820  if (version() != v)
821  {
822  // Fail incompatible versions
823  return false;
824  }
825  loadData(is, myKeep);
826  {
827  int64 length;
828  is.read(&length, 1);
829  myPoints.setSize(length);
830  for (exint i = 0; i < length; i++)
831  {
832  auto && _curentry = myPoints(i);
833  (void) _curentry;
834  loadData(is, _curentry.usept);
835  loadData(is, _curentry.pt);
836  loadData(is, _curentry.weight);
837 
838  }
839  }
840  loadData(is, myRemove);
841  {
842  int64 length;
843  is.read(&length, 1);
844  myPrims.setSize(length);
845  for (exint i = 0; i < length; i++)
846  {
847  auto && _curentry = myPrims(i);
848  (void) _curentry;
849  loadData(is, _curentry.prim);
850  loadData(is, _curentry.closed);
851 
852  }
853  }
854  loadData(is, mySwitcher);
855  loadData(is, myGroup);
856  loadData(is, myAdd);
857  loadData(is, myInc);
858  loadData(is, myAttrname);
859  loadData(is, myClosedall);
860  loadData(is, myAddparticlesystem);
861  loadData(is, myParticlegroup);
862  loadData(is, myAppendunusedtoparticlesystem);
863 
864  return true;
865  }
866 
867  bool getKeep() const { return myKeep; }
868  void setKeep(bool val) { myKeep = val; }
869  bool opKeep(const SOP_NodeVerb::CookParms &cookparms) const
870  {
871  SOP_Node *thissop = cookparms.getNode();
872  if (!thissop) return getKeep();
873  bool result;
874  OP_Utils::evalOpParm(result, thissop, "keep", cookparms.getCookTime(), 0);
875  return result;
876  }
877  const UT_Array<Points> &getPoints() const { return myPoints; }
878 void setPoints(const UT_Array<Points> &val) { myPoints = val; }
879  exint opPoints(const SOP_NodeVerb::CookParms &cookparms) const
880  {
881  SOP_Node *thissop = cookparms.getNode();
882  if (!thissop) return getPoints().entries();
883  exint result;
884  OP_Utils::evalOpParm(result, thissop, "points", cookparms.getCookTime(), 0);
885  return result;
886  }
887  bool opPoints_usept(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
888  { return opinstPoints_usept(cookparms, &_idx); }
889  bool opinstPoints_usept(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
890  {
891  SOP_Node *thissop = cookparms.getNode();
892  if (!thissop) return (myPoints(_idx[0]).usept);
893  int _parmidx[2-1];
894  _parmidx[1-1] = _idx[1-1] + 0;
895 
896  bool result;
897  OP_Utils::evalOpParmInst(result, thissop, "usept#", _parmidx, cookparms.getCookTime(), 0, 2-1);
898  return (result);
899  }
900  UT_Vector3D opPoints_pt(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
901  { return opinstPoints_pt(cookparms, &_idx); }
902  UT_Vector3D opinstPoints_pt(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
903  {
904  SOP_Node *thissop = cookparms.getNode();
905  if (!thissop) return (myPoints(_idx[0]).pt);
906  int _parmidx[2-1];
907  _parmidx[1-1] = _idx[1-1] + 0;
908 
910  OP_Utils::evalOpParmInst(result, thissop, "pt#", _parmidx, cookparms.getCookTime(), 0, 2-1);
911  return (result);
912  }
913  fpreal64 opPoints_weight(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
914  { return opinstPoints_weight(cookparms, &_idx); }
915  fpreal64 opinstPoints_weight(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
916  {
917  SOP_Node *thissop = cookparms.getNode();
918  if (!thissop) return (myPoints(_idx[0]).weight);
919  int _parmidx[2-1];
920  _parmidx[1-1] = _idx[1-1] + 0;
921 
923  OP_Utils::evalOpParmInst(result, thissop, "weight#", _parmidx, cookparms.getCookTime(), 0, 2-1);
924  return (result);
925  }
926 
927  bool getRemove() const { return myRemove; }
928  void setRemove(bool val) { myRemove = val; }
929  bool opRemove(const SOP_NodeVerb::CookParms &cookparms) const
930  {
931  SOP_Node *thissop = cookparms.getNode();
932  if (!thissop) return getRemove();
933  bool result;
934  OP_Utils::evalOpParm(result, thissop, "remove", cookparms.getCookTime(), 0);
935  return result;
936  }
937  const UT_Array<Prims> &getPrims() const { return myPrims; }
938 void setPrims(const UT_Array<Prims> &val) { myPrims = val; }
939  exint opPrims(const SOP_NodeVerb::CookParms &cookparms) const
940  {
941  SOP_Node *thissop = cookparms.getNode();
942  if (!thissop) return getPrims().entries();
943  exint result;
944  OP_Utils::evalOpParm(result, thissop, "prims", cookparms.getCookTime(), 0);
945  return result;
946  }
947  UT_StringHolder opPrims_prim(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
948  { return opinstPrims_prim(cookparms, &_idx); }
949  UT_StringHolder opinstPrims_prim(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
950  {
951  SOP_Node *thissop = cookparms.getNode();
952  if (!thissop) return (myPrims(_idx[0]).prim);
953  int _parmidx[2-1];
954  _parmidx[1-1] = _idx[1-1] + 0;
955 
957  OP_Utils::evalOpParmInst(result, thissop, "prim#", _parmidx, cookparms.getCookTime(), 0, 2-1);
958  return (result);
959  }
960  bool opPrims_closed(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
961  { return opinstPrims_closed(cookparms, &_idx); }
962  bool opinstPrims_closed(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
963  {
964  SOP_Node *thissop = cookparms.getNode();
965  if (!thissop) return (myPrims(_idx[0]).closed);
966  int _parmidx[2-1];
967  _parmidx[1-1] = _idx[1-1] + 0;
968 
969  bool result;
970  OP_Utils::evalOpParmInst(result, thissop, "closed#", _parmidx, cookparms.getCookTime(), 0, 2-1);
971  return (result);
972  }
973 
974  int64 getSwitcher() const { return mySwitcher; }
975  void setSwitcher(int64 val) { mySwitcher = val; }
976  int64 opSwitcher(const SOP_NodeVerb::CookParms &cookparms) const
977  {
978  SOP_Node *thissop = cookparms.getNode();
979  if (!thissop) return getSwitcher();
980  int64 result;
981  OP_Utils::evalOpParm(result, thissop, "switcher", cookparms.getCookTime(), 0);
982  return result;
983  }
984  const UT_StringHolder & getGroup() const { return myGroup; }
985  void setGroup(const UT_StringHolder & val) { myGroup = val; }
987  {
988  SOP_Node *thissop = cookparms.getNode();
989  if (!thissop) return getGroup();
991  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
992  return result;
993  }
994  Add getAdd() const { return Add(myAdd); }
995  void setAdd(Add val) { myAdd = int64(val); }
996  Add opAdd(const SOP_NodeVerb::CookParms &cookparms) const
997  {
998  SOP_Node *thissop = cookparms.getNode();
999  if (!thissop) return getAdd();
1000  int64 result;
1001  OP_Utils::evalOpParm(result, thissop, "add", cookparms.getCookTime(), 0);
1002  return Add(result);
1003  }
1004  int64 getInc() const { return myInc; }
1005  void setInc(int64 val) { myInc = val; }
1006  int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
1007  {
1008  SOP_Node *thissop = cookparms.getNode();
1009  if (!thissop) return getInc();
1010  int64 result;
1011  OP_Utils::evalOpParm(result, thissop, "inc", cookparms.getCookTime(), 0);
1012  return result;
1013  }
1014  const UT_StringHolder & getAttrname() const { return myAttrname; }
1015  void setAttrname(const UT_StringHolder & val) { myAttrname = val; }
1017  {
1018  SOP_Node *thissop = cookparms.getNode();
1019  if (!thissop) return getAttrname();
1021  OP_Utils::evalOpParm(result, thissop, "attrname", cookparms.getCookTime(), 0);
1022  return result;
1023  }
1024  bool getClosedall() const { return myClosedall; }
1025  void setClosedall(bool val) { myClosedall = val; }
1026  bool opClosedall(const SOP_NodeVerb::CookParms &cookparms) const
1027  {
1028  SOP_Node *thissop = cookparms.getNode();
1029  if (!thissop) return getClosedall();
1030  bool result;
1031  OP_Utils::evalOpParm(result, thissop, "closedall", cookparms.getCookTime(), 0);
1032  return result;
1033  }
1034  bool getAddparticlesystem() const { return myAddparticlesystem; }
1035  void setAddparticlesystem(bool val) { myAddparticlesystem = val; }
1036  bool opAddparticlesystem(const SOP_NodeVerb::CookParms &cookparms) const
1037  {
1038  SOP_Node *thissop = cookparms.getNode();
1039  if (!thissop) return getAddparticlesystem();
1040  bool result;
1041  OP_Utils::evalOpParm(result, thissop, "addparticlesystem", cookparms.getCookTime(), 0);
1042  return result;
1043  }
1044  const UT_StringHolder & getParticlegroup() const { return myParticlegroup; }
1045  void setParticlegroup(const UT_StringHolder & val) { myParticlegroup = val; }
1047  {
1048  SOP_Node *thissop = cookparms.getNode();
1049  if (!thissop) return getParticlegroup();
1051  OP_Utils::evalOpParm(result, thissop, "particlegroup", cookparms.getCookTime(), 0);
1052  return result;
1053  }
1054  bool getAppendunusedtoparticlesystem() const { return myAppendunusedtoparticlesystem; }
1055  void setAppendunusedtoparticlesystem(bool val) { myAppendunusedtoparticlesystem = val; }
1057  {
1058  SOP_Node *thissop = cookparms.getNode();
1059  if (!thissop) return getAppendunusedtoparticlesystem();
1060  bool result;
1061  OP_Utils::evalOpParm(result, thissop, "appendunusedtoparticlesystem", cookparms.getCookTime(), 0);
1062  return result;
1063  }
1064 
1065 private:
1066  bool myKeep;
1067  UT_Array<Points> myPoints;
1068  bool myRemove;
1069  UT_Array<Prims> myPrims;
1070  int64 mySwitcher;
1071  UT_StringHolder myGroup;
1072  int64 myAdd;
1073  int64 myInc;
1074  UT_StringHolder myAttrname;
1075  bool myClosedall;
1076  bool myAddparticlesystem;
1077  UT_StringHolder myParticlegroup;
1078  bool myAppendunusedtoparticlesystem;
1079 
1080 };
const UT_StringHolder & getGroup() const
bool operator==(const SOP_AddParms &src) const
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:311
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:305
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:299
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:84
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)