HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_UVRelax.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_UVRelaxEnums
24 {
25  enum class Algorithm
26  {
27  SCP = 0,
28  HARM
29  };
30 
32  getToken(Algorithm enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Algorithm::SCP: return "scp"_sh;
37  case Algorithm::HARM: return "harm"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class Attrclass
43  {
44  DETAIL = 0,
45  PRIMITIVE,
46  POINT,
47  VERTEX
48  };
49 
51  getToken(Attrclass enum_value)
52  {
53  using namespace UT::Literal;
54  switch (enum_value) {
55  case Attrclass::DETAIL: return "detail"_sh;
56  case Attrclass::PRIMITIVE: return "primitive"_sh;
57  case Attrclass::POINT: return "point"_sh;
58  case Attrclass::VERTEX: return "vertex"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63 }
64 
65 
67 {
68 public:
69  static int version() { return 1; }
70 
72  {
73  myUVAttr = "uv"_UTsh;
74  myGroup = ""_UTsh;
75  myPingroup = ""_UTsh;
76  myAlgorithm = 0;
77  myIncludeBoundary = true;
78  myBoundaryflex = 0.1;
79  myTogglecorrection = false;
80  myAttrname = ""_UTsh;
81  myAttrclass = 2;
82 
83  }
84 
85  explicit SOP_UVRelaxParms(const SOP_UVRelaxParms &) = default;
86  SOP_UVRelaxParms &operator=(const SOP_UVRelaxParms &) = default;
87  SOP_UVRelaxParms(SOP_UVRelaxParms &&) noexcept = default;
88  SOP_UVRelaxParms &operator=(SOP_UVRelaxParms &&) noexcept = default;
89 
90  ~SOP_UVRelaxParms() override {}
91 
92  bool operator==(const SOP_UVRelaxParms &src) const
93  {
94  if (myUVAttr != src.myUVAttr) return false;
95  if (myGroup != src.myGroup) return false;
96  if (myPingroup != src.myPingroup) return false;
97  if (myAlgorithm != src.myAlgorithm) return false;
98  if (myIncludeBoundary != src.myIncludeBoundary) return false;
99  if (myBoundaryflex != src.myBoundaryflex) return false;
100  if (myTogglecorrection != src.myTogglecorrection) return false;
101  if (myAttrname != src.myAttrname) return false;
102  if (myAttrclass != src.myAttrclass) return false;
103 
104  return true;
105  }
106  bool operator!=(const SOP_UVRelaxParms &src) const
107  {
108  return !operator==(src);
109  }
112 
113 
114 
115  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
116  {
117  myUVAttr = "uv"_UTsh;
118  if (true)
119  graph->evalOpParm(myUVAttr, nodeidx, "uvattrib", time, 0);
120  myGroup = ""_UTsh;
121  if (true)
122  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
123  myPingroup = ""_UTsh;
124  if (true)
125  graph->evalOpParm(myPingroup, nodeidx, "pingroup", time, 0);
126  myAlgorithm = 0;
127  if (true)
128  graph->evalOpParm(myAlgorithm, nodeidx, "algorithm", time, 0);
129  myIncludeBoundary = true;
130  if (true)
131  graph->evalOpParm(myIncludeBoundary, nodeidx, "includeboundary", time, 0);
132  myBoundaryflex = 0.1;
133  if (true)
134  graph->evalOpParm(myBoundaryflex, nodeidx, "boundaryflex", time, 0);
135  myTogglecorrection = false;
136  if (true)
137  graph->evalOpParm(myTogglecorrection, nodeidx, "togglecorrection", time, 0);
138  myAttrname = ""_UTsh;
139  if (true)
140  graph->evalOpParm(myAttrname, nodeidx, "attrname", time, 0);
141  myAttrclass = 2;
142  if (true)
143  graph->evalOpParm(myAttrclass, nodeidx, "attrclass", time, 0);
144 
145  }
146 
147 
148  void loadFromOpSubclass(const LoadParms &loadparms) override
149  {
150  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
151  }
152 
153 
154  void copyFrom(const OP_NodeParms *src) override
155  {
156  *this = *((const SOP_UVRelaxParms *)src);
157  }
158 
159  template <typename T>
160  void
161  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
162  {
163  if (idx.size() < 1)
164  return;
165  UT_ASSERT(idx.size() == instance.size()+1);
166  if (idx.size() != instance.size()+1)
167  return;
168  switch (idx[0])
169  {
170  case 0:
171  coerceValue(value, myUVAttr);
172  break;
173  case 1:
174  coerceValue(value, myGroup);
175  break;
176  case 2:
177  coerceValue(value, myPingroup);
178  break;
179  case 3:
180  coerceValue(value, myAlgorithm);
181  break;
182  case 4:
183  coerceValue(value, myIncludeBoundary);
184  break;
185  case 5:
186  coerceValue(value, myBoundaryflex);
187  break;
188  case 6:
189  coerceValue(value, myTogglecorrection);
190  break;
191  case 7:
192  coerceValue(value, myAttrname);
193  break;
194  case 8:
195  coerceValue(value, myAttrclass);
196  break;
197 
198  }
199  }
200 
201  bool isParmColorRamp(exint idx) const override
202  {
203  switch (idx)
204  {
205 
206  }
207  return false;
208  }
209 
210  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
231  { doGetParmValue(idx, instance, value); }
232 
233  template <typename T>
234  void
235  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
236  {
237  if (idx.size() < 1)
238  return;
239  UT_ASSERT(idx.size() == instance.size()+1);
240  if (idx.size() != instance.size()+1)
241  return;
242  switch (idx[0])
243  {
244  case 0:
245  coerceValue(myUVAttr, ( ( value ) ));
246  break;
247  case 1:
248  coerceValue(myGroup, ( ( value ) ));
249  break;
250  case 2:
251  coerceValue(myPingroup, ( ( value ) ));
252  break;
253  case 3:
254  coerceValue(myAlgorithm, clampMinValue(0, clampMaxValue(1, value ) ));
255  break;
256  case 4:
257  coerceValue(myIncludeBoundary, ( ( value ) ));
258  break;
259  case 5:
260  coerceValue(myBoundaryflex, clampMinValue(0, ( value ) ));
261  break;
262  case 6:
263  coerceValue(myTogglecorrection, ( ( value ) ));
264  break;
265  case 7:
266  coerceValue(myAttrname, ( ( value ) ));
267  break;
268  case 8:
269  coerceValue(myAttrclass, clampMinValue(0, clampMaxValue(3, value ) ));
270  break;
271 
272  }
273  }
274 
275  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
296  { doSetParmValue(idx, instance, value); }
297 
298  exint getNestNumParms(TempIndex idx) const override
299  {
300  if (idx.size() == 0)
301  return 9;
302  switch (idx[0])
303  {
304 
305  }
306  // Invalid
307  return 0;
308  }
309 
310  const char *getNestParmName(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return 0;
314  switch (fieldnum[0])
315  {
316  case 0:
317  return "uvattrib";
318  case 1:
319  return "group";
320  case 2:
321  return "pingroup";
322  case 3:
323  return "algorithm";
324  case 4:
325  return "includeboundary";
326  case 5:
327  return "boundaryflex";
328  case 6:
329  return "togglecorrection";
330  case 7:
331  return "attrname";
332  case 8:
333  return "attrclass";
334 
335  }
336  return 0;
337  }
338 
339  ParmType getNestParmType(TempIndex fieldnum) const override
340  {
341  if (fieldnum.size() < 1)
342  return PARM_UNSUPPORTED;
343  switch (fieldnum[0])
344  {
345  case 0:
346  return PARM_STRING;
347  case 1:
348  return PARM_STRING;
349  case 2:
350  return PARM_STRING;
351  case 3:
352  return PARM_INTEGER;
353  case 4:
354  return PARM_INTEGER;
355  case 5:
356  return PARM_FLOAT;
357  case 6:
358  return PARM_INTEGER;
359  case 7:
360  return PARM_STRING;
361  case 8:
362  return PARM_INTEGER;
363 
364  }
365  return PARM_UNSUPPORTED;
366  }
367 
368  // Boiler plate to load individual types.
369  static void loadData(UT_IStream &is, int64 &v)
370  { is.bread(&v, 1); }
371  static void loadData(UT_IStream &is, bool &v)
372  { int64 iv; is.bread(&iv, 1); v = iv; }
373  static void loadData(UT_IStream &is, fpreal64 &v)
374  { is.bread<fpreal64>(&v, 1); }
375  static void loadData(UT_IStream &is, UT_Vector2D &v)
376  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
377  static void loadData(UT_IStream &is, UT_Vector3D &v)
378  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
379  is.bread<fpreal64>(&v.z(), 1); }
380  static void loadData(UT_IStream &is, UT_Vector4D &v)
381  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
382  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix2D &v)
384  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Matrix3D &v)
386  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
387  static void loadData(UT_IStream &is, UT_Matrix4D &v)
388  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
389  static void loadData(UT_IStream &is, UT_Vector2I &v)
390  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
391  static void loadData(UT_IStream &is, UT_Vector3I &v)
392  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
393  is.bread<int64>(&v.z(), 1); }
394  static void loadData(UT_IStream &is, UT_Vector4I &v)
395  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
396  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
398  { is.bread(v); }
400  { UT_StringHolder rampdata;
401  loadData(is, rampdata);
402  if (rampdata.isstring())
403  {
404  v.reset(new UT_Ramp());
405  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
406  v->load(istr);
407  }
408  else v.reset();
409  }
412  loadData(is, data);
413  if (data.isstring())
414  {
415  // Find the data type.
416  const char *colon = UT_StringWrap(data).findChar(':');
417  if (colon)
418  {
419  int typelen = colon - data.buffer();
421  type.strncpy(data.buffer(), typelen);
422  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
423 
424  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
425  }
426  }
427  else v.reset();
428  }
429 
430  static void saveData(std::ostream &os, int64 v)
431  { UTwrite(os, &v); }
432  static void saveData(std::ostream &os, bool v)
433  { int64 iv = v; UTwrite(os, &iv); }
434  static void saveData(std::ostream &os, fpreal64 v)
435  { UTwrite<fpreal64>(os, &v); }
436  static void saveData(std::ostream &os, UT_Vector2D v)
437  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
438  static void saveData(std::ostream &os, UT_Vector3D v)
439  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
440  UTwrite<fpreal64>(os, &v.z()); }
441  static void saveData(std::ostream &os, UT_Vector4D v)
442  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
443  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
444  static void saveData(std::ostream &os, UT_Matrix2D v)
446  static void saveData(std::ostream &os, UT_Matrix3D v)
448  static void saveData(std::ostream &os, UT_Matrix4D v)
450  static void saveData(std::ostream &os, UT_StringHolder s)
451  { UT_StringWrap(s).saveBinary(os); }
452  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
454  UT_OStringStream ostr;
455  if (s) s->save(ostr);
456  result = ostr.str();
457  saveData(os, result);
458  }
459  static void saveData(std::ostream &os, PRM_DataItemHandle s)
461  UT_OStringStream ostr;
462  if (s)
463  {
464  ostr << s->getDataTypeToken();
465  ostr << ":";
466  s->saveBinary(ostr);
467  }
468  result = ostr.str();
469  saveData(os, result);
470  }
471 
472 
473  void save(std::ostream &os) const
474  {
475  int32 v = version();
476  UTwrite(os, &v);
477  saveData(os, myUVAttr);
478  saveData(os, myGroup);
479  saveData(os, myPingroup);
480  saveData(os, myAlgorithm);
481  saveData(os, myIncludeBoundary);
482  saveData(os, myBoundaryflex);
483  saveData(os, myTogglecorrection);
484  saveData(os, myAttrname);
485  saveData(os, myAttrclass);
486 
487  }
488 
489  bool load(UT_IStream &is)
490  {
491  int32 v;
492  is.bread(&v, 1);
493  if (version() != v)
494  {
495  // Fail incompatible versions
496  return false;
497  }
498  loadData(is, myUVAttr);
499  loadData(is, myGroup);
500  loadData(is, myPingroup);
501  loadData(is, myAlgorithm);
502  loadData(is, myIncludeBoundary);
503  loadData(is, myBoundaryflex);
504  loadData(is, myTogglecorrection);
505  loadData(is, myAttrname);
506  loadData(is, myAttrclass);
507 
508  return true;
509  }
510 
511  const UT_StringHolder & getUVAttr() const { return myUVAttr; }
512  void setUVAttr(const UT_StringHolder & val) { myUVAttr = val; }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getUVAttr();
518  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
519  return result;
520  }
521  const UT_StringHolder & getGroup() const { return myGroup; }
522  void setGroup(const UT_StringHolder & val) { myGroup = val; }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getGroup();
528  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
529  return result;
530  }
531  const UT_StringHolder & getPingroup() const { return myPingroup; }
532  void setPingroup(const UT_StringHolder & val) { myPingroup = val; }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getPingroup();
538  OP_Utils::evalOpParm(result, thissop, "pingroup", cookparms.getCookTime(), 0);
539  return result;
540  }
541  Algorithm getAlgorithm() const { return Algorithm(myAlgorithm); }
542  void setAlgorithm(Algorithm val) { myAlgorithm = int64(val); }
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getAlgorithm();
547  int64 result;
548  OP_Utils::evalOpParm(result, thissop, "algorithm", cookparms.getCookTime(), 0);
549  return Algorithm(result);
550  }
551  bool getIncludeBoundary() const { return myIncludeBoundary; }
552  void setIncludeBoundary(bool val) { myIncludeBoundary = val; }
553  bool opIncludeBoundary(const SOP_NodeVerb::CookParms &cookparms) const
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getIncludeBoundary();
557  bool result;
558  OP_Utils::evalOpParm(result, thissop, "includeboundary", cookparms.getCookTime(), 0);
559  return result;
560  }
561  fpreal64 getBoundaryflex() const { return myBoundaryflex; }
562  void setBoundaryflex(fpreal64 val) { myBoundaryflex = val; }
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getBoundaryflex();
568  OP_Utils::evalOpParm(result, thissop, "boundaryflex", cookparms.getCookTime(), 0);
569  return result;
570  }
571  bool getTogglecorrection() const { return myTogglecorrection; }
572  void setTogglecorrection(bool val) { myTogglecorrection = val; }
573  bool opTogglecorrection(const SOP_NodeVerb::CookParms &cookparms) const
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getTogglecorrection();
577  bool result;
578  OP_Utils::evalOpParm(result, thissop, "togglecorrection", cookparms.getCookTime(), 0);
579  return result;
580  }
581  const UT_StringHolder & getAttrname() const { return myAttrname; }
582  void setAttrname(const UT_StringHolder & val) { myAttrname = val; }
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getAttrname();
588  OP_Utils::evalOpParm(result, thissop, "attrname", cookparms.getCookTime(), 0);
589  return result;
590  }
591  Attrclass getAttrclass() const { return Attrclass(myAttrclass); }
592  void setAttrclass(Attrclass val) { myAttrclass = int64(val); }
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getAttrclass();
597  int64 result;
598  OP_Utils::evalOpParm(result, thissop, "attrclass", cookparms.getCookTime(), 0);
599  return Attrclass(result);
600  }
601 
602 private:
603  UT_StringHolder myUVAttr;
604  UT_StringHolder myGroup;
605  UT_StringHolder myPingroup;
606  int64 myAlgorithm;
607  bool myIncludeBoundary;
608  fpreal64 myBoundaryflex;
609  bool myTogglecorrection;
610  UT_StringHolder myAttrname;
611  int64 myAttrclass;
612 
613 };
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool operator==(const SOP_UVRelaxParms &src) const
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool load(UT_IStream &is)
void setAttrclass(Attrclass val)
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
const UT_StringHolder & getGroup() const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) 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
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE UT_StringHolder getToken(Algorithm enum_value)
**But if you need a result
Definition: thread.h:613
bool opIncludeBoundary(const SOP_NodeVerb::CookParms &cookparms) const
void setAttrname(const UT_StringHolder &val)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, bool v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void saveData(std::ostream &os, UT_Vector2D v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setPingroup(const UT_StringHolder &val)
double fpreal64
Definition: SYS_Types.h:201
static void saveData(std::ostream &os, PRM_DataItemHandle s)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setUVAttr(const UT_StringHolder &val)
void setAlgorithm(Algorithm val)
static void saveData(std::ostream &os, fpreal64 v)
exint length() const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
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
Attrclass opAttrclass(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
fpreal64 opBoundaryflex(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
Algorithm getAlgorithm() const
Algorithm opAlgorithm(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getAttrname() const
void copyFrom(const OP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool operator!=(const SOP_UVRelaxParms &src) const
void save(std::ostream &os) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setTogglecorrection(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const UT_StringHolder & getUVAttr() const
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool getTogglecorrection() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void saveData(std::ostream &os, UT_Matrix3D v)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
void setBoundaryflex(fpreal64 val)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
bool opTogglecorrection(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getBoundaryflex() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, UT_StringHolder s)
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, fpreal64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
#define SOP_API
Definition: SOP_API.h:10
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
UT_StringHolder opAttrname(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opUVAttr(const SOP_NodeVerb::CookParms &cookparms) const
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 loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GLboolean r
Definition: glcorearb.h:1222
Attrclass getAttrclass() const
exint getNestNumParms(TempIndex idx) const override
UT_StringHolder opPingroup(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
bool getIncludeBoundary() const
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
const char * getNestParmName(TempIndex fieldnum) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
static void saveData(std::ostream &os, UT_Vector3D v)
const UT_StringHolder & getPingroup() const
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setIncludeBoundary(bool val)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
static int version()
static void saveData(std::ostream &os, UT_Matrix4D v)