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