HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_ConvexDecomposition.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_ConvexDecompositionEnums
24 {
25  enum class GeometryOutput
26  {
27  HULLS = 0,
28  SEGMENTS
29  };
30 }
31 
32 
34 {
35 public:
36  static int version() { return 1; }
37 
39  {
40  myGroup = ""_sh;
41  myUsePieceAttrib = true;
42  myPieceAttrib = "name"_sh;
43  myMaxConcavity = 1;
44  myTreatAsSolid = true;
45  myMergeSegments = false;
46  myGeometryOutput = 0;
47  myOutputSegmentAttrib = true;
48  mySegmentAttrib = "segment"_sh;
49  myOutputInteriorGroup = true;
50  myInteriorGroupName = "convex_decomposition_interior"_sh;
51 
52  }
53 
55 
57 
59  {
60  if (myGroup != src.myGroup) return false;
61  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
62  if (myPieceAttrib != src.myPieceAttrib) return false;
63  if (myMaxConcavity != src.myMaxConcavity) return false;
64  if (myTreatAsSolid != src.myTreatAsSolid) return false;
65  if (myMergeSegments != src.myMergeSegments) return false;
66  if (myGeometryOutput != src.myGeometryOutput) return false;
67  if (myOutputSegmentAttrib != src.myOutputSegmentAttrib) return false;
68  if (mySegmentAttrib != src.mySegmentAttrib) return false;
69  if (myOutputInteriorGroup != src.myOutputInteriorGroup) return false;
70  if (myInteriorGroupName != src.myInteriorGroupName) return false;
71 
72  return true;
73  }
75  {
76  return !operator==(src);
77  }
79 
80 
81 
82  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
83  {
84  myGroup = ""_sh;
85  if (true)
86  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
87  myUsePieceAttrib = true;
88  if (true)
89  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, 0);
90  myPieceAttrib = "name"_sh;
91  if (true && ( (!(((getUsePieceAttrib()==0)))) ) )
92  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
93  myMaxConcavity = 1;
94  if (true)
95  graph->evalOpParm(myMaxConcavity, nodeidx, "maxconcavity", time, 0);
96  myTreatAsSolid = true;
97  if (true)
98  graph->evalOpParm(myTreatAsSolid, nodeidx, "treatassolid", time, 0);
99  myMergeSegments = false;
100  if (true)
101  graph->evalOpParm(myMergeSegments, nodeidx, "mergesegments", time, 0);
102  myGeometryOutput = 0;
103  if (true)
104  graph->evalOpParm(myGeometryOutput, nodeidx, "geometryoutput", time, 0);
105  myOutputSegmentAttrib = true;
106  if (true)
107  graph->evalOpParm(myOutputSegmentAttrib, nodeidx, "outputsegmentattrib", time, 0);
108  mySegmentAttrib = "segment"_sh;
109  if (true && ( (!(((getOutputSegmentAttrib()==0)))) ) )
110  graph->evalOpParm(mySegmentAttrib, nodeidx, "segmentattrib", time, 0);
111  myOutputInteriorGroup = true;
112  if (true && ( (!(((int64(getGeometryOutput())!=1)))) ) )
113  graph->evalOpParm(myOutputInteriorGroup, nodeidx, "outputinteriorgroup", time, 0);
114  myInteriorGroupName = "convex_decomposition_interior"_sh;
115  if (true && ( (!(((int64(getGeometryOutput())!=1))||((getOutputInteriorGroup()==0)))) ) )
116  graph->evalOpParm(myInteriorGroupName, nodeidx, "interiorgroupname", time, 0);
117 
118  }
119 
120 
121  void loadFromOpSubclass(const LoadParms &loadparms) override
122  {
123  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
124  }
125 
126 
127  void copyFrom(const SOP_NodeParms *src) override
128  {
129  *this = *((const SOP_ConvexDecompositionParms *)src);
130  }
131 
132  template <typename T>
133  void
134  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
135  {
136  if (idx.size() < 1)
137  return;
138  UT_ASSERT(idx.size() == instance.size()+1);
139  if (idx.size() != instance.size()+1)
140  return;
141  switch (idx[0])
142  {
143  case 0:
144  coerceValue(value, myGroup);
145  break;
146  case 1:
147  coerceValue(value, myUsePieceAttrib);
148  break;
149  case 2:
150  coerceValue(value, myPieceAttrib);
151  break;
152  case 3:
153  coerceValue(value, myMaxConcavity);
154  break;
155  case 4:
156  coerceValue(value, myTreatAsSolid);
157  break;
158  case 5:
159  coerceValue(value, myMergeSegments);
160  break;
161  case 6:
162  coerceValue(value, myGeometryOutput);
163  break;
164  case 7:
165  coerceValue(value, myOutputSegmentAttrib);
166  break;
167  case 8:
168  coerceValue(value, mySegmentAttrib);
169  break;
170  case 9:
171  coerceValue(value, myOutputInteriorGroup);
172  break;
173  case 10:
174  coerceValue(value, myInteriorGroupName);
175  break;
176 
177  }
178  }
179 
180  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
201  { doGetParmValue(idx, instance, value); }
202 
203  template <typename T>
204  void
205  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
206  {
207  if (idx.size() < 1)
208  return;
209  UT_ASSERT(idx.size() == instance.size()+1);
210  if (idx.size() != instance.size()+1)
211  return;
212  switch (idx[0])
213  {
214  case 0:
215  coerceValue(myGroup, value);
216  break;
217  case 1:
218  coerceValue(myUsePieceAttrib, value);
219  break;
220  case 2:
221  coerceValue(myPieceAttrib, value);
222  break;
223  case 3:
224  coerceValue(myMaxConcavity, value);
225  break;
226  case 4:
227  coerceValue(myTreatAsSolid, value);
228  break;
229  case 5:
230  coerceValue(myMergeSegments, value);
231  break;
232  case 6:
233  coerceValue(myGeometryOutput, value);
234  break;
235  case 7:
236  coerceValue(myOutputSegmentAttrib, value);
237  break;
238  case 8:
239  coerceValue(mySegmentAttrib, value);
240  break;
241  case 9:
242  coerceValue(myOutputInteriorGroup, value);
243  break;
244  case 10:
245  coerceValue(myInteriorGroupName, value);
246  break;
247 
248  }
249  }
250 
251  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
272  { doSetParmValue(idx, instance, value); }
273 
274  exint getNestNumParms(TempIndex idx) const override
275  {
276  if (idx.size() == 0)
277  return 11;
278  switch (idx[0])
279  {
280 
281  }
282  // Invalid
283  return 0;
284  }
285 
286  const char *getNestParmName(TempIndex fieldnum) const override
287  {
288  if (fieldnum.size() < 1)
289  return 0;
290  switch (fieldnum[0])
291  {
292  case 0:
293  return "group";
294  case 1:
295  return "usepieceattrib";
296  case 2:
297  return "pieceattrib";
298  case 3:
299  return "maxconcavity";
300  case 4:
301  return "treatassolid";
302  case 5:
303  return "mergesegments";
304  case 6:
305  return "geometryoutput";
306  case 7:
307  return "outputsegmentattrib";
308  case 8:
309  return "segmentattrib";
310  case 9:
311  return "outputinteriorgroup";
312  case 10:
313  return "interiorgroupname";
314 
315  }
316  return 0;
317  }
318 
319  ParmType getNestParmType(TempIndex fieldnum) const override
320  {
321  if (fieldnum.size() < 1)
322  return PARM_UNSUPPORTED;
323  switch (fieldnum[0])
324  {
325  case 0:
326  return PARM_STRING;
327  case 1:
328  return PARM_INTEGER;
329  case 2:
330  return PARM_STRING;
331  case 3:
332  return PARM_FLOAT;
333  case 4:
334  return PARM_INTEGER;
335  case 5:
336  return PARM_INTEGER;
337  case 6:
338  return PARM_INTEGER;
339  case 7:
340  return PARM_INTEGER;
341  case 8:
342  return PARM_STRING;
343  case 9:
344  return PARM_INTEGER;
345  case 10:
346  return PARM_STRING;
347 
348  }
349  return PARM_UNSUPPORTED;
350  }
351 
352  // Boiler plate to load individual types.
353  static void loadData(UT_IStream &is, int64 &v)
354  { is.bread(&v, 1); }
355  static void loadData(UT_IStream &is, bool &v)
356  { int64 iv; is.bread(&iv, 1); v = iv; }
357  static void loadData(UT_IStream &is, fpreal64 &v)
358  { is.bread<fpreal64>(&v, 1); }
359  static void loadData(UT_IStream &is, UT_Vector2D &v)
360  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
361  static void loadData(UT_IStream &is, UT_Vector3D &v)
362  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
363  is.bread<fpreal64>(&v.z(), 1); }
364  static void loadData(UT_IStream &is, UT_Vector4D &v)
365  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
366  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
367  static void loadData(UT_IStream &is, UT_Matrix2D &v)
368  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
369  static void loadData(UT_IStream &is, UT_Matrix3D &v)
370  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
371  static void loadData(UT_IStream &is, UT_Matrix4D &v)
372  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
373  static void loadData(UT_IStream &is, UT_Vector2I &v)
374  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector3I &v)
376  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
377  is.bread<int64>(&v.z(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector4I &v)
379  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
380  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
382  { is.bread(v); }
384  { UT_StringHolder rampdata;
385  loadData(is, rampdata);
386  if (rampdata.isstring())
387  {
388  v.reset(new UT_Ramp());
389  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
390  v->load(istr);
391  }
392  else v.reset();
393  }
396  loadData(is, data);
397  if (data.isstring())
398  {
399  // Find the data type.
400  const char *colon = UT_StringWrap(data).findChar(':');
401  if (colon)
402  {
403  int typelen = colon - data.buffer();
405  type.strncpy(data.buffer(), typelen);
406  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
407 
408  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
409  }
410  }
411  else v.reset();
412  }
413 
414  static void saveData(std::ostream &os, int64 v)
415  { UTwrite(os, &v); }
416  static void saveData(std::ostream &os, bool v)
417  { int64 iv = v; UTwrite(os, &iv); }
418  static void saveData(std::ostream &os, fpreal64 v)
419  { UTwrite<fpreal64>(os, &v); }
420  static void saveData(std::ostream &os, UT_Vector2D v)
421  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
422  static void saveData(std::ostream &os, UT_Vector3D v)
423  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
424  UTwrite<fpreal64>(os, &v.z()); }
425  static void saveData(std::ostream &os, UT_Vector4D v)
426  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
427  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
428  static void saveData(std::ostream &os, UT_Matrix2D v)
430  static void saveData(std::ostream &os, UT_Matrix3D v)
432  static void saveData(std::ostream &os, UT_Matrix4D v)
434  static void saveData(std::ostream &os, UT_StringHolder s)
435  { UT_StringWrap(s).saveBinary(os); }
436  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
438  UT_OStringStream ostr;
439  if (s) s->save(ostr);
440  result = ostr.str();
441  saveData(os, result);
442  }
443  static void saveData(std::ostream &os, PRM_DataItemHandle s)
445  UT_OStringStream ostr;
446  if (s)
447  {
448  ostr << s->getDataTypeToken();
449  ostr << ":";
450  s->saveBinary(ostr);
451  }
452  result = ostr.str();
453  saveData(os, result);
454  }
455 
456 
457  void save(std::ostream &os) const
458  {
459  int32 v = version();
460  UTwrite(os, &v);
461  saveData(os, myGroup);
462  saveData(os, myUsePieceAttrib);
463  saveData(os, myPieceAttrib);
464  saveData(os, myMaxConcavity);
465  saveData(os, myTreatAsSolid);
466  saveData(os, myMergeSegments);
467  saveData(os, myGeometryOutput);
468  saveData(os, myOutputSegmentAttrib);
469  saveData(os, mySegmentAttrib);
470  saveData(os, myOutputInteriorGroup);
471  saveData(os, myInteriorGroupName);
472 
473  }
474 
475  bool load(UT_IStream &is)
476  {
477  int32 v;
478  is.bread(&v, 1);
479  if (version() != v)
480  {
481  // Fail incompatible versions
482  return false;
483  }
484  loadData(is, myGroup);
485  loadData(is, myUsePieceAttrib);
486  loadData(is, myPieceAttrib);
487  loadData(is, myMaxConcavity);
488  loadData(is, myTreatAsSolid);
489  loadData(is, myMergeSegments);
490  loadData(is, myGeometryOutput);
491  loadData(is, myOutputSegmentAttrib);
492  loadData(is, mySegmentAttrib);
493  loadData(is, myOutputInteriorGroup);
494  loadData(is, myInteriorGroupName);
495 
496  return true;
497  }
498 
499  const UT_StringHolder & getGroup() const { return myGroup; }
500  void setGroup(const UT_StringHolder & val) { myGroup = val; }
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return getGroup();
506  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
507  return result;
508  }
509  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
510  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
511  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
512  {
513  SOP_Node *thissop = cookparms.getNode();
514  if (!thissop) return getUsePieceAttrib();
515  bool result;
516  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
517  return result;
518  }
519  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
520  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return getPieceAttrib();
526  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
527  return result;
528  }
529  fpreal64 getMaxConcavity() const { return myMaxConcavity; }
530  void setMaxConcavity(fpreal64 val) { myMaxConcavity = val; }
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return getMaxConcavity();
536  OP_Utils::evalOpParm(result, thissop, "maxconcavity", cookparms.getCookTime(), 0);
537  return result;
538  }
539  bool getTreatAsSolid() const { return myTreatAsSolid; }
540  void setTreatAsSolid(bool val) { myTreatAsSolid = val; }
541  bool opTreatAsSolid(const SOP_NodeVerb::CookParms &cookparms) const
542  {
543  SOP_Node *thissop = cookparms.getNode();
544  if (!thissop) return getTreatAsSolid();
545  bool result;
546  OP_Utils::evalOpParm(result, thissop, "treatassolid", cookparms.getCookTime(), 0);
547  return result;
548  }
549  bool getMergeSegments() const { return myMergeSegments; }
550  void setMergeSegments(bool val) { myMergeSegments = val; }
551  bool opMergeSegments(const SOP_NodeVerb::CookParms &cookparms) const
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getMergeSegments();
555  bool result;
556  OP_Utils::evalOpParm(result, thissop, "mergesegments", cookparms.getCookTime(), 0);
557  return result;
558  }
559  GeometryOutput getGeometryOutput() const { return GeometryOutput(myGeometryOutput); }
560  void setGeometryOutput(GeometryOutput val) { myGeometryOutput = int64(val); }
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getGeometryOutput();
565  int64 result;
566  OP_Utils::evalOpParm(result, thissop, "geometryoutput", cookparms.getCookTime(), 0);
567  return GeometryOutput(result);
568  }
569  bool getOutputSegmentAttrib() const { return myOutputSegmentAttrib; }
570  void setOutputSegmentAttrib(bool val) { myOutputSegmentAttrib = val; }
571  bool opOutputSegmentAttrib(const SOP_NodeVerb::CookParms &cookparms) const
572  {
573  SOP_Node *thissop = cookparms.getNode();
574  if (!thissop) return getOutputSegmentAttrib();
575  bool result;
576  OP_Utils::evalOpParm(result, thissop, "outputsegmentattrib", cookparms.getCookTime(), 0);
577  return result;
578  }
579  const UT_StringHolder & getSegmentAttrib() const { return mySegmentAttrib; }
580  void setSegmentAttrib(const UT_StringHolder & val) { mySegmentAttrib = val; }
582  {
583  SOP_Node *thissop = cookparms.getNode();
584  if (!thissop) return getSegmentAttrib();
586  OP_Utils::evalOpParm(result, thissop, "segmentattrib", cookparms.getCookTime(), 0);
587  return result;
588  }
589  bool getOutputInteriorGroup() const { return myOutputInteriorGroup; }
590  void setOutputInteriorGroup(bool val) { myOutputInteriorGroup = val; }
591  bool opOutputInteriorGroup(const SOP_NodeVerb::CookParms &cookparms) const
592  {
593  SOP_Node *thissop = cookparms.getNode();
594  if (!thissop) return getOutputInteriorGroup();
595  bool result;
596  OP_Utils::evalOpParm(result, thissop, "outputinteriorgroup", cookparms.getCookTime(), 0);
597  return result;
598  }
599  const UT_StringHolder & getInteriorGroupName() const { return myInteriorGroupName; }
600  void setInteriorGroupName(const UT_StringHolder & val) { myInteriorGroupName = val; }
602  {
603  SOP_Node *thissop = cookparms.getNode();
604  if (!thissop) return getInteriorGroupName();
606  OP_Utils::evalOpParm(result, thissop, "interiorgroupname", cookparms.getCookTime(), 0);
607  return result;
608  }
609 
610 private:
611  UT_StringHolder myGroup;
612  bool myUsePieceAttrib;
613  UT_StringHolder myPieceAttrib;
614  fpreal64 myMaxConcavity;
615  bool myTreatAsSolid;
616  bool myMergeSegments;
617  int64 myGeometryOutput;
618  bool myOutputSegmentAttrib;
619  UT_StringHolder mySegmentAttrib;
620  bool myOutputInteriorGroup;
621  UT_StringHolder myInteriorGroupName;
622 
623 };
GLdouble s
Definition: glew.h:1390
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
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_StringHolder &value) override
UT_StringHolder opPieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setInteriorGroupName(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool opOutputInteriorGroup(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const char * getNestParmName(TempIndex fieldnum) const override
GLuint const GLfloat * val
Definition: glew.h:2794
static void saveData(std::ostream &os, UT_Matrix3D v)
const UT_StringHolder & getInteriorGroupName() const
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
static void saveData(std::ostream &os, UT_Vector3D v)
An output stream object that owns its own string buffer storage.
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const GLdouble * v
Definition: glew.h:1391
fpreal64 opMaxConcavity(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_StringHolder & getPieceAttrib() const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
double fpreal64
Definition: SYS_Types.h:201
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, bool v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
ParmType getNestParmType(TempIndex fieldnum) const override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
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
const UT_StringHolder & getSegmentAttrib() const
exint getNestNumParms(TempIndex idx) const override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void saveData(std::ostream &os, UT_StringHolder s)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void copyFrom(const SOP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void save(std::ostream &os) const
const GLfloat * c
Definition: glew.h:16296
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
UT_StringHolder opSegmentAttrib(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setPieceAttrib(const UT_StringHolder &val)
void setSegmentAttrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
static void loadData(UT_IStream &is, int64 &v)
bool opOutputSegmentAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GeometryOutput opGeometryOutput(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool operator!=(const SOP_ConvexDecompositionParms &src) const
bool opTreatAsSolid(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
#define SOP_API
Definition: SOP_API.h:10
bool opMergeSegments(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
UT_StringHolder opInteriorGroupName(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix2D v)
GLsizei const GLfloat * value
Definition: glew.h:1849
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, UT_Vector2D v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
bool operator==(const SOP_ConvexDecompositionParms &src) const
bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)