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