HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_BoneDeform.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 class DEP_MicroNode;
23 namespace SOP_BoneDeformEnums
24 {
25  enum class Method
26  {
27  LINEAR = 0,
28  DUALQUAT,
31  };
32 
34  getToken(Method enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Method::LINEAR: return "linear"_sh;
39  case Method::DUALQUAT: return "dualquat"_sh;
40  case Method::BLENDDUALQUAT: return "blenddualquat"_sh;
41  case Method::FROMINPUTGEO: return "frominputgeo"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46 }
47 
48 
50 {
51 public:
52  static int version() { return 1; }
53 
55  {
56  myGroup = ""_UTsh;
57  mySkeletonRootPath = ""_UTsh;
58  myMethod = 0;
59  myDualQuaternionBlendAttrib = ""_UTsh;
60  myBoneTransformPath = ""_UTsh;
61  myBoneTransformTargetPath = ""_UTsh;
62  myBoneTransformRegionPath = ""_UTsh;
63  myOtherAttribs = "*"_UTsh;
64  myDoNormals = true;
65  myDeleteCaptureAttrib = true;
66  myDeletePointColors = false;
67 
68  }
69 
70  explicit SOP_BoneDeformParms(const SOP_BoneDeformParms &) = default;
72  SOP_BoneDeformParms(SOP_BoneDeformParms &&) noexcept = default;
73  SOP_BoneDeformParms &operator=(SOP_BoneDeformParms &&) noexcept = default;
74 
75  ~SOP_BoneDeformParms() override {}
76 
77  bool operator==(const SOP_BoneDeformParms &src) const
78  {
79  if (myGroup != src.myGroup) return false;
80  if (mySkeletonRootPath != src.mySkeletonRootPath) return false;
81  if (myMethod != src.myMethod) return false;
82  if (myDualQuaternionBlendAttrib != src.myDualQuaternionBlendAttrib) return false;
83  if (myBoneTransformPath != src.myBoneTransformPath) return false;
84  if (myBoneTransformTargetPath != src.myBoneTransformTargetPath) return false;
85  if (myBoneTransformRegionPath != src.myBoneTransformRegionPath) return false;
86  if (myOtherAttribs != src.myOtherAttribs) return false;
87  if (myDoNormals != src.myDoNormals) return false;
88  if (myDeleteCaptureAttrib != src.myDeleteCaptureAttrib) return false;
89  if (myDeletePointColors != src.myDeletePointColors) return false;
90 
91  return true;
92  }
93  bool operator!=(const SOP_BoneDeformParms &src) const
94  {
95  return !operator==(src);
96  }
98 
99 
100 
101  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
102  {
103  myGroup = ""_UTsh;
104  if (true)
105  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
106  mySkeletonRootPath = ""_UTsh;
107  if (true)
108  graph->evalOpParm(mySkeletonRootPath, nodeidx, "skelrootpath", time, 0);
109  myMethod = 0;
110  if (true)
111  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
112  myDualQuaternionBlendAttrib = ""_UTsh;
113  if (true && ( (true&&!(((int64(getMethod())!=2)))) ) )
114  graph->evalOpParm(myDualQuaternionBlendAttrib, nodeidx, "dqblendattrib", time, 0);
115  myBoneTransformPath = ""_UTsh;
116  if (true)
117  graph->evalOpParm(myBoneTransformPath, nodeidx, "bonetransformpath", time, 0);
118  myBoneTransformTargetPath = ""_UTsh;
119  if (true && ( (true&&!(((getBoneTransformPath()=="")))) ) )
120  graph->evalOpParm(myBoneTransformTargetPath, nodeidx, "bonetransformtargetpath", time, 0);
121  myBoneTransformRegionPath = ""_UTsh;
122  if (true && ( (true&&!(((getBoneTransformPath()=="")))) ) )
123  graph->evalOpParm(myBoneTransformRegionPath, nodeidx, "bonetransformregionpath", time, 0);
124  myOtherAttribs = "*"_UTsh;
125  if (true)
126  graph->evalOpParm(myOtherAttribs, nodeidx, "otherattribs", time, 0);
127  myDoNormals = true;
128  if (true)
129  graph->evalOpParm(myDoNormals, nodeidx, "donormal", time, 0);
130  myDeleteCaptureAttrib = true;
131  if (true)
132  graph->evalOpParm(myDeleteCaptureAttrib, nodeidx, "deletecaptureattrib", time, 0);
133  myDeletePointColors = false;
134  if (true)
135  graph->evalOpParm(myDeletePointColors, nodeidx, "deletepointtcolors", time, 0);
136 
137  }
138 
139 
140  void loadFromOpSubclass(const LoadParms &loadparms) override
141  {
142  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
143  }
144 
145 
146  void copyFrom(const OP_NodeParms *src) override
147  {
148  *this = *((const SOP_BoneDeformParms *)src);
149  }
150 
151  template <typename T>
152  void
153  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
154  {
155  if (idx.size() < 1)
156  return;
157  UT_ASSERT(idx.size() == instance.size()+1);
158  if (idx.size() != instance.size()+1)
159  return;
160  switch (idx[0])
161  {
162  case 0:
163  coerceValue(value, myGroup);
164  break;
165  case 1:
166  coerceValue(value, mySkeletonRootPath);
167  break;
168  case 2:
169  coerceValue(value, myMethod);
170  break;
171  case 3:
172  coerceValue(value, myDualQuaternionBlendAttrib);
173  break;
174  case 4:
175  coerceValue(value, myBoneTransformPath);
176  break;
177  case 5:
178  coerceValue(value, myBoneTransformTargetPath);
179  break;
180  case 6:
181  coerceValue(value, myBoneTransformRegionPath);
182  break;
183  case 7:
184  coerceValue(value, myOtherAttribs);
185  break;
186  case 8:
187  coerceValue(value, myDoNormals);
188  break;
189  case 9:
190  coerceValue(value, myDeleteCaptureAttrib);
191  break;
192  case 10:
193  coerceValue(value, myDeletePointColors);
194  break;
195 
196  }
197  }
198 
199  bool isParmColorRamp(exint idx) const override
200  {
201  switch (idx)
202  {
203 
204  }
205  return false;
206  }
207 
208  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
229  { doGetParmValue(idx, instance, value); }
230 
231  template <typename T>
232  void
233  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
234  {
235  if (idx.size() < 1)
236  return;
237  UT_ASSERT(idx.size() == instance.size()+1);
238  if (idx.size() != instance.size()+1)
239  return;
240  switch (idx[0])
241  {
242  case 0:
243  coerceValue(myGroup, ( ( value ) ));
244  break;
245  case 1:
246  coerceValue(mySkeletonRootPath, ( ( value ) ));
247  break;
248  case 2:
249  coerceValue(myMethod, clampMinValue(0, clampMaxValue(3, value ) ));
250  break;
251  case 3:
252  coerceValue(myDualQuaternionBlendAttrib, ( ( value ) ));
253  break;
254  case 4:
255  coerceValue(myBoneTransformPath, ( ( value ) ));
256  break;
257  case 5:
258  coerceValue(myBoneTransformTargetPath, ( ( value ) ));
259  break;
260  case 6:
261  coerceValue(myBoneTransformRegionPath, ( ( value ) ));
262  break;
263  case 7:
264  coerceValue(myOtherAttribs, ( ( value ) ));
265  break;
266  case 8:
267  coerceValue(myDoNormals, ( ( value ) ));
268  break;
269  case 9:
270  coerceValue(myDeleteCaptureAttrib, ( ( value ) ));
271  break;
272  case 10:
273  coerceValue(myDeletePointColors, ( ( value ) ));
274  break;
275 
276  }
277  }
278 
279  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
296  { doSetParmValue(idx, instance, value); }
297  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
298  { doSetParmValue(idx, instance, value); }
299  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
300  { doSetParmValue(idx, instance, value); }
301 
302  exint getNestNumParms(TempIndex idx) const override
303  {
304  if (idx.size() == 0)
305  return 11;
306  switch (idx[0])
307  {
308 
309  }
310  // Invalid
311  return 0;
312  }
313 
314  const char *getNestParmName(TempIndex fieldnum) const override
315  {
316  if (fieldnum.size() < 1)
317  return 0;
318  switch (fieldnum[0])
319  {
320  case 0:
321  return "group";
322  case 1:
323  return "skelrootpath";
324  case 2:
325  return "method";
326  case 3:
327  return "dqblendattrib";
328  case 4:
329  return "bonetransformpath";
330  case 5:
331  return "bonetransformtargetpath";
332  case 6:
333  return "bonetransformregionpath";
334  case 7:
335  return "otherattribs";
336  case 8:
337  return "donormal";
338  case 9:
339  return "deletecaptureattrib";
340  case 10:
341  return "deletepointtcolors";
342 
343  }
344  return 0;
345  }
346 
347  ParmType getNestParmType(TempIndex fieldnum) const override
348  {
349  if (fieldnum.size() < 1)
350  return PARM_UNSUPPORTED;
351  switch (fieldnum[0])
352  {
353  case 0:
354  return PARM_STRING;
355  case 1:
356  return PARM_STRING;
357  case 2:
358  return PARM_INTEGER;
359  case 3:
360  return PARM_STRING;
361  case 4:
362  return PARM_STRING;
363  case 5:
364  return PARM_STRING;
365  case 6:
366  return PARM_STRING;
367  case 7:
368  return PARM_STRING;
369  case 8:
370  return PARM_INTEGER;
371  case 9:
372  return PARM_INTEGER;
373  case 10:
374  return PARM_INTEGER;
375 
376  }
377  return PARM_UNSUPPORTED;
378  }
379 
380  // Boiler plate to load individual types.
381  static void loadData(UT_IStream &is, int64 &v)
382  { is.bread(&v, 1); }
383  static void loadData(UT_IStream &is, bool &v)
384  { int64 iv; is.bread(&iv, 1); v = iv; }
385  static void loadData(UT_IStream &is, fpreal64 &v)
386  { is.bread<fpreal64>(&v, 1); }
387  static void loadData(UT_IStream &is, UT_Vector2D &v)
388  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
389  static void loadData(UT_IStream &is, UT_Vector3D &v)
390  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
391  is.bread<fpreal64>(&v.z(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector4D &v)
393  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
394  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
395  static void loadData(UT_IStream &is, UT_Matrix2D &v)
396  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
397  static void loadData(UT_IStream &is, UT_Matrix3D &v)
398  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
399  static void loadData(UT_IStream &is, UT_Matrix4D &v)
400  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
401  static void loadData(UT_IStream &is, UT_Vector2I &v)
402  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
403  static void loadData(UT_IStream &is, UT_Vector3I &v)
404  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
405  is.bread<int64>(&v.z(), 1); }
406  static void loadData(UT_IStream &is, UT_Vector4I &v)
407  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
408  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
410  { is.bread(v); }
412  { UT_StringHolder rampdata;
413  loadData(is, rampdata);
414  if (rampdata.isstring())
415  {
416  v.reset(new UT_Ramp());
417  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
418  v->load(istr);
419  }
420  else v.reset();
421  }
424  loadData(is, data);
425  if (data.isstring())
426  {
427  // Find the data type.
428  const char *colon = UT_StringWrap(data).findChar(':');
429  if (colon)
430  {
431  int typelen = colon - data.buffer();
433  type.strncpy(data.buffer(), typelen);
434  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
435 
436  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
437  }
438  }
439  else v.reset();
440  }
441 
442  static void saveData(std::ostream &os, int64 v)
443  { UTwrite(os, &v); }
444  static void saveData(std::ostream &os, bool v)
445  { int64 iv = v; UTwrite(os, &iv); }
446  static void saveData(std::ostream &os, fpreal64 v)
447  { UTwrite<fpreal64>(os, &v); }
448  static void saveData(std::ostream &os, UT_Vector2D v)
449  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
450  static void saveData(std::ostream &os, UT_Vector3D v)
451  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
452  UTwrite<fpreal64>(os, &v.z()); }
453  static void saveData(std::ostream &os, UT_Vector4D v)
454  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
455  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
456  static void saveData(std::ostream &os, UT_Matrix2D v)
458  static void saveData(std::ostream &os, UT_Matrix3D v)
460  static void saveData(std::ostream &os, UT_Matrix4D v)
462  static void saveData(std::ostream &os, UT_StringHolder s)
463  { UT_StringWrap(s).saveBinary(os); }
464  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
466  UT_OStringStream ostr;
467  if (s) s->save(ostr);
468  result = ostr.str();
469  saveData(os, result);
470  }
471  static void saveData(std::ostream &os, PRM_DataItemHandle s)
473  UT_OStringStream ostr;
474  if (s)
475  {
476  ostr << s->getDataTypeToken();
477  ostr << ":";
478  s->saveBinary(ostr);
479  }
480  result = ostr.str();
481  saveData(os, result);
482  }
483 
484 
485  void save(std::ostream &os) const
486  {
487  int32 v = version();
488  UTwrite(os, &v);
489  saveData(os, myGroup);
490  saveData(os, mySkeletonRootPath);
491  saveData(os, myMethod);
492  saveData(os, myDualQuaternionBlendAttrib);
493  saveData(os, myBoneTransformPath);
494  saveData(os, myBoneTransformTargetPath);
495  saveData(os, myBoneTransformRegionPath);
496  saveData(os, myOtherAttribs);
497  saveData(os, myDoNormals);
498  saveData(os, myDeleteCaptureAttrib);
499  saveData(os, myDeletePointColors);
500 
501  }
502 
503  bool load(UT_IStream &is)
504  {
505  int32 v;
506  is.bread(&v, 1);
507  if (version() != v)
508  {
509  // Fail incompatible versions
510  return false;
511  }
512  loadData(is, myGroup);
513  loadData(is, mySkeletonRootPath);
514  loadData(is, myMethod);
515  loadData(is, myDualQuaternionBlendAttrib);
516  loadData(is, myBoneTransformPath);
517  loadData(is, myBoneTransformTargetPath);
518  loadData(is, myBoneTransformRegionPath);
519  loadData(is, myOtherAttribs);
520  loadData(is, myDoNormals);
521  loadData(is, myDeleteCaptureAttrib);
522  loadData(is, myDeletePointColors);
523 
524  return true;
525  }
526 
527  const UT_StringHolder & getGroup() const { return myGroup; }
528  void setGroup(const UT_StringHolder & val) { myGroup = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getGroup();
534  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getSkeletonRootPath() const { return mySkeletonRootPath; }
538  void setSkeletonRootPath(const UT_StringHolder & val) { mySkeletonRootPath = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getSkeletonRootPath();
544  OP_Utils::evalOpParm(result, thissop, "skelrootpath", cookparms.getCookTime(), 0);
545  return result;
546  }
547  Method getMethod() const { return Method(myMethod); }
548  void setMethod(Method val) { myMethod = int64(val); }
549  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getMethod();
553  int64 result;
554  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
555  return Method(result);
556  }
557  const UT_StringHolder & getDualQuaternionBlendAttrib() const { return myDualQuaternionBlendAttrib; }
558  void setDualQuaternionBlendAttrib(const UT_StringHolder & val) { myDualQuaternionBlendAttrib = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getDualQuaternionBlendAttrib();
564  OP_Utils::evalOpParm(result, thissop, "dqblendattrib", cookparms.getCookTime(), 0);
565  return result;
566  }
567  const UT_StringHolder & getBoneTransformPath() const { return myBoneTransformPath; }
568  void setBoneTransformPath(const UT_StringHolder & val) { myBoneTransformPath = val; }
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getBoneTransformPath();
574  OP_Utils::evalOpParm(result, thissop, "bonetransformpath", cookparms.getCookTime(), 0);
575  return result;
576  }
577  const UT_StringHolder & getBoneTransformTargetPath() const { return myBoneTransformTargetPath; }
578  void setBoneTransformTargetPath(const UT_StringHolder & val) { myBoneTransformTargetPath = val; }
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getBoneTransformTargetPath();
584  OP_Utils::evalOpParm(result, thissop, "bonetransformtargetpath", cookparms.getCookTime(), 0);
585  return result;
586  }
587  const UT_StringHolder & getBoneTransformRegionPath() const { return myBoneTransformRegionPath; }
588  void setBoneTransformRegionPath(const UT_StringHolder & val) { myBoneTransformRegionPath = val; }
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getBoneTransformRegionPath();
594  OP_Utils::evalOpParm(result, thissop, "bonetransformregionpath", cookparms.getCookTime(), 0);
595  return result;
596  }
597  const UT_StringHolder & getOtherAttribs() const { return myOtherAttribs; }
598  void setOtherAttribs(const UT_StringHolder & val) { myOtherAttribs = val; }
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getOtherAttribs();
604  OP_Utils::evalOpParm(result, thissop, "otherattribs", cookparms.getCookTime(), 0);
605  return result;
606  }
607  bool getDoNormals() const { return myDoNormals; }
608  void setDoNormals(bool val) { myDoNormals = val; }
609  bool opDoNormals(const SOP_NodeVerb::CookParms &cookparms) const
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getDoNormals();
613  bool result;
614  OP_Utils::evalOpParm(result, thissop, "donormal", cookparms.getCookTime(), 0);
615  return result;
616  }
617  bool getDeleteCaptureAttrib() const { return myDeleteCaptureAttrib; }
618  void setDeleteCaptureAttrib(bool val) { myDeleteCaptureAttrib = val; }
619  bool opDeleteCaptureAttrib(const SOP_NodeVerb::CookParms &cookparms) const
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getDeleteCaptureAttrib();
623  bool result;
624  OP_Utils::evalOpParm(result, thissop, "deletecaptureattrib", cookparms.getCookTime(), 0);
625  return result;
626  }
627  bool getDeletePointColors() const { return myDeletePointColors; }
628  void setDeletePointColors(bool val) { myDeletePointColors = val; }
629  bool opDeletePointColors(const SOP_NodeVerb::CookParms &cookparms) const
630  {
631  SOP_Node *thissop = cookparms.getNode();
632  if (!thissop) return getDeletePointColors();
633  bool result;
634  OP_Utils::evalOpParm(result, thissop, "deletepointtcolors", cookparms.getCookTime(), 0);
635  return result;
636  }
637 
638 private:
639  UT_StringHolder myGroup;
640  UT_StringHolder mySkeletonRootPath;
641  int64 myMethod;
642  UT_StringHolder myDualQuaternionBlendAttrib;
643  UT_StringHolder myBoneTransformPath;
644  UT_StringHolder myBoneTransformTargetPath;
645  UT_StringHolder myBoneTransformRegionPath;
646  UT_StringHolder myOtherAttribs;
647  bool myDoNormals;
648  bool myDeleteCaptureAttrib;
649  bool myDeletePointColors;
650 
651 };
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
bool opDoNormals(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setBoneTransformRegionPath(const UT_StringHolder &val)
bool opDeleteCaptureAttrib(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, bool &v)
void setDeleteCaptureAttrib(bool val)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
static void loadData(UT_IStream &is, UT_StringHolder &v)
fpreal getTime() const
Definition: OP_Context.h:62
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
UT_StringHolder opBoneTransformPath(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, UT_Vector4D v)
UT_StringHolder opBoneTransformRegionPath(const SOP_NodeVerb::CookParms &cookparms) const
void setDeletePointColors(bool val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE const char * buffer() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
GLdouble s
Definition: glad.h:3009
const UT_StringHolder & getBoneTransformPath() const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_Vector2I &v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, int64 &v)
**But if you need a result
Definition: thread.h:613
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
const UT_StringHolder & getBoneTransformRegionPath() const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setBoneTransformTargetPath(const UT_StringHolder &val)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const UT_StringHolder & getGroup() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
const char * getNestParmName(TempIndex fieldnum) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool getDeletePointColors() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setDualQuaternionBlendAttrib(const UT_StringHolder &val)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
UT_StringHolder opBoneTransformTargetPath(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
bool operator!=(const SOP_BoneDeformParms &src) const
void setOtherAttribs(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
UT_StringHolder opOtherAttribs(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
long long int64
Definition: SYS_Types.h:116
ParmType getNestParmType(TempIndex fieldnum) const override
bool load(UT_IStream &is)
void setSkeletonRootPath(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const UT_StringHolder & getSkeletonRootPath() const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
UT_StringHolder opDualQuaternionBlendAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool isParmColorRamp(exint idx) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
const UT_StringHolder & getOtherAttribs() const
static void saveData(std::ostream &os, UT_Matrix2D v)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_Vector3D v)
SYS_FORCE_INLINE UT_StringHolder getToken(Method enum_value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
void setGroup(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
const UT_StringHolder & getBoneTransformTargetPath() const
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool operator==(const SOP_BoneDeformParms &src) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
GLboolean r
Definition: glcorearb.h:1222
void setBoneTransformPath(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
UT_StringHolder opSkeletonRootPath(const SOP_NodeVerb::CookParms &cookparms) const
bool getDeleteCaptureAttrib() const
void setMethod(Method val)
static void saveData(std::ostream &os, UT_Vector2D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
bool opDeletePointColors(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
type
Definition: core.h:1059
const UT_StringHolder & getDualQuaternionBlendAttrib() const
static void saveData(std::ostream &os, int64 v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
exint getNestNumParms(TempIndex idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, UT_StringHolder s)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void copyFrom(const OP_NodeParms *src) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663