HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_SoftTransform.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_SoftTransformEnums
24 {
25  enum class Xord
26  {
27  SRT = 0,
28  STR,
29  RST,
30  RTS,
31  TSR,
32  TRS
33  };
34 
36  getToken(Xord enum_value)
37  {
38  using namespace UT::Literal;
39  switch (enum_value) {
40  case Xord::SRT: return "srt"_sh;
41  case Xord::STR: return "str"_sh;
42  case Xord::RST: return "rst"_sh;
43  case Xord::RTS: return "rts"_sh;
44  case Xord::TSR: return "tsr"_sh;
45  case Xord::TRS: return "trs"_sh;
46  default: UT_ASSERT(false); return ""_sh;
47  }
48  }
49 
50  enum class Rord
51  {
52  XYZ = 0,
53  XZY,
54  YXZ,
55  YZX,
56  ZXY,
57  ZYX
58  };
59 
61  getToken(Rord enum_value)
62  {
63  using namespace UT::Literal;
64  switch (enum_value) {
65  case Rord::XYZ: return "xyz"_sh;
66  case Rord::XZY: return "xzy"_sh;
67  case Rord::YXZ: return "yxz"_sh;
68  case Rord::YZX: return "yzx"_sh;
69  case Rord::ZXY: return "zxy"_sh;
70  case Rord::ZYX: return "zyx"_sh;
71  default: UT_ASSERT(false); return ""_sh;
72  }
73  }
74 
75  enum class Distmetric
76  {
77  CUSTOM = 0,
78  EDGES,
79  GLOBAL,
81  SURFACE
82  };
83 
85  getToken(Distmetric enum_value)
86  {
87  using namespace UT::Literal;
88  switch (enum_value) {
89  case Distmetric::CUSTOM: return "custom"_sh;
90  case Distmetric::EDGES: return "edges"_sh;
91  case Distmetric::GLOBAL: return "global"_sh;
92  case Distmetric::GLOBALCONNECTED: return "globalconnected"_sh;
93  case Distmetric::SURFACE: return "surface"_sh;
94  default: UT_ASSERT(false); return ""_sh;
95  }
96  }
97 
98  enum class Type
99  {
100  LINEAR = 0,
101  QUADRATIC,
102  CUBIC,
103  META
104  };
105 
107  getToken(Type enum_value)
108  {
109  using namespace UT::Literal;
110  switch (enum_value) {
111  case Type::LINEAR: return "linear"_sh;
112  case Type::QUADRATIC: return "quadratic"_sh;
113  case Type::CUBIC: return "cubic"_sh;
114  case Type::META: return "meta"_sh;
115  default: UT_ASSERT(false); return ""_sh;
116  }
117  }
118 
119  enum class Visualizefalloff
120  {
121  NEVER = 0,
122  ALWAYS,
123  STATE
124  };
125 
128  {
129  using namespace UT::Literal;
130  switch (enum_value) {
131  case Visualizefalloff::NEVER: return "never"_sh;
132  case Visualizefalloff::ALWAYS: return "always"_sh;
133  case Visualizefalloff::STATE: return "state"_sh;
134  default: UT_ASSERT(false); return ""_sh;
135  }
136  }
137 
138 }
139 
140 
142 {
143 public:
144  static int version() { return 1; }
145 
147  {
148  myGroup = ""_UTsh;
149  myXord = 0;
150  myRord = 0;
151  myT = UT_Vector3D(0,0,0);
152  myR = UT_Vector3D(0,0,0);
153  myS = UT_Vector3D(1,1,1);
154  myShear = UT_Vector3D(0,0,0);
155  myP = UT_Vector3D(0,0,0);
156  myPr = UT_Vector3D(0,0,0);
157  myDistmetric = 4;
158  myApplyrolloff = false;
159  myDistattr = ""_UTsh;
160  myRad = 0.5;
161  myType = 2;
162  myTandeg = UT_Vector2D(0,0);
163  myKernel = "wyvill"_UTsh;
164  myAttribs = "*"_UTsh;
165  myUpdatenmls = false;
166  myUpdateaffectednmls = true;
167  myVlength = true;
168  myVisualizefalloff = 2;
169  myLocalspace = false;
170  myUpvector = UT_Vector3D(0,1,0);
171 
172  }
173 
174  explicit SOP_SoftTransformParms(const SOP_SoftTransformParms &) = default;
176  SOP_SoftTransformParms(SOP_SoftTransformParms &&) noexcept = default;
177  SOP_SoftTransformParms &operator=(SOP_SoftTransformParms &&) noexcept = default;
178 
179  ~SOP_SoftTransformParms() override {}
180 
182  {
183  if (myGroup != src.myGroup) return false;
184  if (myXord != src.myXord) return false;
185  if (myRord != src.myRord) return false;
186  if (myT != src.myT) return false;
187  if (myR != src.myR) return false;
188  if (myS != src.myS) return false;
189  if (myShear != src.myShear) return false;
190  if (myP != src.myP) return false;
191  if (myPr != src.myPr) return false;
192  if (myDistmetric != src.myDistmetric) return false;
193  if (myApplyrolloff != src.myApplyrolloff) return false;
194  if (myDistattr != src.myDistattr) return false;
195  if (myRad != src.myRad) return false;
196  if (myType != src.myType) return false;
197  if (myTandeg != src.myTandeg) return false;
198  if (myKernel != src.myKernel) return false;
199  if (myAttribs != src.myAttribs) return false;
200  if (myUpdatenmls != src.myUpdatenmls) return false;
201  if (myUpdateaffectednmls != src.myUpdateaffectednmls) return false;
202  if (myVlength != src.myVlength) return false;
203  if (myVisualizefalloff != src.myVisualizefalloff) return false;
204  if (myLocalspace != src.myLocalspace) return false;
205  if (myUpvector != src.myUpvector) return false;
206 
207  return true;
208  }
210  {
211  return !operator==(src);
212  }
218 
219 
220 
221  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
222  {
223  myGroup = ""_UTsh;
224  if (true)
225  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
226  myXord = 0;
227  if (true)
228  graph->evalOpParm(myXord, nodeidx, "xOrd", time, 0);
229  myRord = 0;
230  if (true)
231  graph->evalOpParm(myRord, nodeidx, "rOrd", time, 0);
232  myT = UT_Vector3D(0,0,0);
233  if (true)
234  graph->evalOpParm(myT, nodeidx, "t", time, 0);
235  myR = UT_Vector3D(0,0,0);
236  if (true)
237  graph->evalOpParm(myR, nodeidx, "r", time, 0);
238  myS = UT_Vector3D(1,1,1);
239  if (true)
240  graph->evalOpParm(myS, nodeidx, "s", time, 0);
241  myShear = UT_Vector3D(0,0,0);
242  if (true)
243  graph->evalOpParm(myShear, nodeidx, "shear", time, 0);
244  myP = UT_Vector3D(0,0,0);
245  if (true)
246  graph->evalOpParm(myP, nodeidx, "p", time, 0);
247  myPr = UT_Vector3D(0,0,0);
248  if (true)
249  graph->evalOpParm(myPr, nodeidx, "pr", time, 0);
250  myDistmetric = 4;
251  if (true)
252  graph->evalOpParm(myDistmetric, nodeidx, "distmetric", time, 0);
253  myApplyrolloff = false;
254  if (true && ( (true&&!(((int64(getDistmetric())!=0)))) ) )
255  graph->evalOpParm(myApplyrolloff, nodeidx, "applyrolloff", time, 0);
256  myDistattr = ""_UTsh;
257  if (true && ( (true&&!(((int64(getDistmetric())!=0)))) ) )
258  graph->evalOpParm(myDistattr, nodeidx, "distattr", time, 0);
259  myRad = 0.5;
260  if (true && ( (true&&!(((int64(getDistmetric())==0)&&(getApplyrolloff()==0)))) ) )
261  graph->evalOpParm(myRad, nodeidx, "rad", time, 0);
262  myType = 2;
263  if (true && ( (true&&!(((int64(getDistmetric())==0)&&(getApplyrolloff()==0)))) ) )
264  graph->evalOpParm(myType, nodeidx, "type", time, 0);
265  myTandeg = UT_Vector2D(0,0);
266  if (true && ( (true&&!(((int64(getType())!=2))||((int64(getDistmetric())==0)&&(getApplyrolloff()==0)))) ) )
267  graph->evalOpParm(myTandeg, nodeidx, "tandeg", time, 0);
268  myKernel = "wyvill"_UTsh;
269  if (true && ( (true&&!(((int64(getType())!=3))||((int64(getDistmetric())==0)&&(getApplyrolloff()==0)))) ) )
270  graph->evalOpParm(myKernel, nodeidx, "kernel", time, 0);
271  myAttribs = "*"_UTsh;
272  if (true)
273  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, 0);
274  myUpdatenmls = false;
275  if (true)
276  graph->evalOpParm(myUpdatenmls, nodeidx, "updatenmls", time, 0);
277  myUpdateaffectednmls = true;
278  if (true && ( (true&&!(((getUpdatenmls()==1)))) ) )
279  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, 0);
280  myVlength = true;
281  if (true && ( (true&&!(((getUpdatenmls()==1)))) ) )
282  graph->evalOpParm(myVlength, nodeidx, "vlength", time, 0);
283  myVisualizefalloff = 2;
284  if (true)
285  graph->evalOpParm(myVisualizefalloff, nodeidx, "visualizefalloff", time, 0);
286  myLocalspace = false;
287  if (true)
288  graph->evalOpParm(myLocalspace, nodeidx, "localspace", time, 0);
289  myUpvector = UT_Vector3D(0,1,0);
290  if (true && ( (true&&!(((getLocalspace()==0)))) ) )
291  graph->evalOpParm(myUpvector, nodeidx, "upvector", time, 0);
292 
293  }
294 
295 
296  void loadFromOpSubclass(const LoadParms &loadparms) override
297  {
298  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
299  }
300 
301 
302  void copyFrom(const OP_NodeParms *src) override
303  {
304  *this = *((const SOP_SoftTransformParms *)src);
305  }
306 
307  template <typename T>
308  void
309  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
310  {
311  if (idx.size() < 1)
312  return;
313  UT_ASSERT(idx.size() == instance.size()+1);
314  if (idx.size() != instance.size()+1)
315  return;
316  switch (idx[0])
317  {
318  case 0:
319  coerceValue(value, myGroup);
320  break;
321  case 1:
322  coerceValue(value, myXord);
323  break;
324  case 2:
325  coerceValue(value, myRord);
326  break;
327  case 3:
328  coerceValue(value, myT);
329  break;
330  case 4:
331  coerceValue(value, myR);
332  break;
333  case 5:
334  coerceValue(value, myS);
335  break;
336  case 6:
337  coerceValue(value, myShear);
338  break;
339  case 7:
340  coerceValue(value, myP);
341  break;
342  case 8:
343  coerceValue(value, myPr);
344  break;
345  case 9:
346  coerceValue(value, myDistmetric);
347  break;
348  case 10:
349  coerceValue(value, myApplyrolloff);
350  break;
351  case 11:
352  coerceValue(value, myDistattr);
353  break;
354  case 12:
355  coerceValue(value, myRad);
356  break;
357  case 13:
358  coerceValue(value, myType);
359  break;
360  case 14:
361  coerceValue(value, myTandeg);
362  break;
363  case 15:
364  coerceValue(value, myKernel);
365  break;
366  case 16:
367  coerceValue(value, myAttribs);
368  break;
369  case 17:
370  coerceValue(value, myUpdatenmls);
371  break;
372  case 18:
373  coerceValue(value, myUpdateaffectednmls);
374  break;
375  case 19:
376  coerceValue(value, myVlength);
377  break;
378  case 20:
379  coerceValue(value, myVisualizefalloff);
380  break;
381  case 21:
382  coerceValue(value, myLocalspace);
383  break;
384  case 22:
385  coerceValue(value, myUpvector);
386  break;
387 
388  }
389  }
390 
391  bool isParmColorRamp(exint idx) const override
392  {
393  switch (idx)
394  {
395 
396  }
397  return false;
398  }
399 
400  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
401  { doGetParmValue(idx, instance, value); }
402  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
403  { doGetParmValue(idx, instance, value); }
404  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
405  { doGetParmValue(idx, instance, value); }
406  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
407  { doGetParmValue(idx, instance, value); }
408  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
409  { doGetParmValue(idx, instance, value); }
410  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
411  { doGetParmValue(idx, instance, value); }
412  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
413  { doGetParmValue(idx, instance, value); }
414  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
415  { doGetParmValue(idx, instance, value); }
416  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
417  { doGetParmValue(idx, instance, value); }
418  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
419  { doGetParmValue(idx, instance, value); }
420  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
421  { doGetParmValue(idx, instance, value); }
422 
423  template <typename T>
424  void
425  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
426  {
427  if (idx.size() < 1)
428  return;
429  UT_ASSERT(idx.size() == instance.size()+1);
430  if (idx.size() != instance.size()+1)
431  return;
432  switch (idx[0])
433  {
434  case 0:
435  coerceValue(myGroup, ( ( value ) ));
436  break;
437  case 1:
438  coerceValue(myXord, clampMinValue(0, clampMaxValue(5, value ) ));
439  break;
440  case 2:
441  coerceValue(myRord, clampMinValue(0, clampMaxValue(5, value ) ));
442  break;
443  case 3:
444  coerceValue(myT, ( ( value ) ));
445  break;
446  case 4:
447  coerceValue(myR, ( ( value ) ));
448  break;
449  case 5:
450  coerceValue(myS, ( ( value ) ));
451  break;
452  case 6:
453  coerceValue(myShear, ( ( value ) ));
454  break;
455  case 7:
456  coerceValue(myP, ( ( value ) ));
457  break;
458  case 8:
459  coerceValue(myPr, ( ( value ) ));
460  break;
461  case 9:
462  coerceValue(myDistmetric, clampMinValue(0, clampMaxValue(4, value ) ));
463  break;
464  case 10:
465  coerceValue(myApplyrolloff, ( ( value ) ));
466  break;
467  case 11:
468  coerceValue(myDistattr, ( ( value ) ));
469  break;
470  case 12:
471  coerceValue(myRad, clampMinValue(0, ( value ) ));
472  break;
473  case 13:
474  coerceValue(myType, clampMinValue(0, clampMaxValue(3, value ) ));
475  break;
476  case 14:
477  coerceValue(myTandeg, ( ( value ) ));
478  break;
479  case 15:
480  coerceValue(myKernel, ( ( value ) ));
481  break;
482  case 16:
483  coerceValue(myAttribs, ( ( value ) ));
484  break;
485  case 17:
486  coerceValue(myUpdatenmls, ( ( value ) ));
487  break;
488  case 18:
489  coerceValue(myUpdateaffectednmls, ( ( value ) ));
490  break;
491  case 19:
492  coerceValue(myVlength, ( ( value ) ));
493  break;
494  case 20:
495  coerceValue(myVisualizefalloff, clampMinValue(0, clampMaxValue(2, value ) ));
496  break;
497  case 21:
498  coerceValue(myLocalspace, ( ( value ) ));
499  break;
500  case 22:
501  coerceValue(myUpvector, ( ( value ) ));
502  break;
503 
504  }
505  }
506 
507  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
508  { doSetParmValue(idx, instance, value); }
509  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
510  { doSetParmValue(idx, instance, value); }
511  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
512  { doSetParmValue(idx, instance, value); }
513  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
514  { doSetParmValue(idx, instance, value); }
515  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
516  { doSetParmValue(idx, instance, value); }
517  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
518  { doSetParmValue(idx, instance, value); }
519  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
520  { doSetParmValue(idx, instance, value); }
521  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
522  { doSetParmValue(idx, instance, value); }
523  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
524  { doSetParmValue(idx, instance, value); }
525  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
526  { doSetParmValue(idx, instance, value); }
527  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
528  { doSetParmValue(idx, instance, value); }
529 
530  exint getNestNumParms(TempIndex idx) const override
531  {
532  if (idx.size() == 0)
533  return 23;
534  switch (idx[0])
535  {
536 
537  }
538  // Invalid
539  return 0;
540  }
541 
542  const char *getNestParmName(TempIndex fieldnum) const override
543  {
544  if (fieldnum.size() < 1)
545  return 0;
546  switch (fieldnum[0])
547  {
548  case 0:
549  return "group";
550  case 1:
551  return "xOrd";
552  case 2:
553  return "rOrd";
554  case 3:
555  return "t";
556  case 4:
557  return "r";
558  case 5:
559  return "s";
560  case 6:
561  return "shear";
562  case 7:
563  return "p";
564  case 8:
565  return "pr";
566  case 9:
567  return "distmetric";
568  case 10:
569  return "applyrolloff";
570  case 11:
571  return "distattr";
572  case 12:
573  return "rad";
574  case 13:
575  return "type";
576  case 14:
577  return "tandeg";
578  case 15:
579  return "kernel";
580  case 16:
581  return "attribs";
582  case 17:
583  return "updatenmls";
584  case 18:
585  return "updateaffectednmls";
586  case 19:
587  return "vlength";
588  case 20:
589  return "visualizefalloff";
590  case 21:
591  return "localspace";
592  case 22:
593  return "upvector";
594 
595  }
596  return 0;
597  }
598 
599  ParmType getNestParmType(TempIndex fieldnum) const override
600  {
601  if (fieldnum.size() < 1)
602  return PARM_UNSUPPORTED;
603  switch (fieldnum[0])
604  {
605  case 0:
606  return PARM_STRING;
607  case 1:
608  return PARM_INTEGER;
609  case 2:
610  return PARM_INTEGER;
611  case 3:
612  return PARM_VECTOR3;
613  case 4:
614  return PARM_VECTOR3;
615  case 5:
616  return PARM_VECTOR3;
617  case 6:
618  return PARM_VECTOR3;
619  case 7:
620  return PARM_VECTOR3;
621  case 8:
622  return PARM_VECTOR3;
623  case 9:
624  return PARM_INTEGER;
625  case 10:
626  return PARM_INTEGER;
627  case 11:
628  return PARM_STRING;
629  case 12:
630  return PARM_FLOAT;
631  case 13:
632  return PARM_INTEGER;
633  case 14:
634  return PARM_VECTOR2;
635  case 15:
636  return PARM_STRING;
637  case 16:
638  return PARM_STRING;
639  case 17:
640  return PARM_INTEGER;
641  case 18:
642  return PARM_INTEGER;
643  case 19:
644  return PARM_INTEGER;
645  case 20:
646  return PARM_INTEGER;
647  case 21:
648  return PARM_INTEGER;
649  case 22:
650  return PARM_VECTOR3;
651 
652  }
653  return PARM_UNSUPPORTED;
654  }
655 
656  // Boiler plate to load individual types.
657  static void loadData(UT_IStream &is, int64 &v)
658  { is.bread(&v, 1); }
659  static void loadData(UT_IStream &is, bool &v)
660  { int64 iv; is.bread(&iv, 1); v = iv; }
661  static void loadData(UT_IStream &is, fpreal64 &v)
662  { is.bread<fpreal64>(&v, 1); }
663  static void loadData(UT_IStream &is, UT_Vector2D &v)
664  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
665  static void loadData(UT_IStream &is, UT_Vector3D &v)
666  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
667  is.bread<fpreal64>(&v.z(), 1); }
668  static void loadData(UT_IStream &is, UT_Vector4D &v)
669  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
670  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
671  static void loadData(UT_IStream &is, UT_Matrix2D &v)
672  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
673  static void loadData(UT_IStream &is, UT_Matrix3D &v)
674  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
675  static void loadData(UT_IStream &is, UT_Matrix4D &v)
676  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
677  static void loadData(UT_IStream &is, UT_Vector2I &v)
678  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
679  static void loadData(UT_IStream &is, UT_Vector3I &v)
680  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
681  is.bread<int64>(&v.z(), 1); }
682  static void loadData(UT_IStream &is, UT_Vector4I &v)
683  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
684  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
686  { is.bread(v); }
688  { UT_StringHolder rampdata;
689  loadData(is, rampdata);
690  if (rampdata.isstring())
691  {
692  v.reset(new UT_Ramp());
693  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
694  v->load(istr);
695  }
696  else v.reset();
697  }
700  loadData(is, data);
701  if (data.isstring())
702  {
703  // Find the data type.
704  const char *colon = UT_StringWrap(data).findChar(':');
705  if (colon)
706  {
707  int typelen = colon - data.buffer();
709  type.strncpy(data.buffer(), typelen);
710  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
711 
712  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
713  }
714  }
715  else v.reset();
716  }
717 
718  static void saveData(std::ostream &os, int64 v)
719  { UTwrite(os, &v); }
720  static void saveData(std::ostream &os, bool v)
721  { int64 iv = v; UTwrite(os, &iv); }
722  static void saveData(std::ostream &os, fpreal64 v)
723  { UTwrite<fpreal64>(os, &v); }
724  static void saveData(std::ostream &os, UT_Vector2D v)
725  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
726  static void saveData(std::ostream &os, UT_Vector3D v)
727  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
728  UTwrite<fpreal64>(os, &v.z()); }
729  static void saveData(std::ostream &os, UT_Vector4D v)
730  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
731  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
732  static void saveData(std::ostream &os, UT_Matrix2D v)
734  static void saveData(std::ostream &os, UT_Matrix3D v)
736  static void saveData(std::ostream &os, UT_Matrix4D v)
738  static void saveData(std::ostream &os, UT_StringHolder s)
739  { UT_StringWrap(s).saveBinary(os); }
740  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
742  UT_OStringStream ostr;
743  if (s) s->save(ostr);
744  result = ostr.str();
745  saveData(os, result);
746  }
747  static void saveData(std::ostream &os, PRM_DataItemHandle s)
749  UT_OStringStream ostr;
750  if (s)
751  {
752  ostr << s->getDataTypeToken();
753  ostr << ":";
754  s->saveBinary(ostr);
755  }
756  result = ostr.str();
757  saveData(os, result);
758  }
759 
760 
761  void save(std::ostream &os) const
762  {
763  int32 v = version();
764  UTwrite(os, &v);
765  saveData(os, myGroup);
766  saveData(os, myXord);
767  saveData(os, myRord);
768  saveData(os, myT);
769  saveData(os, myR);
770  saveData(os, myS);
771  saveData(os, myShear);
772  saveData(os, myP);
773  saveData(os, myPr);
774  saveData(os, myDistmetric);
775  saveData(os, myApplyrolloff);
776  saveData(os, myDistattr);
777  saveData(os, myRad);
778  saveData(os, myType);
779  saveData(os, myTandeg);
780  saveData(os, myKernel);
781  saveData(os, myAttribs);
782  saveData(os, myUpdatenmls);
783  saveData(os, myUpdateaffectednmls);
784  saveData(os, myVlength);
785  saveData(os, myVisualizefalloff);
786  saveData(os, myLocalspace);
787  saveData(os, myUpvector);
788 
789  }
790 
791  bool load(UT_IStream &is)
792  {
793  int32 v;
794  is.bread(&v, 1);
795  if (version() != v)
796  {
797  // Fail incompatible versions
798  return false;
799  }
800  loadData(is, myGroup);
801  loadData(is, myXord);
802  loadData(is, myRord);
803  loadData(is, myT);
804  loadData(is, myR);
805  loadData(is, myS);
806  loadData(is, myShear);
807  loadData(is, myP);
808  loadData(is, myPr);
809  loadData(is, myDistmetric);
810  loadData(is, myApplyrolloff);
811  loadData(is, myDistattr);
812  loadData(is, myRad);
813  loadData(is, myType);
814  loadData(is, myTandeg);
815  loadData(is, myKernel);
816  loadData(is, myAttribs);
817  loadData(is, myUpdatenmls);
818  loadData(is, myUpdateaffectednmls);
819  loadData(is, myVlength);
820  loadData(is, myVisualizefalloff);
821  loadData(is, myLocalspace);
822  loadData(is, myUpvector);
823 
824  return true;
825  }
826 
827  const UT_StringHolder & getGroup() const { return myGroup; }
828  void setGroup(const UT_StringHolder & val) { myGroup = val; }
830  {
831  SOP_Node *thissop = cookparms.getNode();
832  if (!thissop) return getGroup();
834  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
835  return result;
836  }
837  Xord getXord() const { return Xord(myXord); }
838  void setXord(Xord val) { myXord = int64(val); }
839  Xord opXord(const SOP_NodeVerb::CookParms &cookparms) const
840  {
841  SOP_Node *thissop = cookparms.getNode();
842  if (!thissop) return getXord();
843  int64 result;
844  OP_Utils::evalOpParm(result, thissop, "xOrd", cookparms.getCookTime(), 0);
845  return Xord(result);
846  }
847  Rord getRord() const { return Rord(myRord); }
848  void setRord(Rord val) { myRord = int64(val); }
849  Rord opRord(const SOP_NodeVerb::CookParms &cookparms) const
850  {
851  SOP_Node *thissop = cookparms.getNode();
852  if (!thissop) return getRord();
853  int64 result;
854  OP_Utils::evalOpParm(result, thissop, "rOrd", cookparms.getCookTime(), 0);
855  return Rord(result);
856  }
857  UT_Vector3D getT() const { return myT; }
858  void setT(UT_Vector3D val) { myT = val; }
859  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
860  {
861  SOP_Node *thissop = cookparms.getNode();
862  if (!thissop) return getT();
864  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
865  return result;
866  }
867  UT_Vector3D getR() const { return myR; }
868  void setR(UT_Vector3D val) { myR = val; }
869  UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
870  {
871  SOP_Node *thissop = cookparms.getNode();
872  if (!thissop) return getR();
874  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
875  return result;
876  }
877  UT_Vector3D getS() const { return myS; }
878  void setS(UT_Vector3D val) { myS = val; }
879  UT_Vector3D opS(const SOP_NodeVerb::CookParms &cookparms) const
880  {
881  SOP_Node *thissop = cookparms.getNode();
882  if (!thissop) return getS();
884  OP_Utils::evalOpParm(result, thissop, "s", cookparms.getCookTime(), 0);
885  return result;
886  }
887  UT_Vector3D getShear() const { return myShear; }
888  void setShear(UT_Vector3D val) { myShear = val; }
890  {
891  SOP_Node *thissop = cookparms.getNode();
892  if (!thissop) return getShear();
894  OP_Utils::evalOpParm(result, thissop, "shear", cookparms.getCookTime(), 0);
895  return result;
896  }
897  UT_Vector3D getP() const { return myP; }
898  void setP(UT_Vector3D val) { myP = val; }
899  UT_Vector3D opP(const SOP_NodeVerb::CookParms &cookparms) const
900  {
901  SOP_Node *thissop = cookparms.getNode();
902  if (!thissop) return getP();
904  OP_Utils::evalOpParm(result, thissop, "p", cookparms.getCookTime(), 0);
905  return result;
906  }
907  UT_Vector3D getPr() const { return myPr; }
908  void setPr(UT_Vector3D val) { myPr = val; }
909  UT_Vector3D opPr(const SOP_NodeVerb::CookParms &cookparms) const
910  {
911  SOP_Node *thissop = cookparms.getNode();
912  if (!thissop) return getPr();
914  OP_Utils::evalOpParm(result, thissop, "pr", cookparms.getCookTime(), 0);
915  return result;
916  }
917  Distmetric getDistmetric() const { return Distmetric(myDistmetric); }
918  void setDistmetric(Distmetric val) { myDistmetric = int64(val); }
920  {
921  SOP_Node *thissop = cookparms.getNode();
922  if (!thissop) return getDistmetric();
923  int64 result;
924  OP_Utils::evalOpParm(result, thissop, "distmetric", cookparms.getCookTime(), 0);
925  return Distmetric(result);
926  }
927  bool getApplyrolloff() const { return myApplyrolloff; }
928  void setApplyrolloff(bool val) { myApplyrolloff = val; }
929  bool opApplyrolloff(const SOP_NodeVerb::CookParms &cookparms) const
930  {
931  SOP_Node *thissop = cookparms.getNode();
932  if (!thissop) return getApplyrolloff();
933  bool result;
934  OP_Utils::evalOpParm(result, thissop, "applyrolloff", cookparms.getCookTime(), 0);
935  return result;
936  }
937  const UT_StringHolder & getDistattr() const { return myDistattr; }
938  void setDistattr(const UT_StringHolder & val) { myDistattr = val; }
940  {
941  SOP_Node *thissop = cookparms.getNode();
942  if (!thissop) return getDistattr();
944  OP_Utils::evalOpParm(result, thissop, "distattr", cookparms.getCookTime(), 0);
945  return result;
946  }
947  fpreal64 getRad() const { return myRad; }
948  void setRad(fpreal64 val) { myRad = val; }
949  fpreal64 opRad(const SOP_NodeVerb::CookParms &cookparms) const
950  {
951  SOP_Node *thissop = cookparms.getNode();
952  if (!thissop) return getRad();
954  OP_Utils::evalOpParm(result, thissop, "rad", cookparms.getCookTime(), 0);
955  return result;
956  }
957  Type getType() const { return Type(myType); }
958  void setType(Type val) { myType = int64(val); }
959  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
960  {
961  SOP_Node *thissop = cookparms.getNode();
962  if (!thissop) return getType();
963  int64 result;
964  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
965  return Type(result);
966  }
967  UT_Vector2D getTandeg() const { return myTandeg; }
968  void setTandeg(UT_Vector2D val) { myTandeg = val; }
970  {
971  SOP_Node *thissop = cookparms.getNode();
972  if (!thissop) return getTandeg();
974  OP_Utils::evalOpParm(result, thissop, "tandeg", cookparms.getCookTime(), 0);
975  return result;
976  }
977  const UT_StringHolder & getKernel() const { return myKernel; }
978  void setKernel(const UT_StringHolder & val) { myKernel = val; }
980  {
981  SOP_Node *thissop = cookparms.getNode();
982  if (!thissop) return getKernel();
984  OP_Utils::evalOpParm(result, thissop, "kernel", cookparms.getCookTime(), 0);
985  return result;
986  }
987  const UT_StringHolder & getAttribs() const { return myAttribs; }
988  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
990  {
991  SOP_Node *thissop = cookparms.getNode();
992  if (!thissop) return getAttribs();
994  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
995  return result;
996  }
997  bool getUpdatenmls() const { return myUpdatenmls; }
998  void setUpdatenmls(bool val) { myUpdatenmls = val; }
999  bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
1000  {
1001  SOP_Node *thissop = cookparms.getNode();
1002  if (!thissop) return getUpdatenmls();
1003  bool result;
1004  OP_Utils::evalOpParm(result, thissop, "updatenmls", cookparms.getCookTime(), 0);
1005  return result;
1006  }
1007  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
1008  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
1009  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
1010  {
1011  SOP_Node *thissop = cookparms.getNode();
1012  if (!thissop) return getUpdateaffectednmls();
1013  bool result;
1014  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
1015  return result;
1016  }
1017  bool getVlength() const { return myVlength; }
1018  void setVlength(bool val) { myVlength = val; }
1019  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
1020  {
1021  SOP_Node *thissop = cookparms.getNode();
1022  if (!thissop) return getVlength();
1023  bool result;
1024  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
1025  return result;
1026  }
1027  Visualizefalloff getVisualizefalloff() const { return Visualizefalloff(myVisualizefalloff); }
1028  void setVisualizefalloff(Visualizefalloff val) { myVisualizefalloff = int64(val); }
1030  {
1031  SOP_Node *thissop = cookparms.getNode();
1032  if (!thissop) return getVisualizefalloff();
1033  int64 result;
1034  OP_Utils::evalOpParm(result, thissop, "visualizefalloff", cookparms.getCookTime(), 0);
1035  return Visualizefalloff(result);
1036  }
1037  bool getLocalspace() const { return myLocalspace; }
1038  void setLocalspace(bool val) { myLocalspace = val; }
1039  bool opLocalspace(const SOP_NodeVerb::CookParms &cookparms) const
1040  {
1041  SOP_Node *thissop = cookparms.getNode();
1042  if (!thissop) return getLocalspace();
1043  bool result;
1044  OP_Utils::evalOpParm(result, thissop, "localspace", cookparms.getCookTime(), 0);
1045  return result;
1046  }
1047  UT_Vector3D getUpvector() const { return myUpvector; }
1048  void setUpvector(UT_Vector3D val) { myUpvector = val; }
1050  {
1051  SOP_Node *thissop = cookparms.getNode();
1052  if (!thissop) return getUpvector();
1054  OP_Utils::evalOpParm(result, thissop, "upvector", cookparms.getCookTime(), 0);
1055  return result;
1056  }
1057 
1058 private:
1059  UT_StringHolder myGroup;
1060  int64 myXord;
1061  int64 myRord;
1062  UT_Vector3D myT;
1063  UT_Vector3D myR;
1064  UT_Vector3D myS;
1065  UT_Vector3D myShear;
1066  UT_Vector3D myP;
1067  UT_Vector3D myPr;
1068  int64 myDistmetric;
1069  bool myApplyrolloff;
1070  UT_StringHolder myDistattr;
1071  fpreal64 myRad;
1072  int64 myType;
1073  UT_Vector2D myTandeg;
1074  UT_StringHolder myKernel;
1075  UT_StringHolder myAttribs;
1076  bool myUpdatenmls;
1077  bool myUpdateaffectednmls;
1078  bool myVlength;
1079  int64 myVisualizefalloff;
1080  bool myLocalspace;
1081  UT_Vector3D myUpvector;
1082 
1083 };
UT_StringHolder opKernel(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_Vector3D opUpvector(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
int int32
Definition: SYS_Types.h:39
void setP(UT_Vector3D val)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
Visualizefalloff getVisualizefalloff() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
Visualizefalloff opVisualizefalloff(const SOP_NodeVerb::CookParms &cookparms) const
bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
UT_Vector3D getShear() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
exint bread(int32 *buffer, exint asize=1)
exint getNestNumParms(TempIndex idx) const override
GLboolean * data
Definition: glcorearb.h:131
void setDistattr(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector3D &v)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
UT_Vector2T< fpreal64 > UT_Vector2D
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector2D getTandeg() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
const UT_StringHolder & getAttribs() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble s
Definition: glad.h:3009
void setAttribs(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
Rord opRord(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
void setShear(UT_Vector3D val)
SYS_FORCE_INLINE UT_StringHolder getToken(Xord enum_value)
**But if you need a result
Definition: thread.h:613
void setGroup(const UT_StringHolder &val)
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.
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
double fpreal64
Definition: SYS_Types.h:201
Distmetric opDistmetric(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Vector4D &v)
void copyFrom(const OP_NodeParms *src) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
UT_Vector3D opShear(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Vector3D v)
exint length() const
static void loadData(UT_IStream &is, fpreal64 &v)
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
const char * getNestParmName(TempIndex fieldnum) const override
Xord opXord(const SOP_NodeVerb::CookParms &cookparms) const
bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &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 exint &value) override
bool isParmColorRamp(exint idx) const override
void setUpvector(UT_Vector3D val)
static void saveData(std::ostream &os, int64 v)
fpreal64 opRad(const SOP_NodeVerb::CookParms &cookparms) const
bool opApplyrolloff(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getDistattr() const
UT_Vector3D opS(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
long long int64
Definition: SYS_Types.h:116
UT_Vector3D opP(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opAttribs(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3T< fpreal64 > UT_Vector3D
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
UT_Vector2D opTandeg(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
bool opLocalspace(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const UT_StringHolder & getKernel() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
void setTandeg(UT_Vector2D val)
void save(std::ostream &os) const
bool operator==(const SOP_SoftTransformParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setT(UT_Vector3D val)
void setPr(UT_Vector3D val)
static void loadData(UT_IStream &is, int64 &v)
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
const UT_StringHolder & getGroup() const
void setDistmetric(Distmetric val)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
UT_StringHolder opDistattr(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_Vector3D getUpvector() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void setVisualizefalloff(Visualizefalloff val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, bool &v)
void setS(UT_Vector3D val)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Matrix3D v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setR(UT_Vector3D val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
bool operator!=(const SOP_SoftTransformParms &src) const
void setKernel(const UT_StringHolder &val)
Distmetric getDistmetric() const
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
UT_Vector3D opPr(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
type
Definition: core.h:1059
bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663