HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  }
69 
70 
71 
72  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
73  {
74  if (true)
75  OP_Utils::evalOpParm(myAgroup, node, "agroup", time, 0);
76  else myAgroup = ""_sh;
77  if (true)
78  OP_Utils::evalOpParm(myBgroup, node, "bgroup", time, 0);
79  else myBgroup = ""_sh;
80  if (true)
81  OP_Utils::evalOpParm(myUseproxtol, node, "useproxtol", time, 0);
82  else myUseproxtol = true;
83  if (true && ( (!(((getUseproxtol()==0)))) ) )
84  OP_Utils::evalOpParm(myProxtol, node, "proxtol", time, 0);
85  else myProxtol = 0.01;
86  if (true)
87  OP_Utils::evalOpParm(myDetectverts, node, "detectverts", time, 0);
88  else myDetectverts = false;
89  if (true)
90  OP_Utils::evalOpParm(myOutputsegs, node, "outputsegs", time, 0);
91  else myOutputsegs = false;
92  if (true)
93  OP_Utils::evalOpParm(myUseinputnumattrib, node, "useinputnumattrib", time, 0);
94  else myUseinputnumattrib = false;
95  if (true && ( (!(((getUseinputnumattrib()==0)))) ) )
96  OP_Utils::evalOpParm(myInputnumattrib, node, "inputnumattrib", time, 0);
97  else myInputnumattrib = "sourceinput"_sh;
98  if (true)
99  OP_Utils::evalOpParm(myUseprimnumattrib, node, "useprimnumattrib", time, 0);
100  else myUseprimnumattrib = false;
101  if (true && ( (!(((getUseprimnumattrib()==0)))) ) )
102  OP_Utils::evalOpParm(myPrimnumattrib, node, "primnumattrib", time, 0);
103  else myPrimnumattrib = "sourceprim"_sh;
104  if (true)
105  OP_Utils::evalOpParm(myUseprimuvwattrib, node, "useprimuvwattrib", time, 0);
106  else myUseprimuvwattrib = false;
107  if (true && ( (!(((getUseprimuvwattrib()==0)))) ) )
108  OP_Utils::evalOpParm(myPrimuvwattrib, node, "primuvwattrib", time, 0);
109  else myPrimuvwattrib = "sourceprimuv"_sh;
110  if (true)
111  OP_Utils::evalOpParm(myUseptnumattrib, node, "useptnumattrib", time, 0);
112  else myUseptnumattrib = false;
113  if (true && ( (!(((getUseptnumattrib()==0)))) ) )
114  OP_Utils::evalOpParm(myPtnumattrib, node, "ptnumattrib", time, 0);
115  else myPtnumattrib = "sourceptnum"_sh;
116 
117  }
118 
119 
120  virtual void loadFromOpSubclass(const LoadParms &loadparms)
121  {
122  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
123  }
124 
125 
126  virtual void copyFrom(const SOP_NodeParms *src)
127  {
128  *this = *((const SOP_IntersectionAnalysisParms *)src);
129  }
130 
131  template <typename T>
132  void
133  doGetParmValue(exint idx, T &value) const
134  {
135  switch (idx)
136  {
137  case 0:
138  coerceValue(value, myAgroup);
139  break;
140  case 1:
141  coerceValue(value, myBgroup);
142  break;
143  case 2:
144  coerceValue(value, myUseproxtol);
145  break;
146  case 3:
147  coerceValue(value, myProxtol);
148  break;
149  case 4:
150  coerceValue(value, myDetectverts);
151  break;
152  case 5:
153  coerceValue(value, myOutputsegs);
154  break;
155  case 6:
156  coerceValue(value, myUseinputnumattrib);
157  break;
158  case 7:
159  coerceValue(value, myInputnumattrib);
160  break;
161  case 8:
162  coerceValue(value, myUseprimnumattrib);
163  break;
164  case 9:
165  coerceValue(value, myPrimnumattrib);
166  break;
167  case 10:
168  coerceValue(value, myUseprimuvwattrib);
169  break;
170  case 11:
171  coerceValue(value, myPrimuvwattrib);
172  break;
173  case 12:
174  coerceValue(value, myUseptnumattrib);
175  break;
176  case 13:
177  coerceValue(value, myPtnumattrib);
178  break;
179 
180  }
181  }
182 
183  void getParmValue(exint idx, exint &value) const
184  { doGetParmValue(idx, value); }
185  void getParmValue(exint idx, fpreal &value) const
186  { doGetParmValue(idx, value); }
188  { doGetParmValue(idx, value); }
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); }
205 
206  template <typename T>
207  void
208  doSetParmValue(exint idx, const T &value)
209  {
210  switch (idx)
211  {
212  case 0:
213  coerceValue(myAgroup, value);
214  break;
215  case 1:
216  coerceValue(myBgroup, value);
217  break;
218  case 2:
219  coerceValue(myUseproxtol, value);
220  break;
221  case 3:
222  coerceValue(myProxtol, value);
223  break;
224  case 4:
225  coerceValue(myDetectverts, value);
226  break;
227  case 5:
228  coerceValue(myOutputsegs, value);
229  break;
230  case 6:
231  coerceValue(myUseinputnumattrib, value);
232  break;
233  case 7:
234  coerceValue(myInputnumattrib, value);
235  break;
236  case 8:
237  coerceValue(myUseprimnumattrib, value);
238  break;
239  case 9:
240  coerceValue(myPrimnumattrib, value);
241  break;
242  case 10:
243  coerceValue(myUseprimuvwattrib, value);
244  break;
245  case 11:
246  coerceValue(myPrimuvwattrib, value);
247  break;
248  case 12:
249  coerceValue(myUseptnumattrib, value);
250  break;
251  case 13:
252  coerceValue(myPtnumattrib, value);
253  break;
254 
255  }
256  }
257 
258  void setParmValue(exint idx, const exint &value)
259  { doSetParmValue(idx, value); }
260  void setParmValue(exint idx, const fpreal &value)
261  { doSetParmValue(idx, value); }
262  void setParmValue(exint idx, const UT_Vector2D &value)
263  { doSetParmValue(idx, value); }
264  void setParmValue(exint idx, const UT_Vector3D &value)
265  { doSetParmValue(idx, value); }
266  void setParmValue(exint idx, const UT_Vector4D &value)
267  { doSetParmValue(idx, value); }
268  void setParmValue(exint idx, const UT_Matrix2D &value)
269  { doSetParmValue(idx, value); }
270  void setParmValue(exint idx, const UT_Matrix3D &value)
271  { doSetParmValue(idx, value); }
272  void setParmValue(exint idx, const UT_Matrix4D &value)
273  { doSetParmValue(idx, value); }
275  { doSetParmValue(idx, value); }
277  { doSetParmValue(idx, value); }
279  { doSetParmValue(idx, value); }
280 
281  virtual exint getNumParms() const
282  {
283  return 14;
284  }
285 
286  virtual const char *getParmName(exint fieldnum) const
287  {
288  switch (fieldnum)
289  {
290  case 0:
291  return "agroup";
292  case 1:
293  return "bgroup";
294  case 2:
295  return "useproxtol";
296  case 3:
297  return "proxtol";
298  case 4:
299  return "detectverts";
300  case 5:
301  return "outputsegs";
302  case 6:
303  return "useinputnumattrib";
304  case 7:
305  return "inputnumattrib";
306  case 8:
307  return "useprimnumattrib";
308  case 9:
309  return "primnumattrib";
310  case 10:
311  return "useprimuvwattrib";
312  case 11:
313  return "primuvwattrib";
314  case 12:
315  return "useptnumattrib";
316  case 13:
317  return "ptnumattrib";
318 
319  }
320  return 0;
321  }
322 
323  virtual ParmType getParmType(exint fieldnum) const
324  {
325  switch (fieldnum)
326  {
327  case 0:
328  return PARM_STRING;
329  case 1:
330  return PARM_STRING;
331  case 2:
332  return PARM_INTEGER;
333  case 3:
334  return PARM_FLOAT;
335  case 4:
336  return PARM_INTEGER;
337  case 5:
338  return PARM_INTEGER;
339  case 6:
340  return PARM_INTEGER;
341  case 7:
342  return PARM_STRING;
343  case 8:
344  return PARM_INTEGER;
345  case 9:
346  return PARM_STRING;
347  case 10:
348  return PARM_INTEGER;
349  case 11:
350  return PARM_STRING;
351  case 12:
352  return PARM_INTEGER;
353  case 13:
354  return PARM_STRING;
355 
356  }
357  return PARM_UNSUPPORTED;
358  }
359 
360  // Boiler plate to load individual types.
361  static void loadData(UT_IStream &is, int64 &v)
362  { is.bread(&v, 1); }
363  static void loadData(UT_IStream &is, bool &v)
364  { int64 iv; is.bread(&iv, 1); v = iv; }
365  static void loadData(UT_IStream &is, fpreal64 &v)
366  { is.bread<fpreal64>(&v, 1); }
367  static void loadData(UT_IStream &is, UT_Vector2D &v)
368  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
369  static void loadData(UT_IStream &is, UT_Vector3D &v)
370  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
371  is.bread<fpreal64>(&v.z(), 1); }
372  static void loadData(UT_IStream &is, UT_Vector4D &v)
373  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
374  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
375  static void loadData(UT_IStream &is, UT_Matrix2D &v)
376  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
377  static void loadData(UT_IStream &is, UT_Matrix3D &v)
378  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix4D &v)
380  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Vector2I &v)
382  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
383  static void loadData(UT_IStream &is, UT_Vector3I &v)
384  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
385  is.bread<int64>(&v.z(), 1); }
386  static void loadData(UT_IStream &is, UT_Vector4I &v)
387  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
388  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
390  { is.bread(v); }
392  { UT_StringHolder rampdata;
393  loadData(is, rampdata);
394  if (rampdata.isstring())
395  {
396  v.reset(new UT_Ramp());
397  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
398  v->load(istr);
399  }
400  else v.reset();
401  }
404  loadData(is, data);
405  if (data.isstring())
406  {
407  // Find the data type.
408  char *colon = UT_StringWrap(data).findChar(':');
409  if (colon)
410  {
411  int typelen = colon - data.buffer();
413  type.strncpy(data.buffer(), typelen);
414  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
415 
416  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
417  }
418  }
419  else v.reset();
420  }
421 
422  static void saveData(std::ostream &os, int64 v)
423  { UTwrite(os, &v); }
424  static void saveData(std::ostream &os, bool v)
425  { int64 iv = v; UTwrite(os, &iv); }
426  static void saveData(std::ostream &os, fpreal64 v)
427  { UTwrite<fpreal64>(os, &v); }
428  static void saveData(std::ostream &os, UT_Vector2D v)
429  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
430  static void saveData(std::ostream &os, UT_Vector3D v)
431  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
432  UTwrite<fpreal64>(os, &v.z()); }
433  static void saveData(std::ostream &os, UT_Vector4D v)
434  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
435  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
436  static void saveData(std::ostream &os, UT_Matrix2D v)
438  static void saveData(std::ostream &os, UT_Matrix3D v)
440  static void saveData(std::ostream &os, UT_Matrix4D v)
442  static void saveData(std::ostream &os, UT_StringHolder s)
443  { UT_StringWrap(s).saveBinary(os); }
444  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
445  { UT_StringHolder result;
446  UT_OStringStream ostr;
447  if (s) s->save(ostr);
448  result = ostr.str();
449  saveData(os, result);
450  }
451  static void saveData(std::ostream &os, PRM_DataItemHandle s)
452  { UT_StringHolder result;
453  UT_OStringStream ostr;
454  if (s)
455  {
456  ostr << s->getDataTypeToken();
457  ostr << ":";
458  s->saveBinary(ostr);
459  }
460  result = ostr.str();
461  saveData(os, result);
462  }
463 
464 
465  void save(std::ostream &os) const
466  {
467  int32 v = version();
468  UTwrite(os, &v);
469  saveData(os, myAgroup);
470  saveData(os, myBgroup);
471  saveData(os, myUseproxtol);
472  saveData(os, myProxtol);
473  saveData(os, myDetectverts);
474  saveData(os, myOutputsegs);
475  saveData(os, myUseinputnumattrib);
476  saveData(os, myInputnumattrib);
477  saveData(os, myUseprimnumattrib);
478  saveData(os, myPrimnumattrib);
479  saveData(os, myUseprimuvwattrib);
480  saveData(os, myPrimuvwattrib);
481  saveData(os, myUseptnumattrib);
482  saveData(os, myPtnumattrib);
483 
484  }
485 
486  bool load(UT_IStream &is)
487  {
488  int32 v;
489  is.bread(&v, 1);
490  if (version() != v)
491  {
492  // Fail incompatible versions
493  return false;
494  }
495  loadData(is, myAgroup);
496  loadData(is, myBgroup);
497  loadData(is, myUseproxtol);
498  loadData(is, myProxtol);
499  loadData(is, myDetectverts);
500  loadData(is, myOutputsegs);
501  loadData(is, myUseinputnumattrib);
502  loadData(is, myInputnumattrib);
503  loadData(is, myUseprimnumattrib);
504  loadData(is, myPrimnumattrib);
505  loadData(is, myUseprimuvwattrib);
506  loadData(is, myPrimuvwattrib);
507  loadData(is, myUseptnumattrib);
508  loadData(is, myPtnumattrib);
509 
510  return true;
511  }
512 
513  const UT_StringHolder & getAgroup() const { return myAgroup; }
514  void setAgroup(const UT_StringHolder & val) { myAgroup = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getAgroup();
519  UT_StringHolder result;
520  OP_Utils::evalOpParm(result, thissop, "agroup", cookparms.getCookTime(), 0);
521  return result;
522  }
523  const UT_StringHolder & getBgroup() const { return myBgroup; }
524  void setBgroup(const UT_StringHolder & val) { myBgroup = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getBgroup();
529  UT_StringHolder result;
530  OP_Utils::evalOpParm(result, thissop, "bgroup", cookparms.getCookTime(), 0);
531  return result;
532  }
533  bool getUseproxtol() const { return myUseproxtol; }
534  void setUseproxtol(bool val) { myUseproxtol = val; }
535  bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getUseproxtol();
539  bool result;
540  OP_Utils::evalOpParm(result, thissop, "useproxtol", cookparms.getCookTime(), 0);
541  return result;
542  }
543  fpreal64 getProxtol() const { return myProxtol; }
544  void setProxtol(fpreal64 val) { myProxtol = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getProxtol();
549  fpreal64 result;
550  OP_Utils::evalOpParm(result, thissop, "proxtol", cookparms.getCookTime(), 0);
551  return result;
552  }
553  bool getDetectverts() const { return myDetectverts; }
554  void setDetectverts(bool val) { myDetectverts = val; }
555  bool opDetectverts(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getDetectverts();
559  bool result;
560  OP_Utils::evalOpParm(result, thissop, "detectverts", cookparms.getCookTime(), 0);
561  return result;
562  }
563  bool getOutputsegs() const { return myOutputsegs; }
564  void setOutputsegs(bool val) { myOutputsegs = val; }
565  bool opOutputsegs(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getOutputsegs();
569  bool result;
570  OP_Utils::evalOpParm(result, thissop, "outputsegs", cookparms.getCookTime(), 0);
571  return result;
572  }
573  bool getUseinputnumattrib() const { return myUseinputnumattrib; }
574  void setUseinputnumattrib(bool val) { myUseinputnumattrib = val; }
575  bool opUseinputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getUseinputnumattrib();
579  bool result;
580  OP_Utils::evalOpParm(result, thissop, "useinputnumattrib", cookparms.getCookTime(), 0);
581  return result;
582  }
583  const UT_StringHolder & getInputnumattrib() const { return myInputnumattrib; }
584  void setInputnumattrib(const UT_StringHolder & val) { myInputnumattrib = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getInputnumattrib();
589  UT_StringHolder result;
590  OP_Utils::evalOpParm(result, thissop, "inputnumattrib", cookparms.getCookTime(), 0);
591  return result;
592  }
593  bool getUseprimnumattrib() const { return myUseprimnumattrib; }
594  void setUseprimnumattrib(bool val) { myUseprimnumattrib = val; }
595  bool opUseprimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getUseprimnumattrib();
599  bool result;
600  OP_Utils::evalOpParm(result, thissop, "useprimnumattrib", cookparms.getCookTime(), 0);
601  return result;
602  }
603  const UT_StringHolder & getPrimnumattrib() const { return myPrimnumattrib; }
604  void setPrimnumattrib(const UT_StringHolder & val) { myPrimnumattrib = val; }
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getPrimnumattrib();
609  UT_StringHolder result;
610  OP_Utils::evalOpParm(result, thissop, "primnumattrib", cookparms.getCookTime(), 0);
611  return result;
612  }
613  bool getUseprimuvwattrib() const { return myUseprimuvwattrib; }
614  void setUseprimuvwattrib(bool val) { myUseprimuvwattrib = val; }
615  bool opUseprimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getUseprimuvwattrib();
619  bool result;
620  OP_Utils::evalOpParm(result, thissop, "useprimuvwattrib", cookparms.getCookTime(), 0);
621  return result;
622  }
623  const UT_StringHolder & getPrimuvwattrib() const { return myPrimuvwattrib; }
624  void setPrimuvwattrib(const UT_StringHolder & val) { myPrimuvwattrib = val; }
626  {
627  SOP_Node *thissop = cookparms.getNode();
628  if (!thissop) return getPrimuvwattrib();
629  UT_StringHolder result;
630  OP_Utils::evalOpParm(result, thissop, "primuvwattrib", cookparms.getCookTime(), 0);
631  return result;
632  }
633  bool getUseptnumattrib() const { return myUseptnumattrib; }
634  void setUseptnumattrib(bool val) { myUseptnumattrib = val; }
635  bool opUseptnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
636  {
637  SOP_Node *thissop = cookparms.getNode();
638  if (!thissop) return getUseptnumattrib();
639  bool result;
640  OP_Utils::evalOpParm(result, thissop, "useptnumattrib", cookparms.getCookTime(), 0);
641  return result;
642  }
643  const UT_StringHolder & getPtnumattrib() const { return myPtnumattrib; }
644  void setPtnumattrib(const UT_StringHolder & val) { myPtnumattrib = val; }
646  {
647  SOP_Node *thissop = cookparms.getNode();
648  if (!thissop) return getPtnumattrib();
649  UT_StringHolder result;
650  OP_Utils::evalOpParm(result, thissop, "ptnumattrib", cookparms.getCookTime(), 0);
651  return result;
652  }
653 
654 private:
655  UT_StringHolder myAgroup;
656  UT_StringHolder myBgroup;
657  bool myUseproxtol;
658  fpreal64 myProxtol;
659  bool myDetectverts;
660  bool myOutputsegs;
661  bool myUseinputnumattrib;
662  UT_StringHolder myInputnumattrib;
663  bool myUseprimnumattrib;
664  UT_StringHolder myPrimnumattrib;
665  bool myUseprimuvwattrib;
666  UT_StringHolder myPrimuvwattrib;
667  bool myUseptnumattrib;
668  UT_StringHolder myPtnumattrib;
669 
670 };
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:492
UT_StringHolder opPrimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
T & z(void)
Definition: UT_Vector4.h:372
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)
fpreal getTime() const
Definition: OP_Context.h:34
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
T & x(void)
Definition: UT_Vector2.h:284
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:581
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:585
const UT_StringHolder & getPrimuvwattrib() const
void setPrimnumattrib(const UT_StringHolder &val)
long long int64
Definition: SYS_Types.h:106
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
int64 exint
Definition: SYS_Types.h:115
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:191
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
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:34
T & y(void)
Definition: UT_Vector4.h:370
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
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:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:269
void strncpy(const char *src, exint maxlen)
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)
const char * buffer() const
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:499
T & x(void)
Definition: UT_Vector4.h:368
virtual void loadFromOpSubclass(const LoadParms &loadparms)
T & y(void)
Definition: UT_Vector2.h:286
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:374
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
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
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