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_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_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 = ""_sh;
51  myType = 0;
52  myCutPoints = ""_sh;
53  myCutEdges = ""_sh;
54  myStrategy = 0;
55  myDetectEdgeChanges = 0;
56  myCutAttrib = ""_sh;
57  myCutValue = 0;
58  myCutStringValue = ""_sh;
59  myCutThreshold = 1;
60  myKeepClosed = true;
61 
62  }
63 
64  explicit SOP_PolyCutParms(const SOP_PolyCutParms &) = default;
65 
66  ~SOP_PolyCutParms() override {}
67 
68  bool operator==(const SOP_PolyCutParms &src) const
69  {
70  if (myPolygons != src.myPolygons) return false;
71  if (myType != src.myType) return false;
72  if (myCutPoints != src.myCutPoints) return false;
73  if (myCutEdges != src.myCutEdges) return false;
74  if (myStrategy != src.myStrategy) return false;
75  if (myDetectEdgeChanges != src.myDetectEdgeChanges) return false;
76  if (myCutAttrib != src.myCutAttrib) return false;
77  if (myCutValue != src.myCutValue) return false;
78  if (myCutStringValue != src.myCutStringValue) return false;
79  if (myCutThreshold != src.myCutThreshold) return false;
80  if (myKeepClosed != src.myKeepClosed) return false;
81 
82  return true;
83  }
84  bool operator!=(const SOP_PolyCutParms &src) const
85  {
86  return !operator==(src);
87  }
91 
92 
93 
94  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
95  {
96  myPolygons = ""_sh;
97  if (true)
98  graph->evalOpParm(myPolygons, nodeidx, "polygons", time, 0);
99  myType = 0;
100  if (true)
101  graph->evalOpParm(myType, nodeidx, "type", time, 0);
102  myCutPoints = ""_sh;
103  if (true && ( (!(((int64(getType())!=0)))) ) )
104  graph->evalOpParm(myCutPoints, nodeidx, "cutpoints", time, 0);
105  myCutEdges = ""_sh;
106  if (true && ( (!(((int64(getType())!=1)))) ) )
107  graph->evalOpParm(myCutEdges, nodeidx, "cutedges", time, 0);
108  myStrategy = 0;
109  if (true)
110  graph->evalOpParm(myStrategy, nodeidx, "strategy", time, 0);
111  myDetectEdgeChanges = 0;
112  if (true)
113  graph->evalOpParm(myDetectEdgeChanges, nodeidx, "detectedgechanges", time, 0);
114  myCutAttrib = ""_sh;
115  if (true)
116  graph->evalOpParm(myCutAttrib, nodeidx, "cutattrib", time, 0);
117  myCutValue = 0;
118  if (true && ( (!(((int64(getDetectEdgeChanges())!=0))||((getCutAttrib()=="")))) ) )
119  graph->evalOpParm(myCutValue, nodeidx, "cutvalue", time, 0);
120  myCutStringValue = ""_sh;
121  if (true && ( (!(((int64(getDetectEdgeChanges())!=0))||((getCutAttrib()=="")))) ) )
122  graph->evalOpParm(myCutStringValue, nodeidx, "cutstringvalue", time, 0);
123  myCutThreshold = 1;
124  if (true && ( (!(((int64(getDetectEdgeChanges())!=1))||((getCutAttrib()=="")))) ) )
125  graph->evalOpParm(myCutThreshold, nodeidx, "cutthreshold", time, 0);
126  myKeepClosed = true;
127  if (true)
128  graph->evalOpParm(myKeepClosed, nodeidx, "keepclosed", time, 0);
129 
130  }
131 
132 
133  void loadFromOpSubclass(const LoadParms &loadparms) override
134  {
135  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
136  }
137 
138 
139  void copyFrom(const SOP_NodeParms *src) override
140  {
141  *this = *((const SOP_PolyCutParms *)src);
142  }
143 
144  template <typename T>
145  void
146  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
147  {
148  if (idx.size() < 1)
149  return;
150  UT_ASSERT(idx.size() == instance.size()+1);
151  if (idx.size() != instance.size()+1)
152  return;
153  switch (idx[0])
154  {
155  case 0:
156  coerceValue(value, myPolygons);
157  break;
158  case 1:
159  coerceValue(value, myType);
160  break;
161  case 2:
162  coerceValue(value, myCutPoints);
163  break;
164  case 3:
165  coerceValue(value, myCutEdges);
166  break;
167  case 4:
168  coerceValue(value, myStrategy);
169  break;
170  case 5:
171  coerceValue(value, myDetectEdgeChanges);
172  break;
173  case 6:
174  coerceValue(value, myCutAttrib);
175  break;
176  case 7:
177  coerceValue(value, myCutValue);
178  break;
179  case 8:
180  coerceValue(value, myCutStringValue);
181  break;
182  case 9:
183  coerceValue(value, myCutThreshold);
184  break;
185  case 10:
186  coerceValue(value, myKeepClosed);
187  break;
188 
189  }
190  }
191 
192  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
213  { doGetParmValue(idx, instance, value); }
214 
215  template <typename T>
216  void
217  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
218  {
219  if (idx.size() < 1)
220  return;
221  UT_ASSERT(idx.size() == instance.size()+1);
222  if (idx.size() != instance.size()+1)
223  return;
224  switch (idx[0])
225  {
226  case 0:
227  coerceValue(myPolygons, value);
228  break;
229  case 1:
230  coerceValue(myType, value);
231  break;
232  case 2:
233  coerceValue(myCutPoints, value);
234  break;
235  case 3:
236  coerceValue(myCutEdges, value);
237  break;
238  case 4:
239  coerceValue(myStrategy, value);
240  break;
241  case 5:
242  coerceValue(myDetectEdgeChanges, value);
243  break;
244  case 6:
245  coerceValue(myCutAttrib, value);
246  break;
247  case 7:
248  coerceValue(myCutValue, value);
249  break;
250  case 8:
251  coerceValue(myCutStringValue, value);
252  break;
253  case 9:
254  coerceValue(myCutThreshold, value);
255  break;
256  case 10:
257  coerceValue(myKeepClosed, value);
258  break;
259 
260  }
261  }
262 
263  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
284  { doSetParmValue(idx, instance, value); }
285 
286  exint getNestNumParms(TempIndex idx) const override
287  {
288  if (idx.size() == 0)
289  return 11;
290  switch (idx[0])
291  {
292 
293  }
294  // Invalid
295  return 0;
296  }
297 
298  const char *getNestParmName(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return 0;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return "polygons";
306  case 1:
307  return "type";
308  case 2:
309  return "cutpoints";
310  case 3:
311  return "cutedges";
312  case 4:
313  return "strategy";
314  case 5:
315  return "detectedgechanges";
316  case 6:
317  return "cutattrib";
318  case 7:
319  return "cutvalue";
320  case 8:
321  return "cutstringvalue";
322  case 9:
323  return "cutthreshold";
324  case 10:
325  return "keepclosed";
326 
327  }
328  return 0;
329  }
330 
331  ParmType getNestParmType(TempIndex fieldnum) const override
332  {
333  if (fieldnum.size() < 1)
334  return PARM_UNSUPPORTED;
335  switch (fieldnum[0])
336  {
337  case 0:
338  return PARM_STRING;
339  case 1:
340  return PARM_INTEGER;
341  case 2:
342  return PARM_STRING;
343  case 3:
344  return PARM_STRING;
345  case 4:
346  return PARM_INTEGER;
347  case 5:
348  return PARM_INTEGER;
349  case 6:
350  return PARM_STRING;
351  case 7:
352  return PARM_FLOAT;
353  case 8:
354  return PARM_STRING;
355  case 9:
356  return PARM_FLOAT;
357  case 10:
358  return PARM_INTEGER;
359 
360  }
361  return PARM_UNSUPPORTED;
362  }
363 
364  // Boiler plate to load individual types.
365  static void loadData(UT_IStream &is, int64 &v)
366  { is.bread(&v, 1); }
367  static void loadData(UT_IStream &is, bool &v)
368  { int64 iv; is.bread(&iv, 1); v = iv; }
369  static void loadData(UT_IStream &is, fpreal64 &v)
370  { is.bread<fpreal64>(&v, 1); }
371  static void loadData(UT_IStream &is, UT_Vector2D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix2D &v)
380  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix3D &v)
382  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix4D &v)
384  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Vector2I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector3I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector4I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
394  { is.bread(v); }
396  { UT_StringHolder rampdata;
397  loadData(is, rampdata);
398  if (rampdata.isstring())
399  {
400  v.reset(new UT_Ramp());
401  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
402  v->load(istr);
403  }
404  else v.reset();
405  }
408  loadData(is, data);
409  if (data.isstring())
410  {
411  // Find the data type.
412  const char *colon = UT_StringWrap(data).findChar(':');
413  if (colon)
414  {
415  int typelen = colon - data.buffer();
417  type.strncpy(data.buffer(), typelen);
418  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
419 
420  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
421  }
422  }
423  else v.reset();
424  }
425 
426  static void saveData(std::ostream &os, int64 v)
427  { UTwrite(os, &v); }
428  static void saveData(std::ostream &os, bool v)
429  { int64 iv = v; UTwrite(os, &iv); }
430  static void saveData(std::ostream &os, fpreal64 v)
431  { UTwrite<fpreal64>(os, &v); }
432  static void saveData(std::ostream &os, UT_Vector2D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
434  static void saveData(std::ostream &os, UT_Vector3D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); }
437  static void saveData(std::ostream &os, UT_Vector4D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
440  static void saveData(std::ostream &os, UT_Matrix2D v)
442  static void saveData(std::ostream &os, UT_Matrix3D v)
444  static void saveData(std::ostream &os, UT_Matrix4D v)
446  static void saveData(std::ostream &os, UT_StringHolder s)
447  { UT_StringWrap(s).saveBinary(os); }
448  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
450  UT_OStringStream ostr;
451  if (s) s->save(ostr);
452  result = ostr.str();
453  saveData(os, result);
454  }
455  static void saveData(std::ostream &os, PRM_DataItemHandle s)
457  UT_OStringStream ostr;
458  if (s)
459  {
460  ostr << s->getDataTypeToken();
461  ostr << ":";
462  s->saveBinary(ostr);
463  }
464  result = ostr.str();
465  saveData(os, result);
466  }
467 
468 
469  void save(std::ostream &os) const
470  {
471  int32 v = version();
472  UTwrite(os, &v);
473  saveData(os, myPolygons);
474  saveData(os, myType);
475  saveData(os, myCutPoints);
476  saveData(os, myCutEdges);
477  saveData(os, myStrategy);
478  saveData(os, myDetectEdgeChanges);
479  saveData(os, myCutAttrib);
480  saveData(os, myCutValue);
481  saveData(os, myCutStringValue);
482  saveData(os, myCutThreshold);
483  saveData(os, myKeepClosed);
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, myPolygons);
497  loadData(is, myType);
498  loadData(is, myCutPoints);
499  loadData(is, myCutEdges);
500  loadData(is, myStrategy);
501  loadData(is, myDetectEdgeChanges);
502  loadData(is, myCutAttrib);
503  loadData(is, myCutValue);
504  loadData(is, myCutStringValue);
505  loadData(is, myCutThreshold);
506  loadData(is, myKeepClosed);
507 
508  return true;
509  }
510 
511  const UT_StringHolder & getPolygons() const { return myPolygons; }
512  void setPolygons(const UT_StringHolder & val) { myPolygons = val; }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getPolygons();
518  OP_Utils::evalOpParm(result, thissop, "polygons", cookparms.getCookTime(), 0);
519  return result;
520  }
521  Type getType() const { return Type(myType); }
522  void setType(Type val) { myType = int64(val); }
523  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getType();
527  int64 result;
528  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
529  return Type(result);
530  }
531  const UT_StringHolder & getCutPoints() const { return myCutPoints; }
532  void setCutPoints(const UT_StringHolder & val) { myCutPoints = val; }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getCutPoints();
538  OP_Utils::evalOpParm(result, thissop, "cutpoints", cookparms.getCookTime(), 0);
539  return result;
540  }
541  const UT_StringHolder & getCutEdges() const { return myCutEdges; }
542  void setCutEdges(const UT_StringHolder & val) { myCutEdges = val; }
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getCutEdges();
548  OP_Utils::evalOpParm(result, thissop, "cutedges", cookparms.getCookTime(), 0);
549  return result;
550  }
551  Strategy getStrategy() const { return Strategy(myStrategy); }
552  void setStrategy(Strategy val) { myStrategy = int64(val); }
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getStrategy();
557  int64 result;
558  OP_Utils::evalOpParm(result, thissop, "strategy", cookparms.getCookTime(), 0);
559  return Strategy(result);
560  }
561  DetectEdgeChanges getDetectEdgeChanges() const { return DetectEdgeChanges(myDetectEdgeChanges); }
562  void setDetectEdgeChanges(DetectEdgeChanges val) { myDetectEdgeChanges = int64(val); }
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getDetectEdgeChanges();
567  int64 result;
568  OP_Utils::evalOpParm(result, thissop, "detectedgechanges", cookparms.getCookTime(), 0);
569  return DetectEdgeChanges(result);
570  }
571  const UT_StringHolder & getCutAttrib() const { return myCutAttrib; }
572  void setCutAttrib(const UT_StringHolder & val) { myCutAttrib = val; }
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getCutAttrib();
578  OP_Utils::evalOpParm(result, thissop, "cutattrib", cookparms.getCookTime(), 0);
579  return result;
580  }
581  fpreal64 getCutValue() const { return myCutValue; }
582  void setCutValue(fpreal64 val) { myCutValue = val; }
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getCutValue();
588  OP_Utils::evalOpParm(result, thissop, "cutvalue", cookparms.getCookTime(), 0);
589  return result;
590  }
591  const UT_StringHolder & getCutStringValue() const { return myCutStringValue; }
592  void setCutStringValue(const UT_StringHolder & val) { myCutStringValue = val; }
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getCutStringValue();
598  OP_Utils::evalOpParm(result, thissop, "cutstringvalue", cookparms.getCookTime(), 0);
599  return result;
600  }
601  fpreal64 getCutThreshold() const { return myCutThreshold; }
602  void setCutThreshold(fpreal64 val) { myCutThreshold = val; }
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return getCutThreshold();
608  OP_Utils::evalOpParm(result, thissop, "cutthreshold", cookparms.getCookTime(), 0);
609  return result;
610  }
611  bool getKeepClosed() const { return myKeepClosed; }
612  void setKeepClosed(bool val) { myKeepClosed = val; }
613  bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
614  {
615  SOP_Node *thissop = cookparms.getNode();
616  if (!thissop) return getKeepClosed();
617  bool result;
618  OP_Utils::evalOpParm(result, thissop, "keepclosed", cookparms.getCookTime(), 0);
619  return result;
620  }
621 
622 private:
623  UT_StringHolder myPolygons;
624  int64 myType;
625  UT_StringHolder myCutPoints;
626  UT_StringHolder myCutEdges;
627  int64 myStrategy;
628  int64 myDetectEdgeChanges;
629  UT_StringHolder myCutAttrib;
630  fpreal64 myCutValue;
631  UT_StringHolder myCutStringValue;
632  fpreal64 myCutThreshold;
633  bool myKeepClosed;
634 
635 };
void setKeepClosed(bool val)
GLdouble s
Definition: glew.h:1390
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)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
static void loadData(UT_IStream &is, UT_Matrix4D &v)
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 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
const char * getNestParmName(TempIndex fieldnum) const override
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_StringHolder &v)
fpreal getTime() const
Definition: OP_Context.h:60
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
GLuint const GLfloat * val
Definition: glew.h:2794
fpreal64 opCutValue(const SOP_NodeVerb::CookParms &cookparms) const
~SOP_PolyCutParms() override
UT_StringHolder opCutEdges(const SOP_NodeVerb::CookParms &cookparms) const
void setDetectEdgeChanges(DetectEdgeChanges val)
bool getKeepClosed() const
bool operator==(const SOP_PolyCutParms &src) const
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, fpreal64 v)
int64 exint
Definition: SYS_Types.h:125
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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
const GLdouble * v
Definition: glew.h:1391
Type getType() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setCutStringValue(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
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
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
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
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void loadData(UT_IStream &is, fpreal64 &v)
const UT_StringHolder & getCutStringValue() const
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
DetectEdgeChanges opDetectEdgeChanges(const SOP_NodeVerb::CookParms &cookparms) const
const GLfloat * c
Definition: glew.h:16296
const UT_StringHolder & getCutAttrib() const
long long int64
Definition: SYS_Types.h:116
bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const SOP_NodeParms *src) override
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:294
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
void setCutValue(fpreal64 val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
UT_StringHolder opCutAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opPolygons(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void saveData(std::ostream &os, UT_Vector3D v)
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
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setCutPoints(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector4D v)
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
UT_StringHolder opCutStringValue(const SOP_NodeVerb::CookParms &cookparms) const
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
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)
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
fpreal64 getCutThreshold() const
static void saveData(std::ostream &os, bool v)
DetectEdgeChanges getDetectEdgeChanges() const
GLsizei const GLfloat * value
Definition: glew.h:1849
static void loadData(UT_IStream &is, UT_Vector4I &v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
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)
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE bool isstring() const
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)
type
Definition: core.h:528
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