HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Triangulate2D-2.0.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <OP/OP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_Triangulate2D_2_0Enums
24 {
25  enum class Planepossrc
26  {
27  FITPLANE = 0,
29  USEATTRIB
30  };
31 
33  getToken(Planepossrc enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case Planepossrc::FITPLANE: return "fitplane"_sh;
38  case Planepossrc::SETPROJPLANE: return "setprojplane"_sh;
39  case Planepossrc::USEATTRIB: return "useattrib"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44 }
45 
46 
48 {
49 public:
50  static int version() { return 1; }
51 
53  {
54  myPoints = ""_UTsh;
55  myPlanepossrc = 0;
56  myOrigin = UT_Vector3D(0,0,0);
57  myDist = 0;
58  myDir = UT_Vector3D(0,1,0);
59  myPos2attrib = ""_UTsh;
60  myRestorepos = false;
61  myKeepprims = false;
62  myUpdatenmls = true;
63  myRemoveunusedpoints = true;
64  myRemoveduplicatepoints = true;
65  myRandseed = 5678;
66  myConprims = ""_UTsh;
67  myConedges = ""_UTsh;
68  myRemoveconvhull = false;
69  myRemoveoutcons = true;
70  myDontremoveincons = true;
71  myRefine = false;
72  myMaxarea = 10000;
73  myMinangle = 0;
74  myMinedgelength = 0.001;
75  myMaxnewpts = 5000;
76  myNonewconpts = false;
77  myMakenewconptgrp = false;
78  myNewconptgrp = "newconpoints"_UTsh;
79  myMakenewconedgegrp = false;
80  myOutconedgegrp = "outconedges"_UTsh;
81 
82  }
83 
84  explicit SOP_Triangulate2D_2_0Parms(const SOP_Triangulate2D_2_0Parms &) = default;
87  SOP_Triangulate2D_2_0Parms &operator=(SOP_Triangulate2D_2_0Parms &&) noexcept = default;
88 
90 
92  {
93  if (myPoints != src.myPoints) return false;
94  if (myPlanepossrc != src.myPlanepossrc) return false;
95  if (myOrigin != src.myOrigin) return false;
96  if (myDist != src.myDist) return false;
97  if (myDir != src.myDir) return false;
98  if (myPos2attrib != src.myPos2attrib) return false;
99  if (myRestorepos != src.myRestorepos) return false;
100  if (myKeepprims != src.myKeepprims) return false;
101  if (myUpdatenmls != src.myUpdatenmls) return false;
102  if (myRemoveunusedpoints != src.myRemoveunusedpoints) return false;
103  if (myRemoveduplicatepoints != src.myRemoveduplicatepoints) return false;
104  if (myRandseed != src.myRandseed) return false;
105  if (myConprims != src.myConprims) return false;
106  if (myConedges != src.myConedges) return false;
107  if (myRemoveconvhull != src.myRemoveconvhull) return false;
108  if (myRemoveoutcons != src.myRemoveoutcons) return false;
109  if (myDontremoveincons != src.myDontremoveincons) return false;
110  if (myRefine != src.myRefine) return false;
111  if (myMaxarea != src.myMaxarea) return false;
112  if (myMinangle != src.myMinangle) return false;
113  if (myMinedgelength != src.myMinedgelength) return false;
114  if (myMaxnewpts != src.myMaxnewpts) return false;
115  if (myNonewconpts != src.myNonewconpts) return false;
116  if (myMakenewconptgrp != src.myMakenewconptgrp) return false;
117  if (myNewconptgrp != src.myNewconptgrp) return false;
118  if (myMakenewconedgegrp != src.myMakenewconedgegrp) return false;
119  if (myOutconedgegrp != src.myOutconedgegrp) return false;
120 
121 
122  if (baseGetSignature() != src.baseGetSignature()) return false;
123 
124  return true;
125  }
127  {
128  return !operator==(src);
129  }
131 
132 
133 
134  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
135  {
136  myPoints = ""_UTsh;
137  if (true)
138  graph->evalOpParm(myPoints, nodeidx, "points", time, graph->isDirect()?nullptr:depnode);
139  myPlanepossrc = 0;
140  if (true)
141  graph->evalOpParm(myPlanepossrc, nodeidx, "planepossrc", time, graph->isDirect()?nullptr:depnode);
142  myOrigin = UT_Vector3D(0,0,0);
143  if (true && ( (true&&!(((int64(getPlanepossrc())!=1)))) ) )
144  graph->evalOpParm(myOrigin, nodeidx, "origin", time, graph->isDirect()?nullptr:depnode);
145  myDist = 0;
146  if (true && ( (true&&!(((int64(getPlanepossrc())!=1)))) ) )
147  graph->evalOpParm(myDist, nodeidx, "dist", time, graph->isDirect()?nullptr:depnode);
148  myDir = UT_Vector3D(0,1,0);
149  if (true && ( (true&&!(((int64(getPlanepossrc())!=1)))) ) )
150  graph->evalOpParm(myDir, nodeidx, "dir", time, graph->isDirect()?nullptr:depnode);
151  myPos2attrib = ""_UTsh;
152  if (true && ( (true&&!(((int64(getPlanepossrc())!=2)))) ) )
153  graph->evalOpParm(myPos2attrib, nodeidx, "pos2attrib", time, graph->isDirect()?nullptr:depnode);
154  myRestorepos = false;
155  if (true)
156  graph->evalOpParm(myRestorepos, nodeidx, "restorepos", time, graph->isDirect()?nullptr:depnode);
157  myKeepprims = false;
158  if (true)
159  graph->evalOpParm(myKeepprims, nodeidx, "keepprims", time, graph->isDirect()?nullptr:depnode);
160  myUpdatenmls = true;
161  if (true)
162  graph->evalOpParm(myUpdatenmls, nodeidx, "updatenmls", time, graph->isDirect()?nullptr:depnode);
163  myRemoveunusedpoints = true;
164  if (true)
165  graph->evalOpParm(myRemoveunusedpoints, nodeidx, "removeunusedpoints", time, graph->isDirect()?nullptr:depnode);
166  myRemoveduplicatepoints = true;
167  if (true)
168  graph->evalOpParm(myRemoveduplicatepoints, nodeidx, "removeduplicatepoints", time, graph->isDirect()?nullptr:depnode);
169  myRandseed = 5678;
170  if (true)
171  graph->evalOpParm(myRandseed, nodeidx, "randseed", time, graph->isDirect()?nullptr:depnode);
172  myConprims = ""_UTsh;
173  if (true)
174  graph->evalOpParm(myConprims, nodeidx, "conprims", time, graph->isDirect()?nullptr:depnode);
175  myConedges = ""_UTsh;
176  if (true)
177  graph->evalOpParm(myConedges, nodeidx, "conedges", time, graph->isDirect()?nullptr:depnode);
178  myRemoveconvhull = false;
179  if (true)
180  graph->evalOpParm(myRemoveconvhull, nodeidx, "removeconvhull", time, graph->isDirect()?nullptr:depnode);
181  myRemoveoutcons = true;
182  if (true)
183  graph->evalOpParm(myRemoveoutcons, nodeidx, "removeoutcons", time, graph->isDirect()?nullptr:depnode);
184  myDontremoveincons = true;
185  if (true && ( (true&&!(((getRemoveoutcons()==0)))) ) )
186  graph->evalOpParm(myDontremoveincons, nodeidx, "dontremoveincons", time, graph->isDirect()?nullptr:depnode);
187  myRefine = false;
188  if (true)
189  graph->evalOpParm(myRefine, nodeidx, "refine", time, graph->isDirect()?nullptr:depnode);
190  myMaxarea = 10000;
191  if (true && ( (true&&!(((getRefine()==0)))) ) )
192  graph->evalOpParm(myMaxarea, nodeidx, "maxarea", time, graph->isDirect()?nullptr:depnode);
193  myMinangle = 0;
194  if (true && ( (true&&!(((getRefine()==0)))) ) )
195  graph->evalOpParm(myMinangle, nodeidx, "minangle", time, graph->isDirect()?nullptr:depnode);
196  myMinedgelength = 0.001;
197  if (true)
198  graph->evalOpParm(myMinedgelength, nodeidx, "minedgelength", time, graph->isDirect()?nullptr:depnode);
199  myMaxnewpts = 5000;
200  if (true)
201  graph->evalOpParm(myMaxnewpts, nodeidx, "maxnewpts", time, graph->isDirect()?nullptr:depnode);
202  myNonewconpts = false;
203  if (true && ( (true&&!(((getRefine()==1)))) ) )
204  graph->evalOpParm(myNonewconpts, nodeidx, "nonewconpts", time, graph->isDirect()?nullptr:depnode);
205  myMakenewconptgrp = false;
206  if (true && ( (true&&!(((getNonewconpts()==1)&&(getRefine()==0)))) ) )
207  graph->evalOpParm(myMakenewconptgrp, nodeidx, "makenewconptgrp", time, graph->isDirect()?nullptr:depnode);
208  myNewconptgrp = "newconpoints"_UTsh;
209  if (true && ( (true&&!(((getNonewconpts()==1)&&(getRefine()==0))||((getMakenewconptgrp()==0)))) ) )
210  graph->evalOpParm(myNewconptgrp, nodeidx, "newconptgrp", time, graph->isDirect()?nullptr:depnode);
211  myMakenewconedgegrp = false;
212  if (true && ( (true&&!(((getNonewconpts()==1)&&(getRefine()==0)))) ) )
213  graph->evalOpParm(myMakenewconedgegrp, nodeidx, "makenewconedgegrp", time, graph->isDirect()?nullptr:depnode);
214  myOutconedgegrp = "outconedges"_UTsh;
215  if (true && ( (true&&!(((getNonewconpts()==1)&&(getRefine()==0))||((getMakenewconedgegrp()==0)))) ) )
216  graph->evalOpParm(myOutconedgegrp, nodeidx, "outconedgegrp", time, graph->isDirect()?nullptr:depnode);
217 
218  }
219 
220 
221  void loadFromOpSubclass(const LoadParms &loadparms) override
222  {
223  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
224  }
225 
226 
227  void copyFrom(const OP_NodeParms *src) override
228  {
229  *this = *((const SOP_Triangulate2D_2_0Parms *)src);
230  }
231 
232  template <typename T>
233  void
234  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
235  {
236  if (idx.size() < 1)
237  return;
238  UT_ASSERT(idx.size() == instance.size()+1);
239  if (idx.size() != instance.size()+1)
240  return;
241  switch (idx[0])
242  {
243  case 0:
244  coerceValue(value, myPoints);
245  break;
246  case 1:
247  coerceValue(value, myPlanepossrc);
248  break;
249  case 2:
250  coerceValue(value, myOrigin);
251  break;
252  case 3:
253  coerceValue(value, myDist);
254  break;
255  case 4:
256  coerceValue(value, myDir);
257  break;
258  case 5:
259  coerceValue(value, myPos2attrib);
260  break;
261  case 6:
262  coerceValue(value, myRestorepos);
263  break;
264  case 7:
265  coerceValue(value, myKeepprims);
266  break;
267  case 8:
268  coerceValue(value, myUpdatenmls);
269  break;
270  case 9:
271  coerceValue(value, myRemoveunusedpoints);
272  break;
273  case 10:
274  coerceValue(value, myRemoveduplicatepoints);
275  break;
276  case 11:
277  coerceValue(value, myRandseed);
278  break;
279  case 12:
280  coerceValue(value, myConprims);
281  break;
282  case 13:
283  coerceValue(value, myConedges);
284  break;
285  case 14:
286  coerceValue(value, myRemoveconvhull);
287  break;
288  case 15:
289  coerceValue(value, myRemoveoutcons);
290  break;
291  case 16:
292  coerceValue(value, myDontremoveincons);
293  break;
294  case 17:
295  coerceValue(value, myRefine);
296  break;
297  case 18:
298  coerceValue(value, myMaxarea);
299  break;
300  case 19:
301  coerceValue(value, myMinangle);
302  break;
303  case 20:
304  coerceValue(value, myMinedgelength);
305  break;
306  case 21:
307  coerceValue(value, myMaxnewpts);
308  break;
309  case 22:
310  coerceValue(value, myNonewconpts);
311  break;
312  case 23:
313  coerceValue(value, myMakenewconptgrp);
314  break;
315  case 24:
316  coerceValue(value, myNewconptgrp);
317  break;
318  case 25:
319  coerceValue(value, myMakenewconedgegrp);
320  break;
321  case 26:
322  coerceValue(value, myOutconedgegrp);
323  break;
324 
325  }
326  }
327 
328  bool isParmColorRamp(exint idx) const override
329  {
330  switch (idx)
331  {
332 
333  }
334  return false;
335  }
336 
337  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
338  { doGetParmValue(idx, instance, value); }
339  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
340  { doGetParmValue(idx, instance, value); }
341  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
342  { doGetParmValue(idx, instance, value); }
343  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
344  { doGetParmValue(idx, instance, value); }
345  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
346  { doGetParmValue(idx, instance, value); }
347  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
348  { doGetParmValue(idx, instance, value); }
349  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
350  { doGetParmValue(idx, instance, value); }
351  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
352  { doGetParmValue(idx, instance, value); }
353  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
354  { doGetParmValue(idx, instance, value); }
355  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
356  { doGetParmValue(idx, instance, value); }
357  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
358  { doGetParmValue(idx, instance, value); }
359 
360  template <typename T>
361  void
362  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
363  {
364  if (idx.size() < 1)
365  return;
366  UT_ASSERT(idx.size() == instance.size()+1);
367  if (idx.size() != instance.size()+1)
368  return;
369  switch (idx[0])
370  {
371  case 0:
372  coerceValue(myPoints, ( ( value ) ));
373  break;
374  case 1:
375  coerceValue(myPlanepossrc, clampMinValue(0, clampMaxValue(2, value ) ));
376  break;
377  case 2:
378  coerceValue(myOrigin, ( ( value ) ));
379  break;
380  case 3:
381  coerceValue(myDist, ( ( value ) ));
382  break;
383  case 4:
384  coerceValue(myDir, ( ( value ) ));
385  break;
386  case 5:
387  coerceValue(myPos2attrib, ( ( value ) ));
388  break;
389  case 6:
390  coerceValue(myRestorepos, ( ( value ) ));
391  break;
392  case 7:
393  coerceValue(myKeepprims, ( ( value ) ));
394  break;
395  case 8:
396  coerceValue(myUpdatenmls, ( ( value ) ));
397  break;
398  case 9:
399  coerceValue(myRemoveunusedpoints, ( ( value ) ));
400  break;
401  case 10:
402  coerceValue(myRemoveduplicatepoints, ( ( value ) ));
403  break;
404  case 11:
405  coerceValue(myRandseed, ( ( value ) ));
406  break;
407  case 12:
408  coerceValue(myConprims, ( ( value ) ));
409  break;
410  case 13:
411  coerceValue(myConedges, ( ( value ) ));
412  break;
413  case 14:
414  coerceValue(myRemoveconvhull, ( ( value ) ));
415  break;
416  case 15:
417  coerceValue(myRemoveoutcons, ( ( value ) ));
418  break;
419  case 16:
420  coerceValue(myDontremoveincons, ( ( value ) ));
421  break;
422  case 17:
423  coerceValue(myRefine, ( ( value ) ));
424  break;
425  case 18:
426  coerceValue(myMaxarea, clampMinValue(0.0001, ( value ) ));
427  break;
428  case 19:
429  coerceValue(myMinangle, clampMinValue(0, ( value ) ));
430  break;
431  case 20:
432  coerceValue(myMinedgelength, ( ( value ) ));
433  break;
434  case 21:
435  coerceValue(myMaxnewpts, ( ( value ) ));
436  break;
437  case 22:
438  coerceValue(myNonewconpts, ( ( value ) ));
439  break;
440  case 23:
441  coerceValue(myMakenewconptgrp, ( ( value ) ));
442  break;
443  case 24:
444  coerceValue(myNewconptgrp, ( ( value ) ));
445  break;
446  case 25:
447  coerceValue(myMakenewconedgegrp, ( ( value ) ));
448  break;
449  case 26:
450  coerceValue(myOutconedgegrp, ( ( value ) ));
451  break;
452 
453  }
454  }
455 
456  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
457  { doSetParmValue(idx, instance, value); }
458  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
459  { doSetParmValue(idx, instance, value); }
460  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
461  { doSetParmValue(idx, instance, value); }
462  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
463  { doSetParmValue(idx, instance, value); }
464  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
465  { doSetParmValue(idx, instance, value); }
466  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
467  { doSetParmValue(idx, instance, value); }
468  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
469  { doSetParmValue(idx, instance, value); }
470  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
471  { doSetParmValue(idx, instance, value); }
472  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
473  { doSetParmValue(idx, instance, value); }
474  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
475  { doSetParmValue(idx, instance, value); }
476  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
477  { doSetParmValue(idx, instance, value); }
478 
479  exint getNestNumParms(TempIndex idx) const override
480  {
481  if (idx.size() == 0)
482  return 27;
483  switch (idx[0])
484  {
485 
486  }
487  // Invalid
488  return 0;
489  }
490 
491  const char *getNestParmName(TempIndex fieldnum) const override
492  {
493  if (fieldnum.size() < 1)
494  return 0;
495  switch (fieldnum[0])
496  {
497  case 0:
498  return "points";
499  case 1:
500  return "planepossrc";
501  case 2:
502  return "origin";
503  case 3:
504  return "dist";
505  case 4:
506  return "dir";
507  case 5:
508  return "pos2attrib";
509  case 6:
510  return "restorepos";
511  case 7:
512  return "keepprims";
513  case 8:
514  return "updatenmls";
515  case 9:
516  return "removeunusedpoints";
517  case 10:
518  return "removeduplicatepoints";
519  case 11:
520  return "randseed";
521  case 12:
522  return "conprims";
523  case 13:
524  return "conedges";
525  case 14:
526  return "removeconvhull";
527  case 15:
528  return "removeoutcons";
529  case 16:
530  return "dontremoveincons";
531  case 17:
532  return "refine";
533  case 18:
534  return "maxarea";
535  case 19:
536  return "minangle";
537  case 20:
538  return "minedgelength";
539  case 21:
540  return "maxnewpts";
541  case 22:
542  return "nonewconpts";
543  case 23:
544  return "makenewconptgrp";
545  case 24:
546  return "newconptgrp";
547  case 25:
548  return "makenewconedgegrp";
549  case 26:
550  return "outconedgegrp";
551 
552  }
553  return 0;
554  }
555 
556  ParmType getNestParmType(TempIndex fieldnum) const override
557  {
558  if (fieldnum.size() < 1)
559  return PARM_UNSUPPORTED;
560  switch (fieldnum[0])
561  {
562  case 0:
563  return PARM_STRING;
564  case 1:
565  return PARM_INTEGER;
566  case 2:
567  return PARM_VECTOR3;
568  case 3:
569  return PARM_FLOAT;
570  case 4:
571  return PARM_VECTOR3;
572  case 5:
573  return PARM_STRING;
574  case 6:
575  return PARM_INTEGER;
576  case 7:
577  return PARM_INTEGER;
578  case 8:
579  return PARM_INTEGER;
580  case 9:
581  return PARM_INTEGER;
582  case 10:
583  return PARM_INTEGER;
584  case 11:
585  return PARM_INTEGER;
586  case 12:
587  return PARM_STRING;
588  case 13:
589  return PARM_STRING;
590  case 14:
591  return PARM_INTEGER;
592  case 15:
593  return PARM_INTEGER;
594  case 16:
595  return PARM_INTEGER;
596  case 17:
597  return PARM_INTEGER;
598  case 18:
599  return PARM_FLOAT;
600  case 19:
601  return PARM_FLOAT;
602  case 20:
603  return PARM_FLOAT;
604  case 21:
605  return PARM_INTEGER;
606  case 22:
607  return PARM_INTEGER;
608  case 23:
609  return PARM_INTEGER;
610  case 24:
611  return PARM_STRING;
612  case 25:
613  return PARM_INTEGER;
614  case 26:
615  return PARM_STRING;
616 
617  }
618  return PARM_UNSUPPORTED;
619  }
620 
621  // Boiler plate to load individual types.
622  static void loadData(UT_IStream &is, int64 &v)
623  { is.bread(&v, 1); }
624  static void loadData(UT_IStream &is, bool &v)
625  { int64 iv; is.bread(&iv, 1); v = iv; }
626  static void loadData(UT_IStream &is, fpreal64 &v)
627  { is.bread<fpreal64>(&v, 1); }
628  static void loadData(UT_IStream &is, UT_Vector2D &v)
629  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
630  static void loadData(UT_IStream &is, UT_Vector3D &v)
631  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
632  is.bread<fpreal64>(&v.z(), 1); }
633  static void loadData(UT_IStream &is, UT_Vector4D &v)
634  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
635  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
636  static void loadData(UT_IStream &is, UT_Matrix2D &v)
637  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
638  static void loadData(UT_IStream &is, UT_Matrix3D &v)
639  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
640  static void loadData(UT_IStream &is, UT_Matrix4D &v)
641  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
642  static void loadData(UT_IStream &is, UT_Vector2I &v)
643  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
644  static void loadData(UT_IStream &is, UT_Vector3I &v)
645  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
646  is.bread<int64>(&v.z(), 1); }
647  static void loadData(UT_IStream &is, UT_Vector4I &v)
648  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
649  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
651  { is.bread(v); }
653  { UT_StringHolder rampdata;
654  loadData(is, rampdata);
655  if (rampdata.isstring())
656  {
657  v.reset(new UT_Ramp());
658  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
659  v->load(istr);
660  }
661  else v.reset();
662  }
665  loadData(is, data);
666  if (data.isstring())
667  {
668  // Find the data type.
669  const char *colon = UT_StringWrap(data).findChar(':');
670  if (colon)
671  {
672  int typelen = colon - data.buffer();
674  type.strncpy(data.buffer(), typelen);
675  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
676 
677  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
678  }
679  }
680  else v.reset();
681  }
682 
683  static void saveData(std::ostream &os, int64 v)
684  { UTwrite(os, &v); }
685  static void saveData(std::ostream &os, bool v)
686  { int64 iv = v; UTwrite(os, &iv); }
687  static void saveData(std::ostream &os, fpreal64 v)
688  { UTwrite<fpreal64>(os, &v); }
689  static void saveData(std::ostream &os, UT_Vector2D v)
690  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
691  static void saveData(std::ostream &os, UT_Vector3D v)
692  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
693  UTwrite<fpreal64>(os, &v.z()); }
694  static void saveData(std::ostream &os, UT_Vector4D v)
695  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
696  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
697  static void saveData(std::ostream &os, UT_Matrix2D v)
699  static void saveData(std::ostream &os, UT_Matrix3D v)
701  static void saveData(std::ostream &os, UT_Matrix4D v)
703  static void saveData(std::ostream &os, UT_StringHolder s)
704  { UT_StringWrap(s).saveBinary(os); }
705  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
707  UT_OStringStream ostr;
708  if (s) s->save(ostr);
709  result = ostr.str();
710  saveData(os, result);
711  }
712  static void saveData(std::ostream &os, PRM_DataItemHandle s)
714  UT_OStringStream ostr;
715  if (s)
716  {
717  ostr << s->getDataTypeToken();
718  ostr << ":";
719  s->saveBinary(ostr);
720  }
721  result = ostr.str();
722  saveData(os, result);
723  }
724 
725 
726  void save(std::ostream &os) const
727  {
728  int32 v = version();
729  UTwrite(os, &v);
730  saveData(os, myPoints);
731  saveData(os, myPlanepossrc);
732  saveData(os, myOrigin);
733  saveData(os, myDist);
734  saveData(os, myDir);
735  saveData(os, myPos2attrib);
736  saveData(os, myRestorepos);
737  saveData(os, myKeepprims);
738  saveData(os, myUpdatenmls);
739  saveData(os, myRemoveunusedpoints);
740  saveData(os, myRemoveduplicatepoints);
741  saveData(os, myRandseed);
742  saveData(os, myConprims);
743  saveData(os, myConedges);
744  saveData(os, myRemoveconvhull);
745  saveData(os, myRemoveoutcons);
746  saveData(os, myDontremoveincons);
747  saveData(os, myRefine);
748  saveData(os, myMaxarea);
749  saveData(os, myMinangle);
750  saveData(os, myMinedgelength);
751  saveData(os, myMaxnewpts);
752  saveData(os, myNonewconpts);
753  saveData(os, myMakenewconptgrp);
754  saveData(os, myNewconptgrp);
755  saveData(os, myMakenewconedgegrp);
756  saveData(os, myOutconedgegrp);
757 
758  }
759 
760  bool load(UT_IStream &is)
761  {
762  int32 v;
763  is.bread(&v, 1);
764  if (version() != v)
765  {
766  // Fail incompatible versions
767  return false;
768  }
769  loadData(is, myPoints);
770  loadData(is, myPlanepossrc);
771  loadData(is, myOrigin);
772  loadData(is, myDist);
773  loadData(is, myDir);
774  loadData(is, myPos2attrib);
775  loadData(is, myRestorepos);
776  loadData(is, myKeepprims);
777  loadData(is, myUpdatenmls);
778  loadData(is, myRemoveunusedpoints);
779  loadData(is, myRemoveduplicatepoints);
780  loadData(is, myRandseed);
781  loadData(is, myConprims);
782  loadData(is, myConedges);
783  loadData(is, myRemoveconvhull);
784  loadData(is, myRemoveoutcons);
785  loadData(is, myDontremoveincons);
786  loadData(is, myRefine);
787  loadData(is, myMaxarea);
788  loadData(is, myMinangle);
789  loadData(is, myMinedgelength);
790  loadData(is, myMaxnewpts);
791  loadData(is, myNonewconpts);
792  loadData(is, myMakenewconptgrp);
793  loadData(is, myNewconptgrp);
794  loadData(is, myMakenewconedgegrp);
795  loadData(is, myOutconedgegrp);
796 
797  return true;
798  }
799 
800  const UT_StringHolder & getPoints() const { return myPoints; }
801  void setPoints(const UT_StringHolder & val) { myPoints = val; }
803  {
804  SOP_Node *thissop = cookparms.getNode();
805  if (!thissop) return getPoints();
807  OP_Utils::evalOpParm(result, thissop, "points", cookparms.getCookTime(), 0);
808  return result;
809  }
810  Planepossrc getPlanepossrc() const { return Planepossrc(myPlanepossrc); }
811  void setPlanepossrc(Planepossrc val) { myPlanepossrc = int64(val); }
813  {
814  SOP_Node *thissop = cookparms.getNode();
815  if (!thissop) return getPlanepossrc();
816  int64 result;
817  OP_Utils::evalOpParm(result, thissop, "planepossrc", cookparms.getCookTime(), 0);
818  return Planepossrc(result);
819  }
820  UT_Vector3D getOrigin() const { return myOrigin; }
821  void setOrigin(UT_Vector3D val) { myOrigin = val; }
823  {
824  SOP_Node *thissop = cookparms.getNode();
825  if (!thissop) return getOrigin();
827  OP_Utils::evalOpParm(result, thissop, "origin", cookparms.getCookTime(), 0);
828  return result;
829  }
830  fpreal64 getDist() const { return myDist; }
831  void setDist(fpreal64 val) { myDist = val; }
832  fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
833  {
834  SOP_Node *thissop = cookparms.getNode();
835  if (!thissop) return getDist();
837  OP_Utils::evalOpParm(result, thissop, "dist", cookparms.getCookTime(), 0);
838  return result;
839  }
840  UT_Vector3D getDir() const { return myDir; }
841  void setDir(UT_Vector3D val) { myDir = val; }
842  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
843  {
844  SOP_Node *thissop = cookparms.getNode();
845  if (!thissop) return getDir();
847  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
848  return result;
849  }
850  const UT_StringHolder & getPos2attrib() const { return myPos2attrib; }
851  void setPos2attrib(const UT_StringHolder & val) { myPos2attrib = val; }
853  {
854  SOP_Node *thissop = cookparms.getNode();
855  if (!thissop) return getPos2attrib();
857  OP_Utils::evalOpParm(result, thissop, "pos2attrib", cookparms.getCookTime(), 0);
858  return result;
859  }
860  bool getRestorepos() const { return myRestorepos; }
861  void setRestorepos(bool val) { myRestorepos = val; }
862  bool opRestorepos(const SOP_NodeVerb::CookParms &cookparms) const
863  {
864  SOP_Node *thissop = cookparms.getNode();
865  if (!thissop) return getRestorepos();
866  bool result;
867  OP_Utils::evalOpParm(result, thissop, "restorepos", cookparms.getCookTime(), 0);
868  return result;
869  }
870  bool getKeepprims() const { return myKeepprims; }
871  void setKeepprims(bool val) { myKeepprims = val; }
872  bool opKeepprims(const SOP_NodeVerb::CookParms &cookparms) const
873  {
874  SOP_Node *thissop = cookparms.getNode();
875  if (!thissop) return getKeepprims();
876  bool result;
877  OP_Utils::evalOpParm(result, thissop, "keepprims", cookparms.getCookTime(), 0);
878  return result;
879  }
880  bool getUpdatenmls() const { return myUpdatenmls; }
881  void setUpdatenmls(bool val) { myUpdatenmls = val; }
882  bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
883  {
884  SOP_Node *thissop = cookparms.getNode();
885  if (!thissop) return getUpdatenmls();
886  bool result;
887  OP_Utils::evalOpParm(result, thissop, "updatenmls", cookparms.getCookTime(), 0);
888  return result;
889  }
890  bool getRemoveunusedpoints() const { return myRemoveunusedpoints; }
891  void setRemoveunusedpoints(bool val) { myRemoveunusedpoints = val; }
892  bool opRemoveunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
893  {
894  SOP_Node *thissop = cookparms.getNode();
895  if (!thissop) return getRemoveunusedpoints();
896  bool result;
897  OP_Utils::evalOpParm(result, thissop, "removeunusedpoints", cookparms.getCookTime(), 0);
898  return result;
899  }
900  bool getRemoveduplicatepoints() const { return myRemoveduplicatepoints; }
901  void setRemoveduplicatepoints(bool val) { myRemoveduplicatepoints = val; }
903  {
904  SOP_Node *thissop = cookparms.getNode();
905  if (!thissop) return getRemoveduplicatepoints();
906  bool result;
907  OP_Utils::evalOpParm(result, thissop, "removeduplicatepoints", cookparms.getCookTime(), 0);
908  return result;
909  }
910  int64 getRandseed() const { return myRandseed; }
911  void setRandseed(int64 val) { myRandseed = val; }
912  int64 opRandseed(const SOP_NodeVerb::CookParms &cookparms) const
913  {
914  SOP_Node *thissop = cookparms.getNode();
915  if (!thissop) return getRandseed();
916  int64 result;
917  OP_Utils::evalOpParm(result, thissop, "randseed", cookparms.getCookTime(), 0);
918  return result;
919  }
920  const UT_StringHolder & getConprims() const { return myConprims; }
921  void setConprims(const UT_StringHolder & val) { myConprims = val; }
923  {
924  SOP_Node *thissop = cookparms.getNode();
925  if (!thissop) return getConprims();
927  OP_Utils::evalOpParm(result, thissop, "conprims", cookparms.getCookTime(), 0);
928  return result;
929  }
930  const UT_StringHolder & getConedges() const { return myConedges; }
931  void setConedges(const UT_StringHolder & val) { myConedges = val; }
933  {
934  SOP_Node *thissop = cookparms.getNode();
935  if (!thissop) return getConedges();
937  OP_Utils::evalOpParm(result, thissop, "conedges", cookparms.getCookTime(), 0);
938  return result;
939  }
940  bool getRemoveconvhull() const { return myRemoveconvhull; }
941  void setRemoveconvhull(bool val) { myRemoveconvhull = val; }
942  bool opRemoveconvhull(const SOP_NodeVerb::CookParms &cookparms) const
943  {
944  SOP_Node *thissop = cookparms.getNode();
945  if (!thissop) return getRemoveconvhull();
946  bool result;
947  OP_Utils::evalOpParm(result, thissop, "removeconvhull", cookparms.getCookTime(), 0);
948  return result;
949  }
950  bool getRemoveoutcons() const { return myRemoveoutcons; }
951  void setRemoveoutcons(bool val) { myRemoveoutcons = val; }
952  bool opRemoveoutcons(const SOP_NodeVerb::CookParms &cookparms) const
953  {
954  SOP_Node *thissop = cookparms.getNode();
955  if (!thissop) return getRemoveoutcons();
956  bool result;
957  OP_Utils::evalOpParm(result, thissop, "removeoutcons", cookparms.getCookTime(), 0);
958  return result;
959  }
960  bool getDontremoveincons() const { return myDontremoveincons; }
961  void setDontremoveincons(bool val) { myDontremoveincons = val; }
962  bool opDontremoveincons(const SOP_NodeVerb::CookParms &cookparms) const
963  {
964  SOP_Node *thissop = cookparms.getNode();
965  if (!thissop) return getDontremoveincons();
966  bool result;
967  OP_Utils::evalOpParm(result, thissop, "dontremoveincons", cookparms.getCookTime(), 0);
968  return result;
969  }
970  bool getRefine() const { return myRefine; }
971  void setRefine(bool val) { myRefine = val; }
972  bool opRefine(const SOP_NodeVerb::CookParms &cookparms) const
973  {
974  SOP_Node *thissop = cookparms.getNode();
975  if (!thissop) return getRefine();
976  bool result;
977  OP_Utils::evalOpParm(result, thissop, "refine", cookparms.getCookTime(), 0);
978  return result;
979  }
980  fpreal64 getMaxarea() const { return myMaxarea; }
981  void setMaxarea(fpreal64 val) { myMaxarea = val; }
983  {
984  SOP_Node *thissop = cookparms.getNode();
985  if (!thissop) return getMaxarea();
987  OP_Utils::evalOpParm(result, thissop, "maxarea", cookparms.getCookTime(), 0);
988  return result;
989  }
990  fpreal64 getMinangle() const { return myMinangle; }
991  void setMinangle(fpreal64 val) { myMinangle = val; }
993  {
994  SOP_Node *thissop = cookparms.getNode();
995  if (!thissop) return getMinangle();
997  OP_Utils::evalOpParm(result, thissop, "minangle", cookparms.getCookTime(), 0);
998  return result;
999  }
1000  fpreal64 getMinedgelength() const { return myMinedgelength; }
1001  void setMinedgelength(fpreal64 val) { myMinedgelength = val; }
1003  {
1004  SOP_Node *thissop = cookparms.getNode();
1005  if (!thissop) return getMinedgelength();
1006  fpreal64 result;
1007  OP_Utils::evalOpParm(result, thissop, "minedgelength", cookparms.getCookTime(), 0);
1008  return result;
1009  }
1010  int64 getMaxnewpts() const { return myMaxnewpts; }
1011  void setMaxnewpts(int64 val) { myMaxnewpts = val; }
1013  {
1014  SOP_Node *thissop = cookparms.getNode();
1015  if (!thissop) return getMaxnewpts();
1016  int64 result;
1017  OP_Utils::evalOpParm(result, thissop, "maxnewpts", cookparms.getCookTime(), 0);
1018  return result;
1019  }
1020  bool getNonewconpts() const { return myNonewconpts; }
1021  void setNonewconpts(bool val) { myNonewconpts = val; }
1022  bool opNonewconpts(const SOP_NodeVerb::CookParms &cookparms) const
1023  {
1024  SOP_Node *thissop = cookparms.getNode();
1025  if (!thissop) return getNonewconpts();
1026  bool result;
1027  OP_Utils::evalOpParm(result, thissop, "nonewconpts", cookparms.getCookTime(), 0);
1028  return result;
1029  }
1030  bool getMakenewconptgrp() const { return myMakenewconptgrp; }
1031  void setMakenewconptgrp(bool val) { myMakenewconptgrp = val; }
1032  bool opMakenewconptgrp(const SOP_NodeVerb::CookParms &cookparms) const
1033  {
1034  SOP_Node *thissop = cookparms.getNode();
1035  if (!thissop) return getMakenewconptgrp();
1036  bool result;
1037  OP_Utils::evalOpParm(result, thissop, "makenewconptgrp", cookparms.getCookTime(), 0);
1038  return result;
1039  }
1040  const UT_StringHolder & getNewconptgrp() const { return myNewconptgrp; }
1041  void setNewconptgrp(const UT_StringHolder & val) { myNewconptgrp = val; }
1043  {
1044  SOP_Node *thissop = cookparms.getNode();
1045  if (!thissop) return getNewconptgrp();
1047  OP_Utils::evalOpParm(result, thissop, "newconptgrp", cookparms.getCookTime(), 0);
1048  return result;
1049  }
1050  bool getMakenewconedgegrp() const { return myMakenewconedgegrp; }
1051  void setMakenewconedgegrp(bool val) { myMakenewconedgegrp = val; }
1052  bool opMakenewconedgegrp(const SOP_NodeVerb::CookParms &cookparms) const
1053  {
1054  SOP_Node *thissop = cookparms.getNode();
1055  if (!thissop) return getMakenewconedgegrp();
1056  bool result;
1057  OP_Utils::evalOpParm(result, thissop, "makenewconedgegrp", cookparms.getCookTime(), 0);
1058  return result;
1059  }
1060  const UT_StringHolder & getOutconedgegrp() const { return myOutconedgegrp; }
1061  void setOutconedgegrp(const UT_StringHolder & val) { myOutconedgegrp = val; }
1063  {
1064  SOP_Node *thissop = cookparms.getNode();
1065  if (!thissop) return getOutconedgegrp();
1067  OP_Utils::evalOpParm(result, thissop, "outconedgegrp", cookparms.getCookTime(), 0);
1068  return result;
1069  }
1070 
1071 private:
1072  UT_StringHolder myPoints;
1073  int64 myPlanepossrc;
1074  UT_Vector3D myOrigin;
1075  fpreal64 myDist;
1076  UT_Vector3D myDir;
1077  UT_StringHolder myPos2attrib;
1078  bool myRestorepos;
1079  bool myKeepprims;
1080  bool myUpdatenmls;
1081  bool myRemoveunusedpoints;
1082  bool myRemoveduplicatepoints;
1083  int64 myRandseed;
1084  UT_StringHolder myConprims;
1085  UT_StringHolder myConedges;
1086  bool myRemoveconvhull;
1087  bool myRemoveoutcons;
1088  bool myDontremoveincons;
1089  bool myRefine;
1090  fpreal64 myMaxarea;
1091  fpreal64 myMinangle;
1092  fpreal64 myMinedgelength;
1093  int64 myMaxnewpts;
1094  bool myNonewconpts;
1095  bool myMakenewconptgrp;
1096  UT_StringHolder myNewconptgrp;
1097  bool myMakenewconedgegrp;
1098  UT_StringHolder myOutconedgegrp;
1099 
1100 };
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, UT_Vector3D v)
type
Definition: core.h:556
const UT_StringHolder & getOutconedgegrp() const
static void loadData(UT_IStream &is, bool &v)
const UT_StringHolder & getPoints() const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setConedges(const UT_StringHolder &val)
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool operator!=(const SOP_Triangulate2D_2_0Parms &src) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
bool opRestorepos(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
exint bread(int32 *buffer, exint asize=1)
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
void copyFrom(const OP_NodeParms *src) override
fpreal64 opMaxarea(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE UT_StringHolder getToken(Planepossrc enum_value)
const UT_StringHolder & getConprims() const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
int64 opRandseed(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_StringHolder opConedges(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
**But if you need a result
Definition: thread.h:622
UT_Vector3D opOrigin(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
UT_StringHolder opPoints(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool opKeepprims(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getPos2attrib() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, int64 &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
UT_StringHolder opConprims(const SOP_NodeVerb::CookParms &cookparms) const
bool opMakenewconedgegrp(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, bool v)
const UT_StringHolder & getNewconptgrp() const
exint length() const
SYS_FORCE_INLINE const char * buffer() const
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
UT_StringHolder opNewconptgrp(const SOP_NodeVerb::CookParms &cookparms) const
void setPoints(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool opRemoveconvhull(const SOP_NodeVerb::CookParms &cookparms) const
Planepossrc opPlanepossrc(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
bool opNonewconpts(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
UT_Vector3T< fpreal64 > UT_Vector3D
void setConprims(const UT_StringHolder &val)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
UT_StringHolder opPos2attrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool opRemoveduplicatepoints(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const UT_StringHolder & getConedges() const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool opMakenewconptgrp(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opMinedgelength(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
int64 opMaxnewpts(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void save(std::ostream &os) const
exint getNestNumParms(TempIndex idx) const override
void setNewconptgrp(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
bool opDontremoveincons(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
bool opRemoveoutcons(const SOP_NodeVerb::CookParms &cookparms) const
LeafData & operator=(const LeafData &)=delete
static void loadData(UT_IStream &is, UT_Vector2I &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
bool operator==(const SOP_Triangulate2D_2_0Parms &src) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void setOutconedgegrp(const UT_StringHolder &val)
#define SOP_API
Definition: SOP_API.h:10
UT_StringHolder opOutconedgegrp(const SOP_NodeVerb::CookParms &cookparms) const
void setPos2attrib(const UT_StringHolder &val)
static void saveData(std::ostream &os, int64 v)
fpreal64 opMinangle(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
static void saveData(std::ostream &os, UT_Vector2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool opRefine(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void saveData(std::ostream &os, UT_Vector4D v)
bool opRemoveunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GLboolean r
Definition: glcorearb.h:1222
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663