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  enum class LayoutType
33  {
34  STRIP = 0,
35  SQUARE
36  };
37  enum class ScaleType
38  {
39  NONE = 0,
40  UNIFORM,
41  STRETCH
42  };
43  enum class RotateOrder
44  {
45  XYZ = 0,
46  XZY,
47  YXZ,
48  YZX,
49  ZXY,
50  ZYX
51  };
52 }
53 
54 
56 {
57 public:
58  static int version() { return 1; }
59 
61  {
62  myUVAttrib = "uv"_UTsh;
63  myGroup = ""_UTsh;
64  myPlaneGroup = ""_UTsh;
65  myPlanes = 2;
66  myLayoutType = 1;
67  myScaleType = 1;
68  mySpacing = 2;
69  myRotateOrder = 0;
70  myRotate = UT_Vector3D(0,0,0);
71 
72  }
73 
74  explicit SOP_UVUnwrapParms(const SOP_UVUnwrapParms &) = default;
75  SOP_UVUnwrapParms &operator=(const SOP_UVUnwrapParms &) = default;
76  SOP_UVUnwrapParms(SOP_UVUnwrapParms &&) noexcept = default;
77  SOP_UVUnwrapParms &operator=(SOP_UVUnwrapParms &&) noexcept = default;
78 
79  ~SOP_UVUnwrapParms() override {}
80 
81  bool operator==(const SOP_UVUnwrapParms &src) const
82  {
83  if (myUVAttrib != src.myUVAttrib) return false;
84  if (myGroup != src.myGroup) return false;
85  if (myPlaneGroup != src.myPlaneGroup) return false;
86  if (myPlanes != src.myPlanes) return false;
87  if (myLayoutType != src.myLayoutType) return false;
88  if (myScaleType != src.myScaleType) return false;
89  if (mySpacing != src.mySpacing) return false;
90  if (myRotateOrder != src.myRotateOrder) return false;
91  if (myRotate != src.myRotate) return false;
92 
93  return true;
94  }
95  bool operator!=(const SOP_UVUnwrapParms &src) const
96  {
97  return !operator==(src);
98  }
103 
104 
105 
106  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
107  {
108  myUVAttrib = "uv"_UTsh;
109  if (true)
110  graph->evalOpParm(myUVAttrib, nodeidx, "uvattrib", time, 0);
111  myGroup = ""_UTsh;
112  if (true)
113  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
114  myPlaneGroup = ""_UTsh;
115  if (true && ( (true&&!((((graph->getInput(nodeidx,1)>=0)==0)))) ) )
116  graph->evalOpParm(myPlaneGroup, nodeidx, "planegroup", time, 0);
117  myPlanes = 2;
118  if (true && ( (true&&!((((graph->getInput(nodeidx,1)>=0)!=0)))) ) )
119  graph->evalOpParm(myPlanes, nodeidx, "nplanes", time, 0);
120  myLayoutType = 1;
121  if (true)
122  graph->evalOpParm(myLayoutType, nodeidx, "layout", time, 0);
123  myScaleType = 1;
124  if (true)
125  graph->evalOpParm(myScaleType, nodeidx, "scale", time, 0);
126  mySpacing = 2;
127  if (true)
128  graph->evalOpParm(mySpacing, nodeidx, "spacing", time, 0);
129  myRotateOrder = 0;
130  if (true)
131  graph->evalOpParm(myRotateOrder, nodeidx, "rOrd", time, 0);
132  myRotate = UT_Vector3D(0,0,0);
133  if (true)
134  graph->evalOpParm(myRotate, nodeidx, "r", time, 0);
135 
136  }
137 
138 
139  void loadFromOpSubclass(const LoadParms &loadparms) override
140  {
141  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
142  }
143 
144 
145  void copyFrom(const OP_NodeParms *src) override
146  {
147  *this = *((const SOP_UVUnwrapParms *)src);
148  }
149 
150  template <typename T>
151  void
152  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
153  {
154  if (idx.size() < 1)
155  return;
156  UT_ASSERT(idx.size() == instance.size()+1);
157  if (idx.size() != instance.size()+1)
158  return;
159  switch (idx[0])
160  {
161  case 0:
162  coerceValue(value, myUVAttrib);
163  break;
164  case 1:
165  coerceValue(value, myGroup);
166  break;
167  case 2:
168  coerceValue(value, myPlaneGroup);
169  break;
170  case 3:
171  coerceValue(value, myPlanes);
172  break;
173  case 4:
174  coerceValue(value, myLayoutType);
175  break;
176  case 5:
177  coerceValue(value, myScaleType);
178  break;
179  case 6:
180  coerceValue(value, mySpacing);
181  break;
182  case 7:
183  coerceValue(value, myRotateOrder);
184  break;
185  case 8:
186  coerceValue(value, myRotate);
187  break;
188 
189  }
190  }
191 
192  bool isParmColorRamp(exint idx) const override
193  {
194  switch (idx)
195  {
196 
197  }
198  return false;
199  }
200 
201  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
222  { doGetParmValue(idx, instance, value); }
223 
224  template <typename T>
225  void
226  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
227  {
228  if (idx.size() < 1)
229  return;
230  UT_ASSERT(idx.size() == instance.size()+1);
231  if (idx.size() != instance.size()+1)
232  return;
233  switch (idx[0])
234  {
235  case 0:
236  coerceValue(myUVAttrib, ( ( value ) ));
237  break;
238  case 1:
239  coerceValue(myGroup, ( ( value ) ));
240  break;
241  case 2:
242  coerceValue(myPlaneGroup, ( ( value ) ));
243  break;
244  case 3:
245  coerceValue(myPlanes, clampMinValue(0, clampMaxValue(3, value ) ));
246  break;
247  case 4:
248  coerceValue(myLayoutType, clampMinValue(0, clampMaxValue(1, value ) ));
249  break;
250  case 5:
251  coerceValue(myScaleType, clampMinValue(0, clampMaxValue(2, value ) ));
252  break;
253  case 6:
254  coerceValue(mySpacing, clampMinValue(0, ( value ) ));
255  break;
256  case 7:
257  coerceValue(myRotateOrder, clampMinValue(0, clampMaxValue(5, value ) ));
258  break;
259  case 8:
260  coerceValue(myRotate, ( ( value ) ));
261  break;
262 
263  }
264  }
265 
266  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
287  { doSetParmValue(idx, instance, value); }
288 
289  exint getNestNumParms(TempIndex idx) const override
290  {
291  if (idx.size() == 0)
292  return 9;
293  switch (idx[0])
294  {
295 
296  }
297  // Invalid
298  return 0;
299  }
300 
301  const char *getNestParmName(TempIndex fieldnum) const override
302  {
303  if (fieldnum.size() < 1)
304  return 0;
305  switch (fieldnum[0])
306  {
307  case 0:
308  return "uvattrib";
309  case 1:
310  return "group";
311  case 2:
312  return "planegroup";
313  case 3:
314  return "nplanes";
315  case 4:
316  return "layout";
317  case 5:
318  return "scale";
319  case 6:
320  return "spacing";
321  case 7:
322  return "rOrd";
323  case 8:
324  return "r";
325 
326  }
327  return 0;
328  }
329 
330  ParmType getNestParmType(TempIndex fieldnum) const override
331  {
332  if (fieldnum.size() < 1)
333  return PARM_UNSUPPORTED;
334  switch (fieldnum[0])
335  {
336  case 0:
337  return PARM_STRING;
338  case 1:
339  return PARM_STRING;
340  case 2:
341  return PARM_STRING;
342  case 3:
343  return PARM_INTEGER;
344  case 4:
345  return PARM_INTEGER;
346  case 5:
347  return PARM_INTEGER;
348  case 6:
349  return PARM_FLOAT;
350  case 7:
351  return PARM_INTEGER;
352  case 8:
353  return PARM_VECTOR3;
354 
355  }
356  return PARM_UNSUPPORTED;
357  }
358 
359  // Boiler plate to load individual types.
360  static void loadData(UT_IStream &is, int64 &v)
361  { is.bread(&v, 1); }
362  static void loadData(UT_IStream &is, bool &v)
363  { int64 iv; is.bread(&iv, 1); v = iv; }
364  static void loadData(UT_IStream &is, fpreal64 &v)
365  { is.bread<fpreal64>(&v, 1); }
366  static void loadData(UT_IStream &is, UT_Vector2D &v)
367  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
368  static void loadData(UT_IStream &is, UT_Vector3D &v)
369  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
370  is.bread<fpreal64>(&v.z(), 1); }
371  static void loadData(UT_IStream &is, UT_Vector4D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
373  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
374  static void loadData(UT_IStream &is, UT_Matrix2D &v)
375  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
376  static void loadData(UT_IStream &is, UT_Matrix3D &v)
377  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
378  static void loadData(UT_IStream &is, UT_Matrix4D &v)
379  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
380  static void loadData(UT_IStream &is, UT_Vector2I &v)
381  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
382  static void loadData(UT_IStream &is, UT_Vector3I &v)
383  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
384  is.bread<int64>(&v.z(), 1); }
385  static void loadData(UT_IStream &is, UT_Vector4I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
387  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
389  { is.bread(v); }
391  { UT_StringHolder rampdata;
392  loadData(is, rampdata);
393  if (rampdata.isstring())
394  {
395  v.reset(new UT_Ramp());
396  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
397  v->load(istr);
398  }
399  else v.reset();
400  }
403  loadData(is, data);
404  if (data.isstring())
405  {
406  // Find the data type.
407  const char *colon = UT_StringWrap(data).findChar(':');
408  if (colon)
409  {
410  int typelen = colon - data.buffer();
412  type.strncpy(data.buffer(), typelen);
413  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
414 
415  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
416  }
417  }
418  else v.reset();
419  }
420 
421  static void saveData(std::ostream &os, int64 v)
422  { UTwrite(os, &v); }
423  static void saveData(std::ostream &os, bool v)
424  { int64 iv = v; UTwrite(os, &iv); }
425  static void saveData(std::ostream &os, fpreal64 v)
426  { UTwrite<fpreal64>(os, &v); }
427  static void saveData(std::ostream &os, UT_Vector2D v)
428  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
429  static void saveData(std::ostream &os, UT_Vector3D v)
430  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
431  UTwrite<fpreal64>(os, &v.z()); }
432  static void saveData(std::ostream &os, UT_Vector4D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
434  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
435  static void saveData(std::ostream &os, UT_Matrix2D v)
437  static void saveData(std::ostream &os, UT_Matrix3D v)
439  static void saveData(std::ostream &os, UT_Matrix4D v)
441  static void saveData(std::ostream &os, UT_StringHolder s)
442  { UT_StringWrap(s).saveBinary(os); }
443  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
445  UT_OStringStream ostr;
446  if (s) s->save(ostr);
447  result = ostr.str();
448  saveData(os, result);
449  }
450  static void saveData(std::ostream &os, PRM_DataItemHandle s)
452  UT_OStringStream ostr;
453  if (s)
454  {
455  ostr << s->getDataTypeToken();
456  ostr << ":";
457  s->saveBinary(ostr);
458  }
459  result = ostr.str();
460  saveData(os, result);
461  }
462 
463 
464  void save(std::ostream &os) const
465  {
466  int32 v = version();
467  UTwrite(os, &v);
468  saveData(os, myUVAttrib);
469  saveData(os, myGroup);
470  saveData(os, myPlaneGroup);
471  saveData(os, myPlanes);
472  saveData(os, myLayoutType);
473  saveData(os, myScaleType);
474  saveData(os, mySpacing);
475  saveData(os, myRotateOrder);
476  saveData(os, myRotate);
477 
478  }
479 
480  bool load(UT_IStream &is)
481  {
482  int32 v;
483  is.bread(&v, 1);
484  if (version() != v)
485  {
486  // Fail incompatible versions
487  return false;
488  }
489  loadData(is, myUVAttrib);
490  loadData(is, myGroup);
491  loadData(is, myPlaneGroup);
492  loadData(is, myPlanes);
493  loadData(is, myLayoutType);
494  loadData(is, myScaleType);
495  loadData(is, mySpacing);
496  loadData(is, myRotateOrder);
497  loadData(is, myRotate);
498 
499  return true;
500  }
501 
502  const UT_StringHolder & getUVAttrib() const { return myUVAttrib; }
503  void setUVAttrib(const UT_StringHolder & val) { myUVAttrib = val; }
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getUVAttrib();
509  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
510  return result;
511  }
512  const UT_StringHolder & getGroup() const { return myGroup; }
513  void setGroup(const UT_StringHolder & val) { myGroup = val; }
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getGroup();
519  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
520  return result;
521  }
522  const UT_StringHolder & getPlaneGroup() const { return myPlaneGroup; }
523  void setPlaneGroup(const UT_StringHolder & val) { myPlaneGroup = val; }
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getPlaneGroup();
529  OP_Utils::evalOpParm(result, thissop, "planegroup", cookparms.getCookTime(), 0);
530  return result;
531  }
532  Planes getPlanes() const { return Planes(myPlanes); }
533  void setPlanes(Planes val) { myPlanes = int64(val); }
534  Planes opPlanes(const SOP_NodeVerb::CookParms &cookparms) const
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return getPlanes();
538  int64 result;
539  OP_Utils::evalOpParm(result, thissop, "nplanes", cookparms.getCookTime(), 0);
540  return Planes(result);
541  }
542  LayoutType getLayoutType() const { return LayoutType(myLayoutType); }
543  void setLayoutType(LayoutType val) { myLayoutType = int64(val); }
545  {
546  SOP_Node *thissop = cookparms.getNode();
547  if (!thissop) return getLayoutType();
548  int64 result;
549  OP_Utils::evalOpParm(result, thissop, "layout", cookparms.getCookTime(), 0);
550  return LayoutType(result);
551  }
552  ScaleType getScaleType() const { return ScaleType(myScaleType); }
553  void setScaleType(ScaleType val) { myScaleType = int64(val); }
555  {
556  SOP_Node *thissop = cookparms.getNode();
557  if (!thissop) return getScaleType();
558  int64 result;
559  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
560  return ScaleType(result);
561  }
562  fpreal64 getSpacing() const { return mySpacing; }
563  void setSpacing(fpreal64 val) { mySpacing = val; }
565  {
566  SOP_Node *thissop = cookparms.getNode();
567  if (!thissop) return getSpacing();
569  OP_Utils::evalOpParm(result, thissop, "spacing", cookparms.getCookTime(), 0);
570  return result;
571  }
572  RotateOrder getRotateOrder() const { return RotateOrder(myRotateOrder); }
573  void setRotateOrder(RotateOrder val) { myRotateOrder = int64(val); }
575  {
576  SOP_Node *thissop = cookparms.getNode();
577  if (!thissop) return getRotateOrder();
578  int64 result;
579  OP_Utils::evalOpParm(result, thissop, "rOrd", cookparms.getCookTime(), 0);
580  return RotateOrder(result);
581  }
582  UT_Vector3D getRotate() const { return myRotate; }
583  void setRotate(UT_Vector3D val) { myRotate = val; }
585  {
586  SOP_Node *thissop = cookparms.getNode();
587  if (!thissop) return getRotate();
589  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
590  return result;
591  }
592 
593 private:
594  UT_StringHolder myUVAttrib;
595  UT_StringHolder myGroup;
596  UT_StringHolder myPlaneGroup;
597  int64 myPlanes;
598  int64 myLayoutType;
599  int64 myScaleType;
600  fpreal64 mySpacing;
601  int64 myRotateOrder;
602  UT_Vector3D myRotate;
603 
604 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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 coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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