HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_IntersectionAnalysis.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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 
23 {
24 public:
25  static int version() { return 1; }
26 
28  {
29  myAgroup = ""_sh;
30  myBgroup = ""_sh;
31  myUseproxtol = true;
32  myProxtol = 0.01;
33  myDetectverts = false;
34  myOutputsegs = false;
35  myUseinputnumattrib = false;
36  myInputnumattrib = "sourceinput"_sh;
37  myUseprimnumattrib = false;
38  myPrimnumattrib = "sourceprim"_sh;
39  myUseprimuvwattrib = false;
40  myPrimuvwattrib = "sourceprimuv"_sh;
41  myUseptnumattrib = false;
42  myPtnumattrib = "sourceptnum"_sh;
43 
44  }
45 
47 
49 
51  {
52  if (myAgroup != src.myAgroup) return false;
53  if (myBgroup != src.myBgroup) return false;
54  if (myUseproxtol != src.myUseproxtol) return false;
55  if (myProxtol != src.myProxtol) return false;
56  if (myDetectverts != src.myDetectverts) return false;
57  if (myOutputsegs != src.myOutputsegs) return false;
58  if (myUseinputnumattrib != src.myUseinputnumattrib) return false;
59  if (myInputnumattrib != src.myInputnumattrib) return false;
60  if (myUseprimnumattrib != src.myUseprimnumattrib) return false;
61  if (myPrimnumattrib != src.myPrimnumattrib) return false;
62  if (myUseprimuvwattrib != src.myUseprimuvwattrib) return false;
63  if (myPrimuvwattrib != src.myPrimuvwattrib) return false;
64  if (myUseptnumattrib != src.myUseptnumattrib) return false;
65  if (myPtnumattrib != src.myPtnumattrib) return false;
66 
67  return true;
68  }
70  {
71  return !operator==(src);
72  }
73 
74 
75 
76  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
77  {
78  if (true)
79  OP_Utils::evalOpParm(myAgroup, node, "agroup", time, 0);
80  else myAgroup = ""_sh;
81  if (true)
82  OP_Utils::evalOpParm(myBgroup, node, "bgroup", time, 0);
83  else myBgroup = ""_sh;
84  if (true)
85  OP_Utils::evalOpParm(myUseproxtol, node, "useproxtol", time, 0);
86  else myUseproxtol = true;
87  if (true && ( (!(((getUseproxtol()==0)))) ) )
88  OP_Utils::evalOpParm(myProxtol, node, "proxtol", time, 0);
89  else myProxtol = 0.01;
90  if (true)
91  OP_Utils::evalOpParm(myDetectverts, node, "detectverts", time, 0);
92  else myDetectverts = false;
93  if (true)
94  OP_Utils::evalOpParm(myOutputsegs, node, "outputsegs", time, 0);
95  else myOutputsegs = false;
96  if (true)
97  OP_Utils::evalOpParm(myUseinputnumattrib, node, "useinputnumattrib", time, 0);
98  else myUseinputnumattrib = false;
99  if (true && ( (!(((getUseinputnumattrib()==0)))) ) )
100  OP_Utils::evalOpParm(myInputnumattrib, node, "inputnumattrib", time, 0);
101  else myInputnumattrib = "sourceinput"_sh;
102  if (true)
103  OP_Utils::evalOpParm(myUseprimnumattrib, node, "useprimnumattrib", time, 0);
104  else myUseprimnumattrib = false;
105  if (true && ( (!(((getUseprimnumattrib()==0)))) ) )
106  OP_Utils::evalOpParm(myPrimnumattrib, node, "primnumattrib", time, 0);
107  else myPrimnumattrib = "sourceprim"_sh;
108  if (true)
109  OP_Utils::evalOpParm(myUseprimuvwattrib, node, "useprimuvwattrib", time, 0);
110  else myUseprimuvwattrib = false;
111  if (true && ( (!(((getUseprimuvwattrib()==0)))) ) )
112  OP_Utils::evalOpParm(myPrimuvwattrib, node, "primuvwattrib", time, 0);
113  else myPrimuvwattrib = "sourceprimuv"_sh;
114  if (true)
115  OP_Utils::evalOpParm(myUseptnumattrib, node, "useptnumattrib", time, 0);
116  else myUseptnumattrib = false;
117  if (true && ( (!(((getUseptnumattrib()==0)))) ) )
118  OP_Utils::evalOpParm(myPtnumattrib, node, "ptnumattrib", time, 0);
119  else myPtnumattrib = "sourceptnum"_sh;
120 
121  }
122 
123 
124  virtual void loadFromOpSubclass(const LoadParms &loadparms)
125  {
126  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
127  }
128 
129 
130  virtual void copyFrom(const SOP_NodeParms *src)
131  {
132  *this = *((const SOP_IntersectionAnalysisParms *)src);
133  }
134 
135  template <typename T>
136  void
137  doGetParmValue(exint idx, T &value) const
138  {
139  switch (idx)
140  {
141  case 0:
142  coerceValue(value, myAgroup);
143  break;
144  case 1:
145  coerceValue(value, myBgroup);
146  break;
147  case 2:
148  coerceValue(value, myUseproxtol);
149  break;
150  case 3:
151  coerceValue(value, myProxtol);
152  break;
153  case 4:
154  coerceValue(value, myDetectverts);
155  break;
156  case 5:
157  coerceValue(value, myOutputsegs);
158  break;
159  case 6:
160  coerceValue(value, myUseinputnumattrib);
161  break;
162  case 7:
163  coerceValue(value, myInputnumattrib);
164  break;
165  case 8:
166  coerceValue(value, myUseprimnumattrib);
167  break;
168  case 9:
169  coerceValue(value, myPrimnumattrib);
170  break;
171  case 10:
172  coerceValue(value, myUseprimuvwattrib);
173  break;
174  case 11:
175  coerceValue(value, myPrimuvwattrib);
176  break;
177  case 12:
178  coerceValue(value, myUseptnumattrib);
179  break;
180  case 13:
181  coerceValue(value, myPtnumattrib);
182  break;
183 
184  }
185  }
186 
187  void getParmValue(exint idx, exint &value) const
188  { doGetParmValue(idx, value); }
189  void getParmValue(exint idx, fpreal &value) const
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
204  { doGetParmValue(idx, value); }
206  { doGetParmValue(idx, value); }
208  { doGetParmValue(idx, value); }
209 
210  template <typename T>
211  void
212  doSetParmValue(exint idx, const T &value)
213  {
214  switch (idx)
215  {
216  case 0:
217  coerceValue(myAgroup, value);
218  break;
219  case 1:
220  coerceValue(myBgroup, value);
221  break;
222  case 2:
223  coerceValue(myUseproxtol, value);
224  break;
225  case 3:
226  coerceValue(myProxtol, value);
227  break;
228  case 4:
229  coerceValue(myDetectverts, value);
230  break;
231  case 5:
232  coerceValue(myOutputsegs, value);
233  break;
234  case 6:
235  coerceValue(myUseinputnumattrib, value);
236  break;
237  case 7:
238  coerceValue(myInputnumattrib, value);
239  break;
240  case 8:
241  coerceValue(myUseprimnumattrib, value);
242  break;
243  case 9:
244  coerceValue(myPrimnumattrib, value);
245  break;
246  case 10:
247  coerceValue(myUseprimuvwattrib, value);
248  break;
249  case 11:
250  coerceValue(myPrimuvwattrib, value);
251  break;
252  case 12:
253  coerceValue(myUseptnumattrib, value);
254  break;
255  case 13:
256  coerceValue(myPtnumattrib, value);
257  break;
258 
259  }
260  }
261 
262  void setParmValue(exint idx, const exint &value)
263  { doSetParmValue(idx, value); }
264  void setParmValue(exint idx, const fpreal &value)
265  { doSetParmValue(idx, value); }
266  void setParmValue(exint idx, const UT_Vector2D &value)
267  { doSetParmValue(idx, value); }
268  void setParmValue(exint idx, const UT_Vector3D &value)
269  { doSetParmValue(idx, value); }
270  void setParmValue(exint idx, const UT_Vector4D &value)
271  { doSetParmValue(idx, value); }
272  void setParmValue(exint idx, const UT_Matrix2D &value)
273  { doSetParmValue(idx, value); }
274  void setParmValue(exint idx, const UT_Matrix3D &value)
275  { doSetParmValue(idx, value); }
276  void setParmValue(exint idx, const UT_Matrix4D &value)
277  { doSetParmValue(idx, value); }
279  { doSetParmValue(idx, value); }
281  { doSetParmValue(idx, value); }
283  { doSetParmValue(idx, value); }
284 
285  virtual exint getNumParms() const
286  {
287  return 14;
288  }
289 
290  virtual const char *getParmName(exint fieldnum) const
291  {
292  switch (fieldnum)
293  {
294  case 0:
295  return "agroup";
296  case 1:
297  return "bgroup";
298  case 2:
299  return "useproxtol";
300  case 3:
301  return "proxtol";
302  case 4:
303  return "detectverts";
304  case 5:
305  return "outputsegs";
306  case 6:
307  return "useinputnumattrib";
308  case 7:
309  return "inputnumattrib";
310  case 8:
311  return "useprimnumattrib";
312  case 9:
313  return "primnumattrib";
314  case 10:
315  return "useprimuvwattrib";
316  case 11:
317  return "primuvwattrib";
318  case 12:
319  return "useptnumattrib";
320  case 13:
321  return "ptnumattrib";
322 
323  }
324  return 0;
325  }
326 
327  virtual ParmType getParmType(exint fieldnum) const
328  {
329  switch (fieldnum)
330  {
331  case 0:
332  return PARM_STRING;
333  case 1:
334  return PARM_STRING;
335  case 2:
336  return PARM_INTEGER;
337  case 3:
338  return PARM_FLOAT;
339  case 4:
340  return PARM_INTEGER;
341  case 5:
342  return PARM_INTEGER;
343  case 6:
344  return PARM_INTEGER;
345  case 7:
346  return PARM_STRING;
347  case 8:
348  return PARM_INTEGER;
349  case 9:
350  return PARM_STRING;
351  case 10:
352  return PARM_INTEGER;
353  case 11:
354  return PARM_STRING;
355  case 12:
356  return PARM_INTEGER;
357  case 13:
358  return PARM_STRING;
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  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)
449  { UT_StringHolder result;
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)
456  { UT_StringHolder result;
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, myAgroup);
474  saveData(os, myBgroup);
475  saveData(os, myUseproxtol);
476  saveData(os, myProxtol);
477  saveData(os, myDetectverts);
478  saveData(os, myOutputsegs);
479  saveData(os, myUseinputnumattrib);
480  saveData(os, myInputnumattrib);
481  saveData(os, myUseprimnumattrib);
482  saveData(os, myPrimnumattrib);
483  saveData(os, myUseprimuvwattrib);
484  saveData(os, myPrimuvwattrib);
485  saveData(os, myUseptnumattrib);
486  saveData(os, myPtnumattrib);
487 
488  }
489 
490  bool load(UT_IStream &is)
491  {
492  int32 v;
493  is.bread(&v, 1);
494  if (version() != v)
495  {
496  // Fail incompatible versions
497  return false;
498  }
499  loadData(is, myAgroup);
500  loadData(is, myBgroup);
501  loadData(is, myUseproxtol);
502  loadData(is, myProxtol);
503  loadData(is, myDetectverts);
504  loadData(is, myOutputsegs);
505  loadData(is, myUseinputnumattrib);
506  loadData(is, myInputnumattrib);
507  loadData(is, myUseprimnumattrib);
508  loadData(is, myPrimnumattrib);
509  loadData(is, myUseprimuvwattrib);
510  loadData(is, myPrimuvwattrib);
511  loadData(is, myUseptnumattrib);
512  loadData(is, myPtnumattrib);
513 
514  return true;
515  }
516 
517  const UT_StringHolder & getAgroup() const { return myAgroup; }
518  void setAgroup(const UT_StringHolder & val) { myAgroup = val; }
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getAgroup();
523  UT_StringHolder result;
524  OP_Utils::evalOpParm(result, thissop, "agroup", cookparms.getCookTime(), 0);
525  return result;
526  }
527  const UT_StringHolder & getBgroup() const { return myBgroup; }
528  void setBgroup(const UT_StringHolder & val) { myBgroup = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getBgroup();
533  UT_StringHolder result;
534  OP_Utils::evalOpParm(result, thissop, "bgroup", cookparms.getCookTime(), 0);
535  return result;
536  }
537  bool getUseproxtol() const { return myUseproxtol; }
538  void setUseproxtol(bool val) { myUseproxtol = val; }
539  bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getUseproxtol();
543  bool result;
544  OP_Utils::evalOpParm(result, thissop, "useproxtol", cookparms.getCookTime(), 0);
545  return result;
546  }
547  fpreal64 getProxtol() const { return myProxtol; }
548  void setProxtol(fpreal64 val) { myProxtol = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getProxtol();
553  fpreal64 result;
554  OP_Utils::evalOpParm(result, thissop, "proxtol", cookparms.getCookTime(), 0);
555  return result;
556  }
557  bool getDetectverts() const { return myDetectverts; }
558  void setDetectverts(bool val) { myDetectverts = val; }
559  bool opDetectverts(const SOP_NodeVerb::CookParms &cookparms) const
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getDetectverts();
563  bool result;
564  OP_Utils::evalOpParm(result, thissop, "detectverts", cookparms.getCookTime(), 0);
565  return result;
566  }
567  bool getOutputsegs() const { return myOutputsegs; }
568  void setOutputsegs(bool val) { myOutputsegs = val; }
569  bool opOutputsegs(const SOP_NodeVerb::CookParms &cookparms) const
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getOutputsegs();
573  bool result;
574  OP_Utils::evalOpParm(result, thissop, "outputsegs", cookparms.getCookTime(), 0);
575  return result;
576  }
577  bool getUseinputnumattrib() const { return myUseinputnumattrib; }
578  void setUseinputnumattrib(bool val) { myUseinputnumattrib = val; }
579  bool opUseinputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getUseinputnumattrib();
583  bool result;
584  OP_Utils::evalOpParm(result, thissop, "useinputnumattrib", cookparms.getCookTime(), 0);
585  return result;
586  }
587  const UT_StringHolder & getInputnumattrib() const { return myInputnumattrib; }
588  void setInputnumattrib(const UT_StringHolder & val) { myInputnumattrib = val; }
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getInputnumattrib();
593  UT_StringHolder result;
594  OP_Utils::evalOpParm(result, thissop, "inputnumattrib", cookparms.getCookTime(), 0);
595  return result;
596  }
597  bool getUseprimnumattrib() const { return myUseprimnumattrib; }
598  void setUseprimnumattrib(bool val) { myUseprimnumattrib = val; }
599  bool opUseprimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getUseprimnumattrib();
603  bool result;
604  OP_Utils::evalOpParm(result, thissop, "useprimnumattrib", cookparms.getCookTime(), 0);
605  return result;
606  }
607  const UT_StringHolder & getPrimnumattrib() const { return myPrimnumattrib; }
608  void setPrimnumattrib(const UT_StringHolder & val) { myPrimnumattrib = val; }
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getPrimnumattrib();
613  UT_StringHolder result;
614  OP_Utils::evalOpParm(result, thissop, "primnumattrib", cookparms.getCookTime(), 0);
615  return result;
616  }
617  bool getUseprimuvwattrib() const { return myUseprimuvwattrib; }
618  void setUseprimuvwattrib(bool val) { myUseprimuvwattrib = val; }
619  bool opUseprimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getUseprimuvwattrib();
623  bool result;
624  OP_Utils::evalOpParm(result, thissop, "useprimuvwattrib", cookparms.getCookTime(), 0);
625  return result;
626  }
627  const UT_StringHolder & getPrimuvwattrib() const { return myPrimuvwattrib; }
628  void setPrimuvwattrib(const UT_StringHolder & val) { myPrimuvwattrib = val; }
630  {
631  SOP_Node *thissop = cookparms.getNode();
632  if (!thissop) return getPrimuvwattrib();
633  UT_StringHolder result;
634  OP_Utils::evalOpParm(result, thissop, "primuvwattrib", cookparms.getCookTime(), 0);
635  return result;
636  }
637  bool getUseptnumattrib() const { return myUseptnumattrib; }
638  void setUseptnumattrib(bool val) { myUseptnumattrib = val; }
639  bool opUseptnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
640  {
641  SOP_Node *thissop = cookparms.getNode();
642  if (!thissop) return getUseptnumattrib();
643  bool result;
644  OP_Utils::evalOpParm(result, thissop, "useptnumattrib", cookparms.getCookTime(), 0);
645  return result;
646  }
647  const UT_StringHolder & getPtnumattrib() const { return myPtnumattrib; }
648  void setPtnumattrib(const UT_StringHolder & val) { myPtnumattrib = val; }
650  {
651  SOP_Node *thissop = cookparms.getNode();
652  if (!thissop) return getPtnumattrib();
653  UT_StringHolder result;
654  OP_Utils::evalOpParm(result, thissop, "ptnumattrib", cookparms.getCookTime(), 0);
655  return result;
656  }
657 
658 private:
659  UT_StringHolder myAgroup;
660  UT_StringHolder myBgroup;
661  bool myUseproxtol;
662  fpreal64 myProxtol;
663  bool myDetectverts;
664  bool myOutputsegs;
665  bool myUseinputnumattrib;
666  UT_StringHolder myInputnumattrib;
667  bool myUseprimnumattrib;
668  UT_StringHolder myPrimnumattrib;
669  bool myUseprimuvwattrib;
670  UT_StringHolder myPrimuvwattrib;
671  bool myUseptnumattrib;
672  UT_StringHolder myPtnumattrib;
673 
674 };
static void saveData(std::ostream &os, UT_Matrix2D v)
void getParmValue(exint idx, UT_Matrix3D &value) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setParmValue(exint idx, const exint &value)
bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
UT_StringHolder opPrimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
T & z(void)
Definition: UT_Vector4.h:379
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setPtnumattrib(const UT_StringHolder &val)
void getParmValue(exint idx, exint &value) const
virtual void copyFrom(const SOP_NodeParms *src)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Vector4D v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setParmValue(exint idx, const UT_StringHolder &value)
fpreal64 opProxtol(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
void setParmValue(exint idx, const UT_Matrix3D &value)
void setParmValue(exint idx, const UT_Matrix2D &value)
An output stream object that owns its own string buffer storage.
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
void getParmValue(exint idx, UT_Matrix4D &value) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void doGetParmValue(exint idx, T &value) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setParmValue(exint idx, const UT_Vector3D &value)
bool opUseprimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
const UT_StringHolder & getPrimuvwattrib() const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setPrimnumattrib(const UT_StringHolder &val)
long long int64
Definition: SYS_Types.h:107
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool opUseprimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getAgroup() const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
void setParmValue(exint idx, const UT_Vector4D &value)
virtual ParmType getParmType(exint fieldnum) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, int64 &v)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
static void loadData(UT_IStream &is, UT_Matrix4D &v)
const UT_StringHolder & getPrimnumattrib() const
void setParmValue(exint idx, const UT_Vector2D &value)
UT_StringHolder opInputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getBgroup() const
bool operator!=(const SOP_IntersectionAnalysisParms &src) const
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
static void saveData(std::ostream &os, UT_Vector3D v)
void doSetParmValue(exint idx, const T &value)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, fpreal64 &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
UT_StringHolder opAgroup(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
static void saveData(std::ostream &os, fpreal64 v)
void getParmValue(exint idx, UT_StringHolder &value) const
UT_StringHolder opPtnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
void getParmValue(exint idx, UT_Vector2D &value) const
void setBgroup(const UT_StringHolder &val)
void setParmValue(exint idx, const fpreal &value)
static void saveData(std::ostream &os, int64 v)
virtual const char * getParmName(exint fieldnum) const
UT_StringHolder opPrimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
bool opUseptnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setParmValue(exint idx, const UT_Matrix4D &value)
static void saveData(std::ostream &os, UT_Vector2D v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
void getParmValue(exint idx, UT_Matrix2D &value) const
#define SOP_API
Definition: SOP_API.h:10
bool opUseinputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
void getParmValue(exint idx, UT_Vector3D &value) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
virtual void loadFromOpSubclass(const LoadParms &loadparms)
T & y(void)
Definition: UT_Vector2.h:287
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
GLboolean r
Definition: glcorearb.h:1221
void getParmValue(exint idx, UT_Vector4D &value) const
static void saveData(std::ostream &os, UT_Matrix4D v)
void setInputnumattrib(const UT_StringHolder &val)
void setPrimuvwattrib(const UT_StringHolder &val)
T & w(void)
Definition: UT_Vector4.h:381
const UT_StringHolder & getPtnumattrib() const
static void saveData(std::ostream &os, UT_Matrix3D v)
void getParmValue(exint idx, fpreal &value) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
UT_StringHolder opBgroup(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
bool opDetectverts(const SOP_NodeVerb::CookParms &cookparms) const
void setAgroup(const UT_StringHolder &val)
SYS_FORCE_INLINE bool isstring() const
const UT_StringHolder & getInputnumattrib() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool operator==(const SOP_IntersectionAnalysisParms &src) const
static void saveData(std::ostream &os, bool v)
GLenum src
Definition: glcorearb.h:1792
bool opOutputsegs(const SOP_NodeVerb::CookParms &cookparms) const