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