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 }
31 
32 
34 {
35 public:
36  static int version() { return 1; }
37 
39  {
40  myGroup = ""_UTsh;
41  myMaxIterations = 1;
42  myDiffTol = 1e-4;
43  myDestroyWeights = true;
44  myBlendFactor = 1;
45  myPointColoring = 0;
46  myZeroWeightColor = UT_Vector3D(1,1,1);
47  myOutputCaptureTets = false;
48  myVerbose = false;
49 
50  }
51 
55  SOP_BoneCaptureBiharmonicParms &operator=(SOP_BoneCaptureBiharmonicParms &&) noexcept = default;
56 
58 
60  {
61  if (myGroup != src.myGroup) return false;
62  if (myMaxIterations != src.myMaxIterations) return false;
63  if (myDiffTol != src.myDiffTol) return false;
64  if (myDestroyWeights != src.myDestroyWeights) return false;
65  if (myBlendFactor != src.myBlendFactor) return false;
66  if (myPointColoring != src.myPointColoring) return false;
67  if (myZeroWeightColor != src.myZeroWeightColor) return false;
68  if (myOutputCaptureTets != src.myOutputCaptureTets) return false;
69  if (myVerbose != src.myVerbose) return false;
70 
71  return true;
72  }
74  {
75  return !operator==(src);
76  }
78 
79 
80 
81  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
82  {
83  myGroup = ""_UTsh;
84  if (true)
85  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
86  myMaxIterations = 1;
87  if (true)
88  graph->evalOpParm(myMaxIterations, nodeidx, "maxiter", time, 0);
89  myDiffTol = 1e-4;
90  if (true)
91  graph->evalOpParm(myDiffTol, nodeidx, "difftol", time, 0);
92  myDestroyWeights = true;
93  if (true)
94  graph->evalOpParm(myDestroyWeights, nodeidx, "destroyweights", time, 0);
95  myBlendFactor = 1;
96  if (true && ( (true&&!(((getDestroyWeights()!=0)))) ) )
97  graph->evalOpParm(myBlendFactor, nodeidx, "blendfactor", time, 0);
98  myPointColoring = 0;
99  if (true)
100  graph->evalOpParm(myPointColoring, nodeidx, "color", time, 0);
101  myZeroWeightColor = UT_Vector3D(1,1,1);
102  if (true)
103  graph->evalOpParm(myZeroWeightColor, nodeidx, "zeroweightcolor", time, 0);
104  myOutputCaptureTets = false;
105  if (true)
106  graph->evalOpParm(myOutputCaptureTets, nodeidx, "outputcapturetets", time, 0);
107  myVerbose = false;
108  if (true)
109  graph->evalOpParm(myVerbose, nodeidx, "verbose", time, 0);
110 
111  }
112 
113 
114  void loadFromOpSubclass(const LoadParms &loadparms) override
115  {
116  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
117  }
118 
119 
120  void copyFrom(const OP_NodeParms *src) override
121  {
122  *this = *((const SOP_BoneCaptureBiharmonicParms *)src);
123  }
124 
125  template <typename T>
126  void
127  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
128  {
129  if (idx.size() < 1)
130  return;
131  UT_ASSERT(idx.size() == instance.size()+1);
132  if (idx.size() != instance.size()+1)
133  return;
134  switch (idx[0])
135  {
136  case 0:
137  coerceValue(value, myGroup);
138  break;
139  case 1:
140  coerceValue(value, myMaxIterations);
141  break;
142  case 2:
143  coerceValue(value, myDiffTol);
144  break;
145  case 3:
146  coerceValue(value, myDestroyWeights);
147  break;
148  case 4:
149  coerceValue(value, myBlendFactor);
150  break;
151  case 5:
152  coerceValue(value, myPointColoring);
153  break;
154  case 6:
155  coerceValue(value, myZeroWeightColor);
156  break;
157  case 7:
158  coerceValue(value, myOutputCaptureTets);
159  break;
160  case 8:
161  coerceValue(value, myVerbose);
162  break;
163 
164  }
165  }
166 
167  bool isParmColorRamp(exint idx) const override
168  {
169  switch (idx)
170  {
171 
172  }
173  return false;
174  }
175 
176  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
197  { doGetParmValue(idx, instance, value); }
198 
199  template <typename T>
200  void
201  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
202  {
203  if (idx.size() < 1)
204  return;
205  UT_ASSERT(idx.size() == instance.size()+1);
206  if (idx.size() != instance.size()+1)
207  return;
208  switch (idx[0])
209  {
210  case 0:
211  coerceValue(myGroup, ( ( value ) ));
212  break;
213  case 1:
214  coerceValue(myMaxIterations, clampMinValue(0, ( value ) ));
215  break;
216  case 2:
217  coerceValue(myDiffTol, ( ( value ) ));
218  break;
219  case 3:
220  coerceValue(myDestroyWeights, ( ( value ) ));
221  break;
222  case 4:
223  coerceValue(myBlendFactor, ( ( value ) ));
224  break;
225  case 5:
226  coerceValue(myPointColoring, clampMinValue(0, clampMaxValue(1, value ) ));
227  break;
228  case 6:
229  coerceValue(myZeroWeightColor, ( ( value ) ));
230  break;
231  case 7:
232  coerceValue(myOutputCaptureTets, ( ( value ) ));
233  break;
234  case 8:
235  coerceValue(myVerbose, ( ( value ) ));
236  break;
237 
238  }
239  }
240 
241  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
262  { doSetParmValue(idx, instance, value); }
263 
264  exint getNestNumParms(TempIndex idx) const override
265  {
266  if (idx.size() == 0)
267  return 9;
268  switch (idx[0])
269  {
270 
271  }
272  // Invalid
273  return 0;
274  }
275 
276  const char *getNestParmName(TempIndex fieldnum) const override
277  {
278  if (fieldnum.size() < 1)
279  return 0;
280  switch (fieldnum[0])
281  {
282  case 0:
283  return "group";
284  case 1:
285  return "maxiter";
286  case 2:
287  return "difftol";
288  case 3:
289  return "destroyweights";
290  case 4:
291  return "blendfactor";
292  case 5:
293  return "color";
294  case 6:
295  return "zeroweightcolor";
296  case 7:
297  return "outputcapturetets";
298  case 8:
299  return "verbose";
300 
301  }
302  return 0;
303  }
304 
305  ParmType getNestParmType(TempIndex fieldnum) const override
306  {
307  if (fieldnum.size() < 1)
308  return PARM_UNSUPPORTED;
309  switch (fieldnum[0])
310  {
311  case 0:
312  return PARM_STRING;
313  case 1:
314  return PARM_INTEGER;
315  case 2:
316  return PARM_FLOAT;
317  case 3:
318  return PARM_INTEGER;
319  case 4:
320  return PARM_FLOAT;
321  case 5:
322  return PARM_INTEGER;
323  case 6:
324  return PARM_VECTOR3;
325  case 7:
326  return PARM_INTEGER;
327  case 8:
328  return PARM_INTEGER;
329 
330  }
331  return PARM_UNSUPPORTED;
332  }
333 
334  // Boiler plate to load individual types.
335  static void loadData(UT_IStream &is, int64 &v)
336  { is.bread(&v, 1); }
337  static void loadData(UT_IStream &is, bool &v)
338  { int64 iv; is.bread(&iv, 1); v = iv; }
339  static void loadData(UT_IStream &is, fpreal64 &v)
340  { is.bread<fpreal64>(&v, 1); }
341  static void loadData(UT_IStream &is, UT_Vector2D &v)
342  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
343  static void loadData(UT_IStream &is, UT_Vector3D &v)
344  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
345  is.bread<fpreal64>(&v.z(), 1); }
346  static void loadData(UT_IStream &is, UT_Vector4D &v)
347  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
348  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
349  static void loadData(UT_IStream &is, UT_Matrix2D &v)
350  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
351  static void loadData(UT_IStream &is, UT_Matrix3D &v)
352  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
353  static void loadData(UT_IStream &is, UT_Matrix4D &v)
354  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
355  static void loadData(UT_IStream &is, UT_Vector2I &v)
356  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
357  static void loadData(UT_IStream &is, UT_Vector3I &v)
358  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
359  is.bread<int64>(&v.z(), 1); }
360  static void loadData(UT_IStream &is, UT_Vector4I &v)
361  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
362  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
364  { is.bread(v); }
366  { UT_StringHolder rampdata;
367  loadData(is, rampdata);
368  if (rampdata.isstring())
369  {
370  v.reset(new UT_Ramp());
371  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
372  v->load(istr);
373  }
374  else v.reset();
375  }
378  loadData(is, data);
379  if (data.isstring())
380  {
381  // Find the data type.
382  const char *colon = UT_StringWrap(data).findChar(':');
383  if (colon)
384  {
385  int typelen = colon - data.buffer();
387  type.strncpy(data.buffer(), typelen);
388  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
389 
390  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
391  }
392  }
393  else v.reset();
394  }
395 
396  static void saveData(std::ostream &os, int64 v)
397  { UTwrite(os, &v); }
398  static void saveData(std::ostream &os, bool v)
399  { int64 iv = v; UTwrite(os, &iv); }
400  static void saveData(std::ostream &os, fpreal64 v)
401  { UTwrite<fpreal64>(os, &v); }
402  static void saveData(std::ostream &os, UT_Vector2D v)
403  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
404  static void saveData(std::ostream &os, UT_Vector3D v)
405  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
406  UTwrite<fpreal64>(os, &v.z()); }
407  static void saveData(std::ostream &os, UT_Vector4D v)
408  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
409  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
410  static void saveData(std::ostream &os, UT_Matrix2D v)
412  static void saveData(std::ostream &os, UT_Matrix3D v)
414  static void saveData(std::ostream &os, UT_Matrix4D v)
416  static void saveData(std::ostream &os, UT_StringHolder s)
417  { UT_StringWrap(s).saveBinary(os); }
418  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
420  UT_OStringStream ostr;
421  if (s) s->save(ostr);
422  result = ostr.str();
423  saveData(os, result);
424  }
425  static void saveData(std::ostream &os, PRM_DataItemHandle s)
427  UT_OStringStream ostr;
428  if (s)
429  {
430  ostr << s->getDataTypeToken();
431  ostr << ":";
432  s->saveBinary(ostr);
433  }
434  result = ostr.str();
435  saveData(os, result);
436  }
437 
438 
439  void save(std::ostream &os) const
440  {
441  int32 v = version();
442  UTwrite(os, &v);
443  saveData(os, myGroup);
444  saveData(os, myMaxIterations);
445  saveData(os, myDiffTol);
446  saveData(os, myDestroyWeights);
447  saveData(os, myBlendFactor);
448  saveData(os, myPointColoring);
449  saveData(os, myZeroWeightColor);
450  saveData(os, myOutputCaptureTets);
451  saveData(os, myVerbose);
452 
453  }
454 
455  bool load(UT_IStream &is)
456  {
457  int32 v;
458  is.bread(&v, 1);
459  if (version() != v)
460  {
461  // Fail incompatible versions
462  return false;
463  }
464  loadData(is, myGroup);
465  loadData(is, myMaxIterations);
466  loadData(is, myDiffTol);
467  loadData(is, myDestroyWeights);
468  loadData(is, myBlendFactor);
469  loadData(is, myPointColoring);
470  loadData(is, myZeroWeightColor);
471  loadData(is, myOutputCaptureTets);
472  loadData(is, myVerbose);
473 
474  return true;
475  }
476 
477  const UT_StringHolder & getGroup() const { return myGroup; }
478  void setGroup(const UT_StringHolder & val) { myGroup = val; }
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getGroup();
484  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
485  return result;
486  }
487  int64 getMaxIterations() const { return myMaxIterations; }
488  void setMaxIterations(int64 val) { myMaxIterations = val; }
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getMaxIterations();
493  int64 result;
494  OP_Utils::evalOpParm(result, thissop, "maxiter", cookparms.getCookTime(), 0);
495  return result;
496  }
497  fpreal64 getDiffTol() const { return myDiffTol; }
498  void setDiffTol(fpreal64 val) { myDiffTol = val; }
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getDiffTol();
504  OP_Utils::evalOpParm(result, thissop, "difftol", cookparms.getCookTime(), 0);
505  return result;
506  }
507  bool getDestroyWeights() const { return myDestroyWeights; }
508  void setDestroyWeights(bool val) { myDestroyWeights = val; }
509  bool opDestroyWeights(const SOP_NodeVerb::CookParms &cookparms) const
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getDestroyWeights();
513  bool result;
514  OP_Utils::evalOpParm(result, thissop, "destroyweights", cookparms.getCookTime(), 0);
515  return result;
516  }
517  fpreal64 getBlendFactor() const { return myBlendFactor; }
518  void setBlendFactor(fpreal64 val) { myBlendFactor = val; }
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getBlendFactor();
524  OP_Utils::evalOpParm(result, thissop, "blendfactor", cookparms.getCookTime(), 0);
525  return result;
526  }
527  PointColoring getPointColoring() const { return PointColoring(myPointColoring); }
528  void setPointColoring(PointColoring val) { myPointColoring = int64(val); }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getPointColoring();
533  int64 result;
534  OP_Utils::evalOpParm(result, thissop, "color", cookparms.getCookTime(), 0);
535  return PointColoring(result);
536  }
537  UT_Vector3D getZeroWeightColor() const { return myZeroWeightColor; }
538  void setZeroWeightColor(UT_Vector3D val) { myZeroWeightColor = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getZeroWeightColor();
544  OP_Utils::evalOpParm(result, thissop, "zeroweightcolor", cookparms.getCookTime(), 0);
545  return result;
546  }
547  bool getOutputCaptureTets() const { return myOutputCaptureTets; }
548  void setOutputCaptureTets(bool val) { myOutputCaptureTets = val; }
549  bool opOutputCaptureTets(const SOP_NodeVerb::CookParms &cookparms) const
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getOutputCaptureTets();
553  bool result;
554  OP_Utils::evalOpParm(result, thissop, "outputcapturetets", cookparms.getCookTime(), 0);
555  return result;
556  }
557  bool getVerbose() const { return myVerbose; }
558  void setVerbose(bool val) { myVerbose = val; }
559  bool opVerbose(const SOP_NodeVerb::CookParms &cookparms) const
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getVerbose();
563  bool result;
564  OP_Utils::evalOpParm(result, thissop, "verbose", cookparms.getCookTime(), 0);
565  return result;
566  }
567 
568 private:
569  UT_StringHolder myGroup;
570  int64 myMaxIterations;
571  fpreal64 myDiffTol;
572  bool myDestroyWeights;
573  fpreal64 myBlendFactor;
574  int64 myPointColoring;
575  UT_Vector3D myZeroWeightColor;
576  bool myOutputCaptureTets;
577  bool myVerbose;
578 
579 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
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
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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)
OP_NodeParms & operator=(const OP_NodeParms &)=default
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