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