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 <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_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 
241  if (baseGetSignature() != src.baseGetSignature()) return false;
242 
243  return true;
244  }
245  bool operator!=(const SOP_TransformParms &src) const
246  {
247  return !operator==(src);
248  }
255 
256 
257 
258  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
259  {
260  myGroup = ""_UTsh;
261  if (true)
262  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
263  myGrouptype = 0;
264  if (true)
265  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, graph->isDirect()?nullptr:depnode);
266  myXord = 0;
267  if (true)
268  graph->evalOpParm(myXord, nodeidx, "xOrd", time, graph->isDirect()?nullptr:depnode);
269  myRord = 0;
270  if (true)
271  graph->evalOpParm(myRord, nodeidx, "rOrd", time, graph->isDirect()?nullptr:depnode);
272  myT = UT_Vector3D(0,0,0);
273  if (true)
274  graph->evalOpParm(myT, nodeidx, "t", time, graph->isDirect()?nullptr:depnode);
275  myR = UT_Vector3D(0,0,0);
276  if (true)
277  graph->evalOpParm(myR, nodeidx, "r", time, graph->isDirect()?nullptr:depnode);
278  myS = UT_Vector3D(1,1,1);
279  if (true)
280  graph->evalOpParm(myS, nodeidx, "s", time, graph->isDirect()?nullptr:depnode);
281  myShear = UT_Vector3D(0,0,0);
282  if (true)
283  graph->evalOpParm(myShear, nodeidx, "shear", time, graph->isDirect()?nullptr:depnode);
284  myScale = 1;
285  if (true)
286  graph->evalOpParm(myScale, nodeidx, "scale", time, graph->isDirect()?nullptr:depnode);
287  myP = UT_Vector3D(0,0,0);
288  if (true)
289  graph->evalOpParm(myP, nodeidx, "p", time, graph->isDirect()?nullptr:depnode);
290  myPr = UT_Vector3D(0,0,0);
291  if (true)
292  graph->evalOpParm(myPr, nodeidx, "pr", time, graph->isDirect()?nullptr:depnode);
293  myPrexform_xord = 0;
294  if (true)
295  graph->evalOpParm(myPrexform_xord, nodeidx, "prexform_xOrd", time, graph->isDirect()?nullptr:depnode);
296  myPrexform_rord = 0;
297  if (true)
298  graph->evalOpParm(myPrexform_rord, nodeidx, "prexform_rOrd", time, graph->isDirect()?nullptr:depnode);
299  myPrexform_t = UT_Vector3D(0,0,0);
300  if (true)
301  graph->evalOpParm(myPrexform_t, nodeidx, "prexform_t", time, graph->isDirect()?nullptr:depnode);
302  myPrexform_r = UT_Vector3D(0,0,0);
303  if (true)
304  graph->evalOpParm(myPrexform_r, nodeidx, "prexform_r", time, graph->isDirect()?nullptr:depnode);
305  myPrexform_s = UT_Vector3D(1,1,1);
306  if (true)
307  graph->evalOpParm(myPrexform_s, nodeidx, "prexform_s", time, graph->isDirect()?nullptr:depnode);
308  myPrexform_shear = UT_Vector3D(0,0,0);
309  if (true)
310  graph->evalOpParm(myPrexform_shear, nodeidx, "prexform_shear", time, graph->isDirect()?nullptr:depnode);
311  myAttribs = "*"_UTsh;
312  if (true)
313  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, graph->isDirect()?nullptr:depnode);
314  myUpdatenmls = false;
315  if (true)
316  graph->evalOpParm(myUpdatenmls, nodeidx, "updatenmls", time, graph->isDirect()?nullptr:depnode);
317  myUpdateaffectednmls = true;
318  if (true && ( (true&&!(((getUpdatenmls()==1)))) ) )
319  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, graph->isDirect()?nullptr:depnode);
320  myVlength = true;
321  if (true && ( (true&&!(((getUpdatenmls()==1)))) ) )
322  graph->evalOpParm(myVlength, nodeidx, "vlength", time, graph->isDirect()?nullptr:depnode);
323  myInvertxform = false;
324  if (true)
325  graph->evalOpParm(myInvertxform, nodeidx, "invertxform", time, graph->isDirect()?nullptr:depnode);
326  myAddattrib = false;
327  if (true)
328  graph->evalOpParm(myAddattrib, nodeidx, "addattrib", time, graph->isDirect()?nullptr:depnode);
329  myOutputattrib = "xform"_UTsh;
330  if (true && ( (true&&!(((getAddattrib()==0)))) ) )
331  graph->evalOpParm(myOutputattrib, nodeidx, "outputattrib", time, graph->isDirect()?nullptr:depnode);
332  myOutputmerge = 2;
333  if (true && ( (true&&!(((getAddattrib()==0)))) ) )
334  graph->evalOpParm(myOutputmerge, nodeidx, "outputmerge", time, graph->isDirect()?nullptr:depnode);
335 
336  }
337 
338 
339  void loadFromOpSubclass(const LoadParms &loadparms) override
340  {
341  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
342  }
343 
344 
345  void copyFrom(const OP_NodeParms *src) override
346  {
347  *this = *((const SOP_TransformParms *)src);
348  }
349 
350  template <typename T>
351  void
352  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
353  {
354  if (idx.size() < 1)
355  return;
356  UT_ASSERT(idx.size() == instance.size()+1);
357  if (idx.size() != instance.size()+1)
358  return;
359  switch (idx[0])
360  {
361  case 0:
362  coerceValue(value, myGroup);
363  break;
364  case 1:
365  coerceValue(value, myGrouptype);
366  break;
367  case 2:
368  coerceValue(value, myXord);
369  break;
370  case 3:
371  coerceValue(value, myRord);
372  break;
373  case 4:
374  coerceValue(value, myT);
375  break;
376  case 5:
377  coerceValue(value, myR);
378  break;
379  case 6:
380  coerceValue(value, myS);
381  break;
382  case 7:
383  coerceValue(value, myShear);
384  break;
385  case 8:
386  coerceValue(value, myScale);
387  break;
388  case 9:
389  coerceValue(value, myP);
390  break;
391  case 10:
392  coerceValue(value, myPr);
393  break;
394  case 11:
395  coerceValue(value, myPrexform_xord);
396  break;
397  case 12:
398  coerceValue(value, myPrexform_rord);
399  break;
400  case 13:
401  coerceValue(value, myPrexform_t);
402  break;
403  case 14:
404  coerceValue(value, myPrexform_r);
405  break;
406  case 15:
407  coerceValue(value, myPrexform_s);
408  break;
409  case 16:
410  coerceValue(value, myPrexform_shear);
411  break;
412  case 17:
413  coerceValue(value, myAttribs);
414  break;
415  case 18:
416  coerceValue(value, myUpdatenmls);
417  break;
418  case 19:
419  coerceValue(value, myUpdateaffectednmls);
420  break;
421  case 20:
422  coerceValue(value, myVlength);
423  break;
424  case 21:
425  coerceValue(value, myInvertxform);
426  break;
427  case 22:
428  coerceValue(value, myAddattrib);
429  break;
430  case 23:
431  coerceValue(value, myOutputattrib);
432  break;
433  case 24:
434  coerceValue(value, myOutputmerge);
435  break;
436 
437  }
438  }
439 
440  bool isParmColorRamp(exint idx) const override
441  {
442  switch (idx)
443  {
444 
445  }
446  return false;
447  }
448 
449  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
450  { doGetParmValue(idx, instance, value); }
451  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
452  { doGetParmValue(idx, instance, value); }
453  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
454  { doGetParmValue(idx, instance, value); }
455  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
456  { doGetParmValue(idx, instance, value); }
457  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
458  { doGetParmValue(idx, instance, value); }
459  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
460  { doGetParmValue(idx, instance, value); }
461  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
462  { doGetParmValue(idx, instance, value); }
463  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
464  { doGetParmValue(idx, instance, value); }
465  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
466  { doGetParmValue(idx, instance, value); }
467  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
468  { doGetParmValue(idx, instance, value); }
469  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
470  { doGetParmValue(idx, instance, value); }
471 
472  template <typename T>
473  void
474  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
475  {
476  if (idx.size() < 1)
477  return;
478  UT_ASSERT(idx.size() == instance.size()+1);
479  if (idx.size() != instance.size()+1)
480  return;
481  switch (idx[0])
482  {
483  case 0:
484  coerceValue(myGroup, ( ( value ) ));
485  break;
486  case 1:
487  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
488  break;
489  case 2:
490  coerceValue(myXord, clampMinValue(0, clampMaxValue(5, value ) ));
491  break;
492  case 3:
493  coerceValue(myRord, clampMinValue(0, clampMaxValue(5, value ) ));
494  break;
495  case 4:
496  coerceValue(myT, ( ( value ) ));
497  break;
498  case 5:
499  coerceValue(myR, ( ( value ) ));
500  break;
501  case 6:
502  coerceValue(myS, ( ( value ) ));
503  break;
504  case 7:
505  coerceValue(myShear, ( ( value ) ));
506  break;
507  case 8:
508  coerceValue(myScale, ( ( value ) ));
509  break;
510  case 9:
511  coerceValue(myP, ( ( value ) ));
512  break;
513  case 10:
514  coerceValue(myPr, ( ( value ) ));
515  break;
516  case 11:
517  coerceValue(myPrexform_xord, clampMinValue(0, clampMaxValue(5, value ) ));
518  break;
519  case 12:
520  coerceValue(myPrexform_rord, clampMinValue(0, clampMaxValue(5, value ) ));
521  break;
522  case 13:
523  coerceValue(myPrexform_t, ( ( value ) ));
524  break;
525  case 14:
526  coerceValue(myPrexform_r, ( ( value ) ));
527  break;
528  case 15:
529  coerceValue(myPrexform_s, ( ( value ) ));
530  break;
531  case 16:
532  coerceValue(myPrexform_shear, ( ( value ) ));
533  break;
534  case 17:
535  coerceValue(myAttribs, ( ( value ) ));
536  break;
537  case 18:
538  coerceValue(myUpdatenmls, ( ( value ) ));
539  break;
540  case 19:
541  coerceValue(myUpdateaffectednmls, ( ( value ) ));
542  break;
543  case 20:
544  coerceValue(myVlength, ( ( value ) ));
545  break;
546  case 21:
547  coerceValue(myInvertxform, ( ( value ) ));
548  break;
549  case 22:
550  coerceValue(myAddattrib, ( ( value ) ));
551  break;
552  case 23:
553  coerceValue(myOutputattrib, ( ( value ) ));
554  break;
555  case 24:
556  coerceValue(myOutputmerge, clampMinValue(0, clampMaxValue(2, value ) ));
557  break;
558 
559  }
560  }
561 
562  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
563  { doSetParmValue(idx, instance, value); }
564  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
565  { doSetParmValue(idx, instance, value); }
566  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
567  { doSetParmValue(idx, instance, value); }
568  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
569  { doSetParmValue(idx, instance, value); }
570  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
571  { doSetParmValue(idx, instance, value); }
572  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
573  { doSetParmValue(idx, instance, value); }
574  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
575  { doSetParmValue(idx, instance, value); }
576  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
577  { doSetParmValue(idx, instance, value); }
578  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
579  { doSetParmValue(idx, instance, value); }
580  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
581  { doSetParmValue(idx, instance, value); }
582  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
583  { doSetParmValue(idx, instance, value); }
584 
585  exint getNestNumParms(TempIndex idx) const override
586  {
587  if (idx.size() == 0)
588  return 25;
589  switch (idx[0])
590  {
591 
592  }
593  // Invalid
594  return 0;
595  }
596 
597  const char *getNestParmName(TempIndex fieldnum) const override
598  {
599  if (fieldnum.size() < 1)
600  return 0;
601  switch (fieldnum[0])
602  {
603  case 0:
604  return "group";
605  case 1:
606  return "grouptype";
607  case 2:
608  return "xOrd";
609  case 3:
610  return "rOrd";
611  case 4:
612  return "t";
613  case 5:
614  return "r";
615  case 6:
616  return "s";
617  case 7:
618  return "shear";
619  case 8:
620  return "scale";
621  case 9:
622  return "p";
623  case 10:
624  return "pr";
625  case 11:
626  return "prexform_xOrd";
627  case 12:
628  return "prexform_rOrd";
629  case 13:
630  return "prexform_t";
631  case 14:
632  return "prexform_r";
633  case 15:
634  return "prexform_s";
635  case 16:
636  return "prexform_shear";
637  case 17:
638  return "attribs";
639  case 18:
640  return "updatenmls";
641  case 19:
642  return "updateaffectednmls";
643  case 20:
644  return "vlength";
645  case 21:
646  return "invertxform";
647  case 22:
648  return "addattrib";
649  case 23:
650  return "outputattrib";
651  case 24:
652  return "outputmerge";
653 
654  }
655  return 0;
656  }
657 
658  ParmType getNestParmType(TempIndex fieldnum) const override
659  {
660  if (fieldnum.size() < 1)
661  return PARM_UNSUPPORTED;
662  switch (fieldnum[0])
663  {
664  case 0:
665  return PARM_STRING;
666  case 1:
667  return PARM_INTEGER;
668  case 2:
669  return PARM_INTEGER;
670  case 3:
671  return PARM_INTEGER;
672  case 4:
673  return PARM_VECTOR3;
674  case 5:
675  return PARM_VECTOR3;
676  case 6:
677  return PARM_VECTOR3;
678  case 7:
679  return PARM_VECTOR3;
680  case 8:
681  return PARM_FLOAT;
682  case 9:
683  return PARM_VECTOR3;
684  case 10:
685  return PARM_VECTOR3;
686  case 11:
687  return PARM_INTEGER;
688  case 12:
689  return PARM_INTEGER;
690  case 13:
691  return PARM_VECTOR3;
692  case 14:
693  return PARM_VECTOR3;
694  case 15:
695  return PARM_VECTOR3;
696  case 16:
697  return PARM_VECTOR3;
698  case 17:
699  return PARM_STRING;
700  case 18:
701  return PARM_INTEGER;
702  case 19:
703  return PARM_INTEGER;
704  case 20:
705  return PARM_INTEGER;
706  case 21:
707  return PARM_INTEGER;
708  case 22:
709  return PARM_INTEGER;
710  case 23:
711  return PARM_STRING;
712  case 24:
713  return PARM_INTEGER;
714 
715  }
716  return PARM_UNSUPPORTED;
717  }
718 
719  // Boiler plate to load individual types.
720  static void loadData(UT_IStream &is, int64 &v)
721  { is.bread(&v, 1); }
722  static void loadData(UT_IStream &is, bool &v)
723  { int64 iv; is.bread(&iv, 1); v = iv; }
724  static void loadData(UT_IStream &is, fpreal64 &v)
725  { is.bread<fpreal64>(&v, 1); }
726  static void loadData(UT_IStream &is, UT_Vector2D &v)
727  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
728  static void loadData(UT_IStream &is, UT_Vector3D &v)
729  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
730  is.bread<fpreal64>(&v.z(), 1); }
731  static void loadData(UT_IStream &is, UT_Vector4D &v)
732  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
733  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
734  static void loadData(UT_IStream &is, UT_Matrix2D &v)
735  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
736  static void loadData(UT_IStream &is, UT_Matrix3D &v)
737  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
738  static void loadData(UT_IStream &is, UT_Matrix4D &v)
739  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
740  static void loadData(UT_IStream &is, UT_Vector2I &v)
741  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
742  static void loadData(UT_IStream &is, UT_Vector3I &v)
743  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
744  is.bread<int64>(&v.z(), 1); }
745  static void loadData(UT_IStream &is, UT_Vector4I &v)
746  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
747  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
749  { is.bread(v); }
751  { UT_StringHolder rampdata;
752  loadData(is, rampdata);
753  if (rampdata.isstring())
754  {
755  v.reset(new UT_Ramp());
756  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
757  v->load(istr);
758  }
759  else v.reset();
760  }
763  loadData(is, data);
764  if (data.isstring())
765  {
766  // Find the data type.
767  const char *colon = UT_StringWrap(data).findChar(':');
768  if (colon)
769  {
770  int typelen = colon - data.buffer();
772  type.strncpy(data.buffer(), typelen);
773  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
774 
775  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
776  }
777  }
778  else v.reset();
779  }
780 
781  static void saveData(std::ostream &os, int64 v)
782  { UTwrite(os, &v); }
783  static void saveData(std::ostream &os, bool v)
784  { int64 iv = v; UTwrite(os, &iv); }
785  static void saveData(std::ostream &os, fpreal64 v)
786  { UTwrite<fpreal64>(os, &v); }
787  static void saveData(std::ostream &os, UT_Vector2D v)
788  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
789  static void saveData(std::ostream &os, UT_Vector3D v)
790  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
791  UTwrite<fpreal64>(os, &v.z()); }
792  static void saveData(std::ostream &os, UT_Vector4D v)
793  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
794  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
795  static void saveData(std::ostream &os, UT_Matrix2D v)
797  static void saveData(std::ostream &os, UT_Matrix3D v)
799  static void saveData(std::ostream &os, UT_Matrix4D v)
801  static void saveData(std::ostream &os, UT_StringHolder s)
802  { UT_StringWrap(s).saveBinary(os); }
803  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
805  UT_OStringStream ostr;
806  if (s) s->save(ostr);
807  result = ostr.str();
808  saveData(os, result);
809  }
810  static void saveData(std::ostream &os, PRM_DataItemHandle s)
812  UT_OStringStream ostr;
813  if (s)
814  {
815  ostr << s->getDataTypeToken();
816  ostr << ":";
817  s->saveBinary(ostr);
818  }
819  result = ostr.str();
820  saveData(os, result);
821  }
822 
823 
824  void save(std::ostream &os) const
825  {
826  int32 v = version();
827  UTwrite(os, &v);
828  saveData(os, myGroup);
829  saveData(os, myGrouptype);
830  saveData(os, myXord);
831  saveData(os, myRord);
832  saveData(os, myT);
833  saveData(os, myR);
834  saveData(os, myS);
835  saveData(os, myShear);
836  saveData(os, myScale);
837  saveData(os, myP);
838  saveData(os, myPr);
839  saveData(os, myPrexform_xord);
840  saveData(os, myPrexform_rord);
841  saveData(os, myPrexform_t);
842  saveData(os, myPrexform_r);
843  saveData(os, myPrexform_s);
844  saveData(os, myPrexform_shear);
845  saveData(os, myAttribs);
846  saveData(os, myUpdatenmls);
847  saveData(os, myUpdateaffectednmls);
848  saveData(os, myVlength);
849  saveData(os, myInvertxform);
850  saveData(os, myAddattrib);
851  saveData(os, myOutputattrib);
852  saveData(os, myOutputmerge);
853 
854  }
855 
856  bool load(UT_IStream &is)
857  {
858  int32 v;
859  is.bread(&v, 1);
860  if (version() != v)
861  {
862  // Fail incompatible versions
863  return false;
864  }
865  loadData(is, myGroup);
866  loadData(is, myGrouptype);
867  loadData(is, myXord);
868  loadData(is, myRord);
869  loadData(is, myT);
870  loadData(is, myR);
871  loadData(is, myS);
872  loadData(is, myShear);
873  loadData(is, myScale);
874  loadData(is, myP);
875  loadData(is, myPr);
876  loadData(is, myPrexform_xord);
877  loadData(is, myPrexform_rord);
878  loadData(is, myPrexform_t);
879  loadData(is, myPrexform_r);
880  loadData(is, myPrexform_s);
881  loadData(is, myPrexform_shear);
882  loadData(is, myAttribs);
883  loadData(is, myUpdatenmls);
884  loadData(is, myUpdateaffectednmls);
885  loadData(is, myVlength);
886  loadData(is, myInvertxform);
887  loadData(is, myAddattrib);
888  loadData(is, myOutputattrib);
889  loadData(is, myOutputmerge);
890 
891  return true;
892  }
893 
894  const UT_StringHolder & getGroup() const { return myGroup; }
895  void setGroup(const UT_StringHolder & val) { myGroup = val; }
897  {
898  SOP_Node *thissop = cookparms.getNode();
899  if (!thissop) return getGroup();
901  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
902  return result;
903  }
904  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
905  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
907  {
908  SOP_Node *thissop = cookparms.getNode();
909  if (!thissop) return getGrouptype();
910  int64 result;
911  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
912  return Grouptype(result);
913  }
914  Xord getXord() const { return Xord(myXord); }
915  void setXord(Xord val) { myXord = int64(val); }
916  Xord opXord(const SOP_NodeVerb::CookParms &cookparms) const
917  {
918  SOP_Node *thissop = cookparms.getNode();
919  if (!thissop) return getXord();
920  int64 result;
921  OP_Utils::evalOpParm(result, thissop, "xOrd", cookparms.getCookTime(), 0);
922  return Xord(result);
923  }
924  Rord getRord() const { return Rord(myRord); }
925  void setRord(Rord val) { myRord = int64(val); }
926  Rord opRord(const SOP_NodeVerb::CookParms &cookparms) const
927  {
928  SOP_Node *thissop = cookparms.getNode();
929  if (!thissop) return getRord();
930  int64 result;
931  OP_Utils::evalOpParm(result, thissop, "rOrd", cookparms.getCookTime(), 0);
932  return Rord(result);
933  }
934  UT_Vector3D getT() const { return myT; }
935  void setT(UT_Vector3D val) { myT = val; }
936  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
937  {
938  SOP_Node *thissop = cookparms.getNode();
939  if (!thissop) return getT();
941  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
942  return result;
943  }
944  UT_Vector3D getR() const { return myR; }
945  void setR(UT_Vector3D val) { myR = val; }
946  UT_Vector3D opR(const SOP_NodeVerb::CookParms &cookparms) const
947  {
948  SOP_Node *thissop = cookparms.getNode();
949  if (!thissop) return getR();
951  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
952  return result;
953  }
954  UT_Vector3D getS() const { return myS; }
955  void setS(UT_Vector3D val) { myS = val; }
956  UT_Vector3D opS(const SOP_NodeVerb::CookParms &cookparms) const
957  {
958  SOP_Node *thissop = cookparms.getNode();
959  if (!thissop) return getS();
961  OP_Utils::evalOpParm(result, thissop, "s", cookparms.getCookTime(), 0);
962  return result;
963  }
964  UT_Vector3D getShear() const { return myShear; }
965  void setShear(UT_Vector3D val) { myShear = val; }
967  {
968  SOP_Node *thissop = cookparms.getNode();
969  if (!thissop) return getShear();
971  OP_Utils::evalOpParm(result, thissop, "shear", cookparms.getCookTime(), 0);
972  return result;
973  }
974  fpreal64 getScale() const { return myScale; }
975  void setScale(fpreal64 val) { myScale = val; }
976  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
977  {
978  SOP_Node *thissop = cookparms.getNode();
979  if (!thissop) return getScale();
981  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
982  return result;
983  }
984  UT_Vector3D getP() const { return myP; }
985  void setP(UT_Vector3D val) { myP = val; }
986  UT_Vector3D opP(const SOP_NodeVerb::CookParms &cookparms) const
987  {
988  SOP_Node *thissop = cookparms.getNode();
989  if (!thissop) return getP();
991  OP_Utils::evalOpParm(result, thissop, "p", cookparms.getCookTime(), 0);
992  return result;
993  }
994  UT_Vector3D getPr() const { return myPr; }
995  void setPr(UT_Vector3D val) { myPr = val; }
996  UT_Vector3D opPr(const SOP_NodeVerb::CookParms &cookparms) const
997  {
998  SOP_Node *thissop = cookparms.getNode();
999  if (!thissop) return getPr();
1001  OP_Utils::evalOpParm(result, thissop, "pr", cookparms.getCookTime(), 0);
1002  return result;
1003  }
1004  Prexform_xord getPrexform_xord() const { return Prexform_xord(myPrexform_xord); }
1005  void setPrexform_xord(Prexform_xord val) { myPrexform_xord = int64(val); }
1007  {
1008  SOP_Node *thissop = cookparms.getNode();
1009  if (!thissop) return getPrexform_xord();
1010  int64 result;
1011  OP_Utils::evalOpParm(result, thissop, "prexform_xOrd", cookparms.getCookTime(), 0);
1012  return Prexform_xord(result);
1013  }
1014  Prexform_rord getPrexform_rord() const { return Prexform_rord(myPrexform_rord); }
1015  void setPrexform_rord(Prexform_rord val) { myPrexform_rord = int64(val); }
1017  {
1018  SOP_Node *thissop = cookparms.getNode();
1019  if (!thissop) return getPrexform_rord();
1020  int64 result;
1021  OP_Utils::evalOpParm(result, thissop, "prexform_rOrd", cookparms.getCookTime(), 0);
1022  return Prexform_rord(result);
1023  }
1024  UT_Vector3D getPrexform_t() const { return myPrexform_t; }
1025  void setPrexform_t(UT_Vector3D val) { myPrexform_t = val; }
1027  {
1028  SOP_Node *thissop = cookparms.getNode();
1029  if (!thissop) return getPrexform_t();
1031  OP_Utils::evalOpParm(result, thissop, "prexform_t", cookparms.getCookTime(), 0);
1032  return result;
1033  }
1034  UT_Vector3D getPrexform_r() const { return myPrexform_r; }
1035  void setPrexform_r(UT_Vector3D val) { myPrexform_r = val; }
1037  {
1038  SOP_Node *thissop = cookparms.getNode();
1039  if (!thissop) return getPrexform_r();
1041  OP_Utils::evalOpParm(result, thissop, "prexform_r", cookparms.getCookTime(), 0);
1042  return result;
1043  }
1044  UT_Vector3D getPrexform_s() const { return myPrexform_s; }
1045  void setPrexform_s(UT_Vector3D val) { myPrexform_s = val; }
1047  {
1048  SOP_Node *thissop = cookparms.getNode();
1049  if (!thissop) return getPrexform_s();
1051  OP_Utils::evalOpParm(result, thissop, "prexform_s", cookparms.getCookTime(), 0);
1052  return result;
1053  }
1054  UT_Vector3D getPrexform_shear() const { return myPrexform_shear; }
1055  void setPrexform_shear(UT_Vector3D val) { myPrexform_shear = val; }
1057  {
1058  SOP_Node *thissop = cookparms.getNode();
1059  if (!thissop) return getPrexform_shear();
1061  OP_Utils::evalOpParm(result, thissop, "prexform_shear", cookparms.getCookTime(), 0);
1062  return result;
1063  }
1064  const UT_StringHolder & getAttribs() const { return myAttribs; }
1065  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
1067  {
1068  SOP_Node *thissop = cookparms.getNode();
1069  if (!thissop) return getAttribs();
1071  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
1072  return result;
1073  }
1074  bool getUpdatenmls() const { return myUpdatenmls; }
1075  void setUpdatenmls(bool val) { myUpdatenmls = val; }
1076  bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
1077  {
1078  SOP_Node *thissop = cookparms.getNode();
1079  if (!thissop) return getUpdatenmls();
1080  bool result;
1081  OP_Utils::evalOpParm(result, thissop, "updatenmls", cookparms.getCookTime(), 0);
1082  return result;
1083  }
1084  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
1085  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
1086  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
1087  {
1088  SOP_Node *thissop = cookparms.getNode();
1089  if (!thissop) return getUpdateaffectednmls();
1090  bool result;
1091  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
1092  return result;
1093  }
1094  bool getVlength() const { return myVlength; }
1095  void setVlength(bool val) { myVlength = val; }
1096  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
1097  {
1098  SOP_Node *thissop = cookparms.getNode();
1099  if (!thissop) return getVlength();
1100  bool result;
1101  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
1102  return result;
1103  }
1104  bool getInvertxform() const { return myInvertxform; }
1105  void setInvertxform(bool val) { myInvertxform = val; }
1106  bool opInvertxform(const SOP_NodeVerb::CookParms &cookparms) const
1107  {
1108  SOP_Node *thissop = cookparms.getNode();
1109  if (!thissop) return getInvertxform();
1110  bool result;
1111  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
1112  return result;
1113  }
1114  bool getAddattrib() const { return myAddattrib; }
1115  void setAddattrib(bool val) { myAddattrib = val; }
1116  bool opAddattrib(const SOP_NodeVerb::CookParms &cookparms) const
1117  {
1118  SOP_Node *thissop = cookparms.getNode();
1119  if (!thissop) return getAddattrib();
1120  bool result;
1121  OP_Utils::evalOpParm(result, thissop, "addattrib", cookparms.getCookTime(), 0);
1122  return result;
1123  }
1124  const UT_StringHolder & getOutputattrib() const { return myOutputattrib; }
1125  void setOutputattrib(const UT_StringHolder & val) { myOutputattrib = val; }
1127  {
1128  SOP_Node *thissop = cookparms.getNode();
1129  if (!thissop) return getOutputattrib();
1131  OP_Utils::evalOpParm(result, thissop, "outputattrib", cookparms.getCookTime(), 0);
1132  return result;
1133  }
1134  Outputmerge getOutputmerge() const { return Outputmerge(myOutputmerge); }
1135  void setOutputmerge(Outputmerge val) { myOutputmerge = int64(val); }
1137  {
1138  SOP_Node *thissop = cookparms.getNode();
1139  if (!thissop) return getOutputmerge();
1140  int64 result;
1141  OP_Utils::evalOpParm(result, thissop, "outputmerge", cookparms.getCookTime(), 0);
1142  return Outputmerge(result);
1143  }
1144 
1145 private:
1146  UT_StringHolder myGroup;
1147  int64 myGrouptype;
1148  int64 myXord;
1149  int64 myRord;
1150  UT_Vector3D myT;
1151  UT_Vector3D myR;
1152  UT_Vector3D myS;
1153  UT_Vector3D myShear;
1154  fpreal64 myScale;
1155  UT_Vector3D myP;
1156  UT_Vector3D myPr;
1157  int64 myPrexform_xord;
1158  int64 myPrexform_rord;
1159  UT_Vector3D myPrexform_t;
1160  UT_Vector3D myPrexform_r;
1161  UT_Vector3D myPrexform_s;
1162  UT_Vector3D myPrexform_shear;
1163  UT_StringHolder myAttribs;
1164  bool myUpdatenmls;
1165  bool myUpdateaffectednmls;
1166  bool myVlength;
1167  bool myInvertxform;
1168  bool myAddattrib;
1169  UT_StringHolder myOutputattrib;
1170  int64 myOutputmerge;
1171 
1172 };
static void saveData(std::ostream &os, bool v)
bool getInvertxform() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
type
Definition: core.h:556
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
static void loadData(UT_IStream &is, UT_Vector2D &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
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)
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