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