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