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