HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_BoneCaptureBiharmonic.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_BoneCaptureBiharmonicEnums
24 {
25  enum class PointColoring
26  {
27  COLDEFAULT = 0,
28  COLREGION
29  };
30 
32  getToken(PointColoring enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case PointColoring::COLDEFAULT: return "colDefault"_sh;
37  case PointColoring::COLREGION: return "colRegion"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myGroup = ""_UTsh;
53  myMaxIterations = 1;
54  myDiffTol = 1e-4;
55  myDestroyWeights = true;
56  myBlendFactor = 1;
57  myPointColoring = 0;
58  myZeroWeightColor = UT_Vector3D(1,1,1);
59  myOutputCaptureTets = false;
60  myVerbose = false;
61 
62  }
63 
67  SOP_BoneCaptureBiharmonicParms &operator=(SOP_BoneCaptureBiharmonicParms &&) noexcept = default;
68 
70 
72  {
73  if (myGroup != src.myGroup) return false;
74  if (myMaxIterations != src.myMaxIterations) return false;
75  if (myDiffTol != src.myDiffTol) return false;
76  if (myDestroyWeights != src.myDestroyWeights) return false;
77  if (myBlendFactor != src.myBlendFactor) return false;
78  if (myPointColoring != src.myPointColoring) return false;
79  if (myZeroWeightColor != src.myZeroWeightColor) return false;
80  if (myOutputCaptureTets != src.myOutputCaptureTets) return false;
81  if (myVerbose != src.myVerbose) return false;
82 
83  return true;
84  }
86  {
87  return !operator==(src);
88  }
90 
91 
92 
93  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
94  {
95  myGroup = ""_UTsh;
96  if (true)
97  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
98  myMaxIterations = 1;
99  if (true)
100  graph->evalOpParm(myMaxIterations, nodeidx, "maxiter", time, 0);
101  myDiffTol = 1e-4;
102  if (true)
103  graph->evalOpParm(myDiffTol, nodeidx, "difftol", time, 0);
104  myDestroyWeights = true;
105  if (true)
106  graph->evalOpParm(myDestroyWeights, nodeidx, "destroyweights", time, 0);
107  myBlendFactor = 1;
108  if (true && ( (true&&!(((getDestroyWeights()!=0)))) ) )
109  graph->evalOpParm(myBlendFactor, nodeidx, "blendfactor", time, 0);
110  myPointColoring = 0;
111  if (true)
112  graph->evalOpParm(myPointColoring, nodeidx, "color", time, 0);
113  myZeroWeightColor = UT_Vector3D(1,1,1);
114  if (true)
115  graph->evalOpParm(myZeroWeightColor, nodeidx, "zeroweightcolor", time, 0);
116  myOutputCaptureTets = false;
117  if (true)
118  graph->evalOpParm(myOutputCaptureTets, nodeidx, "outputcapturetets", time, 0);
119  myVerbose = false;
120  if (true)
121  graph->evalOpParm(myVerbose, nodeidx, "verbose", 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_BoneCaptureBiharmonicParms *)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, myMaxIterations);
153  break;
154  case 2:
155  coerceValue(value, myDiffTol);
156  break;
157  case 3:
158  coerceValue(value, myDestroyWeights);
159  break;
160  case 4:
161  coerceValue(value, myBlendFactor);
162  break;
163  case 5:
164  coerceValue(value, myPointColoring);
165  break;
166  case 6:
167  coerceValue(value, myZeroWeightColor);
168  break;
169  case 7:
170  coerceValue(value, myOutputCaptureTets);
171  break;
172  case 8:
173  coerceValue(value, myVerbose);
174  break;
175 
176  }
177  }
178 
179  bool isParmColorRamp(exint idx) const override
180  {
181  switch (idx)
182  {
183 
184  }
185  return false;
186  }
187 
188  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
209  { doGetParmValue(idx, instance, value); }
210 
211  template <typename T>
212  void
213  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
214  {
215  if (idx.size() < 1)
216  return;
217  UT_ASSERT(idx.size() == instance.size()+1);
218  if (idx.size() != instance.size()+1)
219  return;
220  switch (idx[0])
221  {
222  case 0:
223  coerceValue(myGroup, ( ( value ) ));
224  break;
225  case 1:
226  coerceValue(myMaxIterations, clampMinValue(0, ( value ) ));
227  break;
228  case 2:
229  coerceValue(myDiffTol, ( ( value ) ));
230  break;
231  case 3:
232  coerceValue(myDestroyWeights, ( ( value ) ));
233  break;
234  case 4:
235  coerceValue(myBlendFactor, ( ( value ) ));
236  break;
237  case 5:
238  coerceValue(myPointColoring, clampMinValue(0, clampMaxValue(1, value ) ));
239  break;
240  case 6:
241  coerceValue(myZeroWeightColor, ( ( value ) ));
242  break;
243  case 7:
244  coerceValue(myOutputCaptureTets, ( ( value ) ));
245  break;
246  case 8:
247  coerceValue(myVerbose, ( ( value ) ));
248  break;
249 
250  }
251  }
252 
253  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
274  { doSetParmValue(idx, instance, value); }
275 
276  exint getNestNumParms(TempIndex idx) const override
277  {
278  if (idx.size() == 0)
279  return 9;
280  switch (idx[0])
281  {
282 
283  }
284  // Invalid
285  return 0;
286  }
287 
288  const char *getNestParmName(TempIndex fieldnum) const override
289  {
290  if (fieldnum.size() < 1)
291  return 0;
292  switch (fieldnum[0])
293  {
294  case 0:
295  return "group";
296  case 1:
297  return "maxiter";
298  case 2:
299  return "difftol";
300  case 3:
301  return "destroyweights";
302  case 4:
303  return "blendfactor";
304  case 5:
305  return "color";
306  case 6:
307  return "zeroweightcolor";
308  case 7:
309  return "outputcapturetets";
310  case 8:
311  return "verbose";
312 
313  }
314  return 0;
315  }
316 
317  ParmType getNestParmType(TempIndex fieldnum) const override
318  {
319  if (fieldnum.size() < 1)
320  return PARM_UNSUPPORTED;
321  switch (fieldnum[0])
322  {
323  case 0:
324  return PARM_STRING;
325  case 1:
326  return PARM_INTEGER;
327  case 2:
328  return PARM_FLOAT;
329  case 3:
330  return PARM_INTEGER;
331  case 4:
332  return PARM_FLOAT;
333  case 5:
334  return PARM_INTEGER;
335  case 6:
336  return PARM_VECTOR3;
337  case 7:
338  return PARM_INTEGER;
339  case 8:
340  return PARM_INTEGER;
341 
342  }
343  return PARM_UNSUPPORTED;
344  }
345 
346  // Boiler plate to load individual types.
347  static void loadData(UT_IStream &is, int64 &v)
348  { is.bread(&v, 1); }
349  static void loadData(UT_IStream &is, bool &v)
350  { int64 iv; is.bread(&iv, 1); v = iv; }
351  static void loadData(UT_IStream &is, fpreal64 &v)
352  { is.bread<fpreal64>(&v, 1); }
353  static void loadData(UT_IStream &is, UT_Vector2D &v)
354  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
355  static void loadData(UT_IStream &is, UT_Vector3D &v)
356  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
357  is.bread<fpreal64>(&v.z(), 1); }
358  static void loadData(UT_IStream &is, UT_Vector4D &v)
359  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
360  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
361  static void loadData(UT_IStream &is, UT_Matrix2D &v)
362  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
363  static void loadData(UT_IStream &is, UT_Matrix3D &v)
364  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
365  static void loadData(UT_IStream &is, UT_Matrix4D &v)
366  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
367  static void loadData(UT_IStream &is, UT_Vector2I &v)
368  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
369  static void loadData(UT_IStream &is, UT_Vector3I &v)
370  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
371  is.bread<int64>(&v.z(), 1); }
372  static void loadData(UT_IStream &is, UT_Vector4I &v)
373  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
374  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
376  { is.bread(v); }
378  { UT_StringHolder rampdata;
379  loadData(is, rampdata);
380  if (rampdata.isstring())
381  {
382  v.reset(new UT_Ramp());
383  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
384  v->load(istr);
385  }
386  else v.reset();
387  }
390  loadData(is, data);
391  if (data.isstring())
392  {
393  // Find the data type.
394  const char *colon = UT_StringWrap(data).findChar(':');
395  if (colon)
396  {
397  int typelen = colon - data.buffer();
399  type.strncpy(data.buffer(), typelen);
400  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
401 
402  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
403  }
404  }
405  else v.reset();
406  }
407 
408  static void saveData(std::ostream &os, int64 v)
409  { UTwrite(os, &v); }
410  static void saveData(std::ostream &os, bool v)
411  { int64 iv = v; UTwrite(os, &iv); }
412  static void saveData(std::ostream &os, fpreal64 v)
413  { UTwrite<fpreal64>(os, &v); }
414  static void saveData(std::ostream &os, UT_Vector2D v)
415  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
416  static void saveData(std::ostream &os, UT_Vector3D v)
417  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
418  UTwrite<fpreal64>(os, &v.z()); }
419  static void saveData(std::ostream &os, UT_Vector4D v)
420  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
421  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
422  static void saveData(std::ostream &os, UT_Matrix2D v)
424  static void saveData(std::ostream &os, UT_Matrix3D v)
426  static void saveData(std::ostream &os, UT_Matrix4D v)
428  static void saveData(std::ostream &os, UT_StringHolder s)
429  { UT_StringWrap(s).saveBinary(os); }
430  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
432  UT_OStringStream ostr;
433  if (s) s->save(ostr);
434  result = ostr.str();
435  saveData(os, result);
436  }
437  static void saveData(std::ostream &os, PRM_DataItemHandle s)
439  UT_OStringStream ostr;
440  if (s)
441  {
442  ostr << s->getDataTypeToken();
443  ostr << ":";
444  s->saveBinary(ostr);
445  }
446  result = ostr.str();
447  saveData(os, result);
448  }
449 
450 
451  void save(std::ostream &os) const
452  {
453  int32 v = version();
454  UTwrite(os, &v);
455  saveData(os, myGroup);
456  saveData(os, myMaxIterations);
457  saveData(os, myDiffTol);
458  saveData(os, myDestroyWeights);
459  saveData(os, myBlendFactor);
460  saveData(os, myPointColoring);
461  saveData(os, myZeroWeightColor);
462  saveData(os, myOutputCaptureTets);
463  saveData(os, myVerbose);
464 
465  }
466 
467  bool load(UT_IStream &is)
468  {
469  int32 v;
470  is.bread(&v, 1);
471  if (version() != v)
472  {
473  // Fail incompatible versions
474  return false;
475  }
476  loadData(is, myGroup);
477  loadData(is, myMaxIterations);
478  loadData(is, myDiffTol);
479  loadData(is, myDestroyWeights);
480  loadData(is, myBlendFactor);
481  loadData(is, myPointColoring);
482  loadData(is, myZeroWeightColor);
483  loadData(is, myOutputCaptureTets);
484  loadData(is, myVerbose);
485 
486  return true;
487  }
488 
489  const UT_StringHolder & getGroup() const { return myGroup; }
490  void setGroup(const UT_StringHolder & val) { myGroup = val; }
492  {
493  SOP_Node *thissop = cookparms.getNode();
494  if (!thissop) return getGroup();
496  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
497  return result;
498  }
499  int64 getMaxIterations() const { return myMaxIterations; }
500  void setMaxIterations(int64 val) { myMaxIterations = val; }
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return getMaxIterations();
505  int64 result;
506  OP_Utils::evalOpParm(result, thissop, "maxiter", cookparms.getCookTime(), 0);
507  return result;
508  }
509  fpreal64 getDiffTol() const { return myDiffTol; }
510  void setDiffTol(fpreal64 val) { myDiffTol = val; }
512  {
513  SOP_Node *thissop = cookparms.getNode();
514  if (!thissop) return getDiffTol();
516  OP_Utils::evalOpParm(result, thissop, "difftol", cookparms.getCookTime(), 0);
517  return result;
518  }
519  bool getDestroyWeights() const { return myDestroyWeights; }
520  void setDestroyWeights(bool val) { myDestroyWeights = val; }
521  bool opDestroyWeights(const SOP_NodeVerb::CookParms &cookparms) const
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return getDestroyWeights();
525  bool result;
526  OP_Utils::evalOpParm(result, thissop, "destroyweights", cookparms.getCookTime(), 0);
527  return result;
528  }
529  fpreal64 getBlendFactor() const { return myBlendFactor; }
530  void setBlendFactor(fpreal64 val) { myBlendFactor = val; }
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return getBlendFactor();
536  OP_Utils::evalOpParm(result, thissop, "blendfactor", cookparms.getCookTime(), 0);
537  return result;
538  }
539  PointColoring getPointColoring() const { return PointColoring(myPointColoring); }
540  void setPointColoring(PointColoring val) { myPointColoring = int64(val); }
542  {
543  SOP_Node *thissop = cookparms.getNode();
544  if (!thissop) return getPointColoring();
545  int64 result;
546  OP_Utils::evalOpParm(result, thissop, "color", cookparms.getCookTime(), 0);
547  return PointColoring(result);
548  }
549  UT_Vector3D getZeroWeightColor() const { return myZeroWeightColor; }
550  void setZeroWeightColor(UT_Vector3D val) { myZeroWeightColor = val; }
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getZeroWeightColor();
556  OP_Utils::evalOpParm(result, thissop, "zeroweightcolor", cookparms.getCookTime(), 0);
557  return result;
558  }
559  bool getOutputCaptureTets() const { return myOutputCaptureTets; }
560  void setOutputCaptureTets(bool val) { myOutputCaptureTets = val; }
561  bool opOutputCaptureTets(const SOP_NodeVerb::CookParms &cookparms) const
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getOutputCaptureTets();
565  bool result;
566  OP_Utils::evalOpParm(result, thissop, "outputcapturetets", cookparms.getCookTime(), 0);
567  return result;
568  }
569  bool getVerbose() const { return myVerbose; }
570  void setVerbose(bool val) { myVerbose = val; }
571  bool opVerbose(const SOP_NodeVerb::CookParms &cookparms) const
572  {
573  SOP_Node *thissop = cookparms.getNode();
574  if (!thissop) return getVerbose();
575  bool result;
576  OP_Utils::evalOpParm(result, thissop, "verbose", cookparms.getCookTime(), 0);
577  return result;
578  }
579 
580 private:
581  UT_StringHolder myGroup;
582  int64 myMaxIterations;
583  fpreal64 myDiffTol;
584  bool myDestroyWeights;
585  fpreal64 myBlendFactor;
586  int64 myPointColoring;
587  UT_Vector3D myZeroWeightColor;
588  bool myOutputCaptureTets;
589  bool myVerbose;
590 
591 };
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
static void saveData(std::ostream &os, bool v)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_Vector2I &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
exint getNestNumParms(TempIndex idx) const override
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
**But if you need a result
Definition: thread.h:613
int64 opMaxIterations(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void copyFrom(const OP_NodeParms *src) override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static void saveData(std::ostream &os, PRM_DataItemHandle s)
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 setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
fpreal64 opDiffTol(const SOP_NodeVerb::CookParms &cookparms) const
bool opVerbose(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Vector3D v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Vector2D v)
PointColoring opPointColoring(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool operator!=(const SOP_BoneCaptureBiharmonicParms &src) const
exint length() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
fpreal64 opBlendFactor(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
const UT_StringHolder & getGroup() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
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, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
SYS_FORCE_INLINE UT_StringHolder getToken(PointColoring enum_value)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
long long int64
Definition: SYS_Types.h:116
UT_Vector3T< fpreal64 > UT_Vector3D
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, int64 v)
const char * getNestParmName(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
bool opOutputCaptureTets(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_Vector4I &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, int64 &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, fpreal64 v)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setGroup(const UT_StringHolder &val)
UT_Vector3D opZeroWeightColor(const SOP_NodeVerb::CookParms &cookparms) const
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
bool opDestroyWeights(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
bool isParmColorRamp(exint idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
ParmType getNestParmType(TempIndex fieldnum) const 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
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix4D v)
bool operator==(const SOP_BoneCaptureBiharmonicParms &src) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &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)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663