HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Resample.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_ResampleEnums
24 {
25  enum class Method
26  {
27  DIST = 0,
28  X,
29  Y,
30  Z
31  };
32 
34  getToken(Method enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Method::DIST: return "dist"_sh;
39  case Method::X: return "x"_sh;
40  case Method::Y: return "y"_sh;
41  case Method::Z: return "z"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46  enum class Measure
47  {
48  ARC = 0,
49  CHORD
50  };
51 
53  getToken(Measure enum_value)
54  {
55  using namespace UT::Literal;
56  switch (enum_value) {
57  case Measure::ARC: return "arc"_sh;
58  case Measure::CHORD: return "chord"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63  enum class Treatpolysas
64  {
65  STRAIGHT = 0,
66  SUBD,
67  INTERP
68  };
69 
71  getToken(Treatpolysas enum_value)
72  {
73  using namespace UT::Literal;
74  switch (enum_value) {
75  case Treatpolysas::STRAIGHT: return "straight"_sh;
76  case Treatpolysas::SUBD: return "subd"_sh;
77  case Treatpolysas::INTERP: return "interp"_sh;
78  default: UT_ASSERT(false); return ""_sh;
79  }
80  }
81 
82 }
83 
84 
86 {
87 public:
88  static int version() { return 1; }
89 
91  {
92  myGroup = ""_UTsh;
93  myMaintainprimorder = false;
94  myLod = 1;
95  myEdge = false;
96  myMethod = 0;
97  myMeasure = 0;
98  myDolength = true;
99  myLength = 0.1;
100  myDosegs = false;
101  mySegs = 10;
102  myUseattribs = true;
103  myAllequal = true;
104  myLast = false;
105  myRandomshift = false;
106  myOnlypoints = false;
107  myTreatpolysas = 0;
108  myOutputsubdpoly = false;
109  myDoptdistattr = false;
110  myPtdistattr = "ptdist"_UTsh;
111  myDotangentattr = false;
112  myTangentattr = "tangentu"_UTsh;
113  myDocurveuattr = false;
114  myCurveuattr = "curveu"_UTsh;
115  myDocurvenumattr = false;
116  myCurvenumattr = "curvenum"_UTsh;
117 
118  }
119 
120  explicit SOP_ResampleParms(const SOP_ResampleParms &) = default;
121  SOP_ResampleParms &operator=(const SOP_ResampleParms &) = default;
122  SOP_ResampleParms(SOP_ResampleParms &&) noexcept = default;
123  SOP_ResampleParms &operator=(SOP_ResampleParms &&) noexcept = default;
124 
125  ~SOP_ResampleParms() override {}
126 
127  bool operator==(const SOP_ResampleParms &src) const
128  {
129  if (myGroup != src.myGroup) return false;
130  if (myMaintainprimorder != src.myMaintainprimorder) return false;
131  if (myLod != src.myLod) return false;
132  if (myEdge != src.myEdge) return false;
133  if (myMethod != src.myMethod) return false;
134  if (myMeasure != src.myMeasure) return false;
135  if (myDolength != src.myDolength) return false;
136  if (myLength != src.myLength) return false;
137  if (myDosegs != src.myDosegs) return false;
138  if (mySegs != src.mySegs) return false;
139  if (myUseattribs != src.myUseattribs) return false;
140  if (myAllequal != src.myAllequal) return false;
141  if (myLast != src.myLast) return false;
142  if (myRandomshift != src.myRandomshift) return false;
143  if (myOnlypoints != src.myOnlypoints) return false;
144  if (myTreatpolysas != src.myTreatpolysas) return false;
145  if (myOutputsubdpoly != src.myOutputsubdpoly) return false;
146  if (myDoptdistattr != src.myDoptdistattr) return false;
147  if (myPtdistattr != src.myPtdistattr) return false;
148  if (myDotangentattr != src.myDotangentattr) return false;
149  if (myTangentattr != src.myTangentattr) return false;
150  if (myDocurveuattr != src.myDocurveuattr) return false;
151  if (myCurveuattr != src.myCurveuattr) return false;
152  if (myDocurvenumattr != src.myDocurvenumattr) return false;
153  if (myCurvenumattr != src.myCurvenumattr) return false;
154 
155  return true;
156  }
157  bool operator!=(const SOP_ResampleParms &src) const
158  {
159  return !operator==(src);
160  }
164 
165 
166 
167  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
168  {
169  myGroup = ""_UTsh;
170  if (true)
171  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
172  myMaintainprimorder = false;
173  if (true)
174  graph->evalOpParm(myMaintainprimorder, nodeidx, "maintainprimorder", time, 0);
175  myLod = 1;
176  if (true)
177  graph->evalOpParm(myLod, nodeidx, "lod", time, 0);
178  myEdge = false;
179  if (true)
180  graph->evalOpParm(myEdge, nodeidx, "edge", time, 0);
181  myMethod = 0;
182  if (true)
183  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
184  myMeasure = 0;
185  if (true)
186  graph->evalOpParm(myMeasure, nodeidx, "measure", time, 0);
187  myDolength = true;
188  if (true)
189  graph->evalOpParm(myDolength, nodeidx, "dolength", time, 0);
190  myLength = 0.1;
191  if (true && ( (true&&!(((getDolength()==0)))) ) )
192  graph->evalOpParm(myLength, nodeidx, "length", time, 0);
193  myDosegs = false;
194  if (true)
195  graph->evalOpParm(myDosegs, nodeidx, "dosegs", time, 0);
196  mySegs = 10;
197  if (true && ( (true&&!(((getDosegs()==0)))) ) )
198  graph->evalOpParm(mySegs, nodeidx, "segs", time, 0);
199  myUseattribs = true;
200  if (true)
201  graph->evalOpParm(myUseattribs, nodeidx, "useattribs", time, 0);
202  myAllequal = true;
203  if (true && ( (true&&!(((getDolength()==0))||((getEdge()==1))||((int64(getMeasure())!=0))||((int64(getMethod())!=0)))) ) )
204  graph->evalOpParm(myAllequal, nodeidx, "allequal", time, 0);
205  myLast = false;
206  if (true && ( (true&&!(((getDolength()==0))||((getEdge()==1))||((getDolength()==1)&&(getEdge()==0)&&(int64(getMeasure())==0)&&(int64(getMethod())==0)&&(getAllequal()==1)))) ) )
207  graph->evalOpParm(myLast, nodeidx, "last", time, 0);
208  myRandomshift = false;
209  if (true && ( (true&&!(((getDolength()==0))||((getEdge()==1))||((getDolength()==1)&&(getEdge()==0)&&(int64(getMeasure())==0)&&(int64(getMethod())==0)&&(getAllequal()==1)))) ) )
210  graph->evalOpParm(myRandomshift, nodeidx, "randomshift", time, 0);
211  myOnlypoints = false;
212  if (true)
213  graph->evalOpParm(myOnlypoints, nodeidx, "onlypoints", time, 0);
214  myTreatpolysas = 0;
215  if (true)
216  graph->evalOpParm(myTreatpolysas, nodeidx, "treatpolysas", time, 0);
217  myOutputsubdpoly = false;
218  if (true)
219  graph->evalOpParm(myOutputsubdpoly, nodeidx, "outputsubdpoly", time, 0);
220  myDoptdistattr = false;
221  if (true)
222  graph->evalOpParm(myDoptdistattr, nodeidx, "doptdistattr", time, 0);
223  myPtdistattr = "ptdist"_UTsh;
224  if (true && ( (true&&!(((getDoptdistattr()==0)))) ) )
225  graph->evalOpParm(myPtdistattr, nodeidx, "ptdistattr", time, 0);
226  myDotangentattr = false;
227  if (true)
228  graph->evalOpParm(myDotangentattr, nodeidx, "dotangentattr", time, 0);
229  myTangentattr = "tangentu"_UTsh;
230  if (true && ( (true&&!(((getDotangentattr()==0)))) ) )
231  graph->evalOpParm(myTangentattr, nodeidx, "tangentattr", time, 0);
232  myDocurveuattr = false;
233  if (true)
234  graph->evalOpParm(myDocurveuattr, nodeidx, "docurveuattr", time, 0);
235  myCurveuattr = "curveu"_UTsh;
236  if (true && ( (true&&!(((getDocurveuattr()==0)))) ) )
237  graph->evalOpParm(myCurveuattr, nodeidx, "curveuattr", time, 0);
238  myDocurvenumattr = false;
239  if (true)
240  graph->evalOpParm(myDocurvenumattr, nodeidx, "docurvenumattr", time, 0);
241  myCurvenumattr = "curvenum"_UTsh;
242  if (true && ( (true&&!(((getDocurvenumattr()==0)))) ) )
243  graph->evalOpParm(myCurvenumattr, nodeidx, "curvenumattr", time, 0);
244 
245  }
246 
247 
248  void loadFromOpSubclass(const LoadParms &loadparms) override
249  {
250  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
251  }
252 
253 
254  void copyFrom(const OP_NodeParms *src) override
255  {
256  *this = *((const SOP_ResampleParms *)src);
257  }
258 
259  template <typename T>
260  void
261  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
262  {
263  if (idx.size() < 1)
264  return;
265  UT_ASSERT(idx.size() == instance.size()+1);
266  if (idx.size() != instance.size()+1)
267  return;
268  switch (idx[0])
269  {
270  case 0:
271  coerceValue(value, myGroup);
272  break;
273  case 1:
274  coerceValue(value, myMaintainprimorder);
275  break;
276  case 2:
277  coerceValue(value, myLod);
278  break;
279  case 3:
280  coerceValue(value, myEdge);
281  break;
282  case 4:
283  coerceValue(value, myMethod);
284  break;
285  case 5:
286  coerceValue(value, myMeasure);
287  break;
288  case 6:
289  coerceValue(value, myDolength);
290  break;
291  case 7:
292  coerceValue(value, myLength);
293  break;
294  case 8:
295  coerceValue(value, myDosegs);
296  break;
297  case 9:
298  coerceValue(value, mySegs);
299  break;
300  case 10:
301  coerceValue(value, myUseattribs);
302  break;
303  case 11:
304  coerceValue(value, myAllequal);
305  break;
306  case 12:
307  coerceValue(value, myLast);
308  break;
309  case 13:
310  coerceValue(value, myRandomshift);
311  break;
312  case 14:
313  coerceValue(value, myOnlypoints);
314  break;
315  case 15:
316  coerceValue(value, myTreatpolysas);
317  break;
318  case 16:
319  coerceValue(value, myOutputsubdpoly);
320  break;
321  case 17:
322  coerceValue(value, myDoptdistattr);
323  break;
324  case 18:
325  coerceValue(value, myPtdistattr);
326  break;
327  case 19:
328  coerceValue(value, myDotangentattr);
329  break;
330  case 20:
331  coerceValue(value, myTangentattr);
332  break;
333  case 21:
334  coerceValue(value, myDocurveuattr);
335  break;
336  case 22:
337  coerceValue(value, myCurveuattr);
338  break;
339  case 23:
340  coerceValue(value, myDocurvenumattr);
341  break;
342  case 24:
343  coerceValue(value, myCurvenumattr);
344  break;
345 
346  }
347  }
348 
349  bool isParmColorRamp(exint idx) const override
350  {
351  switch (idx)
352  {
353 
354  }
355  return false;
356  }
357 
358  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
359  { doGetParmValue(idx, instance, value); }
360  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
361  { doGetParmValue(idx, instance, value); }
362  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
363  { doGetParmValue(idx, instance, value); }
364  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
365  { doGetParmValue(idx, instance, value); }
366  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
367  { doGetParmValue(idx, instance, value); }
368  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
369  { doGetParmValue(idx, instance, value); }
370  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
371  { doGetParmValue(idx, instance, value); }
372  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
373  { doGetParmValue(idx, instance, value); }
374  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
375  { doGetParmValue(idx, instance, value); }
376  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
377  { doGetParmValue(idx, instance, value); }
378  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
379  { doGetParmValue(idx, instance, value); }
380 
381  template <typename T>
382  void
383  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
384  {
385  if (idx.size() < 1)
386  return;
387  UT_ASSERT(idx.size() == instance.size()+1);
388  if (idx.size() != instance.size()+1)
389  return;
390  switch (idx[0])
391  {
392  case 0:
393  coerceValue(myGroup, ( ( value ) ));
394  break;
395  case 1:
396  coerceValue(myMaintainprimorder, ( ( value ) ));
397  break;
398  case 2:
399  coerceValue(myLod, clampMinValue(0.001, ( value ) ));
400  break;
401  case 3:
402  coerceValue(myEdge, ( ( value ) ));
403  break;
404  case 4:
405  coerceValue(myMethod, clampMinValue(0, clampMaxValue(3, value ) ));
406  break;
407  case 5:
408  coerceValue(myMeasure, clampMinValue(0, clampMaxValue(1, value ) ));
409  break;
410  case 6:
411  coerceValue(myDolength, ( ( value ) ));
412  break;
413  case 7:
414  coerceValue(myLength, clampMinValue(0, ( value ) ));
415  break;
416  case 8:
417  coerceValue(myDosegs, ( ( value ) ));
418  break;
419  case 9:
420  coerceValue(mySegs, clampMinValue(1, ( value ) ));
421  break;
422  case 10:
423  coerceValue(myUseattribs, ( ( value ) ));
424  break;
425  case 11:
426  coerceValue(myAllequal, ( ( value ) ));
427  break;
428  case 12:
429  coerceValue(myLast, ( ( value ) ));
430  break;
431  case 13:
432  coerceValue(myRandomshift, ( ( value ) ));
433  break;
434  case 14:
435  coerceValue(myOnlypoints, ( ( value ) ));
436  break;
437  case 15:
438  coerceValue(myTreatpolysas, clampMinValue(0, clampMaxValue(2, value ) ));
439  break;
440  case 16:
441  coerceValue(myOutputsubdpoly, ( ( value ) ));
442  break;
443  case 17:
444  coerceValue(myDoptdistattr, ( ( value ) ));
445  break;
446  case 18:
447  coerceValue(myPtdistattr, ( ( value ) ));
448  break;
449  case 19:
450  coerceValue(myDotangentattr, ( ( value ) ));
451  break;
452  case 20:
453  coerceValue(myTangentattr, ( ( value ) ));
454  break;
455  case 21:
456  coerceValue(myDocurveuattr, ( ( value ) ));
457  break;
458  case 22:
459  coerceValue(myCurveuattr, ( ( value ) ));
460  break;
461  case 23:
462  coerceValue(myDocurvenumattr, ( ( value ) ));
463  break;
464  case 24:
465  coerceValue(myCurvenumattr, ( ( value ) ));
466  break;
467 
468  }
469  }
470 
471  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
472  { doSetParmValue(idx, instance, value); }
473  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
474  { doSetParmValue(idx, instance, value); }
475  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
476  { doSetParmValue(idx, instance, value); }
477  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
478  { doSetParmValue(idx, instance, value); }
479  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
480  { doSetParmValue(idx, instance, value); }
481  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
482  { doSetParmValue(idx, instance, value); }
483  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
484  { doSetParmValue(idx, instance, value); }
485  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
486  { doSetParmValue(idx, instance, value); }
487  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
488  { doSetParmValue(idx, instance, value); }
489  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
490  { doSetParmValue(idx, instance, value); }
491  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
492  { doSetParmValue(idx, instance, value); }
493 
494  exint getNestNumParms(TempIndex idx) const override
495  {
496  if (idx.size() == 0)
497  return 25;
498  switch (idx[0])
499  {
500 
501  }
502  // Invalid
503  return 0;
504  }
505 
506  const char *getNestParmName(TempIndex fieldnum) const override
507  {
508  if (fieldnum.size() < 1)
509  return 0;
510  switch (fieldnum[0])
511  {
512  case 0:
513  return "group";
514  case 1:
515  return "maintainprimorder";
516  case 2:
517  return "lod";
518  case 3:
519  return "edge";
520  case 4:
521  return "method";
522  case 5:
523  return "measure";
524  case 6:
525  return "dolength";
526  case 7:
527  return "length";
528  case 8:
529  return "dosegs";
530  case 9:
531  return "segs";
532  case 10:
533  return "useattribs";
534  case 11:
535  return "allequal";
536  case 12:
537  return "last";
538  case 13:
539  return "randomshift";
540  case 14:
541  return "onlypoints";
542  case 15:
543  return "treatpolysas";
544  case 16:
545  return "outputsubdpoly";
546  case 17:
547  return "doptdistattr";
548  case 18:
549  return "ptdistattr";
550  case 19:
551  return "dotangentattr";
552  case 20:
553  return "tangentattr";
554  case 21:
555  return "docurveuattr";
556  case 22:
557  return "curveuattr";
558  case 23:
559  return "docurvenumattr";
560  case 24:
561  return "curvenumattr";
562 
563  }
564  return 0;
565  }
566 
567  ParmType getNestParmType(TempIndex fieldnum) const override
568  {
569  if (fieldnum.size() < 1)
570  return PARM_UNSUPPORTED;
571  switch (fieldnum[0])
572  {
573  case 0:
574  return PARM_STRING;
575  case 1:
576  return PARM_INTEGER;
577  case 2:
578  return PARM_FLOAT;
579  case 3:
580  return PARM_INTEGER;
581  case 4:
582  return PARM_INTEGER;
583  case 5:
584  return PARM_INTEGER;
585  case 6:
586  return PARM_INTEGER;
587  case 7:
588  return PARM_FLOAT;
589  case 8:
590  return PARM_INTEGER;
591  case 9:
592  return PARM_INTEGER;
593  case 10:
594  return PARM_INTEGER;
595  case 11:
596  return PARM_INTEGER;
597  case 12:
598  return PARM_INTEGER;
599  case 13:
600  return PARM_INTEGER;
601  case 14:
602  return PARM_INTEGER;
603  case 15:
604  return PARM_INTEGER;
605  case 16:
606  return PARM_INTEGER;
607  case 17:
608  return PARM_INTEGER;
609  case 18:
610  return PARM_STRING;
611  case 19:
612  return PARM_INTEGER;
613  case 20:
614  return PARM_STRING;
615  case 21:
616  return PARM_INTEGER;
617  case 22:
618  return PARM_STRING;
619  case 23:
620  return PARM_INTEGER;
621  case 24:
622  return PARM_STRING;
623 
624  }
625  return PARM_UNSUPPORTED;
626  }
627 
628  // Boiler plate to load individual types.
629  static void loadData(UT_IStream &is, int64 &v)
630  { is.bread(&v, 1); }
631  static void loadData(UT_IStream &is, bool &v)
632  { int64 iv; is.bread(&iv, 1); v = iv; }
633  static void loadData(UT_IStream &is, fpreal64 &v)
634  { is.bread<fpreal64>(&v, 1); }
635  static void loadData(UT_IStream &is, UT_Vector2D &v)
636  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
637  static void loadData(UT_IStream &is, UT_Vector3D &v)
638  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
639  is.bread<fpreal64>(&v.z(), 1); }
640  static void loadData(UT_IStream &is, UT_Vector4D &v)
641  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
642  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
643  static void loadData(UT_IStream &is, UT_Matrix2D &v)
644  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
645  static void loadData(UT_IStream &is, UT_Matrix3D &v)
646  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
647  static void loadData(UT_IStream &is, UT_Matrix4D &v)
648  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
649  static void loadData(UT_IStream &is, UT_Vector2I &v)
650  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
651  static void loadData(UT_IStream &is, UT_Vector3I &v)
652  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
653  is.bread<int64>(&v.z(), 1); }
654  static void loadData(UT_IStream &is, UT_Vector4I &v)
655  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
656  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
658  { is.bread(v); }
660  { UT_StringHolder rampdata;
661  loadData(is, rampdata);
662  if (rampdata.isstring())
663  {
664  v.reset(new UT_Ramp());
665  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
666  v->load(istr);
667  }
668  else v.reset();
669  }
672  loadData(is, data);
673  if (data.isstring())
674  {
675  // Find the data type.
676  const char *colon = UT_StringWrap(data).findChar(':');
677  if (colon)
678  {
679  int typelen = colon - data.buffer();
681  type.strncpy(data.buffer(), typelen);
682  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
683 
684  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
685  }
686  }
687  else v.reset();
688  }
689 
690  static void saveData(std::ostream &os, int64 v)
691  { UTwrite(os, &v); }
692  static void saveData(std::ostream &os, bool v)
693  { int64 iv = v; UTwrite(os, &iv); }
694  static void saveData(std::ostream &os, fpreal64 v)
695  { UTwrite<fpreal64>(os, &v); }
696  static void saveData(std::ostream &os, UT_Vector2D v)
697  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
698  static void saveData(std::ostream &os, UT_Vector3D v)
699  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
700  UTwrite<fpreal64>(os, &v.z()); }
701  static void saveData(std::ostream &os, UT_Vector4D v)
702  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
703  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
704  static void saveData(std::ostream &os, UT_Matrix2D v)
706  static void saveData(std::ostream &os, UT_Matrix3D v)
708  static void saveData(std::ostream &os, UT_Matrix4D v)
710  static void saveData(std::ostream &os, UT_StringHolder s)
711  { UT_StringWrap(s).saveBinary(os); }
712  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
714  UT_OStringStream ostr;
715  if (s) s->save(ostr);
716  result = ostr.str();
717  saveData(os, result);
718  }
719  static void saveData(std::ostream &os, PRM_DataItemHandle s)
721  UT_OStringStream ostr;
722  if (s)
723  {
724  ostr << s->getDataTypeToken();
725  ostr << ":";
726  s->saveBinary(ostr);
727  }
728  result = ostr.str();
729  saveData(os, result);
730  }
731 
732 
733  void save(std::ostream &os) const
734  {
735  int32 v = version();
736  UTwrite(os, &v);
737  saveData(os, myGroup);
738  saveData(os, myMaintainprimorder);
739  saveData(os, myLod);
740  saveData(os, myEdge);
741  saveData(os, myMethod);
742  saveData(os, myMeasure);
743  saveData(os, myDolength);
744  saveData(os, myLength);
745  saveData(os, myDosegs);
746  saveData(os, mySegs);
747  saveData(os, myUseattribs);
748  saveData(os, myAllequal);
749  saveData(os, myLast);
750  saveData(os, myRandomshift);
751  saveData(os, myOnlypoints);
752  saveData(os, myTreatpolysas);
753  saveData(os, myOutputsubdpoly);
754  saveData(os, myDoptdistattr);
755  saveData(os, myPtdistattr);
756  saveData(os, myDotangentattr);
757  saveData(os, myTangentattr);
758  saveData(os, myDocurveuattr);
759  saveData(os, myCurveuattr);
760  saveData(os, myDocurvenumattr);
761  saveData(os, myCurvenumattr);
762 
763  }
764 
765  bool load(UT_IStream &is)
766  {
767  int32 v;
768  is.bread(&v, 1);
769  if (version() != v)
770  {
771  // Fail incompatible versions
772  return false;
773  }
774  loadData(is, myGroup);
775  loadData(is, myMaintainprimorder);
776  loadData(is, myLod);
777  loadData(is, myEdge);
778  loadData(is, myMethod);
779  loadData(is, myMeasure);
780  loadData(is, myDolength);
781  loadData(is, myLength);
782  loadData(is, myDosegs);
783  loadData(is, mySegs);
784  loadData(is, myUseattribs);
785  loadData(is, myAllequal);
786  loadData(is, myLast);
787  loadData(is, myRandomshift);
788  loadData(is, myOnlypoints);
789  loadData(is, myTreatpolysas);
790  loadData(is, myOutputsubdpoly);
791  loadData(is, myDoptdistattr);
792  loadData(is, myPtdistattr);
793  loadData(is, myDotangentattr);
794  loadData(is, myTangentattr);
795  loadData(is, myDocurveuattr);
796  loadData(is, myCurveuattr);
797  loadData(is, myDocurvenumattr);
798  loadData(is, myCurvenumattr);
799 
800  return true;
801  }
802 
803  const UT_StringHolder & getGroup() const { return myGroup; }
804  void setGroup(const UT_StringHolder & val) { myGroup = val; }
806  {
807  SOP_Node *thissop = cookparms.getNode();
808  if (!thissop) return getGroup();
810  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
811  return result;
812  }
813  bool getMaintainprimorder() const { return myMaintainprimorder; }
814  void setMaintainprimorder(bool val) { myMaintainprimorder = val; }
815  bool opMaintainprimorder(const SOP_NodeVerb::CookParms &cookparms) const
816  {
817  SOP_Node *thissop = cookparms.getNode();
818  if (!thissop) return getMaintainprimorder();
819  bool result;
820  OP_Utils::evalOpParm(result, thissop, "maintainprimorder", cookparms.getCookTime(), 0);
821  return result;
822  }
823  fpreal64 getLod() const { return myLod; }
824  void setLod(fpreal64 val) { myLod = val; }
825  fpreal64 opLod(const SOP_NodeVerb::CookParms &cookparms) const
826  {
827  SOP_Node *thissop = cookparms.getNode();
828  if (!thissop) return getLod();
830  OP_Utils::evalOpParm(result, thissop, "lod", cookparms.getCookTime(), 0);
831  return result;
832  }
833  bool getEdge() const { return myEdge; }
834  void setEdge(bool val) { myEdge = val; }
835  bool opEdge(const SOP_NodeVerb::CookParms &cookparms) const
836  {
837  SOP_Node *thissop = cookparms.getNode();
838  if (!thissop) return getEdge();
839  bool result;
840  OP_Utils::evalOpParm(result, thissop, "edge", cookparms.getCookTime(), 0);
841  return result;
842  }
843  Method getMethod() const { return Method(myMethod); }
844  void setMethod(Method val) { myMethod = int64(val); }
845  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
846  {
847  SOP_Node *thissop = cookparms.getNode();
848  if (!thissop) return getMethod();
849  int64 result;
850  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
851  return Method(result);
852  }
853  Measure getMeasure() const { return Measure(myMeasure); }
854  void setMeasure(Measure val) { myMeasure = int64(val); }
855  Measure opMeasure(const SOP_NodeVerb::CookParms &cookparms) const
856  {
857  SOP_Node *thissop = cookparms.getNode();
858  if (!thissop) return getMeasure();
859  int64 result;
860  OP_Utils::evalOpParm(result, thissop, "measure", cookparms.getCookTime(), 0);
861  return Measure(result);
862  }
863  bool getDolength() const { return myDolength; }
864  void setDolength(bool val) { myDolength = val; }
865  bool opDolength(const SOP_NodeVerb::CookParms &cookparms) const
866  {
867  SOP_Node *thissop = cookparms.getNode();
868  if (!thissop) return getDolength();
869  bool result;
870  OP_Utils::evalOpParm(result, thissop, "dolength", cookparms.getCookTime(), 0);
871  return result;
872  }
873  fpreal64 getLength() const { return myLength; }
874  void setLength(fpreal64 val) { myLength = val; }
875  fpreal64 opLength(const SOP_NodeVerb::CookParms &cookparms) const
876  {
877  SOP_Node *thissop = cookparms.getNode();
878  if (!thissop) return getLength();
880  OP_Utils::evalOpParm(result, thissop, "length", cookparms.getCookTime(), 0);
881  return result;
882  }
883  bool getDosegs() const { return myDosegs; }
884  void setDosegs(bool val) { myDosegs = val; }
885  bool opDosegs(const SOP_NodeVerb::CookParms &cookparms) const
886  {
887  SOP_Node *thissop = cookparms.getNode();
888  if (!thissop) return getDosegs();
889  bool result;
890  OP_Utils::evalOpParm(result, thissop, "dosegs", cookparms.getCookTime(), 0);
891  return result;
892  }
893  int64 getSegs() const { return mySegs; }
894  void setSegs(int64 val) { mySegs = val; }
895  int64 opSegs(const SOP_NodeVerb::CookParms &cookparms) const
896  {
897  SOP_Node *thissop = cookparms.getNode();
898  if (!thissop) return getSegs();
899  int64 result;
900  OP_Utils::evalOpParm(result, thissop, "segs", cookparms.getCookTime(), 0);
901  return result;
902  }
903  bool getUseattribs() const { return myUseattribs; }
904  void setUseattribs(bool val) { myUseattribs = val; }
905  bool opUseattribs(const SOP_NodeVerb::CookParms &cookparms) const
906  {
907  SOP_Node *thissop = cookparms.getNode();
908  if (!thissop) return getUseattribs();
909  bool result;
910  OP_Utils::evalOpParm(result, thissop, "useattribs", cookparms.getCookTime(), 0);
911  return result;
912  }
913  bool getAllequal() const { return myAllequal; }
914  void setAllequal(bool val) { myAllequal = val; }
915  bool opAllequal(const SOP_NodeVerb::CookParms &cookparms) const
916  {
917  SOP_Node *thissop = cookparms.getNode();
918  if (!thissop) return getAllequal();
919  bool result;
920  OP_Utils::evalOpParm(result, thissop, "allequal", cookparms.getCookTime(), 0);
921  return result;
922  }
923  bool getLast() const { return myLast; }
924  void setLast(bool val) { myLast = val; }
925  bool opLast(const SOP_NodeVerb::CookParms &cookparms) const
926  {
927  SOP_Node *thissop = cookparms.getNode();
928  if (!thissop) return getLast();
929  bool result;
930  OP_Utils::evalOpParm(result, thissop, "last", cookparms.getCookTime(), 0);
931  return result;
932  }
933  bool getRandomshift() const { return myRandomshift; }
934  void setRandomshift(bool val) { myRandomshift = val; }
935  bool opRandomshift(const SOP_NodeVerb::CookParms &cookparms) const
936  {
937  SOP_Node *thissop = cookparms.getNode();
938  if (!thissop) return getRandomshift();
939  bool result;
940  OP_Utils::evalOpParm(result, thissop, "randomshift", cookparms.getCookTime(), 0);
941  return result;
942  }
943  bool getOnlypoints() const { return myOnlypoints; }
944  void setOnlypoints(bool val) { myOnlypoints = val; }
945  bool opOnlypoints(const SOP_NodeVerb::CookParms &cookparms) const
946  {
947  SOP_Node *thissop = cookparms.getNode();
948  if (!thissop) return getOnlypoints();
949  bool result;
950  OP_Utils::evalOpParm(result, thissop, "onlypoints", cookparms.getCookTime(), 0);
951  return result;
952  }
953  Treatpolysas getTreatpolysas() const { return Treatpolysas(myTreatpolysas); }
954  void setTreatpolysas(Treatpolysas val) { myTreatpolysas = int64(val); }
956  {
957  SOP_Node *thissop = cookparms.getNode();
958  if (!thissop) return getTreatpolysas();
959  int64 result;
960  OP_Utils::evalOpParm(result, thissop, "treatpolysas", cookparms.getCookTime(), 0);
961  return Treatpolysas(result);
962  }
963  bool getOutputsubdpoly() const { return myOutputsubdpoly; }
964  void setOutputsubdpoly(bool val) { myOutputsubdpoly = val; }
965  bool opOutputsubdpoly(const SOP_NodeVerb::CookParms &cookparms) const
966  {
967  SOP_Node *thissop = cookparms.getNode();
968  if (!thissop) return getOutputsubdpoly();
969  bool result;
970  OP_Utils::evalOpParm(result, thissop, "outputsubdpoly", cookparms.getCookTime(), 0);
971  return result;
972  }
973  bool getDoptdistattr() const { return myDoptdistattr; }
974  void setDoptdistattr(bool val) { myDoptdistattr = val; }
975  bool opDoptdistattr(const SOP_NodeVerb::CookParms &cookparms) const
976  {
977  SOP_Node *thissop = cookparms.getNode();
978  if (!thissop) return getDoptdistattr();
979  bool result;
980  OP_Utils::evalOpParm(result, thissop, "doptdistattr", cookparms.getCookTime(), 0);
981  return result;
982  }
983  const UT_StringHolder & getPtdistattr() const { return myPtdistattr; }
984  void setPtdistattr(const UT_StringHolder & val) { myPtdistattr = val; }
986  {
987  SOP_Node *thissop = cookparms.getNode();
988  if (!thissop) return getPtdistattr();
990  OP_Utils::evalOpParm(result, thissop, "ptdistattr", cookparms.getCookTime(), 0);
991  return result;
992  }
993  bool getDotangentattr() const { return myDotangentattr; }
994  void setDotangentattr(bool val) { myDotangentattr = val; }
995  bool opDotangentattr(const SOP_NodeVerb::CookParms &cookparms) const
996  {
997  SOP_Node *thissop = cookparms.getNode();
998  if (!thissop) return getDotangentattr();
999  bool result;
1000  OP_Utils::evalOpParm(result, thissop, "dotangentattr", cookparms.getCookTime(), 0);
1001  return result;
1002  }
1003  const UT_StringHolder & getTangentattr() const { return myTangentattr; }
1004  void setTangentattr(const UT_StringHolder & val) { myTangentattr = val; }
1006  {
1007  SOP_Node *thissop = cookparms.getNode();
1008  if (!thissop) return getTangentattr();
1010  OP_Utils::evalOpParm(result, thissop, "tangentattr", cookparms.getCookTime(), 0);
1011  return result;
1012  }
1013  bool getDocurveuattr() const { return myDocurveuattr; }
1014  void setDocurveuattr(bool val) { myDocurveuattr = val; }
1015  bool opDocurveuattr(const SOP_NodeVerb::CookParms &cookparms) const
1016  {
1017  SOP_Node *thissop = cookparms.getNode();
1018  if (!thissop) return getDocurveuattr();
1019  bool result;
1020  OP_Utils::evalOpParm(result, thissop, "docurveuattr", cookparms.getCookTime(), 0);
1021  return result;
1022  }
1023  const UT_StringHolder & getCurveuattr() const { return myCurveuattr; }
1024  void setCurveuattr(const UT_StringHolder & val) { myCurveuattr = val; }
1026  {
1027  SOP_Node *thissop = cookparms.getNode();
1028  if (!thissop) return getCurveuattr();
1030  OP_Utils::evalOpParm(result, thissop, "curveuattr", cookparms.getCookTime(), 0);
1031  return result;
1032  }
1033  bool getDocurvenumattr() const { return myDocurvenumattr; }
1034  void setDocurvenumattr(bool val) { myDocurvenumattr = val; }
1035  bool opDocurvenumattr(const SOP_NodeVerb::CookParms &cookparms) const
1036  {
1037  SOP_Node *thissop = cookparms.getNode();
1038  if (!thissop) return getDocurvenumattr();
1039  bool result;
1040  OP_Utils::evalOpParm(result, thissop, "docurvenumattr", cookparms.getCookTime(), 0);
1041  return result;
1042  }
1043  const UT_StringHolder & getCurvenumattr() const { return myCurvenumattr; }
1044  void setCurvenumattr(const UT_StringHolder & val) { myCurvenumattr = val; }
1046  {
1047  SOP_Node *thissop = cookparms.getNode();
1048  if (!thissop) return getCurvenumattr();
1050  OP_Utils::evalOpParm(result, thissop, "curvenumattr", cookparms.getCookTime(), 0);
1051  return result;
1052  }
1053 
1054 private:
1055  UT_StringHolder myGroup;
1056  bool myMaintainprimorder;
1057  fpreal64 myLod;
1058  bool myEdge;
1059  int64 myMethod;
1060  int64 myMeasure;
1061  bool myDolength;
1062  fpreal64 myLength;
1063  bool myDosegs;
1064  int64 mySegs;
1065  bool myUseattribs;
1066  bool myAllequal;
1067  bool myLast;
1068  bool myRandomshift;
1069  bool myOnlypoints;
1070  int64 myTreatpolysas;
1071  bool myOutputsubdpoly;
1072  bool myDoptdistattr;
1073  UT_StringHolder myPtdistattr;
1074  bool myDotangentattr;
1075  UT_StringHolder myTangentattr;
1076  bool myDocurveuattr;
1077  UT_StringHolder myCurveuattr;
1078  bool myDocurvenumattr;
1079  UT_StringHolder myCurvenumattr;
1080 
1081 };
static void saveData(std::ostream &os, int64 v)
bool opDosegs(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opTangentattr(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
exint getNestNumParms(TempIndex idx) const override
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const UT_StringHolder & getCurveuattr() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
bool getOutputsubdpoly() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
bool opDoptdistattr(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
static void loadData(UT_IStream &is, UT_Vector3I &v)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, UT_Vector3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
bool getDolength() const
fpreal getTime() const
Definition: OP_Context.h:62
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
Measure getMeasure() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
Treatpolysas getTreatpolysas() const
bool getMaintainprimorder() const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
bool opOutputsubdpoly(const SOP_NodeVerb::CookParms &cookparms) const
bool opOnlypoints(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
fpreal64 opLod(const SOP_NodeVerb::CookParms &cookparms) const
bool opDolength(const SOP_NodeVerb::CookParms &cookparms) const
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
Treatpolysas opTreatpolysas(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble s
Definition: glad.h:3009
bool getDotangentattr() const
void setMeasure(Measure val)
An output stream object that owns its own string buffer storage.
void setDoptdistattr(bool val)
void setCurveuattr(const UT_StringHolder &val)
fpreal64 getLength() const
void setLod(fpreal64 val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
**But if you need a result
Definition: thread.h:613
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool opDocurvenumattr(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
const UT_StringHolder & getPtdistattr() const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool opDocurveuattr(const SOP_NodeVerb::CookParms &cookparms) const
void setRandomshift(bool val)
void setMaintainprimorder(bool val)
static void loadData(UT_IStream &is, fpreal64 &v)
bool opUseattribs(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const UT_StringHolder & getCurvenumattr() const
void save(std::ostream &os) const
bool operator==(const SOP_ResampleParms &src) const
void setLength(fpreal64 val)
bool opAllequal(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
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
void setDolength(bool val)
Measure opMeasure(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool getAllequal() const
long long int64
Definition: SYS_Types.h:116
void setTreatpolysas(Treatpolysas val)
const UT_StringHolder & getGroup() const
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool getDocurveuattr() const
fpreal64 opLength(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
bool getDocurvenumattr() const
void setTangentattr(const UT_StringHolder &val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setDocurveuattr(bool val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
bool opDotangentattr(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GT_API const UT_StringHolder version
bool getOnlypoints() const
void setDosegs(bool val)
void setPtdistattr(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool getDosegs() const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setLast(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
void setMethod(Method val)
const char * getNestParmName(TempIndex fieldnum) const override
bool opEdge(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
void setCurvenumattr(const UT_StringHolder &val)
int64 getSegs() const
UT_StringHolder opCurvenumattr(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void saveData(std::ostream &os, fpreal64 v)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
void setUseattribs(bool val)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
bool opMaintainprimorder(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
bool load(UT_IStream &is)
#define SOP_API
Definition: SOP_API.h:10
void setOutputsubdpoly(bool val)
const UT_StringHolder & getTangentattr() const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool getDoptdistattr() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
Method getMethod() const
void setSegs(int64 val)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
int64 opSegs(const SOP_NodeVerb::CookParms &cookparms) const
Definition: core.h:1131
static void saveData(std::ostream &os, UT_Matrix4D v)
bool getUseattribs() const
bool getRandomshift() const
void loadFromOpSubclass(const LoadParms &loadparms) override
GLboolean r
Definition: glcorearb.h:1222
bool isParmColorRamp(exint idx) const override
void setGroup(const UT_StringHolder &val)
void setDotangentattr(bool val)
UT_StringHolder opCurveuattr(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_ResampleParms &src) const
void setDocurvenumattr(bool val)
bool opLast(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void saveData(std::ostream &os, UT_Matrix3D v)
fpreal64 getLod() const
type
Definition: core.h:1059
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setOnlypoints(bool val)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setAllequal(bool val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
UT_StringHolder opPtdistattr(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE bool isstring() const
void setEdge(bool val)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
SYS_FORCE_INLINE UT_StringHolder getToken(Method enum_value)
bool opRandomshift(const SOP_NodeVerb::CookParms &cookparms) const