HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_BoneCaptureLines.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_BoneCaptureLinesEnums
24 {
25  enum class Resample
26  {
27  OFF = 0,
28  MAXAXIS,
29  MAXLENGTH
30  };
31  enum class Cookat
32  {
33  CAPTUREFRAME = 0,
35  };
36  enum class Captureregionsop
37  {
38  DISPLAY = 0,
39  RENDER,
40  CAPTURE
41  };
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myGroup = ""_sh;
53  myRootpath = ""_sh;
54  myExtraregions = ""_sh;
55  myResample = 1;
56  myMaxaxisfraction = 0.01;
57  myMaxlength = 0.1;
58  myExcludeshortbones = true;
59  myExcludethreshold = 0.001;
60  myFusethreshold = 0.001;
61  myUsebonelink = false;
62  myUsecaptpose = true;
63  myCookat = 0;
64  myCaptframe = 0;
65  myCaptureregionsop = 2;
66  myDosubnets = false;
67  myRelativeskel = true;
68 
69  }
70 
71  explicit SOP_BoneCaptureLinesParms(const SOP_BoneCaptureLinesParms &) = default;
72 
74 
76  {
77  if (myGroup != src.myGroup) return false;
78  if (myRootpath != src.myRootpath) return false;
79  if (myExtraregions != src.myExtraregions) return false;
80  if (myResample != src.myResample) return false;
81  if (myMaxaxisfraction != src.myMaxaxisfraction) return false;
82  if (myMaxlength != src.myMaxlength) return false;
83  if (myExcludeshortbones != src.myExcludeshortbones) return false;
84  if (myExcludethreshold != src.myExcludethreshold) return false;
85  if (myFusethreshold != src.myFusethreshold) return false;
86  if (myUsebonelink != src.myUsebonelink) return false;
87  if (myUsecaptpose != src.myUsecaptpose) return false;
88  if (myCookat != src.myCookat) return false;
89  if (myCaptframe != src.myCaptframe) return false;
90  if (myCaptureregionsop != src.myCaptureregionsop) return false;
91  if (myDosubnets != src.myDosubnets) return false;
92  if (myRelativeskel != src.myRelativeskel) return false;
93 
94  return true;
95  }
97  {
98  return !operator==(src);
99  }
103 
104 
105 
106  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
107  {
108  myGroup = ""_sh;
109  if (true)
110  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
111  myRootpath = ""_sh;
112  if (true)
113  graph->evalOpParm(myRootpath, nodeidx, "rootpath", time, 0);
114  myExtraregions = ""_sh;
115  if (true)
116  graph->evalOpParm(myExtraregions, nodeidx, "extraregions", time, 0);
117  myResample = 1;
118  if (true)
119  graph->evalOpParm(myResample, nodeidx, "resample", time, 0);
120  myMaxaxisfraction = 0.01;
121  if (true && ( (!(((int64(getResample())!=1))||((int64(getResample())!=1)))) ) )
122  graph->evalOpParm(myMaxaxisfraction, nodeidx, "maxaxisfraction", time, 0);
123  myMaxlength = 0.1;
124  if (true && ( (!(((int64(getResample())!=2))||((int64(getResample())!=2)))) ) )
125  graph->evalOpParm(myMaxlength, nodeidx, "maxlength", time, 0);
126  myExcludeshortbones = true;
127  if (true)
128  graph->evalOpParm(myExcludeshortbones, nodeidx, "excludeshortbones", time, 0);
129  myExcludethreshold = 0.001;
130  if (true && ( (!(((getExcludeshortbones()==0)))) ) )
131  graph->evalOpParm(myExcludethreshold, nodeidx, "excludethreshold", time, 0);
132  myFusethreshold = 0.001;
133  if (true)
134  graph->evalOpParm(myFusethreshold, nodeidx, "fusethreshold", time, 0);
135  myUsebonelink = false;
136  if (true)
137  graph->evalOpParm(myUsebonelink, nodeidx, "usebonelink", time, 0);
138  myUsecaptpose = true;
139  if (true)
140  graph->evalOpParm(myUsecaptpose, nodeidx, "usecaptpose", time, 0);
141  myCookat = 0;
142  if (true && ( (!(((getUsecaptpose()!=0)))) ) )
143  graph->evalOpParm(myCookat, nodeidx, "cookat", time, 0);
144  myCaptframe = 0;
145  if (true && ( (!(((getUsecaptpose()!=0))||((int64(getCookat())==1)))) ) )
146  graph->evalOpParm(myCaptframe, nodeidx, "captframe", time, 0);
147  myCaptureregionsop = 2;
148  if (true)
149  graph->evalOpParm(myCaptureregionsop, nodeidx, "captureregionsop", time, 0);
150  myDosubnets = false;
151  if (true)
152  graph->evalOpParm(myDosubnets, nodeidx, "dosubnets", time, 0);
153  myRelativeskel = true;
154  if (true)
155  graph->evalOpParm(myRelativeskel, nodeidx, "relativeskel", time, 0);
156 
157  }
158 
159 
160  void loadFromOpSubclass(const LoadParms &loadparms) override
161  {
162  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
163  }
164 
165 
166  void copyFrom(const SOP_NodeParms *src) override
167  {
168  *this = *((const SOP_BoneCaptureLinesParms *)src);
169  }
170 
171  template <typename T>
172  void
173  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
174  {
175  if (idx.size() < 1)
176  return;
177  UT_ASSERT(idx.size() == instance.size()+1);
178  if (idx.size() != instance.size()+1)
179  return;
180  switch (idx[0])
181  {
182  case 0:
183  coerceValue(value, myGroup);
184  break;
185  case 1:
186  coerceValue(value, myRootpath);
187  break;
188  case 2:
189  coerceValue(value, myExtraregions);
190  break;
191  case 3:
192  coerceValue(value, myResample);
193  break;
194  case 4:
195  coerceValue(value, myMaxaxisfraction);
196  break;
197  case 5:
198  coerceValue(value, myMaxlength);
199  break;
200  case 6:
201  coerceValue(value, myExcludeshortbones);
202  break;
203  case 7:
204  coerceValue(value, myExcludethreshold);
205  break;
206  case 8:
207  coerceValue(value, myFusethreshold);
208  break;
209  case 9:
210  coerceValue(value, myUsebonelink);
211  break;
212  case 10:
213  coerceValue(value, myUsecaptpose);
214  break;
215  case 11:
216  coerceValue(value, myCookat);
217  break;
218  case 12:
219  coerceValue(value, myCaptframe);
220  break;
221  case 13:
222  coerceValue(value, myCaptureregionsop);
223  break;
224  case 14:
225  coerceValue(value, myDosubnets);
226  break;
227  case 15:
228  coerceValue(value, myRelativeskel);
229  break;
230 
231  }
232  }
233 
234  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
235  { doGetParmValue(idx, instance, value); }
236  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
237  { doGetParmValue(idx, instance, value); }
238  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
239  { doGetParmValue(idx, instance, value); }
240  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
241  { doGetParmValue(idx, instance, value); }
242  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
243  { doGetParmValue(idx, instance, value); }
244  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
245  { doGetParmValue(idx, instance, value); }
246  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
247  { doGetParmValue(idx, instance, value); }
248  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
249  { doGetParmValue(idx, instance, value); }
250  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
251  { doGetParmValue(idx, instance, value); }
252  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
253  { doGetParmValue(idx, instance, value); }
254  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
255  { doGetParmValue(idx, instance, value); }
256 
257  template <typename T>
258  void
259  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
260  {
261  if (idx.size() < 1)
262  return;
263  UT_ASSERT(idx.size() == instance.size()+1);
264  if (idx.size() != instance.size()+1)
265  return;
266  switch (idx[0])
267  {
268  case 0:
269  coerceValue(myGroup, value);
270  break;
271  case 1:
272  coerceValue(myRootpath, value);
273  break;
274  case 2:
275  coerceValue(myExtraregions, value);
276  break;
277  case 3:
278  coerceValue(myResample, value);
279  break;
280  case 4:
281  coerceValue(myMaxaxisfraction, value);
282  break;
283  case 5:
284  coerceValue(myMaxlength, value);
285  break;
286  case 6:
287  coerceValue(myExcludeshortbones, value);
288  break;
289  case 7:
290  coerceValue(myExcludethreshold, value);
291  break;
292  case 8:
293  coerceValue(myFusethreshold, value);
294  break;
295  case 9:
296  coerceValue(myUsebonelink, value);
297  break;
298  case 10:
299  coerceValue(myUsecaptpose, value);
300  break;
301  case 11:
302  coerceValue(myCookat, value);
303  break;
304  case 12:
305  coerceValue(myCaptframe, value);
306  break;
307  case 13:
308  coerceValue(myCaptureregionsop, value);
309  break;
310  case 14:
311  coerceValue(myDosubnets, value);
312  break;
313  case 15:
314  coerceValue(myRelativeskel, value);
315  break;
316 
317  }
318  }
319 
320  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
321  { doSetParmValue(idx, instance, value); }
322  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
323  { doSetParmValue(idx, instance, value); }
324  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
325  { doSetParmValue(idx, instance, value); }
326  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
327  { doSetParmValue(idx, instance, value); }
328  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
329  { doSetParmValue(idx, instance, value); }
330  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
331  { doSetParmValue(idx, instance, value); }
332  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
333  { doSetParmValue(idx, instance, value); }
334  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
335  { doSetParmValue(idx, instance, value); }
336  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
337  { doSetParmValue(idx, instance, value); }
338  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
339  { doSetParmValue(idx, instance, value); }
340  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
341  { doSetParmValue(idx, instance, value); }
342 
343  exint getNestNumParms(TempIndex idx) const override
344  {
345  if (idx.size() == 0)
346  return 16;
347  switch (idx[0])
348  {
349 
350  }
351  // Invalid
352  return 0;
353  }
354 
355  const char *getNestParmName(TempIndex fieldnum) const override
356  {
357  if (fieldnum.size() < 1)
358  return 0;
359  switch (fieldnum[0])
360  {
361  case 0:
362  return "group";
363  case 1:
364  return "rootpath";
365  case 2:
366  return "extraregions";
367  case 3:
368  return "resample";
369  case 4:
370  return "maxaxisfraction";
371  case 5:
372  return "maxlength";
373  case 6:
374  return "excludeshortbones";
375  case 7:
376  return "excludethreshold";
377  case 8:
378  return "fusethreshold";
379  case 9:
380  return "usebonelink";
381  case 10:
382  return "usecaptpose";
383  case 11:
384  return "cookat";
385  case 12:
386  return "captframe";
387  case 13:
388  return "captureregionsop";
389  case 14:
390  return "dosubnets";
391  case 15:
392  return "relativeskel";
393 
394  }
395  return 0;
396  }
397 
398  ParmType getNestParmType(TempIndex fieldnum) const override
399  {
400  if (fieldnum.size() < 1)
401  return PARM_UNSUPPORTED;
402  switch (fieldnum[0])
403  {
404  case 0:
405  return PARM_STRING;
406  case 1:
407  return PARM_STRING;
408  case 2:
409  return PARM_STRING;
410  case 3:
411  return PARM_INTEGER;
412  case 4:
413  return PARM_FLOAT;
414  case 5:
415  return PARM_FLOAT;
416  case 6:
417  return PARM_INTEGER;
418  case 7:
419  return PARM_FLOAT;
420  case 8:
421  return PARM_FLOAT;
422  case 9:
423  return PARM_INTEGER;
424  case 10:
425  return PARM_INTEGER;
426  case 11:
427  return PARM_INTEGER;
428  case 12:
429  return PARM_FLOAT;
430  case 13:
431  return PARM_INTEGER;
432  case 14:
433  return PARM_INTEGER;
434  case 15:
435  return PARM_INTEGER;
436 
437  }
438  return PARM_UNSUPPORTED;
439  }
440 
441  // Boiler plate to load individual types.
442  static void loadData(UT_IStream &is, int64 &v)
443  { is.bread(&v, 1); }
444  static void loadData(UT_IStream &is, bool &v)
445  { int64 iv; is.bread(&iv, 1); v = iv; }
446  static void loadData(UT_IStream &is, fpreal64 &v)
447  { is.bread<fpreal64>(&v, 1); }
448  static void loadData(UT_IStream &is, UT_Vector2D &v)
449  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
450  static void loadData(UT_IStream &is, UT_Vector3D &v)
451  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
452  is.bread<fpreal64>(&v.z(), 1); }
453  static void loadData(UT_IStream &is, UT_Vector4D &v)
454  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
455  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
456  static void loadData(UT_IStream &is, UT_Matrix2D &v)
457  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
458  static void loadData(UT_IStream &is, UT_Matrix3D &v)
459  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
460  static void loadData(UT_IStream &is, UT_Matrix4D &v)
461  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
462  static void loadData(UT_IStream &is, UT_Vector2I &v)
463  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
464  static void loadData(UT_IStream &is, UT_Vector3I &v)
465  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
466  is.bread<int64>(&v.z(), 1); }
467  static void loadData(UT_IStream &is, UT_Vector4I &v)
468  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
469  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
471  { is.bread(v); }
473  { UT_StringHolder rampdata;
474  loadData(is, rampdata);
475  if (rampdata.isstring())
476  {
477  v.reset(new UT_Ramp());
478  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
479  v->load(istr);
480  }
481  else v.reset();
482  }
485  loadData(is, data);
486  if (data.isstring())
487  {
488  // Find the data type.
489  const char *colon = UT_StringWrap(data).findChar(':');
490  if (colon)
491  {
492  int typelen = colon - data.buffer();
494  type.strncpy(data.buffer(), typelen);
495  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
496 
497  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
498  }
499  }
500  else v.reset();
501  }
502 
503  static void saveData(std::ostream &os, int64 v)
504  { UTwrite(os, &v); }
505  static void saveData(std::ostream &os, bool v)
506  { int64 iv = v; UTwrite(os, &iv); }
507  static void saveData(std::ostream &os, fpreal64 v)
508  { UTwrite<fpreal64>(os, &v); }
509  static void saveData(std::ostream &os, UT_Vector2D v)
510  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
511  static void saveData(std::ostream &os, UT_Vector3D v)
512  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
513  UTwrite<fpreal64>(os, &v.z()); }
514  static void saveData(std::ostream &os, UT_Vector4D v)
515  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
516  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
517  static void saveData(std::ostream &os, UT_Matrix2D v)
519  static void saveData(std::ostream &os, UT_Matrix3D v)
521  static void saveData(std::ostream &os, UT_Matrix4D v)
523  static void saveData(std::ostream &os, UT_StringHolder s)
524  { UT_StringWrap(s).saveBinary(os); }
525  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
527  UT_OStringStream ostr;
528  if (s) s->save(ostr);
529  result = ostr.str();
530  saveData(os, result);
531  }
532  static void saveData(std::ostream &os, PRM_DataItemHandle s)
534  UT_OStringStream ostr;
535  if (s)
536  {
537  ostr << s->getDataTypeToken();
538  ostr << ":";
539  s->saveBinary(ostr);
540  }
541  result = ostr.str();
542  saveData(os, result);
543  }
544 
545 
546  void save(std::ostream &os) const
547  {
548  int32 v = version();
549  UTwrite(os, &v);
550  saveData(os, myGroup);
551  saveData(os, myRootpath);
552  saveData(os, myExtraregions);
553  saveData(os, myResample);
554  saveData(os, myMaxaxisfraction);
555  saveData(os, myMaxlength);
556  saveData(os, myExcludeshortbones);
557  saveData(os, myExcludethreshold);
558  saveData(os, myFusethreshold);
559  saveData(os, myUsebonelink);
560  saveData(os, myUsecaptpose);
561  saveData(os, myCookat);
562  saveData(os, myCaptframe);
563  saveData(os, myCaptureregionsop);
564  saveData(os, myDosubnets);
565  saveData(os, myRelativeskel);
566 
567  }
568 
569  bool load(UT_IStream &is)
570  {
571  int32 v;
572  is.bread(&v, 1);
573  if (version() != v)
574  {
575  // Fail incompatible versions
576  return false;
577  }
578  loadData(is, myGroup);
579  loadData(is, myRootpath);
580  loadData(is, myExtraregions);
581  loadData(is, myResample);
582  loadData(is, myMaxaxisfraction);
583  loadData(is, myMaxlength);
584  loadData(is, myExcludeshortbones);
585  loadData(is, myExcludethreshold);
586  loadData(is, myFusethreshold);
587  loadData(is, myUsebonelink);
588  loadData(is, myUsecaptpose);
589  loadData(is, myCookat);
590  loadData(is, myCaptframe);
591  loadData(is, myCaptureregionsop);
592  loadData(is, myDosubnets);
593  loadData(is, myRelativeskel);
594 
595  return true;
596  }
597 
598  const UT_StringHolder & getGroup() const { return myGroup; }
599  void setGroup(const UT_StringHolder & val) { myGroup = val; }
601  {
602  SOP_Node *thissop = cookparms.getNode();
603  if (!thissop) return getGroup();
605  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
606  return result;
607  }
608  const UT_StringHolder & getRootpath() const { return myRootpath; }
609  void setRootpath(const UT_StringHolder & val) { myRootpath = val; }
611  {
612  SOP_Node *thissop = cookparms.getNode();
613  if (!thissop) return getRootpath();
615  OP_Utils::evalOpParm(result, thissop, "rootpath", cookparms.getCookTime(), 0);
616  return result;
617  }
618  const UT_StringHolder & getExtraregions() const { return myExtraregions; }
619  void setExtraregions(const UT_StringHolder & val) { myExtraregions = val; }
621  {
622  SOP_Node *thissop = cookparms.getNode();
623  if (!thissop) return getExtraregions();
625  OP_Utils::evalOpParm(result, thissop, "extraregions", cookparms.getCookTime(), 0);
626  return result;
627  }
628  Resample getResample() const { return Resample(myResample); }
629  void setResample(Resample val) { myResample = int64(val); }
631  {
632  SOP_Node *thissop = cookparms.getNode();
633  if (!thissop) return getResample();
634  int64 result;
635  OP_Utils::evalOpParm(result, thissop, "resample", cookparms.getCookTime(), 0);
636  return Resample(result);
637  }
638  fpreal64 getMaxaxisfraction() const { return myMaxaxisfraction; }
639  void setMaxaxisfraction(fpreal64 val) { myMaxaxisfraction = val; }
641  {
642  SOP_Node *thissop = cookparms.getNode();
643  if (!thissop) return getMaxaxisfraction();
645  OP_Utils::evalOpParm(result, thissop, "maxaxisfraction", cookparms.getCookTime(), 0);
646  return result;
647  }
648  fpreal64 getMaxlength() const { return myMaxlength; }
649  void setMaxlength(fpreal64 val) { myMaxlength = val; }
651  {
652  SOP_Node *thissop = cookparms.getNode();
653  if (!thissop) return getMaxlength();
655  OP_Utils::evalOpParm(result, thissop, "maxlength", cookparms.getCookTime(), 0);
656  return result;
657  }
658  bool getExcludeshortbones() const { return myExcludeshortbones; }
659  void setExcludeshortbones(bool val) { myExcludeshortbones = val; }
660  bool opExcludeshortbones(const SOP_NodeVerb::CookParms &cookparms) const
661  {
662  SOP_Node *thissop = cookparms.getNode();
663  if (!thissop) return getExcludeshortbones();
664  bool result;
665  OP_Utils::evalOpParm(result, thissop, "excludeshortbones", cookparms.getCookTime(), 0);
666  return result;
667  }
668  fpreal64 getExcludethreshold() const { return myExcludethreshold; }
669  void setExcludethreshold(fpreal64 val) { myExcludethreshold = val; }
671  {
672  SOP_Node *thissop = cookparms.getNode();
673  if (!thissop) return getExcludethreshold();
675  OP_Utils::evalOpParm(result, thissop, "excludethreshold", cookparms.getCookTime(), 0);
676  return result;
677  }
678  fpreal64 getFusethreshold() const { return myFusethreshold; }
679  void setFusethreshold(fpreal64 val) { myFusethreshold = val; }
681  {
682  SOP_Node *thissop = cookparms.getNode();
683  if (!thissop) return getFusethreshold();
685  OP_Utils::evalOpParm(result, thissop, "fusethreshold", cookparms.getCookTime(), 0);
686  return result;
687  }
688  bool getUsebonelink() const { return myUsebonelink; }
689  void setUsebonelink(bool val) { myUsebonelink = val; }
690  bool opUsebonelink(const SOP_NodeVerb::CookParms &cookparms) const
691  {
692  SOP_Node *thissop = cookparms.getNode();
693  if (!thissop) return getUsebonelink();
694  bool result;
695  OP_Utils::evalOpParm(result, thissop, "usebonelink", cookparms.getCookTime(), 0);
696  return result;
697  }
698  bool getUsecaptpose() const { return myUsecaptpose; }
699  void setUsecaptpose(bool val) { myUsecaptpose = val; }
700  bool opUsecaptpose(const SOP_NodeVerb::CookParms &cookparms) const
701  {
702  SOP_Node *thissop = cookparms.getNode();
703  if (!thissop) return getUsecaptpose();
704  bool result;
705  OP_Utils::evalOpParm(result, thissop, "usecaptpose", cookparms.getCookTime(), 0);
706  return result;
707  }
708  Cookat getCookat() const { return Cookat(myCookat); }
709  void setCookat(Cookat val) { myCookat = int64(val); }
710  Cookat opCookat(const SOP_NodeVerb::CookParms &cookparms) const
711  {
712  SOP_Node *thissop = cookparms.getNode();
713  if (!thissop) return getCookat();
714  int64 result;
715  OP_Utils::evalOpParm(result, thissop, "cookat", cookparms.getCookTime(), 0);
716  return Cookat(result);
717  }
718  fpreal64 getCaptframe() const { return myCaptframe; }
719  void setCaptframe(fpreal64 val) { myCaptframe = val; }
721  {
722  SOP_Node *thissop = cookparms.getNode();
723  if (!thissop) return getCaptframe();
725  OP_Utils::evalOpParm(result, thissop, "captframe", cookparms.getCookTime(), 0);
726  return result;
727  }
728  Captureregionsop getCaptureregionsop() const { return Captureregionsop(myCaptureregionsop); }
729  void setCaptureregionsop(Captureregionsop val) { myCaptureregionsop = int64(val); }
731  {
732  SOP_Node *thissop = cookparms.getNode();
733  if (!thissop) return getCaptureregionsop();
734  int64 result;
735  OP_Utils::evalOpParm(result, thissop, "captureregionsop", cookparms.getCookTime(), 0);
736  return Captureregionsop(result);
737  }
738  bool getDosubnets() const { return myDosubnets; }
739  void setDosubnets(bool val) { myDosubnets = val; }
740  bool opDosubnets(const SOP_NodeVerb::CookParms &cookparms) const
741  {
742  SOP_Node *thissop = cookparms.getNode();
743  if (!thissop) return getDosubnets();
744  bool result;
745  OP_Utils::evalOpParm(result, thissop, "dosubnets", cookparms.getCookTime(), 0);
746  return result;
747  }
748  bool getRelativeskel() const { return myRelativeskel; }
749  void setRelativeskel(bool val) { myRelativeskel = val; }
750  bool opRelativeskel(const SOP_NodeVerb::CookParms &cookparms) const
751  {
752  SOP_Node *thissop = cookparms.getNode();
753  if (!thissop) return getRelativeskel();
754  bool result;
755  OP_Utils::evalOpParm(result, thissop, "relativeskel", cookparms.getCookTime(), 0);
756  return result;
757  }
758 
759 private:
760  UT_StringHolder myGroup;
761  UT_StringHolder myRootpath;
762  UT_StringHolder myExtraregions;
763  int64 myResample;
764  fpreal64 myMaxaxisfraction;
765  fpreal64 myMaxlength;
766  bool myExcludeshortbones;
767  fpreal64 myExcludethreshold;
768  fpreal64 myFusethreshold;
769  bool myUsebonelink;
770  bool myUsecaptpose;
771  int64 myCookat;
772  fpreal64 myCaptframe;
773  int64 myCaptureregionsop;
774  bool myDosubnets;
775  bool myRelativeskel;
776 
777 };
GLdouble s
Definition: glew.h:1390
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool operator!=(const SOP_BoneCaptureLinesParms &src) const
GLenum src
Definition: glew.h:2410
static void saveData(std::ostream &os, UT_Vector2D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
void copyFrom(const SOP_NodeParms *src) override
bool opRelativeskel(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setCaptureregionsop(Captureregionsop val)
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool opUsecaptpose(const SOP_NodeVerb::CookParms &cookparms) const
Captureregionsop getCaptureregionsop() const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLuint const GLfloat * val
Definition: glew.h:2794
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
int64 exint
Definition: SYS_Types.h:125
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
static void saveData(std::ostream &os, UT_Matrix4D v)
An output stream object that owns its own string buffer storage.
Resample opResample(const SOP_NodeVerb::CookParms &cookparms) const
const GLdouble * v
Definition: glew.h:1391
bool opDosubnets(const SOP_NodeVerb::CookParms &cookparms) const
exint getNestNumParms(TempIndex idx) const override
fpreal64 opFusethreshold(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opMaxlength(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) 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 buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_Matrix2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
double fpreal64
Definition: SYS_Types.h:201
static void loadData(UT_IStream &is, int64 &v)
UT_StringHolder opRootpath(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setExtraregions(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
exint length() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE const char * buffer() 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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool opUsebonelink(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
const UT_StringHolder & getExtraregions() const
static void saveData(std::ostream &os, int64 v)
const GLfloat * c
Definition: glew.h:16296
long long int64
Definition: SYS_Types.h:116
Captureregionsop opCaptureregionsop(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opExtraregions(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opExcludethreshold(const SOP_NodeVerb::CookParms &cookparms) const
void loadFromOpSubclass(const LoadParms &loadparms) override
bool operator==(const SOP_BoneCaptureLinesParms &src) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void save(std::ostream &os) const
void setGroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const UT_StringHolder & getRootpath() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
static void loadData(UT_IStream &is, UT_Matrix4D &v)
Cookat opCookat(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
const UT_StringHolder & getGroup() const
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void saveData(std::ostream &os, fpreal64 v)
#define SOP_API
Definition: SOP_API.h:10
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
void setRootpath(const UT_StringHolder &val)
GLuint64EXT * result
Definition: glew.h:14007
UT_StringHolder opGroup(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
bool opExcludeshortbones(const SOP_NodeVerb::CookParms &cookparms) const
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
fpreal64 opMaxaxisfraction(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GLsizei const GLfloat * value
Definition: glew.h:1849
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_Vector3D v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
fpreal64 opCaptframe(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)