HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_UVUnwrap.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_UVUnwrapEnums
24 {
25  enum class Planes
26  {
27  PLANES4 = 0,
28  PLANES5,
29  PLANES6,
30  PLANES8
31  };
32 
34  getToken(Planes enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Planes::PLANES4: return "planes4"_sh;
39  case Planes::PLANES5: return "planes5"_sh;
40  case Planes::PLANES6: return "planes6"_sh;
41  case Planes::PLANES8: return "planes8"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46  enum class LayoutType
47  {
48  STRIP = 0,
49  SQUARE
50  };
51 
53  getToken(LayoutType enum_value)
54  {
55  using namespace UT::Literal;
56  switch (enum_value) {
57  case LayoutType::STRIP: return "strip"_sh;
58  case LayoutType::SQUARE: return "square"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63  enum class ScaleType
64  {
65  NONE = 0,
66  UNIFORM,
67  STRETCH
68  };
69 
71  getToken(ScaleType enum_value)
72  {
73  using namespace UT::Literal;
74  switch (enum_value) {
75  case ScaleType::NONE: return "none"_sh;
76  case ScaleType::UNIFORM: return "uniform"_sh;
77  case ScaleType::STRETCH: return "stretch"_sh;
78  default: UT_ASSERT(false); return ""_sh;
79  }
80  }
81 
82  enum class RotateOrder
83  {
84  XYZ = 0,
85  XZY,
86  YXZ,
87  YZX,
88  ZXY,
89  ZYX
90  };
91 
93  getToken(RotateOrder enum_value)
94  {
95  using namespace UT::Literal;
96  switch (enum_value) {
97  case RotateOrder::XYZ: return "xyz"_sh;
98  case RotateOrder::XZY: return "xzy"_sh;
99  case RotateOrder::YXZ: return "yxz"_sh;
100  case RotateOrder::YZX: return "yzx"_sh;
101  case RotateOrder::ZXY: return "zxy"_sh;
102  case RotateOrder::ZYX: return "zyx"_sh;
103  default: UT_ASSERT(false); return ""_sh;
104  }
105  }
106 
107 }
108 
109 
111 {
112 public:
113  static int version() { return 1; }
114 
116  {
117  myUVAttrib = "uv"_UTsh;
118  myGroup = ""_UTsh;
119  myPlaneGroup = ""_UTsh;
120  myPlanes = 2;
121  myLayoutType = 1;
122  myScaleType = 1;
123  mySpacing = 2;
124  myRotateOrder = 0;
125  myRotate = UT_Vector3D(0,0,0);
126 
127  }
128 
129  explicit SOP_UVUnwrapParms(const SOP_UVUnwrapParms &) = default;
130  SOP_UVUnwrapParms &operator=(const SOP_UVUnwrapParms &) = default;
131  SOP_UVUnwrapParms(SOP_UVUnwrapParms &&) noexcept = default;
132  SOP_UVUnwrapParms &operator=(SOP_UVUnwrapParms &&) noexcept = default;
133 
134  ~SOP_UVUnwrapParms() override {}
135 
136  bool operator==(const SOP_UVUnwrapParms &src) const
137  {
138  if (myUVAttrib != src.myUVAttrib) return false;
139  if (myGroup != src.myGroup) return false;
140  if (myPlaneGroup != src.myPlaneGroup) return false;
141  if (myPlanes != src.myPlanes) return false;
142  if (myLayoutType != src.myLayoutType) return false;
143  if (myScaleType != src.myScaleType) return false;
144  if (mySpacing != src.mySpacing) return false;
145  if (myRotateOrder != src.myRotateOrder) return false;
146  if (myRotate != src.myRotate) return false;
147 
148  return true;
149  }
150  bool operator!=(const SOP_UVUnwrapParms &src) const
151  {
152  return !operator==(src);
153  }
158 
159 
160 
161  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
162  {
163  myUVAttrib = "uv"_UTsh;
164  if (true)
165  graph->evalOpParm(myUVAttrib, nodeidx, "uvattrib", time, 0);
166  myGroup = ""_UTsh;
167  if (true)
168  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
169  myPlaneGroup = ""_UTsh;
170  if (true && ( (true&&!((((graph->getInput(nodeidx,1)>=0)==0)))) ) )
171  graph->evalOpParm(myPlaneGroup, nodeidx, "planegroup", time, 0);
172  myPlanes = 2;
173  if (true && ( (true&&!((((graph->getInput(nodeidx,1)>=0)!=0)))) ) )
174  graph->evalOpParm(myPlanes, nodeidx, "nplanes", time, 0);
175  myLayoutType = 1;
176  if (true)
177  graph->evalOpParm(myLayoutType, nodeidx, "layout", time, 0);
178  myScaleType = 1;
179  if (true)
180  graph->evalOpParm(myScaleType, nodeidx, "scale", time, 0);
181  mySpacing = 2;
182  if (true)
183  graph->evalOpParm(mySpacing, nodeidx, "spacing", time, 0);
184  myRotateOrder = 0;
185  if (true)
186  graph->evalOpParm(myRotateOrder, nodeidx, "rOrd", time, 0);
187  myRotate = UT_Vector3D(0,0,0);
188  if (true)
189  graph->evalOpParm(myRotate, nodeidx, "r", time, 0);
190 
191  }
192 
193 
194  void loadFromOpSubclass(const LoadParms &loadparms) override
195  {
196  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
197  }
198 
199 
200  void copyFrom(const OP_NodeParms *src) override
201  {
202  *this = *((const SOP_UVUnwrapParms *)src);
203  }
204 
205  template <typename T>
206  void
207  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
208  {
209  if (idx.size() < 1)
210  return;
211  UT_ASSERT(idx.size() == instance.size()+1);
212  if (idx.size() != instance.size()+1)
213  return;
214  switch (idx[0])
215  {
216  case 0:
217  coerceValue(value, myUVAttrib);
218  break;
219  case 1:
220  coerceValue(value, myGroup);
221  break;
222  case 2:
223  coerceValue(value, myPlaneGroup);
224  break;
225  case 3:
226  coerceValue(value, myPlanes);
227  break;
228  case 4:
229  coerceValue(value, myLayoutType);
230  break;
231  case 5:
232  coerceValue(value, myScaleType);
233  break;
234  case 6:
235  coerceValue(value, mySpacing);
236  break;
237  case 7:
238  coerceValue(value, myRotateOrder);
239  break;
240  case 8:
241  coerceValue(value, myRotate);
242  break;
243 
244  }
245  }
246 
247  bool isParmColorRamp(exint idx) const override
248  {
249  switch (idx)
250  {
251 
252  }
253  return false;
254  }
255 
256  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
257  { doGetParmValue(idx, instance, value); }
258  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
259  { doGetParmValue(idx, instance, value); }
260  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
261  { doGetParmValue(idx, instance, value); }
262  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
263  { doGetParmValue(idx, instance, value); }
264  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
265  { doGetParmValue(idx, instance, value); }
266  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
267  { doGetParmValue(idx, instance, value); }
268  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
269  { doGetParmValue(idx, instance, value); }
270  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
271  { doGetParmValue(idx, instance, value); }
272  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
273  { doGetParmValue(idx, instance, value); }
274  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
275  { doGetParmValue(idx, instance, value); }
276  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
277  { doGetParmValue(idx, instance, value); }
278 
279  template <typename T>
280  void
281  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
282  {
283  if (idx.size() < 1)
284  return;
285  UT_ASSERT(idx.size() == instance.size()+1);
286  if (idx.size() != instance.size()+1)
287  return;
288  switch (idx[0])
289  {
290  case 0:
291  coerceValue(myUVAttrib, ( ( value ) ));
292  break;
293  case 1:
294  coerceValue(myGroup, ( ( value ) ));
295  break;
296  case 2:
297  coerceValue(myPlaneGroup, ( ( value ) ));
298  break;
299  case 3:
300  coerceValue(myPlanes, clampMinValue(0, clampMaxValue(3, value ) ));
301  break;
302  case 4:
303  coerceValue(myLayoutType, clampMinValue(0, clampMaxValue(1, value ) ));
304  break;
305  case 5:
306  coerceValue(myScaleType, clampMinValue(0, clampMaxValue(2, value ) ));
307  break;
308  case 6:
309  coerceValue(mySpacing, clampMinValue(0, ( value ) ));
310  break;
311  case 7:
312  coerceValue(myRotateOrder, clampMinValue(0, clampMaxValue(5, value ) ));
313  break;
314  case 8:
315  coerceValue(myRotate, ( ( value ) ));
316  break;
317 
318  }
319  }
320 
321  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
322  { doSetParmValue(idx, instance, value); }
323  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
324  { doSetParmValue(idx, instance, value); }
325  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
326  { doSetParmValue(idx, instance, value); }
327  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
328  { doSetParmValue(idx, instance, value); }
329  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
330  { doSetParmValue(idx, instance, value); }
331  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
332  { doSetParmValue(idx, instance, value); }
333  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
334  { doSetParmValue(idx, instance, value); }
335  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
336  { doSetParmValue(idx, instance, value); }
337  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
338  { doSetParmValue(idx, instance, value); }
339  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
340  { doSetParmValue(idx, instance, value); }
341  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
342  { doSetParmValue(idx, instance, value); }
343 
344  exint getNestNumParms(TempIndex idx) const override
345  {
346  if (idx.size() == 0)
347  return 9;
348  switch (idx[0])
349  {
350 
351  }
352  // Invalid
353  return 0;
354  }
355 
356  const char *getNestParmName(TempIndex fieldnum) const override
357  {
358  if (fieldnum.size() < 1)
359  return 0;
360  switch (fieldnum[0])
361  {
362  case 0:
363  return "uvattrib";
364  case 1:
365  return "group";
366  case 2:
367  return "planegroup";
368  case 3:
369  return "nplanes";
370  case 4:
371  return "layout";
372  case 5:
373  return "scale";
374  case 6:
375  return "spacing";
376  case 7:
377  return "rOrd";
378  case 8:
379  return "r";
380 
381  }
382  return 0;
383  }
384 
385  ParmType getNestParmType(TempIndex fieldnum) const override
386  {
387  if (fieldnum.size() < 1)
388  return PARM_UNSUPPORTED;
389  switch (fieldnum[0])
390  {
391  case 0:
392  return PARM_STRING;
393  case 1:
394  return PARM_STRING;
395  case 2:
396  return PARM_STRING;
397  case 3:
398  return PARM_INTEGER;
399  case 4:
400  return PARM_INTEGER;
401  case 5:
402  return PARM_INTEGER;
403  case 6:
404  return PARM_FLOAT;
405  case 7:
406  return PARM_INTEGER;
407  case 8:
408  return PARM_VECTOR3;
409 
410  }
411  return PARM_UNSUPPORTED;
412  }
413 
414  // Boiler plate to load individual types.
415  static void loadData(UT_IStream &is, int64 &v)
416  { is.bread(&v, 1); }
417  static void loadData(UT_IStream &is, bool &v)
418  { int64 iv; is.bread(&iv, 1); v = iv; }
419  static void loadData(UT_IStream &is, fpreal64 &v)
420  { is.bread<fpreal64>(&v, 1); }
421  static void loadData(UT_IStream &is, UT_Vector2D &v)
422  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
423  static void loadData(UT_IStream &is, UT_Vector3D &v)
424  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
425  is.bread<fpreal64>(&v.z(), 1); }
426  static void loadData(UT_IStream &is, UT_Vector4D &v)
427  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
428  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
429  static void loadData(UT_IStream &is, UT_Matrix2D &v)
430  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
431  static void loadData(UT_IStream &is, UT_Matrix3D &v)
432  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
433  static void loadData(UT_IStream &is, UT_Matrix4D &v)
434  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
435  static void loadData(UT_IStream &is, UT_Vector2I &v)
436  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
437  static void loadData(UT_IStream &is, UT_Vector3I &v)
438  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
439  is.bread<int64>(&v.z(), 1); }
440  static void loadData(UT_IStream &is, UT_Vector4I &v)
441  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
442  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
444  { is.bread(v); }
446  { UT_StringHolder rampdata;
447  loadData(is, rampdata);
448  if (rampdata.isstring())
449  {
450  v.reset(new UT_Ramp());
451  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
452  v->load(istr);
453  }
454  else v.reset();
455  }
458  loadData(is, data);
459  if (data.isstring())
460  {
461  // Find the data type.
462  const char *colon = UT_StringWrap(data).findChar(':');
463  if (colon)
464  {
465  int typelen = colon - data.buffer();
467  type.strncpy(data.buffer(), typelen);
468  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
469 
470  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
471  }
472  }
473  else v.reset();
474  }
475 
476  static void saveData(std::ostream &os, int64 v)
477  { UTwrite(os, &v); }
478  static void saveData(std::ostream &os, bool v)
479  { int64 iv = v; UTwrite(os, &iv); }
480  static void saveData(std::ostream &os, fpreal64 v)
481  { UTwrite<fpreal64>(os, &v); }
482  static void saveData(std::ostream &os, UT_Vector2D v)
483  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
484  static void saveData(std::ostream &os, UT_Vector3D v)
485  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
486  UTwrite<fpreal64>(os, &v.z()); }
487  static void saveData(std::ostream &os, UT_Vector4D v)
488  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
489  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
490  static void saveData(std::ostream &os, UT_Matrix2D v)
492  static void saveData(std::ostream &os, UT_Matrix3D v)
494  static void saveData(std::ostream &os, UT_Matrix4D v)
496  static void saveData(std::ostream &os, UT_StringHolder s)
497  { UT_StringWrap(s).saveBinary(os); }
498  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
500  UT_OStringStream ostr;
501  if (s) s->save(ostr);
502  result = ostr.str();
503  saveData(os, result);
504  }
505  static void saveData(std::ostream &os, PRM_DataItemHandle s)
507  UT_OStringStream ostr;
508  if (s)
509  {
510  ostr << s->getDataTypeToken();
511  ostr << ":";
512  s->saveBinary(ostr);
513  }
514  result = ostr.str();
515  saveData(os, result);
516  }
517 
518 
519  void save(std::ostream &os) const
520  {
521  int32 v = version();
522  UTwrite(os, &v);
523  saveData(os, myUVAttrib);
524  saveData(os, myGroup);
525  saveData(os, myPlaneGroup);
526  saveData(os, myPlanes);
527  saveData(os, myLayoutType);
528  saveData(os, myScaleType);
529  saveData(os, mySpacing);
530  saveData(os, myRotateOrder);
531  saveData(os, myRotate);
532 
533  }
534 
535  bool load(UT_IStream &is)
536  {
537  int32 v;
538  is.bread(&v, 1);
539  if (version() != v)
540  {
541  // Fail incompatible versions
542  return false;
543  }
544  loadData(is, myUVAttrib);
545  loadData(is, myGroup);
546  loadData(is, myPlaneGroup);
547  loadData(is, myPlanes);
548  loadData(is, myLayoutType);
549  loadData(is, myScaleType);
550  loadData(is, mySpacing);
551  loadData(is, myRotateOrder);
552  loadData(is, myRotate);
553 
554  return true;
555  }
556 
557  const UT_StringHolder & getUVAttrib() const { return myUVAttrib; }
558  void setUVAttrib(const UT_StringHolder & val) { myUVAttrib = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getUVAttrib();
564  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
565  return result;
566  }
567  const UT_StringHolder & getGroup() const { return myGroup; }
568  void setGroup(const UT_StringHolder & val) { myGroup = val; }
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getGroup();
574  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
575  return result;
576  }
577  const UT_StringHolder & getPlaneGroup() const { return myPlaneGroup; }
578  void setPlaneGroup(const UT_StringHolder & val) { myPlaneGroup = val; }
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getPlaneGroup();
584  OP_Utils::evalOpParm(result, thissop, "planegroup", cookparms.getCookTime(), 0);
585  return result;
586  }
587  Planes getPlanes() const { return Planes(myPlanes); }
588  void setPlanes(Planes val) { myPlanes = int64(val); }
589  Planes opPlanes(const SOP_NodeVerb::CookParms &cookparms) const
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getPlanes();
593  int64 result;
594  OP_Utils::evalOpParm(result, thissop, "nplanes", cookparms.getCookTime(), 0);
595  return Planes(result);
596  }
597  LayoutType getLayoutType() const { return LayoutType(myLayoutType); }
598  void setLayoutType(LayoutType val) { myLayoutType = int64(val); }
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getLayoutType();
603  int64 result;
604  OP_Utils::evalOpParm(result, thissop, "layout", cookparms.getCookTime(), 0);
605  return LayoutType(result);
606  }
607  ScaleType getScaleType() const { return ScaleType(myScaleType); }
608  void setScaleType(ScaleType val) { myScaleType = int64(val); }
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getScaleType();
613  int64 result;
614  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
615  return ScaleType(result);
616  }
617  fpreal64 getSpacing() const { return mySpacing; }
618  void setSpacing(fpreal64 val) { mySpacing = val; }
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getSpacing();
624  OP_Utils::evalOpParm(result, thissop, "spacing", cookparms.getCookTime(), 0);
625  return result;
626  }
627  RotateOrder getRotateOrder() const { return RotateOrder(myRotateOrder); }
628  void setRotateOrder(RotateOrder val) { myRotateOrder = int64(val); }
630  {
631  SOP_Node *thissop = cookparms.getNode();
632  if (!thissop) return getRotateOrder();
633  int64 result;
634  OP_Utils::evalOpParm(result, thissop, "rOrd", cookparms.getCookTime(), 0);
635  return RotateOrder(result);
636  }
637  UT_Vector3D getRotate() const { return myRotate; }
638  void setRotate(UT_Vector3D val) { myRotate = val; }
640  {
641  SOP_Node *thissop = cookparms.getNode();
642  if (!thissop) return getRotate();
644  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
645  return result;
646  }
647 
648 private:
649  UT_StringHolder myUVAttrib;
650  UT_StringHolder myGroup;
651  UT_StringHolder myPlaneGroup;
652  int64 myPlanes;
653  int64 myLayoutType;
654  int64 myScaleType;
655  fpreal64 mySpacing;
656  int64 myRotateOrder;
657  UT_Vector3D myRotate;
658 
659 };
SYS_FORCE_INLINE UT_StringHolder getToken(Planes enum_value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setRotate(UT_Vector3D val)
static void saveData(std::ostream &os, bool v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
bool isParmColorRamp(exint idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void copyFrom(const OP_NodeParms *src) override
UT_StringHolder opPlaneGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, int64 &v)
UT_Vector3D getRotate() const
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
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setPlaneGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
UT_Vector3D opRotate(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
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
GLdouble s
Definition: glad.h:3009
ParmType getNestParmType(TempIndex fieldnum) const override
bool operator==(const SOP_UVUnwrapParms &src) const
void loadFromOpSubclass(const LoadParms &loadparms) override
const UT_StringHolder & getPlaneGroup() const
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
**But if you need a result
Definition: thread.h:613
static void loadData(UT_IStream &is, UT_Vector3I &v)
void save(std::ostream &os) const
static void loadData(UT_IStream &is, fpreal64 &v)
bool load(UT_IStream &is)
void setPlanes(Planes val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
virtual NodeIdx getInput(NodeIdx idx, int input, bool markused=false) const =0
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
LayoutType opLayoutType(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
Planes getPlanes() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
RotateOrder getRotateOrder() const
static void saveData(std::ostream &os, fpreal64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
UT_StringHolder opUVAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const UT_StringHolder & getUVAttrib() const
exint length() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
long long int64
Definition: SYS_Types.h:116
void setRotateOrder(RotateOrder val)
LayoutType getLayoutType() const
UT_Vector3T< fpreal64 > UT_Vector3D
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
exint getNestNumParms(TempIndex idx) const override
GT_API const UT_StringHolder version
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setSpacing(fpreal64 val)
bool operator!=(const SOP_UVUnwrapParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setScaleType(ScaleType val)
ScaleType getScaleType() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
fpreal64 getSpacing() const
fpreal64 opSpacing(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
Planes opPlanes(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_Vector2D v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
static void saveData(std::ostream &os, PRM_DataItemHandle s)
ScaleType opScaleType(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setUVAttrib(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
RotateOrder opRotateOrder(const SOP_NodeVerb::CookParms &cookparms) const
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_StringHolder s)
type
Definition: core.h:1059
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void setLayoutType(LayoutType val)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663