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 <OP/OP_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 
105  if (baseGetSignature() != src.baseGetSignature()) return false;
106 
107  return true;
108  }
109  bool operator!=(const SOP_UVRelaxParms &src) const
110  {
111  return !operator==(src);
112  }
115 
116 
117 
118  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
119  {
120  myUVAttr = "uv"_UTsh;
121  if (true)
122  graph->evalOpParm(myUVAttr, nodeidx, "uvattrib", time, graph->isDirect()?nullptr:depnode);
123  myGroup = ""_UTsh;
124  if (true)
125  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
126  myPingroup = ""_UTsh;
127  if (true)
128  graph->evalOpParm(myPingroup, nodeidx, "pingroup", time, graph->isDirect()?nullptr:depnode);
129  myAlgorithm = 0;
130  if (true)
131  graph->evalOpParm(myAlgorithm, nodeidx, "algorithm", time, graph->isDirect()?nullptr:depnode);
132  myIncludeBoundary = true;
133  if (true)
134  graph->evalOpParm(myIncludeBoundary, nodeidx, "includeboundary", time, graph->isDirect()?nullptr:depnode);
135  myBoundaryflex = 0.1;
136  if (true)
137  graph->evalOpParm(myBoundaryflex, nodeidx, "boundaryflex", time, graph->isDirect()?nullptr:depnode);
138  myTogglecorrection = false;
139  if (true)
140  graph->evalOpParm(myTogglecorrection, nodeidx, "togglecorrection", time, graph->isDirect()?nullptr:depnode);
141  myAttrname = ""_UTsh;
142  if (true)
143  graph->evalOpParm(myAttrname, nodeidx, "attrname", time, graph->isDirect()?nullptr:depnode);
144  myAttrclass = 2;
145  if (true)
146  graph->evalOpParm(myAttrclass, nodeidx, "attrclass", time, graph->isDirect()?nullptr:depnode);
147 
148  }
149 
150 
151  void loadFromOpSubclass(const LoadParms &loadparms) override
152  {
153  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
154  }
155 
156 
157  void copyFrom(const OP_NodeParms *src) override
158  {
159  *this = *((const SOP_UVRelaxParms *)src);
160  }
161 
162  template <typename T>
163  void
164  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
165  {
166  if (idx.size() < 1)
167  return;
168  UT_ASSERT(idx.size() == instance.size()+1);
169  if (idx.size() != instance.size()+1)
170  return;
171  switch (idx[0])
172  {
173  case 0:
174  coerceValue(value, myUVAttr);
175  break;
176  case 1:
177  coerceValue(value, myGroup);
178  break;
179  case 2:
180  coerceValue(value, myPingroup);
181  break;
182  case 3:
183  coerceValue(value, myAlgorithm);
184  break;
185  case 4:
186  coerceValue(value, myIncludeBoundary);
187  break;
188  case 5:
189  coerceValue(value, myBoundaryflex);
190  break;
191  case 6:
192  coerceValue(value, myTogglecorrection);
193  break;
194  case 7:
195  coerceValue(value, myAttrname);
196  break;
197  case 8:
198  coerceValue(value, myAttrclass);
199  break;
200 
201  }
202  }
203 
204  bool isParmColorRamp(exint idx) const override
205  {
206  switch (idx)
207  {
208 
209  }
210  return false;
211  }
212 
213  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
224  { doGetParmValue(idx, instance, value); }
225  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
226  { doGetParmValue(idx, instance, value); }
227  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
228  { doGetParmValue(idx, instance, value); }
229  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
230  { doGetParmValue(idx, instance, value); }
231  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
232  { doGetParmValue(idx, instance, value); }
233  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
234  { doGetParmValue(idx, instance, value); }
235 
236  template <typename T>
237  void
238  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
239  {
240  if (idx.size() < 1)
241  return;
242  UT_ASSERT(idx.size() == instance.size()+1);
243  if (idx.size() != instance.size()+1)
244  return;
245  switch (idx[0])
246  {
247  case 0:
248  coerceValue(myUVAttr, ( ( value ) ));
249  break;
250  case 1:
251  coerceValue(myGroup, ( ( value ) ));
252  break;
253  case 2:
254  coerceValue(myPingroup, ( ( value ) ));
255  break;
256  case 3:
257  coerceValue(myAlgorithm, clampMinValue(0, clampMaxValue(1, value ) ));
258  break;
259  case 4:
260  coerceValue(myIncludeBoundary, ( ( value ) ));
261  break;
262  case 5:
263  coerceValue(myBoundaryflex, clampMinValue(0, ( value ) ));
264  break;
265  case 6:
266  coerceValue(myTogglecorrection, ( ( value ) ));
267  break;
268  case 7:
269  coerceValue(myAttrname, ( ( value ) ));
270  break;
271  case 8:
272  coerceValue(myAttrclass, clampMinValue(0, clampMaxValue(3, value ) ));
273  break;
274 
275  }
276  }
277 
278  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
299  { doSetParmValue(idx, instance, value); }
300 
301  exint getNestNumParms(TempIndex idx) const override
302  {
303  if (idx.size() == 0)
304  return 9;
305  switch (idx[0])
306  {
307 
308  }
309  // Invalid
310  return 0;
311  }
312 
313  const char *getNestParmName(TempIndex fieldnum) const override
314  {
315  if (fieldnum.size() < 1)
316  return 0;
317  switch (fieldnum[0])
318  {
319  case 0:
320  return "uvattrib";
321  case 1:
322  return "group";
323  case 2:
324  return "pingroup";
325  case 3:
326  return "algorithm";
327  case 4:
328  return "includeboundary";
329  case 5:
330  return "boundaryflex";
331  case 6:
332  return "togglecorrection";
333  case 7:
334  return "attrname";
335  case 8:
336  return "attrclass";
337 
338  }
339  return 0;
340  }
341 
342  ParmType getNestParmType(TempIndex fieldnum) const override
343  {
344  if (fieldnum.size() < 1)
345  return PARM_UNSUPPORTED;
346  switch (fieldnum[0])
347  {
348  case 0:
349  return PARM_STRING;
350  case 1:
351  return PARM_STRING;
352  case 2:
353  return PARM_STRING;
354  case 3:
355  return PARM_INTEGER;
356  case 4:
357  return PARM_INTEGER;
358  case 5:
359  return PARM_FLOAT;
360  case 6:
361  return PARM_INTEGER;
362  case 7:
363  return PARM_STRING;
364  case 8:
365  return PARM_INTEGER;
366 
367  }
368  return PARM_UNSUPPORTED;
369  }
370 
371  // Boiler plate to load individual types.
372  static void loadData(UT_IStream &is, int64 &v)
373  { is.bread(&v, 1); }
374  static void loadData(UT_IStream &is, bool &v)
375  { int64 iv; is.bread(&iv, 1); v = iv; }
376  static void loadData(UT_IStream &is, fpreal64 &v)
377  { is.bread<fpreal64>(&v, 1); }
378  static void loadData(UT_IStream &is, UT_Vector2D &v)
379  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
380  static void loadData(UT_IStream &is, UT_Vector3D &v)
381  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
382  is.bread<fpreal64>(&v.z(), 1); }
383  static void loadData(UT_IStream &is, UT_Vector4D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
385  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
386  static void loadData(UT_IStream &is, UT_Matrix2D &v)
387  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
388  static void loadData(UT_IStream &is, UT_Matrix3D &v)
389  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
390  static void loadData(UT_IStream &is, UT_Matrix4D &v)
391  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
392  static void loadData(UT_IStream &is, UT_Vector2I &v)
393  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
394  static void loadData(UT_IStream &is, UT_Vector3I &v)
395  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
396  is.bread<int64>(&v.z(), 1); }
397  static void loadData(UT_IStream &is, UT_Vector4I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
399  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
401  { is.bread(v); }
403  { UT_StringHolder rampdata;
404  loadData(is, rampdata);
405  if (rampdata.isstring())
406  {
407  v.reset(new UT_Ramp());
408  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
409  v->load(istr);
410  }
411  else v.reset();
412  }
415  loadData(is, data);
416  if (data.isstring())
417  {
418  // Find the data type.
419  const char *colon = UT_StringWrap(data).findChar(':');
420  if (colon)
421  {
422  int typelen = colon - data.buffer();
424  type.strncpy(data.buffer(), typelen);
425  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
426 
427  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
428  }
429  }
430  else v.reset();
431  }
432 
433  static void saveData(std::ostream &os, int64 v)
434  { UTwrite(os, &v); }
435  static void saveData(std::ostream &os, bool v)
436  { int64 iv = v; UTwrite(os, &iv); }
437  static void saveData(std::ostream &os, fpreal64 v)
438  { UTwrite<fpreal64>(os, &v); }
439  static void saveData(std::ostream &os, UT_Vector2D v)
440  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
441  static void saveData(std::ostream &os, UT_Vector3D v)
442  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
443  UTwrite<fpreal64>(os, &v.z()); }
444  static void saveData(std::ostream &os, UT_Vector4D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
446  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
447  static void saveData(std::ostream &os, UT_Matrix2D v)
449  static void saveData(std::ostream &os, UT_Matrix3D v)
451  static void saveData(std::ostream &os, UT_Matrix4D v)
453  static void saveData(std::ostream &os, UT_StringHolder s)
454  { UT_StringWrap(s).saveBinary(os); }
455  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
457  UT_OStringStream ostr;
458  if (s) s->save(ostr);
459  result = ostr.str();
460  saveData(os, result);
461  }
462  static void saveData(std::ostream &os, PRM_DataItemHandle s)
464  UT_OStringStream ostr;
465  if (s)
466  {
467  ostr << s->getDataTypeToken();
468  ostr << ":";
469  s->saveBinary(ostr);
470  }
471  result = ostr.str();
472  saveData(os, result);
473  }
474 
475 
476  void save(std::ostream &os) const
477  {
478  int32 v = version();
479  UTwrite(os, &v);
480  saveData(os, myUVAttr);
481  saveData(os, myGroup);
482  saveData(os, myPingroup);
483  saveData(os, myAlgorithm);
484  saveData(os, myIncludeBoundary);
485  saveData(os, myBoundaryflex);
486  saveData(os, myTogglecorrection);
487  saveData(os, myAttrname);
488  saveData(os, myAttrclass);
489 
490  }
491 
492  bool load(UT_IStream &is)
493  {
494  int32 v;
495  is.bread(&v, 1);
496  if (version() != v)
497  {
498  // Fail incompatible versions
499  return false;
500  }
501  loadData(is, myUVAttr);
502  loadData(is, myGroup);
503  loadData(is, myPingroup);
504  loadData(is, myAlgorithm);
505  loadData(is, myIncludeBoundary);
506  loadData(is, myBoundaryflex);
507  loadData(is, myTogglecorrection);
508  loadData(is, myAttrname);
509  loadData(is, myAttrclass);
510 
511  return true;
512  }
513 
514  const UT_StringHolder & getUVAttr() const { return myUVAttr; }
515  void setUVAttr(const UT_StringHolder & val) { myUVAttr = val; }
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getUVAttr();
521  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
522  return result;
523  }
524  const UT_StringHolder & getGroup() const { return myGroup; }
525  void setGroup(const UT_StringHolder & val) { myGroup = val; }
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getGroup();
531  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
532  return result;
533  }
534  const UT_StringHolder & getPingroup() const { return myPingroup; }
535  void setPingroup(const UT_StringHolder & val) { myPingroup = val; }
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getPingroup();
541  OP_Utils::evalOpParm(result, thissop, "pingroup", cookparms.getCookTime(), 0);
542  return result;
543  }
544  Algorithm getAlgorithm() const { return Algorithm(myAlgorithm); }
545  void setAlgorithm(Algorithm val) { myAlgorithm = int64(val); }
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getAlgorithm();
550  int64 result;
551  OP_Utils::evalOpParm(result, thissop, "algorithm", cookparms.getCookTime(), 0);
552  return Algorithm(result);
553  }
554  bool getIncludeBoundary() const { return myIncludeBoundary; }
555  void setIncludeBoundary(bool val) { myIncludeBoundary = val; }
556  bool opIncludeBoundary(const SOP_NodeVerb::CookParms &cookparms) const
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getIncludeBoundary();
560  bool result;
561  OP_Utils::evalOpParm(result, thissop, "includeboundary", cookparms.getCookTime(), 0);
562  return result;
563  }
564  fpreal64 getBoundaryflex() const { return myBoundaryflex; }
565  void setBoundaryflex(fpreal64 val) { myBoundaryflex = val; }
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getBoundaryflex();
571  OP_Utils::evalOpParm(result, thissop, "boundaryflex", cookparms.getCookTime(), 0);
572  return result;
573  }
574  bool getTogglecorrection() const { return myTogglecorrection; }
575  void setTogglecorrection(bool val) { myTogglecorrection = val; }
576  bool opTogglecorrection(const SOP_NodeVerb::CookParms &cookparms) const
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getTogglecorrection();
580  bool result;
581  OP_Utils::evalOpParm(result, thissop, "togglecorrection", cookparms.getCookTime(), 0);
582  return result;
583  }
584  const UT_StringHolder & getAttrname() const { return myAttrname; }
585  void setAttrname(const UT_StringHolder & val) { myAttrname = val; }
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getAttrname();
591  OP_Utils::evalOpParm(result, thissop, "attrname", cookparms.getCookTime(), 0);
592  return result;
593  }
594  Attrclass getAttrclass() const { return Attrclass(myAttrclass); }
595  void setAttrclass(Attrclass val) { myAttrclass = int64(val); }
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getAttrclass();
600  int64 result;
601  OP_Utils::evalOpParm(result, thissop, "attrclass", cookparms.getCookTime(), 0);
602  return Attrclass(result);
603  }
604 
605 private:
606  UT_StringHolder myUVAttr;
607  UT_StringHolder myGroup;
608  UT_StringHolder myPingroup;
609  int64 myAlgorithm;
610  bool myIncludeBoundary;
611  fpreal64 myBoundaryflex;
612  bool myTogglecorrection;
613  UT_StringHolder myAttrname;
614  int64 myAttrclass;
615 
616 };
static void loadData(UT_IStream &is, UT_Matrix4D &v)
type
Definition: core.h:556
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
static void saveData(std::ostream &os, UT_Vector4D v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
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
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)