HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_ProximityCapture.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_ProximityCaptureEnums
24 {
25  enum class Captureregionsop
26  {
27  DISPLAY = 0,
28  RENDER,
29  CAPTURE
30  };
31  enum class Cookat
32  {
33  CAPTUREFRAME = 0,
34  EVERYFRAME
35  };
36  enum class Weightmethod
37  {
40  };
41  enum class Weightfrom
42  {
43  CV = 0,
44  SURFACE
45  };
46  enum class Color
47  {
48  COLDEFAULT = 0,
49  COLREGION
50  };
51 }
52 
53 
55 {
56 public:
57  static int version() { return 1; }
58 
60  {
61  myGroup = ""_sh;
62  myCapturegroup = ""_sh;
63  myRootpath = ""_sh;
64  myExtraregions = ""_sh;
65  myCaptureregionsop = 2;
66  myDosubnets = false;
67  myRelativeskel = true;
68  myUsecaptpose = false;
69  myCookat = 0;
70  myCaptframe = 0;
71  myWeightmethod = 0;
72  myWeightfrom = 0;
73  myDropoff = 1;
74  myMaxinfluences = 2;
75  myNormweights = true;
76  myDestroyweights = true;
77  myBlendfactor = 1;
78  myColor = 0;
79  myZeroweightcolor = UT_Vector3D(1,1,1);
80 
81  }
82 
83  explicit SOP_ProximityCaptureParms(const SOP_ProximityCaptureParms &) = default;
84 
86 
88  {
89  if (myGroup != src.myGroup) return false;
90  if (myCapturegroup != src.myCapturegroup) return false;
91  if (myRootpath != src.myRootpath) return false;
92  if (myExtraregions != src.myExtraregions) return false;
93  if (myCaptureregionsop != src.myCaptureregionsop) return false;
94  if (myDosubnets != src.myDosubnets) return false;
95  if (myRelativeskel != src.myRelativeskel) return false;
96  if (myUsecaptpose != src.myUsecaptpose) return false;
97  if (myCookat != src.myCookat) return false;
98  if (myCaptframe != src.myCaptframe) return false;
99  if (myWeightmethod != src.myWeightmethod) return false;
100  if (myWeightfrom != src.myWeightfrom) return false;
101  if (myDropoff != src.myDropoff) return false;
102  if (myMaxinfluences != src.myMaxinfluences) return false;
103  if (myNormweights != src.myNormweights) return false;
104  if (myDestroyweights != src.myDestroyweights) return false;
105  if (myBlendfactor != src.myBlendfactor) return false;
106  if (myColor != src.myColor) return false;
107  if (myZeroweightcolor != src.myZeroweightcolor) return false;
108 
109  return true;
110  }
112  {
113  return !operator==(src);
114  }
120 
121 
122 
123  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
124  {
125  myGroup = ""_sh;
126  if (true)
127  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
128  myCapturegroup = ""_sh;
129  if (true)
130  graph->evalOpParm(myCapturegroup, nodeidx, "capturegroup", time, 0);
131  myRootpath = ""_sh;
132  if (true)
133  graph->evalOpParm(myRootpath, nodeidx, "rootpath", time, 0);
134  myExtraregions = ""_sh;
135  if (true)
136  graph->evalOpParm(myExtraregions, nodeidx, "extraregions", time, 0);
137  myCaptureregionsop = 2;
138  if (true)
139  graph->evalOpParm(myCaptureregionsop, nodeidx, "captureregionsop", time, 0);
140  myDosubnets = false;
141  if (true)
142  graph->evalOpParm(myDosubnets, nodeidx, "dosubnets", time, 0);
143  myRelativeskel = true;
144  if (true)
145  graph->evalOpParm(myRelativeskel, nodeidx, "relativeskel", time, 0);
146  myUsecaptpose = false;
147  if (true)
148  graph->evalOpParm(myUsecaptpose, nodeidx, "usecaptpose", time, 0);
149  myCookat = 0;
150  if (true && ( (!(((getUsecaptpose()!=0)))) ) )
151  graph->evalOpParm(myCookat, nodeidx, "cookat", time, 0);
152  myCaptframe = 0;
153  if (true && ( (!(((getUsecaptpose()!=0))||((int64(getCookat())==1)))) ) )
154  graph->evalOpParm(myCaptframe, nodeidx, "captframe", time, 0);
155  myWeightmethod = 0;
156  if (true)
157  graph->evalOpParm(myWeightmethod, nodeidx, "weightmethod", time, 0);
158  myWeightfrom = 0;
159  if (true)
160  graph->evalOpParm(myWeightfrom, nodeidx, "weightFrom", time, 0);
161  myDropoff = 1;
162  if (true)
163  graph->evalOpParm(myDropoff, nodeidx, "dropoff", time, 0);
164  myMaxinfluences = 2;
165  if (true)
166  graph->evalOpParm(myMaxinfluences, nodeidx, "maxinfluences", time, 0);
167  myNormweights = true;
168  if (true)
169  graph->evalOpParm(myNormweights, nodeidx, "normweights", time, 0);
170  myDestroyweights = true;
171  if (true)
172  graph->evalOpParm(myDestroyweights, nodeidx, "destroyweights", time, 0);
173  myBlendfactor = 1;
174  if (true && ( (!(((getDestroyweights()!=0)))) ) )
175  graph->evalOpParm(myBlendfactor, nodeidx, "blendfactor", time, 0);
176  myColor = 0;
177  if (true)
178  graph->evalOpParm(myColor, nodeidx, "color", time, 0);
179  myZeroweightcolor = UT_Vector3D(1,1,1);
180  if (true)
181  graph->evalOpParm(myZeroweightcolor, nodeidx, "zeroweightcolor", time, 0);
182 
183  }
184 
185 
186  void loadFromOpSubclass(const LoadParms &loadparms) override
187  {
188  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
189  }
190 
191 
192  void copyFrom(const SOP_NodeParms *src) override
193  {
194  *this = *((const SOP_ProximityCaptureParms *)src);
195  }
196 
197  template <typename T>
198  void
199  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
200  {
201  if (idx.size() < 1)
202  return;
203  UT_ASSERT(idx.size() == instance.size()+1);
204  if (idx.size() != instance.size()+1)
205  return;
206  switch (idx[0])
207  {
208  case 0:
209  coerceValue(value, myGroup);
210  break;
211  case 1:
212  coerceValue(value, myCapturegroup);
213  break;
214  case 2:
215  coerceValue(value, myRootpath);
216  break;
217  case 3:
218  coerceValue(value, myExtraregions);
219  break;
220  case 4:
221  coerceValue(value, myCaptureregionsop);
222  break;
223  case 5:
224  coerceValue(value, myDosubnets);
225  break;
226  case 6:
227  coerceValue(value, myRelativeskel);
228  break;
229  case 7:
230  coerceValue(value, myUsecaptpose);
231  break;
232  case 8:
233  coerceValue(value, myCookat);
234  break;
235  case 9:
236  coerceValue(value, myCaptframe);
237  break;
238  case 10:
239  coerceValue(value, myWeightmethod);
240  break;
241  case 11:
242  coerceValue(value, myWeightfrom);
243  break;
244  case 12:
245  coerceValue(value, myDropoff);
246  break;
247  case 13:
248  coerceValue(value, myMaxinfluences);
249  break;
250  case 14:
251  coerceValue(value, myNormweights);
252  break;
253  case 15:
254  coerceValue(value, myDestroyweights);
255  break;
256  case 16:
257  coerceValue(value, myBlendfactor);
258  break;
259  case 17:
260  coerceValue(value, myColor);
261  break;
262  case 18:
263  coerceValue(value, myZeroweightcolor);
264  break;
265 
266  }
267  }
268 
269  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
270  { doGetParmValue(idx, instance, value); }
271  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
272  { doGetParmValue(idx, instance, value); }
273  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
274  { doGetParmValue(idx, instance, value); }
275  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
276  { doGetParmValue(idx, instance, value); }
277  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
278  { doGetParmValue(idx, instance, value); }
279  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
280  { doGetParmValue(idx, instance, value); }
281  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
282  { doGetParmValue(idx, instance, value); }
283  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
284  { doGetParmValue(idx, instance, value); }
285  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
286  { doGetParmValue(idx, instance, value); }
287  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
288  { doGetParmValue(idx, instance, value); }
289  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
290  { doGetParmValue(idx, instance, value); }
291 
292  template <typename T>
293  void
294  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
295  {
296  if (idx.size() < 1)
297  return;
298  UT_ASSERT(idx.size() == instance.size()+1);
299  if (idx.size() != instance.size()+1)
300  return;
301  switch (idx[0])
302  {
303  case 0:
304  coerceValue(myGroup, value);
305  break;
306  case 1:
307  coerceValue(myCapturegroup, value);
308  break;
309  case 2:
310  coerceValue(myRootpath, value);
311  break;
312  case 3:
313  coerceValue(myExtraregions, value);
314  break;
315  case 4:
316  coerceValue(myCaptureregionsop, value);
317  break;
318  case 5:
319  coerceValue(myDosubnets, value);
320  break;
321  case 6:
322  coerceValue(myRelativeskel, value);
323  break;
324  case 7:
325  coerceValue(myUsecaptpose, value);
326  break;
327  case 8:
328  coerceValue(myCookat, value);
329  break;
330  case 9:
331  coerceValue(myCaptframe, value);
332  break;
333  case 10:
334  coerceValue(myWeightmethod, value);
335  break;
336  case 11:
337  coerceValue(myWeightfrom, value);
338  break;
339  case 12:
340  coerceValue(myDropoff, value);
341  break;
342  case 13:
343  coerceValue(myMaxinfluences, value);
344  break;
345  case 14:
346  coerceValue(myNormweights, value);
347  break;
348  case 15:
349  coerceValue(myDestroyweights, value);
350  break;
351  case 16:
352  coerceValue(myBlendfactor, value);
353  break;
354  case 17:
355  coerceValue(myColor, value);
356  break;
357  case 18:
358  coerceValue(myZeroweightcolor, value);
359  break;
360 
361  }
362  }
363 
364  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
365  { doSetParmValue(idx, instance, value); }
366  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
367  { doSetParmValue(idx, instance, value); }
368  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
369  { doSetParmValue(idx, instance, value); }
370  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
371  { doSetParmValue(idx, instance, value); }
372  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
373  { doSetParmValue(idx, instance, value); }
374  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
375  { doSetParmValue(idx, instance, value); }
376  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
377  { doSetParmValue(idx, instance, value); }
378  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
379  { doSetParmValue(idx, instance, value); }
380  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
381  { doSetParmValue(idx, instance, value); }
382  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
383  { doSetParmValue(idx, instance, value); }
384  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
385  { doSetParmValue(idx, instance, value); }
386 
387  exint getNestNumParms(TempIndex idx) const override
388  {
389  if (idx.size() == 0)
390  return 19;
391  switch (idx[0])
392  {
393 
394  }
395  // Invalid
396  return 0;
397  }
398 
399  const char *getNestParmName(TempIndex fieldnum) const override
400  {
401  if (fieldnum.size() < 1)
402  return 0;
403  switch (fieldnum[0])
404  {
405  case 0:
406  return "group";
407  case 1:
408  return "capturegroup";
409  case 2:
410  return "rootpath";
411  case 3:
412  return "extraregions";
413  case 4:
414  return "captureregionsop";
415  case 5:
416  return "dosubnets";
417  case 6:
418  return "relativeskel";
419  case 7:
420  return "usecaptpose";
421  case 8:
422  return "cookat";
423  case 9:
424  return "captframe";
425  case 10:
426  return "weightmethod";
427  case 11:
428  return "weightFrom";
429  case 12:
430  return "dropoff";
431  case 13:
432  return "maxinfluences";
433  case 14:
434  return "normweights";
435  case 15:
436  return "destroyweights";
437  case 16:
438  return "blendfactor";
439  case 17:
440  return "color";
441  case 18:
442  return "zeroweightcolor";
443 
444  }
445  return 0;
446  }
447 
448  ParmType getNestParmType(TempIndex fieldnum) const override
449  {
450  if (fieldnum.size() < 1)
451  return PARM_UNSUPPORTED;
452  switch (fieldnum[0])
453  {
454  case 0:
455  return PARM_STRING;
456  case 1:
457  return PARM_STRING;
458  case 2:
459  return PARM_STRING;
460  case 3:
461  return PARM_STRING;
462  case 4:
463  return PARM_INTEGER;
464  case 5:
465  return PARM_INTEGER;
466  case 6:
467  return PARM_INTEGER;
468  case 7:
469  return PARM_INTEGER;
470  case 8:
471  return PARM_INTEGER;
472  case 9:
473  return PARM_FLOAT;
474  case 10:
475  return PARM_INTEGER;
476  case 11:
477  return PARM_INTEGER;
478  case 12:
479  return PARM_FLOAT;
480  case 13:
481  return PARM_INTEGER;
482  case 14:
483  return PARM_INTEGER;
484  case 15:
485  return PARM_INTEGER;
486  case 16:
487  return PARM_FLOAT;
488  case 17:
489  return PARM_INTEGER;
490  case 18:
491  return PARM_VECTOR3;
492 
493  }
494  return PARM_UNSUPPORTED;
495  }
496 
497  // Boiler plate to load individual types.
498  static void loadData(UT_IStream &is, int64 &v)
499  { is.bread(&v, 1); }
500  static void loadData(UT_IStream &is, bool &v)
501  { int64 iv; is.bread(&iv, 1); v = iv; }
502  static void loadData(UT_IStream &is, fpreal64 &v)
503  { is.bread<fpreal64>(&v, 1); }
504  static void loadData(UT_IStream &is, UT_Vector2D &v)
505  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
506  static void loadData(UT_IStream &is, UT_Vector3D &v)
507  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
508  is.bread<fpreal64>(&v.z(), 1); }
509  static void loadData(UT_IStream &is, UT_Vector4D &v)
510  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
511  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
512  static void loadData(UT_IStream &is, UT_Matrix2D &v)
513  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
514  static void loadData(UT_IStream &is, UT_Matrix3D &v)
515  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
516  static void loadData(UT_IStream &is, UT_Matrix4D &v)
517  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
518  static void loadData(UT_IStream &is, UT_Vector2I &v)
519  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
520  static void loadData(UT_IStream &is, UT_Vector3I &v)
521  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
522  is.bread<int64>(&v.z(), 1); }
523  static void loadData(UT_IStream &is, UT_Vector4I &v)
524  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
525  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
527  { is.bread(v); }
529  { UT_StringHolder rampdata;
530  loadData(is, rampdata);
531  if (rampdata.isstring())
532  {
533  v.reset(new UT_Ramp());
534  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
535  v->load(istr);
536  }
537  else v.reset();
538  }
541  loadData(is, data);
542  if (data.isstring())
543  {
544  // Find the data type.
545  const char *colon = UT_StringWrap(data).findChar(':');
546  if (colon)
547  {
548  int typelen = colon - data.buffer();
550  type.strncpy(data.buffer(), typelen);
551  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
552 
553  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
554  }
555  }
556  else v.reset();
557  }
558 
559  static void saveData(std::ostream &os, int64 v)
560  { UTwrite(os, &v); }
561  static void saveData(std::ostream &os, bool v)
562  { int64 iv = v; UTwrite(os, &iv); }
563  static void saveData(std::ostream &os, fpreal64 v)
564  { UTwrite<fpreal64>(os, &v); }
565  static void saveData(std::ostream &os, UT_Vector2D v)
566  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
567  static void saveData(std::ostream &os, UT_Vector3D v)
568  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
569  UTwrite<fpreal64>(os, &v.z()); }
570  static void saveData(std::ostream &os, UT_Vector4D v)
571  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
572  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
573  static void saveData(std::ostream &os, UT_Matrix2D v)
575  static void saveData(std::ostream &os, UT_Matrix3D v)
577  static void saveData(std::ostream &os, UT_Matrix4D v)
579  static void saveData(std::ostream &os, UT_StringHolder s)
580  { UT_StringWrap(s).saveBinary(os); }
581  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
583  UT_OStringStream ostr;
584  if (s) s->save(ostr);
585  result = ostr.str();
586  saveData(os, result);
587  }
588  static void saveData(std::ostream &os, PRM_DataItemHandle s)
590  UT_OStringStream ostr;
591  if (s)
592  {
593  ostr << s->getDataTypeToken();
594  ostr << ":";
595  s->saveBinary(ostr);
596  }
597  result = ostr.str();
598  saveData(os, result);
599  }
600 
601 
602  void save(std::ostream &os) const
603  {
604  int32 v = version();
605  UTwrite(os, &v);
606  saveData(os, myGroup);
607  saveData(os, myCapturegroup);
608  saveData(os, myRootpath);
609  saveData(os, myExtraregions);
610  saveData(os, myCaptureregionsop);
611  saveData(os, myDosubnets);
612  saveData(os, myRelativeskel);
613  saveData(os, myUsecaptpose);
614  saveData(os, myCookat);
615  saveData(os, myCaptframe);
616  saveData(os, myWeightmethod);
617  saveData(os, myWeightfrom);
618  saveData(os, myDropoff);
619  saveData(os, myMaxinfluences);
620  saveData(os, myNormweights);
621  saveData(os, myDestroyweights);
622  saveData(os, myBlendfactor);
623  saveData(os, myColor);
624  saveData(os, myZeroweightcolor);
625 
626  }
627 
628  bool load(UT_IStream &is)
629  {
630  int32 v;
631  is.bread(&v, 1);
632  if (version() != v)
633  {
634  // Fail incompatible versions
635  return false;
636  }
637  loadData(is, myGroup);
638  loadData(is, myCapturegroup);
639  loadData(is, myRootpath);
640  loadData(is, myExtraregions);
641  loadData(is, myCaptureregionsop);
642  loadData(is, myDosubnets);
643  loadData(is, myRelativeskel);
644  loadData(is, myUsecaptpose);
645  loadData(is, myCookat);
646  loadData(is, myCaptframe);
647  loadData(is, myWeightmethod);
648  loadData(is, myWeightfrom);
649  loadData(is, myDropoff);
650  loadData(is, myMaxinfluences);
651  loadData(is, myNormweights);
652  loadData(is, myDestroyweights);
653  loadData(is, myBlendfactor);
654  loadData(is, myColor);
655  loadData(is, myZeroweightcolor);
656 
657  return true;
658  }
659 
660  const UT_StringHolder & getGroup() const { return myGroup; }
661  void setGroup(const UT_StringHolder & val) { myGroup = val; }
663  {
664  SOP_Node *thissop = cookparms.getNode();
665  if (!thissop) return getGroup();
667  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
668  return result;
669  }
670  const UT_StringHolder & getCapturegroup() const { return myCapturegroup; }
671  void setCapturegroup(const UT_StringHolder & val) { myCapturegroup = val; }
673  {
674  SOP_Node *thissop = cookparms.getNode();
675  if (!thissop) return getCapturegroup();
677  OP_Utils::evalOpParm(result, thissop, "capturegroup", cookparms.getCookTime(), 0);
678  return result;
679  }
680  const UT_StringHolder & getRootpath() const { return myRootpath; }
681  void setRootpath(const UT_StringHolder & val) { myRootpath = val; }
683  {
684  SOP_Node *thissop = cookparms.getNode();
685  if (!thissop) return getRootpath();
687  OP_Utils::evalOpParm(result, thissop, "rootpath", cookparms.getCookTime(), 0);
688  return result;
689  }
690  const UT_StringHolder & getExtraregions() const { return myExtraregions; }
691  void setExtraregions(const UT_StringHolder & val) { myExtraregions = val; }
693  {
694  SOP_Node *thissop = cookparms.getNode();
695  if (!thissop) return getExtraregions();
697  OP_Utils::evalOpParm(result, thissop, "extraregions", cookparms.getCookTime(), 0);
698  return result;
699  }
700  Captureregionsop getCaptureregionsop() const { return Captureregionsop(myCaptureregionsop); }
701  void setCaptureregionsop(Captureregionsop val) { myCaptureregionsop = int64(val); }
703  {
704  SOP_Node *thissop = cookparms.getNode();
705  if (!thissop) return getCaptureregionsop();
706  int64 result;
707  OP_Utils::evalOpParm(result, thissop, "captureregionsop", cookparms.getCookTime(), 0);
708  return Captureregionsop(result);
709  }
710  bool getDosubnets() const { return myDosubnets; }
711  void setDosubnets(bool val) { myDosubnets = val; }
712  bool opDosubnets(const SOP_NodeVerb::CookParms &cookparms) const
713  {
714  SOP_Node *thissop = cookparms.getNode();
715  if (!thissop) return getDosubnets();
716  bool result;
717  OP_Utils::evalOpParm(result, thissop, "dosubnets", cookparms.getCookTime(), 0);
718  return result;
719  }
720  bool getRelativeskel() const { return myRelativeskel; }
721  void setRelativeskel(bool val) { myRelativeskel = val; }
722  bool opRelativeskel(const SOP_NodeVerb::CookParms &cookparms) const
723  {
724  SOP_Node *thissop = cookparms.getNode();
725  if (!thissop) return getRelativeskel();
726  bool result;
727  OP_Utils::evalOpParm(result, thissop, "relativeskel", cookparms.getCookTime(), 0);
728  return result;
729  }
730  bool getUsecaptpose() const { return myUsecaptpose; }
731  void setUsecaptpose(bool val) { myUsecaptpose = val; }
732  bool opUsecaptpose(const SOP_NodeVerb::CookParms &cookparms) const
733  {
734  SOP_Node *thissop = cookparms.getNode();
735  if (!thissop) return getUsecaptpose();
736  bool result;
737  OP_Utils::evalOpParm(result, thissop, "usecaptpose", cookparms.getCookTime(), 0);
738  return result;
739  }
740  Cookat getCookat() const { return Cookat(myCookat); }
741  void setCookat(Cookat val) { myCookat = int64(val); }
742  Cookat opCookat(const SOP_NodeVerb::CookParms &cookparms) const
743  {
744  SOP_Node *thissop = cookparms.getNode();
745  if (!thissop) return getCookat();
746  int64 result;
747  OP_Utils::evalOpParm(result, thissop, "cookat", cookparms.getCookTime(), 0);
748  return Cookat(result);
749  }
750  fpreal64 getCaptframe() const { return myCaptframe; }
751  void setCaptframe(fpreal64 val) { myCaptframe = val; }
753  {
754  SOP_Node *thissop = cookparms.getNode();
755  if (!thissop) return getCaptframe();
757  OP_Utils::evalOpParm(result, thissop, "captframe", cookparms.getCookTime(), 0);
758  return result;
759  }
760  Weightmethod getWeightmethod() const { return Weightmethod(myWeightmethod); }
761  void setWeightmethod(Weightmethod val) { myWeightmethod = int64(val); }
763  {
764  SOP_Node *thissop = cookparms.getNode();
765  if (!thissop) return getWeightmethod();
766  int64 result;
767  OP_Utils::evalOpParm(result, thissop, "weightmethod", cookparms.getCookTime(), 0);
768  return Weightmethod(result);
769  }
770  Weightfrom getWeightfrom() const { return Weightfrom(myWeightfrom); }
771  void setWeightfrom(Weightfrom val) { myWeightfrom = int64(val); }
773  {
774  SOP_Node *thissop = cookparms.getNode();
775  if (!thissop) return getWeightfrom();
776  int64 result;
777  OP_Utils::evalOpParm(result, thissop, "weightFrom", cookparms.getCookTime(), 0);
778  return Weightfrom(result);
779  }
780  fpreal64 getDropoff() const { return myDropoff; }
781  void setDropoff(fpreal64 val) { myDropoff = val; }
783  {
784  SOP_Node *thissop = cookparms.getNode();
785  if (!thissop) return getDropoff();
787  OP_Utils::evalOpParm(result, thissop, "dropoff", cookparms.getCookTime(), 0);
788  return result;
789  }
790  int64 getMaxinfluences() const { return myMaxinfluences; }
791  void setMaxinfluences(int64 val) { myMaxinfluences = val; }
793  {
794  SOP_Node *thissop = cookparms.getNode();
795  if (!thissop) return getMaxinfluences();
796  int64 result;
797  OP_Utils::evalOpParm(result, thissop, "maxinfluences", cookparms.getCookTime(), 0);
798  return result;
799  }
800  bool getNormweights() const { return myNormweights; }
801  void setNormweights(bool val) { myNormweights = val; }
802  bool opNormweights(const SOP_NodeVerb::CookParms &cookparms) const
803  {
804  SOP_Node *thissop = cookparms.getNode();
805  if (!thissop) return getNormweights();
806  bool result;
807  OP_Utils::evalOpParm(result, thissop, "normweights", cookparms.getCookTime(), 0);
808  return result;
809  }
810  bool getDestroyweights() const { return myDestroyweights; }
811  void setDestroyweights(bool val) { myDestroyweights = val; }
812  bool opDestroyweights(const SOP_NodeVerb::CookParms &cookparms) const
813  {
814  SOP_Node *thissop = cookparms.getNode();
815  if (!thissop) return getDestroyweights();
816  bool result;
817  OP_Utils::evalOpParm(result, thissop, "destroyweights", cookparms.getCookTime(), 0);
818  return result;
819  }
820  fpreal64 getBlendfactor() const { return myBlendfactor; }
821  void setBlendfactor(fpreal64 val) { myBlendfactor = val; }
823  {
824  SOP_Node *thissop = cookparms.getNode();
825  if (!thissop) return getBlendfactor();
827  OP_Utils::evalOpParm(result, thissop, "blendfactor", cookparms.getCookTime(), 0);
828  return result;
829  }
830  Color getColor() const { return Color(myColor); }
831  void setColor(Color val) { myColor = int64(val); }
832  Color opColor(const SOP_NodeVerb::CookParms &cookparms) const
833  {
834  SOP_Node *thissop = cookparms.getNode();
835  if (!thissop) return getColor();
836  int64 result;
837  OP_Utils::evalOpParm(result, thissop, "color", cookparms.getCookTime(), 0);
838  return Color(result);
839  }
840  UT_Vector3D getZeroweightcolor() const { return myZeroweightcolor; }
841  void setZeroweightcolor(UT_Vector3D val) { myZeroweightcolor = val; }
843  {
844  SOP_Node *thissop = cookparms.getNode();
845  if (!thissop) return getZeroweightcolor();
847  OP_Utils::evalOpParm(result, thissop, "zeroweightcolor", cookparms.getCookTime(), 0);
848  return result;
849  }
850 
851 private:
852  UT_StringHolder myGroup;
853  UT_StringHolder myCapturegroup;
854  UT_StringHolder myRootpath;
855  UT_StringHolder myExtraregions;
856  int64 myCaptureregionsop;
857  bool myDosubnets;
858  bool myRelativeskel;
859  bool myUsecaptpose;
860  int64 myCookat;
861  fpreal64 myCaptframe;
862  int64 myWeightmethod;
863  int64 myWeightfrom;
864  fpreal64 myDropoff;
865  int64 myMaxinfluences;
866  bool myNormweights;
867  bool myDestroyweights;
868  fpreal64 myBlendfactor;
869  int64 myColor;
870  UT_Vector3D myZeroweightcolor;
871 
872 };
UT_StringHolder opRootpath(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble s
Definition: glew.h:1390
bool opUsecaptpose(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, fpreal64 v)
int64 opMaxinfluences(const SOP_NodeVerb::CookParms &cookparms) const
void setExtraregions(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
Color opColor(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setWeightmethod(Weightmethod val)
bool opNormweights(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const SOP_ProximityCaptureParms &src) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_Vector4I &v)
fpreal getTime() const
Definition: OP_Context.h:60
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
GLuint const GLfloat * val
Definition: glew.h:2794
fpreal64 opCaptframe(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opBlendfactor(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
const UT_StringHolder & getExtraregions() const
void setZeroweightcolor(UT_Vector3D val)
An output stream object that owns its own string buffer storage.
void setGroup(const UT_StringHolder &val)
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setCaptureregionsop(Captureregionsop val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
double fpreal64
Definition: SYS_Types.h:201
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_Vector3D opZeroweightcolor(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Vector2D v)
void save(std::ostream &os) const
const UT_StringHolder & getRootpath() const
static void saveData(std::ostream &os, UT_Vector3D v)
UT_StringHolder opExtraregions(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint length() const
Captureregionsop getCaptureregionsop() const
SYS_FORCE_INLINE const char * buffer() const
bool opDosubnets(const SOP_NodeVerb::CookParms &cookparms) const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
Captureregionsop opCaptureregionsop(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
void setRootpath(const UT_StringHolder &val)
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
const GLfloat * c
Definition: glew.h:16296
static void saveData(std::ostream &os, UT_StringHolder s)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
Cookat opCookat(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
UT_Vector3T< fpreal64 > UT_Vector3D
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
GT_API const UT_StringHolder version
const UT_StringHolder & getCapturegroup() const
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void setCapturegroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
Weightfrom opWeightfrom(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
bool opDestroyweights(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
bool operator!=(const SOP_ProximityCaptureParms &src) const
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
fpreal64 opDropoff(const SOP_NodeVerb::CookParms &cookparms) const
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, int64 &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
Weightmethod opWeightmethod(const SOP_NodeVerb::CookParms &cookparms) const
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_Vector2D &value) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
UT_StringHolder opCapturegroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const char * getNestParmName(TempIndex fieldnum) const override
GLsizei const GLfloat * value
Definition: glew.h:1849
void copyFrom(const SOP_NodeParms *src) override
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
exint getNestNumParms(TempIndex idx) const override
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool opRelativeskel(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:528
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override