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