HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PolyCut.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_PolyCutEnums
24 {
25  enum class Type
26  {
27  POINTS = 0,
28  EDGES
29  };
30  enum class Strategy
31  {
32  REMOVE = 0,
33  CUT
34  };
35  enum class DetectEdgeChanges
36  {
37  ATTRIBCROSSING = 0,
39  };
40 }
41 
42 
44 {
45 public:
46  static int version() { return 1; }
47 
49  {
50  myPolygons = ""_UTsh;
51  myType = 0;
52  myCutPoints = ""_UTsh;
53  myCutEdges = ""_UTsh;
54  myStrategy = 0;
55  myDetectEdgeChanges = 0;
56  myCutAttrib = ""_UTsh;
57  myCutValue = 0;
58  myCutStringValue = ""_UTsh;
59  myCutThreshold = 1;
60  myKeepClosed = true;
61 
62  }
63 
64  explicit SOP_PolyCutParms(const SOP_PolyCutParms &) = default;
65  SOP_PolyCutParms &operator=(const SOP_PolyCutParms &) = default;
66  SOP_PolyCutParms(SOP_PolyCutParms &&) noexcept = default;
67  SOP_PolyCutParms &operator=(SOP_PolyCutParms &&) noexcept = default;
68 
69  ~SOP_PolyCutParms() override {}
70 
71  bool operator==(const SOP_PolyCutParms &src) const
72  {
73  if (myPolygons != src.myPolygons) return false;
74  if (myType != src.myType) return false;
75  if (myCutPoints != src.myCutPoints) return false;
76  if (myCutEdges != src.myCutEdges) return false;
77  if (myStrategy != src.myStrategy) return false;
78  if (myDetectEdgeChanges != src.myDetectEdgeChanges) return false;
79  if (myCutAttrib != src.myCutAttrib) return false;
80  if (myCutValue != src.myCutValue) return false;
81  if (myCutStringValue != src.myCutStringValue) return false;
82  if (myCutThreshold != src.myCutThreshold) return false;
83  if (myKeepClosed != src.myKeepClosed) return false;
84 
85  return true;
86  }
87  bool operator!=(const SOP_PolyCutParms &src) const
88  {
89  return !operator==(src);
90  }
94 
95 
96 
97  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
98  {
99  myPolygons = ""_UTsh;
100  if (true)
101  graph->evalOpParm(myPolygons, nodeidx, "polygons", time, 0);
102  myType = 0;
103  if (true)
104  graph->evalOpParm(myType, nodeidx, "type", time, 0);
105  myCutPoints = ""_UTsh;
106  if (true && ( (true&&!(((int64(getType())!=0)))) ) )
107  graph->evalOpParm(myCutPoints, nodeidx, "cutpoints", time, 0);
108  myCutEdges = ""_UTsh;
109  if (true && ( (true&&!(((int64(getType())!=1)))) ) )
110  graph->evalOpParm(myCutEdges, nodeidx, "cutedges", time, 0);
111  myStrategy = 0;
112  if (true)
113  graph->evalOpParm(myStrategy, nodeidx, "strategy", time, 0);
114  myDetectEdgeChanges = 0;
115  if (true)
116  graph->evalOpParm(myDetectEdgeChanges, nodeidx, "detectedgechanges", time, 0);
117  myCutAttrib = ""_UTsh;
118  if (true)
119  graph->evalOpParm(myCutAttrib, nodeidx, "cutattrib", time, 0);
120  myCutValue = 0;
121  if (true && ( (true&&!(((int64(getDetectEdgeChanges())!=0))||((getCutAttrib()=="")))) ) )
122  graph->evalOpParm(myCutValue, nodeidx, "cutvalue", time, 0);
123  myCutStringValue = ""_UTsh;
124  if (true && ( (true&&!(((int64(getDetectEdgeChanges())!=0))||((getCutAttrib()=="")))) ) )
125  graph->evalOpParm(myCutStringValue, nodeidx, "cutstringvalue", time, 0);
126  myCutThreshold = 1;
127  if (true && ( (true&&!(((int64(getDetectEdgeChanges())!=1))||((getCutAttrib()=="")))) ) )
128  graph->evalOpParm(myCutThreshold, nodeidx, "cutthreshold", time, 0);
129  myKeepClosed = true;
130  if (true)
131  graph->evalOpParm(myKeepClosed, nodeidx, "keepclosed", time, 0);
132 
133  }
134 
135 
136  void loadFromOpSubclass(const LoadParms &loadparms) override
137  {
138  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
139  }
140 
141 
142  void copyFrom(const OP_NodeParms *src) override
143  {
144  *this = *((const SOP_PolyCutParms *)src);
145  }
146 
147  template <typename T>
148  void
149  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
150  {
151  if (idx.size() < 1)
152  return;
153  UT_ASSERT(idx.size() == instance.size()+1);
154  if (idx.size() != instance.size()+1)
155  return;
156  switch (idx[0])
157  {
158  case 0:
159  coerceValue(value, myPolygons);
160  break;
161  case 1:
162  coerceValue(value, myType);
163  break;
164  case 2:
165  coerceValue(value, myCutPoints);
166  break;
167  case 3:
168  coerceValue(value, myCutEdges);
169  break;
170  case 4:
171  coerceValue(value, myStrategy);
172  break;
173  case 5:
174  coerceValue(value, myDetectEdgeChanges);
175  break;
176  case 6:
177  coerceValue(value, myCutAttrib);
178  break;
179  case 7:
180  coerceValue(value, myCutValue);
181  break;
182  case 8:
183  coerceValue(value, myCutStringValue);
184  break;
185  case 9:
186  coerceValue(value, myCutThreshold);
187  break;
188  case 10:
189  coerceValue(value, myKeepClosed);
190  break;
191 
192  }
193  }
194 
195  bool isParmColorRamp(exint idx) const override
196  {
197  switch (idx)
198  {
199 
200  }
201  return false;
202  }
203 
204  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
225  { doGetParmValue(idx, instance, value); }
226 
227  template <typename T>
228  void
229  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
230  {
231  if (idx.size() < 1)
232  return;
233  UT_ASSERT(idx.size() == instance.size()+1);
234  if (idx.size() != instance.size()+1)
235  return;
236  switch (idx[0])
237  {
238  case 0:
239  coerceValue(myPolygons, ( ( value ) ));
240  break;
241  case 1:
242  coerceValue(myType, clampMinValue(0, clampMaxValue(1, value ) ));
243  break;
244  case 2:
245  coerceValue(myCutPoints, ( ( value ) ));
246  break;
247  case 3:
248  coerceValue(myCutEdges, ( ( value ) ));
249  break;
250  case 4:
251  coerceValue(myStrategy, clampMinValue(0, clampMaxValue(1, value ) ));
252  break;
253  case 5:
254  coerceValue(myDetectEdgeChanges, clampMinValue(0, clampMaxValue(1, value ) ));
255  break;
256  case 6:
257  coerceValue(myCutAttrib, ( ( value ) ));
258  break;
259  case 7:
260  coerceValue(myCutValue, ( ( value ) ));
261  break;
262  case 8:
263  coerceValue(myCutStringValue, ( ( value ) ));
264  break;
265  case 9:
266  coerceValue(myCutThreshold, ( ( value ) ));
267  break;
268  case 10:
269  coerceValue(myKeepClosed, ( ( value ) ));
270  break;
271 
272  }
273  }
274 
275  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
296  { doSetParmValue(idx, instance, value); }
297 
298  exint getNestNumParms(TempIndex idx) const override
299  {
300  if (idx.size() == 0)
301  return 11;
302  switch (idx[0])
303  {
304 
305  }
306  // Invalid
307  return 0;
308  }
309 
310  const char *getNestParmName(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return 0;
314  switch (fieldnum[0])
315  {
316  case 0:
317  return "polygons";
318  case 1:
319  return "type";
320  case 2:
321  return "cutpoints";
322  case 3:
323  return "cutedges";
324  case 4:
325  return "strategy";
326  case 5:
327  return "detectedgechanges";
328  case 6:
329  return "cutattrib";
330  case 7:
331  return "cutvalue";
332  case 8:
333  return "cutstringvalue";
334  case 9:
335  return "cutthreshold";
336  case 10:
337  return "keepclosed";
338 
339  }
340  return 0;
341  }
342 
343  ParmType getNestParmType(TempIndex fieldnum) const override
344  {
345  if (fieldnum.size() < 1)
346  return PARM_UNSUPPORTED;
347  switch (fieldnum[0])
348  {
349  case 0:
350  return PARM_STRING;
351  case 1:
352  return PARM_INTEGER;
353  case 2:
354  return PARM_STRING;
355  case 3:
356  return PARM_STRING;
357  case 4:
358  return PARM_INTEGER;
359  case 5:
360  return PARM_INTEGER;
361  case 6:
362  return PARM_STRING;
363  case 7:
364  return PARM_FLOAT;
365  case 8:
366  return PARM_STRING;
367  case 9:
368  return PARM_FLOAT;
369  case 10:
370  return PARM_INTEGER;
371 
372  }
373  return PARM_UNSUPPORTED;
374  }
375 
376  // Boiler plate to load individual types.
377  static void loadData(UT_IStream &is, int64 &v)
378  { is.bread(&v, 1); }
379  static void loadData(UT_IStream &is, bool &v)
380  { int64 iv; is.bread(&iv, 1); v = iv; }
381  static void loadData(UT_IStream &is, fpreal64 &v)
382  { is.bread<fpreal64>(&v, 1); }
383  static void loadData(UT_IStream &is, UT_Vector2D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
385  static void loadData(UT_IStream &is, UT_Vector3D &v)
386  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
387  is.bread<fpreal64>(&v.z(), 1); }
388  static void loadData(UT_IStream &is, UT_Vector4D &v)
389  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
390  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix2D &v)
392  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Matrix3D &v)
394  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
395  static void loadData(UT_IStream &is, UT_Matrix4D &v)
396  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
397  static void loadData(UT_IStream &is, UT_Vector2I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
399  static void loadData(UT_IStream &is, UT_Vector3I &v)
400  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
401  is.bread<int64>(&v.z(), 1); }
402  static void loadData(UT_IStream &is, UT_Vector4I &v)
403  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
404  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
406  { is.bread(v); }
408  { UT_StringHolder rampdata;
409  loadData(is, rampdata);
410  if (rampdata.isstring())
411  {
412  v.reset(new UT_Ramp());
413  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
414  v->load(istr);
415  }
416  else v.reset();
417  }
420  loadData(is, data);
421  if (data.isstring())
422  {
423  // Find the data type.
424  const char *colon = UT_StringWrap(data).findChar(':');
425  if (colon)
426  {
427  int typelen = colon - data.buffer();
429  type.strncpy(data.buffer(), typelen);
430  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
431 
432  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
433  }
434  }
435  else v.reset();
436  }
437 
438  static void saveData(std::ostream &os, int64 v)
439  { UTwrite(os, &v); }
440  static void saveData(std::ostream &os, bool v)
441  { int64 iv = v; UTwrite(os, &iv); }
442  static void saveData(std::ostream &os, fpreal64 v)
443  { UTwrite<fpreal64>(os, &v); }
444  static void saveData(std::ostream &os, UT_Vector2D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
446  static void saveData(std::ostream &os, UT_Vector3D v)
447  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
448  UTwrite<fpreal64>(os, &v.z()); }
449  static void saveData(std::ostream &os, UT_Vector4D v)
450  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
451  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
452  static void saveData(std::ostream &os, UT_Matrix2D v)
454  static void saveData(std::ostream &os, UT_Matrix3D v)
456  static void saveData(std::ostream &os, UT_Matrix4D v)
458  static void saveData(std::ostream &os, UT_StringHolder s)
459  { UT_StringWrap(s).saveBinary(os); }
460  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
462  UT_OStringStream ostr;
463  if (s) s->save(ostr);
464  result = ostr.str();
465  saveData(os, result);
466  }
467  static void saveData(std::ostream &os, PRM_DataItemHandle s)
469  UT_OStringStream ostr;
470  if (s)
471  {
472  ostr << s->getDataTypeToken();
473  ostr << ":";
474  s->saveBinary(ostr);
475  }
476  result = ostr.str();
477  saveData(os, result);
478  }
479 
480 
481  void save(std::ostream &os) const
482  {
483  int32 v = version();
484  UTwrite(os, &v);
485  saveData(os, myPolygons);
486  saveData(os, myType);
487  saveData(os, myCutPoints);
488  saveData(os, myCutEdges);
489  saveData(os, myStrategy);
490  saveData(os, myDetectEdgeChanges);
491  saveData(os, myCutAttrib);
492  saveData(os, myCutValue);
493  saveData(os, myCutStringValue);
494  saveData(os, myCutThreshold);
495  saveData(os, myKeepClosed);
496 
497  }
498 
499  bool load(UT_IStream &is)
500  {
501  int32 v;
502  is.bread(&v, 1);
503  if (version() != v)
504  {
505  // Fail incompatible versions
506  return false;
507  }
508  loadData(is, myPolygons);
509  loadData(is, myType);
510  loadData(is, myCutPoints);
511  loadData(is, myCutEdges);
512  loadData(is, myStrategy);
513  loadData(is, myDetectEdgeChanges);
514  loadData(is, myCutAttrib);
515  loadData(is, myCutValue);
516  loadData(is, myCutStringValue);
517  loadData(is, myCutThreshold);
518  loadData(is, myKeepClosed);
519 
520  return true;
521  }
522 
523  const UT_StringHolder & getPolygons() const { return myPolygons; }
524  void setPolygons(const UT_StringHolder & val) { myPolygons = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getPolygons();
530  OP_Utils::evalOpParm(result, thissop, "polygons", cookparms.getCookTime(), 0);
531  return result;
532  }
533  Type getType() const { return Type(myType); }
534  void setType(Type val) { myType = int64(val); }
535  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getType();
539  int64 result;
540  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
541  return Type(result);
542  }
543  const UT_StringHolder & getCutPoints() const { return myCutPoints; }
544  void setCutPoints(const UT_StringHolder & val) { myCutPoints = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getCutPoints();
550  OP_Utils::evalOpParm(result, thissop, "cutpoints", cookparms.getCookTime(), 0);
551  return result;
552  }
553  const UT_StringHolder & getCutEdges() const { return myCutEdges; }
554  void setCutEdges(const UT_StringHolder & val) { myCutEdges = val; }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getCutEdges();
560  OP_Utils::evalOpParm(result, thissop, "cutedges", cookparms.getCookTime(), 0);
561  return result;
562  }
563  Strategy getStrategy() const { return Strategy(myStrategy); }
564  void setStrategy(Strategy val) { myStrategy = int64(val); }
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getStrategy();
569  int64 result;
570  OP_Utils::evalOpParm(result, thissop, "strategy", cookparms.getCookTime(), 0);
571  return Strategy(result);
572  }
573  DetectEdgeChanges getDetectEdgeChanges() const { return DetectEdgeChanges(myDetectEdgeChanges); }
574  void setDetectEdgeChanges(DetectEdgeChanges val) { myDetectEdgeChanges = int64(val); }
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getDetectEdgeChanges();
579  int64 result;
580  OP_Utils::evalOpParm(result, thissop, "detectedgechanges", cookparms.getCookTime(), 0);
581  return DetectEdgeChanges(result);
582  }
583  const UT_StringHolder & getCutAttrib() const { return myCutAttrib; }
584  void setCutAttrib(const UT_StringHolder & val) { myCutAttrib = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getCutAttrib();
590  OP_Utils::evalOpParm(result, thissop, "cutattrib", cookparms.getCookTime(), 0);
591  return result;
592  }
593  fpreal64 getCutValue() const { return myCutValue; }
594  void setCutValue(fpreal64 val) { myCutValue = val; }
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getCutValue();
600  OP_Utils::evalOpParm(result, thissop, "cutvalue", cookparms.getCookTime(), 0);
601  return result;
602  }
603  const UT_StringHolder & getCutStringValue() const { return myCutStringValue; }
604  void setCutStringValue(const UT_StringHolder & val) { myCutStringValue = val; }
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getCutStringValue();
610  OP_Utils::evalOpParm(result, thissop, "cutstringvalue", cookparms.getCookTime(), 0);
611  return result;
612  }
613  fpreal64 getCutThreshold() const { return myCutThreshold; }
614  void setCutThreshold(fpreal64 val) { myCutThreshold = val; }
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getCutThreshold();
620  OP_Utils::evalOpParm(result, thissop, "cutthreshold", cookparms.getCookTime(), 0);
621  return result;
622  }
623  bool getKeepClosed() const { return myKeepClosed; }
624  void setKeepClosed(bool val) { myKeepClosed = val; }
625  bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
626  {
627  SOP_Node *thissop = cookparms.getNode();
628  if (!thissop) return getKeepClosed();
629  bool result;
630  OP_Utils::evalOpParm(result, thissop, "keepclosed", cookparms.getCookTime(), 0);
631  return result;
632  }
633 
634 private:
635  UT_StringHolder myPolygons;
636  int64 myType;
637  UT_StringHolder myCutPoints;
638  UT_StringHolder myCutEdges;
639  int64 myStrategy;
640  int64 myDetectEdgeChanges;
641  UT_StringHolder myCutAttrib;
642  fpreal64 myCutValue;
643  UT_StringHolder myCutStringValue;
644  fpreal64 myCutThreshold;
645  bool myKeepClosed;
646 
647 };
void setKeepClosed(bool val)
void setType(Type val)
const UT_StringHolder & getCutEdges() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setCutThreshold(fpreal64 val)
void setPolygons(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
const char * getNestParmName(TempIndex fieldnum) const 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
static void loadData(UT_IStream &is, UT_StringHolder &v)
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, int64 &v)
ParmType getNestParmType(TempIndex fieldnum) const override
fpreal64 opCutValue(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opCutEdges(const SOP_NodeVerb::CookParms &cookparms) const
void setDetectEdgeChanges(DetectEdgeChanges val)
bool getKeepClosed() const
bool operator==(const SOP_PolyCutParms &src) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, fpreal64 v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
const UT_StringHolder & getPolygons() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
An output stream object that owns its own string buffer storage.
Strategy opStrategy(const SOP_NodeVerb::CookParms &cookparms) const
**But if you need a result
Definition: thread.h:613
Type getType() const
void copyFrom(const OP_NodeParms *src) override
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setCutStringValue(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
exint getNestNumParms(TempIndex idx) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
UT_StringHolder opCutPoints(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setStrategy(Strategy val)
bool operator!=(const SOP_PolyCutParms &src) const
void setCutEdges(const UT_StringHolder &val)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
exint length() const
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
const UT_StringHolder & getCutStringValue() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
DetectEdgeChanges opDetectEdgeChanges(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getCutAttrib() const
long long int64
Definition: SYS_Types.h:116
bool isParmColorRamp(exint idx) const override
bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void saveData(std::ostream &os, int64 v)
void setCutAttrib(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
GT_API const UT_StringHolder version
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
void setCutValue(fpreal64 val)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void loadData(UT_IStream &is, UT_Vector2D &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
UT_StringHolder opCutAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opPolygons(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void saveData(std::ostream &os, UT_Vector3D v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void saveData(std::ostream &os, UT_Matrix4D v)
fpreal64 getCutValue() const
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setCutPoints(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector4D v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
UT_StringHolder opCutStringValue(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
GLboolean r
Definition: glcorearb.h:1222
fpreal64 opCutThreshold(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getCutPoints() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void save(std::ostream &os) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
fpreal64 getCutThreshold() const
static void saveData(std::ostream &os, bool v)
DetectEdgeChanges getDetectEdgeChanges() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
static void loadData(UT_IStream &is, UT_Vector3I &v)
static int version()
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Vector2I &v)
Strategy getStrategy() const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663