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