HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Transform.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_TransformEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33 
35  getToken(Grouptype enum_value)
36  {
37  using namespace UT::Literal;
38  switch (enum_value) {
39  case Grouptype::GUESS: return "guess"_sh;
40  case Grouptype::BREAKPOINTS: return "breakpoints"_sh;
41  case Grouptype::EDGES: return "edges"_sh;
42  case Grouptype::POINTS: return "points"_sh;
43  case Grouptype::PRIMS: return "prims"_sh;
44  default: UT_ASSERT(false); return ""_sh;
45  }
46  }
47 
48  enum class Xord
49  {
50  SRT = 0,
51  STR,
52  RST,
53  RTS,
54  TSR,
55  TRS
56  };
57 
59  getToken(Xord enum_value)
60  {
61  using namespace UT::Literal;
62  switch (enum_value) {
63  case Xord::SRT: return "srt"_sh;
64  case Xord::STR: return "str"_sh;
65  case Xord::RST: return "rst"_sh;
66  case Xord::RTS: return "rts"_sh;
67  case Xord::TSR: return "tsr"_sh;
68  case Xord::TRS: return "trs"_sh;
69  default: UT_ASSERT(false); return ""_sh;
70  }
71  }
72 
73  enum class Rord
74  {
75  XYZ = 0,
76  XZY,
77  YXZ,
78  YZX,
79  ZXY,
80  ZYX
81  };
82 
84  getToken(Rord enum_value)
85  {
86  using namespace UT::Literal;
87  switch (enum_value) {
88  case Rord::XYZ: return "xyz"_sh;
89  case Rord::XZY: return "xzy"_sh;
90  case Rord::YXZ: return "yxz"_sh;
91  case Rord::YZX: return "yzx"_sh;
92  case Rord::ZXY: return "zxy"_sh;
93  case Rord::ZYX: return "zyx"_sh;
94  default: UT_ASSERT(false); return ""_sh;
95  }
96  }
97 
98  enum class Prexform_xord
99  {
100  SRT = 0,
101  STR,
102  RST,
103  RTS,
104  TSR,
105  TRS
106  };
107 
109  getToken(Prexform_xord enum_value)
110  {
111  using namespace UT::Literal;
112  switch (enum_value) {
113  case Prexform_xord::SRT: return "srt"_sh;
114  case Prexform_xord::STR: return "str"_sh;
115  case Prexform_xord::RST: return "rst"_sh;
116  case Prexform_xord::RTS: return "rts"_sh;
117  case Prexform_xord::TSR: return "tsr"_sh;
118  case Prexform_xord::TRS: return "trs"_sh;
119  default: UT_ASSERT(false); return ""_sh;
120  }
121  }
122 
123  enum class Prexform_rord
124  {
125  XYZ = 0,
126  XZY,
127  YXZ,
128  YZX,
129  ZXY,
130  ZYX
131  };
132 
134  getToken(Prexform_rord enum_value)
135  {
136  using namespace UT::Literal;
137  switch (enum_value) {
138  case Prexform_rord::XYZ: return "xyz"_sh;
139  case Prexform_rord::XZY: return "xzy"_sh;
140  case Prexform_rord::YXZ: return "yxz"_sh;
141  case Prexform_rord::YZX: return "yzx"_sh;
142  case Prexform_rord::ZXY: return "zxy"_sh;
143  case Prexform_rord::ZYX: return "zyx"_sh;
144  default: UT_ASSERT(false); return ""_sh;
145  }
146  }
147 
148  enum class Outputmerge
149  {
150  REPLACE = 0,
151  PRE,
152  POST
153  };
154 
156  getToken(Outputmerge enum_value)
157  {
158  using namespace UT::Literal;
159  switch (enum_value) {
160  case Outputmerge::REPLACE: return "replace"_sh;
161  case Outputmerge::PRE: return "pre"_sh;
162  case Outputmerge::POST: return "post"_sh;
163  default: UT_ASSERT(false); return ""_sh;
164  }
165  }
166 
167 }
168 
169 
171 {
172 public:
173  static int version() { return 1; }
174 
176  {
177  myGroup = ""_UTsh;
178  myGrouptype = 0;
179  myXord = 0;
180  myRord = 0;
181  myT = UT_Vector3D(0,0,0);
182  myR = UT_Vector3D(0,0,0);
183  myS = UT_Vector3D(1,1,1);
184  myShear = UT_Vector3D(0,0,0);
185  myScale = 1;
186  myP = UT_Vector3D(0,0,0);
187  myPr = UT_Vector3D(0,0,0);
188  myPrexform_xord = 0;
189  myPrexform_rord = 0;
190  myPrexform_t = UT_Vector3D(0,0,0);
191  myPrexform_r = UT_Vector3D(0,0,0);
192  myPrexform_s = UT_Vector3D(1,1,1);
193  myPrexform_shear = UT_Vector3D(0,0,0);
194  myAttribs = "*"_UTsh;
195  myUpdatenmls = false;
196  myUpdateaffectednmls = true;
197  myVlength = true;
198  myInvertxform = false;
199  myAddattrib = false;
200  myOutputattrib = "xform"_UTsh;
201  myOutputmerge = 2;
202 
203  }
204 
205  explicit SOP_TransformParms(const SOP_TransformParms &) = default;
206  SOP_TransformParms &operator=(const SOP_TransformParms &) = default;
207  SOP_TransformParms(SOP_TransformParms &&) noexcept = default;
208  SOP_TransformParms &operator=(SOP_TransformParms &&) noexcept = default;
209 
210  ~SOP_TransformParms() override {}
211 
212  bool operator==(const SOP_TransformParms &src) const
213  {
214  if (myGroup != src.myGroup) return false;
215  if (myGrouptype != src.myGrouptype) return false;
216  if (myXord != src.myXord) return false;
217  if (myRord != src.myRord) return false;
218  if (myT != src.myT) return false;
219  if (myR != src.myR) return false;
220  if (myS != src.myS) return false;
221  if (myShear != src.myShear) return false;
222  if (myScale != src.myScale) return false;
223  if (myP != src.myP) return false;
224  if (myPr != src.myPr) return false;
225  if (myPrexform_xord != src.myPrexform_xord) return false;
226  if (myPrexform_rord != src.myPrexform_rord) return false;
227  if (myPrexform_t != src.myPrexform_t) return false;
228  if (myPrexform_r != src.myPrexform_r) return false;
229  if (myPrexform_s != src.myPrexform_s) return false;
230  if (myPrexform_shear != src.myPrexform_shear) return false;
231  if (myAttribs != src.myAttribs) return false;
232  if (myUpdatenmls != src.myUpdatenmls) return false;
233  if (myUpdateaffectednmls != src.myUpdateaffectednmls) return false;
234  if (myVlength != src.myVlength) return false;
235  if (myInvertxform != src.myInvertxform) return false;
236  if (myAddattrib != src.myAddattrib) return false;
237  if (myOutputattrib != src.myOutputattrib) return false;
238  if (myOutputmerge != src.myOutputmerge) return false;
239 
240  return true;
241  }
242  bool operator!=(const SOP_TransformParms &src) const
243  {
244  return !operator==(src);
245  }
252 
253 
254 
255  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
256  {
257  myGroup = ""_UTsh;
258  if (true)
259  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
260  myGrouptype = 0;
261  if (true)
262  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
263  myXord = 0;
264  if (true)
265  graph->evalOpParm(myXord, nodeidx, "xOrd", time, 0);
266  myRord = 0;
267  if (true)
268  graph->evalOpParm(myRord, nodeidx, "rOrd", time, 0);
269  myT = UT_Vector3D(0,0,0);
270  if (true)
271  graph->evalOpParm(myT, nodeidx, "t", time, 0);
272  myR = UT_Vector3D(0,0,0);
273  if (true)
274  graph->evalOpParm(myR, nodeidx, "r", time, 0);
275  myS = UT_Vector3D(1,1,1);
276  if (true)
277  graph->evalOpParm(myS, nodeidx, "s", time, 0);
278  myShear = UT_Vector3D(0,0,0);
279  if (true)
280  graph->evalOpParm(myShear, nodeidx, "shear", time, 0);
281  myScale = 1;
282  if (true)
283  graph->evalOpParm(myScale, nodeidx, "scale", time, 0);
284  myP = UT_Vector3D(0,0,0);
285  if (true)
286  graph->evalOpParm(myP, nodeidx, "p", time, 0);
287  myPr = UT_Vector3D(0,0,0);
288  if (true)
289  graph->evalOpParm(myPr, nodeidx, "pr", time, 0);
290  myPrexform_xord = 0;
291  if (true)
292  graph->evalOpParm(myPrexform_xord, nodeidx, "prexform_xOrd", time, 0);
293  myPrexform_rord = 0;
294  if (true)
295  graph->evalOpParm(myPrexform_rord, nodeidx, "prexform_rOrd", time, 0);
296  myPrexform_t = UT_Vector3D(0,0,0);
297  if (true)
298  graph->evalOpParm(myPrexform_t, nodeidx, "prexform_t", time, 0);
299  myPrexform_r = UT_Vector3D(0,0,0);
300  if (true)
301  graph->evalOpParm(myPrexform_r, nodeidx, "prexform_r", time, 0);
302  myPrexform_s = UT_Vector3D(1,1,1);
303  if (true)
304  graph->evalOpParm(myPrexform_s, nodeidx, "prexform_s", time, 0);
305  myPrexform_shear = UT_Vector3D(0,0,0);
306  if (true)
307  graph->evalOpParm(myPrexform_shear, nodeidx, "prexform_shear", time, 0);
308  myAttribs = "*"_UTsh;
309  if (true)
310  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, 0);
311  myUpdatenmls = false;
312  if (true)
313  graph->evalOpParm(myUpdatenmls, nodeidx, "updatenmls", time, 0);
314  myUpdateaffectednmls = true;
315  if (true && ( (true&&!(((getUpdatenmls()==1)))) ) )
316  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, 0);
317  myVlength = true;
318  if (true && ( (true&&!(((getUpdatenmls()==1)))) ) )
319  graph->evalOpParm(myVlength, nodeidx, "vlength", time, 0);
320  myInvertxform = false;
321  if (true)
322  graph->evalOpParm(myInvertxform, nodeidx, "invertxform", time, 0);
323  myAddattrib = false;
324  if (true)
325  graph->evalOpParm(myAddattrib, nodeidx, "addattrib", time, 0);
326  myOutputattrib = "xform"_UTsh;
327  if (true && ( (true&&!(((getAddattrib()==0)))) ) )
328  graph->evalOpParm(myOutputattrib, nodeidx, "outputattrib", time, 0);
329  myOutputmerge = 2;
330  if (true && ( (true&&!(((getAddattrib()==0)))) ) )
331  graph->evalOpParm(myOutputmerge, nodeidx, "outputmerge", time, 0);
332 
333  }
334 
335 
336  void loadFromOpSubclass(const LoadParms &loadparms) override
337  {
338  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
339  }
340 
341 
342  void copyFrom(const OP_NodeParms *src) override
343  {
344  *this = *((const SOP_TransformParms *)src);
345  }
346 
347  template <typename T>
348  void
349  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
350  {
351  if (idx.size() < 1)
352  return;
353  UT_ASSERT(idx.size() == instance.size()+1);
354  if (idx.size() != instance.size()+1)
355  return;
356  switch (idx[0])
357  {
358  case 0:
359  coerceValue(value, myGroup);
360  break;
361  case 1:
362  coerceValue(value, myGrouptype);
363  break;
364  case 2:
365  coerceValue(value, myXord);
366  break;
367  case 3:
368  coerceValue(value, myRord);
369  break;
370  case 4:
371  coerceValue(value, myT);
372  break;
373  case 5:
374  coerceValue(value, myR);
375  break;
376  case 6:
377  coerceValue(value, myS);
378  break;
379  case 7:
380  coerceValue(value, myShear);
381  break;
382  case 8:
383  coerceValue(value, myScale);
384  break;
385  case 9:
386  coerceValue(value, myP);
387  break;
388  case 10:
389  coerceValue(value, myPr);
390  break;
391  case 11:
392  coerceValue(value, myPrexform_xord);
393  break;
394  case 12:
395  coerceValue(value, myPrexform_rord);
396  break;
397  case 13:
398  coerceValue(value, myPrexform_t);
399  break;
400  case 14:
401  coerceValue(value, myPrexform_r);
402  break;
403  case 15:
404  coerceValue(value, myPrexform_s);
405  break;
406  case 16:
407  coerceValue(value, myPrexform_shear);
408  break;
409  case 17:
410  coerceValue(value, myAttribs);
411  break;
412  case 18:
413  coerceValue(value, myUpdatenmls);
414  break;
415  case 19:
416  coerceValue(value, myUpdateaffectednmls);
417  break;
418  case 20:
419  coerceValue(value, myVlength);
420  break;
421  case 21:
422  coerceValue(value, myInvertxform);
423  break;
424  case 22:
425  coerceValue(value, myAddattrib);
426  break;
427  case 23:
428  coerceValue(value, myOutputattrib);
429  break;
430  case 24:
431  coerceValue(value, myOutputmerge);
432  break;
433 
434  }
435  }
436 
437  bool isParmColorRamp(exint idx) const override
438  {
439  switch (idx)
440  {
441 
442  }
443  return false;
444  }
445 
446  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
447  { doGetParmValue(idx, instance, value); }
448  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
449  { doGetParmValue(idx, instance, value); }
450  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
451  { doGetParmValue(idx, instance, value); }
452  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
453  { doGetParmValue(idx, instance, value); }
454  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
455  { doGetParmValue(idx, instance, value); }
456  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
457  { doGetParmValue(idx, instance, value); }
458  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
459  { doGetParmValue(idx, instance, value); }
460  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
461  { doGetParmValue(idx, instance, value); }
462  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
463  { doGetParmValue(idx, instance, value); }
464  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
465  { doGetParmValue(idx, instance, value); }
466  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
467  { doGetParmValue(idx, instance, value); }
468 
469  template <typename T>
470  void
471  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
472  {
473  if (idx.size() < 1)
474  return;
475  UT_ASSERT(idx.size() == instance.size()+1);
476  if (idx.size() != instance.size()+1)
477  return;
478  switch (idx[0])
479  {
480  case 0:
481  coerceValue(myGroup, ( ( value ) ));
482  break;
483  case 1:
484  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
485  break;
486  case 2:
487  coerceValue(myXord, clampMinValue(0, clampMaxValue(5, value ) ));
488  break;
489  case 3:
490  coerceValue(myRord, clampMinValue(0, clampMaxValue(5, value ) ));
491  break;
492  case 4:
493  coerceValue(myT, ( ( value ) ));
494  break;
495  case 5:
496  coerceValue(myR, ( ( value ) ));
497  break;
498  case 6:
499  coerceValue(myS, ( ( value ) ));
500  break;
501  case 7:
502  coerceValue(myShear, ( ( value ) ));
503  break;
504  case 8:
505  coerceValue(myScale, ( ( value ) ));
506  break;
507  case 9:
508  coerceValue(myP, ( ( value ) ));
509  break;
510  case 10:
511  coerceValue(myPr, ( ( value ) ));
512  break;
513  case 11:
514  coerceValue(myPrexform_xord, clampMinValue(0, clampMaxValue(5, value ) ));
515  break;
516  case 12:
517  coerceValue(myPrexform_rord, clampMinValue(0, clampMaxValue(5, value ) ));
518  break;
519  case 13:
520  coerceValue(myPrexform_t, ( ( value ) ));
521  break;
522  case 14:
523  coerceValue(myPrexform_r, ( ( value ) ));
524  break;
525  case 15:
526  coerceValue(myPrexform_s, ( ( value ) ));
527  break;
528  case 16:
529  coerceValue(myPrexform_shear, ( ( value ) ));
530  break;
531  case 17:
532  coerceValue(myAttribs, ( ( value ) ));
533  break;
534  case 18:
535  coerceValue(myUpdatenmls, ( ( value ) ));
536  break;
537  case 19:
538  coerceValue(myUpdateaffectednmls, ( ( value ) ));
539  break;
540  case 20:
541  coerceValue(myVlength, ( ( value ) ));
542  break;
543  case 21:
544  coerceValue(myInvertxform, ( ( value ) ));
545  break;
546  case 22:
547  coerceValue(myAddattrib, ( ( value ) ));
548  break;
549  case 23:
550  coerceValue(myOutputattrib, ( ( value ) ));
551  break;
552  case 24:
553  coerceValue(myOutputmerge, clampMinValue(0, clampMaxValue(2, value ) ));
554  break;
555 
556  }
557  }
558 
559  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
560  { doSetParmValue(idx, instance, value); }
561  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
562  { doSetParmValue(idx, instance, value); }
563  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
564  { doSetParmValue(idx, instance, value); }
565  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
566  { doSetParmValue(idx, instance, value); }
567  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
568  { doSetParmValue(idx, instance, value); }
569  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
570  { doSetParmValue(idx, instance, value); }
571  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
572  { doSetParmValue(idx, instance, value); }
573  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
574  { doSetParmValue(idx, instance, value); }
575  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
576  { doSetParmValue(idx, instance, value); }
577  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
578  { doSetParmValue(idx, instance, value); }
579  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
580  { doSetParmValue(idx, instance, value); }
581 
582  exint getNestNumParms(TempIndex idx) const override
583  {
584  if (idx.size() == 0)
585  return 25;
586  switch (idx[0])
587  {
588 
589  }
590  // Invalid
591  return 0;
592  }
593 
594  const char *getNestParmName(TempIndex fieldnum) const override
595  {
596  if (fieldnum.size() < 1)
597  return 0;
598  switch (fieldnum[0])
599  {
600  case 0:
601  return "group";
602  case 1:
603  return "grouptype";
604  case 2:
605  return "xOrd";
606  case 3:
607  return "rOrd";
608  case 4:
609  return "t";
610  case 5:
611  return "r";
612  case 6:
613  return "s";
614  case 7:
615  return "shear";
616  case 8:
617  return "scale";
618  case 9:
619  return "p";
620  case 10:
621  return "pr";
622  case 11:
623  return "prexform_xOrd";
624  case 12:
625  return "prexform_rOrd";
626  case 13:
627  return "prexform_t";
628  case 14:
629  return "prexform_r";
630  case 15:
631  return "prexform_s";
632  case 16:
633  return "prexform_shear";
634  case 17:
635  return "attribs";
636  case 18:
637  return "updatenmls";
638  case 19:
639  return "updateaffectednmls";
640  case 20:
641  return "vlength";
642  case 21:
643  return "invertxform";
644  case 22:
645  return "addattrib";
646  case 23:
647  return "outputattrib";
648  case 24:
649  return "outputmerge";
650 
651  }
652  return 0;
653  }
654 
655  ParmType getNestParmType(TempIndex fieldnum) const override
656  {
657  if (fieldnum.size() < 1)
658  return PARM_UNSUPPORTED;
659  switch (fieldnum[0])
660  {
661  case 0:
662  return PARM_STRING;
663  case 1:
664  return PARM_INTEGER;
665  case 2:
666  return PARM_INTEGER;
667  case 3:
668  return PARM_INTEGER;
669  case 4:
670  return PARM_VECTOR3;
671  case 5:
672  return PARM_VECTOR3;
673  case 6:
674  return PARM_VECTOR3;
675  case 7:
676  return PARM_VECTOR3;
677  case 8:
678  return PARM_FLOAT;
679  case 9:
680  return PARM_VECTOR3;
681  case 10:
682  return PARM_VECTOR3;
683  case 11:
684  return PARM_INTEGER;
685  case 12:
686  return PARM_INTEGER;
687  case 13:
688  return PARM_VECTOR3;
689  case 14:
690  return PARM_VECTOR3;
691  case 15:
692  return PARM_VECTOR3;
693  case 16:
694  return PARM_VECTOR3;
695  case 17:
696  return PARM_STRING;
697  case 18:
698  return PARM_INTEGER;
699  case 19:
700  return PARM_INTEGER;
701  case 20:
702  return PARM_INTEGER;
703  case 21:
704  return PARM_INTEGER;
705  case 22:
706  return PARM_INTEGER;
707  case 23:
708  return PARM_STRING;
709  case 24:
710  return PARM_INTEGER;
711 
712  }
713  return PARM_UNSUPPORTED;
714  }
715 
716  // Boiler plate to load individual types.
717  static void loadData(UT_IStream &is, int64 &v)
718  { is.bread(&v, 1); }
719  static void loadData(UT_IStream &is, bool &v)
720  { int64 iv; is.bread(&iv, 1); v = iv; }
721  static void loadData(UT_IStream &is, fpreal64 &v)
722  { is.bread<fpreal64>(&v, 1); }
723  static void loadData(UT_IStream &is, UT_Vector2D &v)
724  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
725  static void loadData(UT_IStream &is, UT_Vector3D &v)
726  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
727  is.bread<fpreal64>(&v.z(), 1); }
728  static void loadData(UT_IStream &is, UT_Vector4D &v)
729  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
730  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
731  static void loadData(UT_IStream &is, UT_Matrix2D &v)
732  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
733  static void loadData(UT_IStream &is, UT_Matrix3D &v)
734  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
735  static void loadData(UT_IStream &is, UT_Matrix4D &v)
736  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
737  static void loadData(UT_IStream &is, UT_Vector2I &v)
738  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
739  static void loadData(UT_IStream &is, UT_Vector3I &v)
740  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
741  is.bread<int64>(&v.z(), 1); }
742  static void loadData(UT_IStream &is, UT_Vector4I &v)
743  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
744  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
746  { is.bread(v); }
748  { UT_StringHolder rampdata;
749  loadData(is, rampdata);
750  if (rampdata.isstring())
751  {
752  v.reset(new UT_Ramp());
753  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
754  v->load(istr);
755  }
756  else v.reset();
757  }
760  loadData(is, data);
761  if (data.isstring())
762  {
763  // Find the data type.
764  const char *colon = UT_StringWrap(data).findChar(':');
765  if (colon)
766  {
767  int typelen = colon - data.buffer();
769  type.strncpy(data.buffer(), typelen);
770  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
771 
772  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
773  }
774  }
775  else v.reset();
776  }
777 
778  static void saveData(std::ostream &os, int64 v)
779  { UTwrite(os, &v); }
780  static void saveData(std::ostream &os, bool v)
781  { int64 iv = v; UTwrite(os, &iv); }
782  static void saveData(std::ostream &os, fpreal64 v)
783  { UTwrite<fpreal64>(os, &v); }
784  static void saveData(std::ostream &os, UT_Vector2D v)
785  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
786  static void saveData(std::ostream &os, UT_Vector3D v)
787  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
788  UTwrite<fpreal64>(os, &v.z()); }
789  static void saveData(std::ostream &os, UT_Vector4D v)
790  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
791  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
792  static void saveData(std::ostream &os, UT_Matrix2D v)
794  static void saveData(std::ostream &os, UT_Matrix3D v)
796  static void saveData(std::ostream &os, UT_Matrix4D v)
798  static void saveData(std::ostream &os, UT_StringHolder s)
799  { UT_StringWrap(s).saveBinary(os); }
800  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
802  UT_OStringStream ostr;
803  if (s) s->save(ostr);
804  result = ostr.str();
805  saveData(os, result);
806  }
807  static void saveData(std::ostream &os, PRM_DataItemHandle s)
809  UT_OStringStream ostr;
810  if (s)
811  {
812  ostr << s->getDataTypeToken();
813  ostr << ":";
814  s->saveBinary(ostr);
815  }
816  result = ostr.str();
817  saveData(os, result);
818  }
819 
820 
821  void save(std::ostream &os) const
822  {
823  int32 v = version();
824  UTwrite(os, &v);
825  saveData(os, myGroup);
826  saveData(os, myGrouptype);
827  saveData(os, myXord);
828  saveData(os, myRord);
829  saveData(os, myT);
830  saveData(os, myR);
831  saveData(os, myS);
832  saveData(os, myShear);
833  saveData(os, myScale);
834  saveData(os, myP);
835  saveData(os, myPr);
836  saveData(os, myPrexform_xord);
837  saveData(os, myPrexform_rord);
838  saveData(os, myPrexform_t);
839  saveData(os, myPrexform_r);
840  saveData(os, myPrexform_s);
841  saveData(os, myPrexform_shear);
842  saveData(os, myAttribs);
843  saveData(os, myUpdatenmls);
844  saveData(os, myUpdateaffectednmls);
845  saveData(os, myVlength);
846  saveData(os, myInvertxform);
847  saveData(os, myAddattrib);
848  saveData(os, myOutputattrib);
849  saveData(os, myOutputmerge);
850 
851  }
852 
853  bool load(UT_IStream &is)
854  {
855  int32 v;
856  is.bread(&v, 1);
857  if (version() != v)
858  {
859  // Fail incompatible versions
860  return false;
861  }
862  loadData(is, myGroup);
863  loadData(is, myGrouptype);
864  loadData(is, myXord);
865  loadData(is, myRord);
866  loadData(is, myT);
867  loadData(is, myR);
868  loadData(is, myS);
869  loadData(is, myShear);
870  loadData(is, myScale);
871  loadData(is, myP);
872  loadData(is, myPr);
873  loadData(is, myPrexform_xord);
874  loadData(is, myPrexform_rord);
875  loadData(is, myPrexform_t);
876  loadData(is, myPrexform_r);
877  loadData(is, myPrexform_s);
878  loadData(is, myPrexform_shear);
879  loadData(is, myAttribs);
880  loadData(is, myUpdatenmls);
881  loadData(is, myUpdateaffectednmls);
882  loadData(is, myVlength);
883  loadData(is, myInvertxform);
884  loadData(is, myAddattrib);
885  loadData(is, myOutputattrib);
886  loadData(is, myOutputmerge);
887 
888  return true;
889  }
890 
891  const UT_StringHolder & getGroup() const { return myGroup; }
892  void setGroup(const UT_StringHolder & val) { myGroup = val; }
894  {
895  SOP_Node *thissop = cookparms.getNode();
896  if (!thissop) return getGroup();
898  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
899  return result;
900  }
901  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
902  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
904  {
905  SOP_Node *thissop = cookparms.getNode();
906  if (!thissop) return getGrouptype();
907  int64 result;
908  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
909  return Grouptype(result);
910  }
911  Xord getXord() const { return Xord(myXord); }
912  void setXord(Xord val) { myXord = int64(val); }
913  Xord opXord(const SOP_NodeVerb::CookParms &cookparms) const
914  {
915  SOP_Node *thissop = cookparms.getNode();
916  if (!thissop) return getXord();
917  int64 result;
918  OP_Utils::evalOpParm(result, thissop, "xOrd", cookparms.getCookTime(), 0);
919  return Xord(result);
920  }
921  Rord getRord() const { return Rord(myRord); }
922  void setRord(Rord val) { myRord = int64(val); }
923  Rord opRord(const SOP_NodeVerb::CookParms &cookparms) const
924  {
925  SOP_Node *thissop = cookparms.getNode();
926  if (!thissop) return getRord();
927  int64 result;
928  OP_Utils::evalOpParm(result, thissop, "rOrd", cookparms.getCookTime(), 0);
929  return Rord(result);
930  }
931  UT_Vector3D getT() const { return myT; }
932  void setT(UT_Vector3D val) { myT = val; }
933  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
934  {
935  SOP_Node *thissop = cookparms.getNode();
936  if (!thissop) return getT();
938  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
939  return result;
940  }
941  UT_Vector3D getR() const { return myR; }
942  void setR(UT_Vector3D val) { myR = val; }
943  UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
944  {
945  SOP_Node *thissop = cookparms.getNode();
946  if (!thissop) return getR();
948  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
949  return result;
950  }
951  UT_Vector3D getS() const { return myS; }
952  void setS(UT_Vector3D val) { myS = val; }
953  UT_Vector3D opS(const SOP_NodeVerb::CookParms &cookparms) const
954  {
955  SOP_Node *thissop = cookparms.getNode();
956  if (!thissop) return getS();
958  OP_Utils::evalOpParm(result, thissop, "s", cookparms.getCookTime(), 0);
959  return result;
960  }
961  UT_Vector3D getShear() const { return myShear; }
962  void setShear(UT_Vector3D val) { myShear = val; }
964  {
965  SOP_Node *thissop = cookparms.getNode();
966  if (!thissop) return getShear();
968  OP_Utils::evalOpParm(result, thissop, "shear", cookparms.getCookTime(), 0);
969  return result;
970  }
971  fpreal64 getScale() const { return myScale; }
972  void setScale(fpreal64 val) { myScale = val; }
973  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
974  {
975  SOP_Node *thissop = cookparms.getNode();
976  if (!thissop) return getScale();
978  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
979  return result;
980  }
981  UT_Vector3D getP() const { return myP; }
982  void setP(UT_Vector3D val) { myP = val; }
983  UT_Vector3D opP(const SOP_NodeVerb::CookParms &cookparms) const
984  {
985  SOP_Node *thissop = cookparms.getNode();
986  if (!thissop) return getP();
988  OP_Utils::evalOpParm(result, thissop, "p", cookparms.getCookTime(), 0);
989  return result;
990  }
991  UT_Vector3D getPr() const { return myPr; }
992  void setPr(UT_Vector3D val) { myPr = val; }
993  UT_Vector3D opPr(const SOP_NodeVerb::CookParms &cookparms) const
994  {
995  SOP_Node *thissop = cookparms.getNode();
996  if (!thissop) return getPr();
998  OP_Utils::evalOpParm(result, thissop, "pr", cookparms.getCookTime(), 0);
999  return result;
1000  }
1001  Prexform_xord getPrexform_xord() const { return Prexform_xord(myPrexform_xord); }
1002  void setPrexform_xord(Prexform_xord val) { myPrexform_xord = int64(val); }
1004  {
1005  SOP_Node *thissop = cookparms.getNode();
1006  if (!thissop) return getPrexform_xord();
1007  int64 result;
1008  OP_Utils::evalOpParm(result, thissop, "prexform_xOrd", cookparms.getCookTime(), 0);
1009  return Prexform_xord(result);
1010  }
1011  Prexform_rord getPrexform_rord() const { return Prexform_rord(myPrexform_rord); }
1012  void setPrexform_rord(Prexform_rord val) { myPrexform_rord = int64(val); }
1014  {
1015  SOP_Node *thissop = cookparms.getNode();
1016  if (!thissop) return getPrexform_rord();
1017  int64 result;
1018  OP_Utils::evalOpParm(result, thissop, "prexform_rOrd", cookparms.getCookTime(), 0);
1019  return Prexform_rord(result);
1020  }
1021  UT_Vector3D getPrexform_t() const { return myPrexform_t; }
1022  void setPrexform_t(UT_Vector3D val) { myPrexform_t = val; }
1024  {
1025  SOP_Node *thissop = cookparms.getNode();
1026  if (!thissop) return getPrexform_t();
1028  OP_Utils::evalOpParm(result, thissop, "prexform_t", cookparms.getCookTime(), 0);
1029  return result;
1030  }
1031  UT_Vector3D getPrexform_r() const { return myPrexform_r; }
1032  void setPrexform_r(UT_Vector3D val) { myPrexform_r = val; }
1034  {
1035  SOP_Node *thissop = cookparms.getNode();
1036  if (!thissop) return getPrexform_r();
1038  OP_Utils::evalOpParm(result, thissop, "prexform_r", cookparms.getCookTime(), 0);
1039  return result;
1040  }
1041  UT_Vector3D getPrexform_s() const { return myPrexform_s; }
1042  void setPrexform_s(UT_Vector3D val) { myPrexform_s = val; }
1044  {
1045  SOP_Node *thissop = cookparms.getNode();
1046  if (!thissop) return getPrexform_s();
1048  OP_Utils::evalOpParm(result, thissop, "prexform_s", cookparms.getCookTime(), 0);
1049  return result;
1050  }
1051  UT_Vector3D getPrexform_shear() const { return myPrexform_shear; }
1052  void setPrexform_shear(UT_Vector3D val) { myPrexform_shear = val; }
1054  {
1055  SOP_Node *thissop = cookparms.getNode();
1056  if (!thissop) return getPrexform_shear();
1058  OP_Utils::evalOpParm(result, thissop, "prexform_shear", cookparms.getCookTime(), 0);
1059  return result;
1060  }
1061  const UT_StringHolder & getAttribs() const { return myAttribs; }
1062  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
1064  {
1065  SOP_Node *thissop = cookparms.getNode();
1066  if (!thissop) return getAttribs();
1068  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
1069  return result;
1070  }
1071  bool getUpdatenmls() const { return myUpdatenmls; }
1072  void setUpdatenmls(bool val) { myUpdatenmls = val; }
1073  bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
1074  {
1075  SOP_Node *thissop = cookparms.getNode();
1076  if (!thissop) return getUpdatenmls();
1077  bool result;
1078  OP_Utils::evalOpParm(result, thissop, "updatenmls", cookparms.getCookTime(), 0);
1079  return result;
1080  }
1081  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
1082  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
1083  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
1084  {
1085  SOP_Node *thissop = cookparms.getNode();
1086  if (!thissop) return getUpdateaffectednmls();
1087  bool result;
1088  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
1089  return result;
1090  }
1091  bool getVlength() const { return myVlength; }
1092  void setVlength(bool val) { myVlength = val; }
1093  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
1094  {
1095  SOP_Node *thissop = cookparms.getNode();
1096  if (!thissop) return getVlength();
1097  bool result;
1098  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
1099  return result;
1100  }
1101  bool getInvertxform() const { return myInvertxform; }
1102  void setInvertxform(bool val) { myInvertxform = val; }
1103  bool opInvertxform(const SOP_NodeVerb::CookParms &cookparms) const
1104  {
1105  SOP_Node *thissop = cookparms.getNode();
1106  if (!thissop) return getInvertxform();
1107  bool result;
1108  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
1109  return result;
1110  }
1111  bool getAddattrib() const { return myAddattrib; }
1112  void setAddattrib(bool val) { myAddattrib = val; }
1113  bool opAddattrib(const SOP_NodeVerb::CookParms &cookparms) const
1114  {
1115  SOP_Node *thissop = cookparms.getNode();
1116  if (!thissop) return getAddattrib();
1117  bool result;
1118  OP_Utils::evalOpParm(result, thissop, "addattrib", cookparms.getCookTime(), 0);
1119  return result;
1120  }
1121  const UT_StringHolder & getOutputattrib() const { return myOutputattrib; }
1122  void setOutputattrib(const UT_StringHolder & val) { myOutputattrib = val; }
1124  {
1125  SOP_Node *thissop = cookparms.getNode();
1126  if (!thissop) return getOutputattrib();
1128  OP_Utils::evalOpParm(result, thissop, "outputattrib", cookparms.getCookTime(), 0);
1129  return result;
1130  }
1131  Outputmerge getOutputmerge() const { return Outputmerge(myOutputmerge); }
1132  void setOutputmerge(Outputmerge val) { myOutputmerge = int64(val); }
1134  {
1135  SOP_Node *thissop = cookparms.getNode();
1136  if (!thissop) return getOutputmerge();
1137  int64 result;
1138  OP_Utils::evalOpParm(result, thissop, "outputmerge", cookparms.getCookTime(), 0);
1139  return Outputmerge(result);
1140  }
1141 
1142 private:
1143  UT_StringHolder myGroup;
1144  int64 myGrouptype;
1145  int64 myXord;
1146  int64 myRord;
1147  UT_Vector3D myT;
1148  UT_Vector3D myR;
1149  UT_Vector3D myS;
1150  UT_Vector3D myShear;
1151  fpreal64 myScale;
1152  UT_Vector3D myP;
1153  UT_Vector3D myPr;
1154  int64 myPrexform_xord;
1155  int64 myPrexform_rord;
1156  UT_Vector3D myPrexform_t;
1157  UT_Vector3D myPrexform_r;
1158  UT_Vector3D myPrexform_s;
1159  UT_Vector3D myPrexform_shear;
1160  UT_StringHolder myAttribs;
1161  bool myUpdatenmls;
1162  bool myUpdateaffectednmls;
1163  bool myVlength;
1164  bool myInvertxform;
1165  bool myAddattrib;
1166  UT_StringHolder myOutputattrib;
1167  int64 myOutputmerge;
1168 
1169 };
static void saveData(std::ostream &os, bool v)
bool getInvertxform() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
UT_Vector3D getShear() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D opPrexform_r(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
SYS_FORCE_INLINE UT_StringHolder getToken(Grouptype enum_value)
void setOutputmerge(Outputmerge val)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
const UT_StringHolder & getOutputattrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
void setInvertxform(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
Grouptype getGrouptype() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
exint getNestNumParms(TempIndex idx) const override
Prexform_rord opPrexform_rord(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
void setPr(UT_Vector3D val)
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
static void saveData(std::ostream &os, UT_Vector3D v)
void setOutputattrib(const UT_StringHolder &val)
bool isParmColorRamp(exint idx) const override
bool getUpdateaffectednmls() const
static void loadData(UT_IStream &is, fpreal64 &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
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
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
GLdouble s
Definition: glad.h:3009
void setPrexform_s(UT_Vector3D val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
Xord opXord(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
void setUpdateaffectednmls(bool val)
bool operator!=(const SOP_TransformParms &src) const
void setPrexform_t(UT_Vector3D val)
**But if you need a result
Definition: thread.h:613
UT_Vector3D getPr() const
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setAddattrib(bool val)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
void setPrexform_rord(Prexform_rord val)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool opAddattrib(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getAttribs() const
void setAttribs(const UT_StringHolder &val)
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, int64 &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool opUpdateaffectednmls(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
UT_Vector3D opPr(const SOP_NodeVerb::CookParms &cookparms) const
void setR(UT_Vector3D val)
UT_Vector3D opPrexform_t(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void setPrexform_xord(Prexform_xord val)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setS(UT_Vector3D val)
UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setP(UT_Vector3D val)
UT_Vector3D opPrexform_s(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const OP_NodeParms *src) override
const char * getNestParmName(TempIndex fieldnum) const override
UT_Vector3D opShear(const SOP_NodeVerb::CookParms &cookparms) const
bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
exint length() const
UT_Vector3D getS() const
void setUpdatenmls(bool val)
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 getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
const UT_StringHolder & getGroup() const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void setScale(fpreal64 val)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setPrexform_shear(UT_Vector3D val)
bool opInvertxform(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D getPrexform_s() const
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector2I &v)
UT_Vector3T< fpreal64 > UT_Vector3D
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
void setGroup(const UT_StringHolder &val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator==(const SOP_TransformParms &src) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
Prexform_xord opPrexform_xord(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
UT_Vector3D getR() const
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, bool &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setGrouptype(Grouptype val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
UT_StringHolder opOutputattrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D getPrexform_shear() const
UT_Vector3D getP() const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void loadData(UT_IStream &is, UT_Vector3D &v)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
UT_Vector3D getPrexform_r() const
void save(std::ostream &os) const
void setShear(UT_Vector3D val)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3×3's rows.
Definition: Mat.h:633
#define SOP_API
Definition: SOP_API.h:10
UT_Vector3D opS(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
Rord opRord(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
UT_StringHolder opAttribs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
Outputmerge opOutputmerge(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getScale() const
UT_Vector3D opPrexform_shear(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setT(UT_Vector3D val)
static void saveData(std::ostream &os, UT_Vector4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
type
Definition: core.h:1059
static void loadData(UT_IStream &is, UT_Vector2D &v)
UT_Vector3D getPrexform_t() const
bool load(UT_IStream &is)
UT_Vector3D opP(const SOP_NodeVerb::CookParms &cookparms) const
void setPrexform_r(UT_Vector3D val)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
Outputmerge getOutputmerge() const
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_StringHolder s)
Prexform_xord getPrexform_xord() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
UT_Vector3D getT() const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
Prexform_rord getPrexform_rord() const