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