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