HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Inflate.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_InflateEnums
24 {
25  enum class Enablemaskattrib
26  {
27  NOSCALING = 0,
28  BYATTRIB
29  };
30 
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Enablemaskattrib::NOSCALING: return "noscaling"_sh;
37  case Enablemaskattrib::BYATTRIB: return "byattrib"_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  myToolgroup = ""_UTsh;
54  myCentergroup = ""_UTsh;
55  myCenterprimgroup = ""_UTsh;
56  myMask = 1;
57  myEnablemaskattrib = 0;
58  myMaskattrib = "mask"_UTsh;
59  myToolidname = "toolid"_UTsh;
60  myCenteroverlap = 0;
61  myBlendexponent = 2;
62  myClampsurfdist = true;
63  myMinsurfdist = 0;
64  myTightness = 3;
65  myInflatetofarthest = false;
66  myMaxinflateenable = false;
67  myMaxinflate = 1;
68 
69  }
70 
71  explicit SOP_InflateParms(const SOP_InflateParms &) = default;
72  SOP_InflateParms &operator=(const SOP_InflateParms &) = default;
73  SOP_InflateParms(SOP_InflateParms &&) noexcept = default;
74  SOP_InflateParms &operator=(SOP_InflateParms &&) noexcept = default;
75 
76  ~SOP_InflateParms() override {}
77 
78  bool operator==(const SOP_InflateParms &src) const
79  {
80  if (myGroup != src.myGroup) return false;
81  if (myToolgroup != src.myToolgroup) return false;
82  if (myCentergroup != src.myCentergroup) return false;
83  if (myCenterprimgroup != src.myCenterprimgroup) return false;
84  if (myMask != src.myMask) return false;
85  if (myEnablemaskattrib != src.myEnablemaskattrib) return false;
86  if (myMaskattrib != src.myMaskattrib) return false;
87  if (myToolidname != src.myToolidname) return false;
88  if (myCenteroverlap != src.myCenteroverlap) return false;
89  if (myBlendexponent != src.myBlendexponent) return false;
90  if (myClampsurfdist != src.myClampsurfdist) return false;
91  if (myMinsurfdist != src.myMinsurfdist) return false;
92  if (myTightness != src.myTightness) return false;
93  if (myInflatetofarthest != src.myInflatetofarthest) return false;
94  if (myMaxinflateenable != src.myMaxinflateenable) return false;
95  if (myMaxinflate != src.myMaxinflate) return false;
96 
97 
98  if (baseGetSignature() != src.baseGetSignature()) return false;
99 
100  return true;
101  }
102  bool operator!=(const SOP_InflateParms &src) const
103  {
104  return !operator==(src);
105  }
107 
108 
109 
110  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
111  {
112  myGroup = ""_UTsh;
113  if (true)
114  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
115  myToolgroup = ""_UTsh;
116  if (true)
117  graph->evalOpParm(myToolgroup, nodeidx, "toolgroup", time, graph->isDirect()?nullptr:depnode);
118  myCentergroup = ""_UTsh;
119  if (true)
120  graph->evalOpParm(myCentergroup, nodeidx, "centergroup", time, graph->isDirect()?nullptr:depnode);
121  myCenterprimgroup = ""_UTsh;
122  if (true)
123  graph->evalOpParm(myCenterprimgroup, nodeidx, "centerprimgroup", time, graph->isDirect()?nullptr:depnode);
124  myMask = 1;
125  if (true)
126  graph->evalOpParm(myMask, nodeidx, "mask", time, graph->isDirect()?nullptr:depnode);
127  myEnablemaskattrib = 0;
128  if (true)
129  graph->evalOpParm(myEnablemaskattrib, nodeidx, "enablemaskattrib", time, graph->isDirect()?nullptr:depnode);
130  myMaskattrib = "mask"_UTsh;
131  if (true && ( (true&&!(((int64(getEnablemaskattrib())==0)))) ) )
132  graph->evalOpParm(myMaskattrib, nodeidx, "maskattrib", time, graph->isDirect()?nullptr:depnode);
133  myToolidname = "toolid"_UTsh;
134  if (true)
135  graph->evalOpParm(myToolidname, nodeidx, "toolidname", time, graph->isDirect()?nullptr:depnode);
136  myCenteroverlap = 0;
137  if (true)
138  graph->evalOpParm(myCenteroverlap, nodeidx, "centeroverlap", time, graph->isDirect()?nullptr:depnode);
139  myBlendexponent = 2;
140  if (true)
141  graph->evalOpParm(myBlendexponent, nodeidx, "blendexponent", time, graph->isDirect()?nullptr:depnode);
142  myClampsurfdist = true;
143  if (true)
144  graph->evalOpParm(myClampsurfdist, nodeidx, "clampsurfdist", time, graph->isDirect()?nullptr:depnode);
145  myMinsurfdist = 0;
146  if (true && ( (true&&!(((getClampsurfdist()==0)))) ) )
147  graph->evalOpParm(myMinsurfdist, nodeidx, "minsurfdist", time, graph->isDirect()?nullptr:depnode);
148  myTightness = 3;
149  if (true)
150  graph->evalOpParm(myTightness, nodeidx, "tightness", time, graph->isDirect()?nullptr:depnode);
151  myInflatetofarthest = false;
152  if (true)
153  graph->evalOpParm(myInflatetofarthest, nodeidx, "inflatetofarthest", time, graph->isDirect()?nullptr:depnode);
154  myMaxinflateenable = false;
155  if (true)
156  graph->evalOpParm(myMaxinflateenable, nodeidx, "maxinflateenable", time, graph->isDirect()?nullptr:depnode);
157  myMaxinflate = 1;
158  if (true && ( (true&&!(((getMaxinflateenable()==0)))) ) )
159  graph->evalOpParm(myMaxinflate, nodeidx, "maxinflate", time, graph->isDirect()?nullptr:depnode);
160 
161  }
162 
163 
164  void loadFromOpSubclass(const LoadParms &loadparms) override
165  {
166  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
167  }
168 
169 
170  void copyFrom(const OP_NodeParms *src) override
171  {
172  *this = *((const SOP_InflateParms *)src);
173  }
174 
175  template <typename T>
176  void
177  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
178  {
179  if (idx.size() < 1)
180  return;
181  UT_ASSERT(idx.size() == instance.size()+1);
182  if (idx.size() != instance.size()+1)
183  return;
184  switch (idx[0])
185  {
186  case 0:
187  coerceValue(value, myGroup);
188  break;
189  case 1:
190  coerceValue(value, myToolgroup);
191  break;
192  case 2:
193  coerceValue(value, myCentergroup);
194  break;
195  case 3:
196  coerceValue(value, myCenterprimgroup);
197  break;
198  case 4:
199  coerceValue(value, myMask);
200  break;
201  case 5:
202  coerceValue(value, myEnablemaskattrib);
203  break;
204  case 6:
205  coerceValue(value, myMaskattrib);
206  break;
207  case 7:
208  coerceValue(value, myToolidname);
209  break;
210  case 8:
211  coerceValue(value, myCenteroverlap);
212  break;
213  case 9:
214  coerceValue(value, myBlendexponent);
215  break;
216  case 10:
217  coerceValue(value, myClampsurfdist);
218  break;
219  case 11:
220  coerceValue(value, myMinsurfdist);
221  break;
222  case 12:
223  coerceValue(value, myTightness);
224  break;
225  case 13:
226  coerceValue(value, myInflatetofarthest);
227  break;
228  case 14:
229  coerceValue(value, myMaxinflateenable);
230  break;
231  case 15:
232  coerceValue(value, myMaxinflate);
233  break;
234 
235  }
236  }
237 
238  bool isParmColorRamp(exint idx) const override
239  {
240  switch (idx)
241  {
242 
243  }
244  return false;
245  }
246 
247  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
248  { doGetParmValue(idx, instance, value); }
249  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
250  { doGetParmValue(idx, instance, value); }
251  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
252  { doGetParmValue(idx, instance, value); }
253  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
254  { doGetParmValue(idx, instance, value); }
255  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
256  { doGetParmValue(idx, instance, value); }
257  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
258  { doGetParmValue(idx, instance, value); }
259  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
260  { doGetParmValue(idx, instance, value); }
261  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
262  { doGetParmValue(idx, instance, value); }
263  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
264  { doGetParmValue(idx, instance, value); }
265  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
266  { doGetParmValue(idx, instance, value); }
267  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
268  { doGetParmValue(idx, instance, value); }
269 
270  template <typename T>
271  void
272  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
273  {
274  if (idx.size() < 1)
275  return;
276  UT_ASSERT(idx.size() == instance.size()+1);
277  if (idx.size() != instance.size()+1)
278  return;
279  switch (idx[0])
280  {
281  case 0:
282  coerceValue(myGroup, ( ( value ) ));
283  break;
284  case 1:
285  coerceValue(myToolgroup, ( ( value ) ));
286  break;
287  case 2:
288  coerceValue(myCentergroup, ( ( value ) ));
289  break;
290  case 3:
291  coerceValue(myCenterprimgroup, ( ( value ) ));
292  break;
293  case 4:
294  coerceValue(myMask, ( ( value ) ));
295  break;
296  case 5:
297  coerceValue(myEnablemaskattrib, clampMinValue(0, clampMaxValue(1, value ) ));
298  break;
299  case 6:
300  coerceValue(myMaskattrib, ( ( value ) ));
301  break;
302  case 7:
303  coerceValue(myToolidname, ( ( value ) ));
304  break;
305  case 8:
306  coerceValue(myCenteroverlap, ( ( value ) ));
307  break;
308  case 9:
309  coerceValue(myBlendexponent, ( ( value ) ));
310  break;
311  case 10:
312  coerceValue(myClampsurfdist, ( ( value ) ));
313  break;
314  case 11:
315  coerceValue(myMinsurfdist, ( ( value ) ));
316  break;
317  case 12:
318  coerceValue(myTightness, ( ( value ) ));
319  break;
320  case 13:
321  coerceValue(myInflatetofarthest, ( ( value ) ));
322  break;
323  case 14:
324  coerceValue(myMaxinflateenable, ( ( value ) ));
325  break;
326  case 15:
327  coerceValue(myMaxinflate, ( ( value ) ));
328  break;
329 
330  }
331  }
332 
333  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
334  { doSetParmValue(idx, instance, value); }
335  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
336  { doSetParmValue(idx, instance, value); }
337  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
338  { doSetParmValue(idx, instance, value); }
339  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
340  { doSetParmValue(idx, instance, value); }
341  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
342  { doSetParmValue(idx, instance, value); }
343  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
344  { doSetParmValue(idx, instance, value); }
345  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
346  { doSetParmValue(idx, instance, value); }
347  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
348  { doSetParmValue(idx, instance, value); }
349  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
350  { doSetParmValue(idx, instance, value); }
351  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
352  { doSetParmValue(idx, instance, value); }
353  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
354  { doSetParmValue(idx, instance, value); }
355 
356  exint getNestNumParms(TempIndex idx) const override
357  {
358  if (idx.size() == 0)
359  return 16;
360  switch (idx[0])
361  {
362 
363  }
364  // Invalid
365  return 0;
366  }
367 
368  const char *getNestParmName(TempIndex fieldnum) const override
369  {
370  if (fieldnum.size() < 1)
371  return 0;
372  switch (fieldnum[0])
373  {
374  case 0:
375  return "group";
376  case 1:
377  return "toolgroup";
378  case 2:
379  return "centergroup";
380  case 3:
381  return "centerprimgroup";
382  case 4:
383  return "mask";
384  case 5:
385  return "enablemaskattrib";
386  case 6:
387  return "maskattrib";
388  case 7:
389  return "toolidname";
390  case 8:
391  return "centeroverlap";
392  case 9:
393  return "blendexponent";
394  case 10:
395  return "clampsurfdist";
396  case 11:
397  return "minsurfdist";
398  case 12:
399  return "tightness";
400  case 13:
401  return "inflatetofarthest";
402  case 14:
403  return "maxinflateenable";
404  case 15:
405  return "maxinflate";
406 
407  }
408  return 0;
409  }
410 
411  ParmType getNestParmType(TempIndex fieldnum) const override
412  {
413  if (fieldnum.size() < 1)
414  return PARM_UNSUPPORTED;
415  switch (fieldnum[0])
416  {
417  case 0:
418  return PARM_STRING;
419  case 1:
420  return PARM_STRING;
421  case 2:
422  return PARM_STRING;
423  case 3:
424  return PARM_STRING;
425  case 4:
426  return PARM_FLOAT;
427  case 5:
428  return PARM_INTEGER;
429  case 6:
430  return PARM_STRING;
431  case 7:
432  return PARM_STRING;
433  case 8:
434  return PARM_FLOAT;
435  case 9:
436  return PARM_FLOAT;
437  case 10:
438  return PARM_INTEGER;
439  case 11:
440  return PARM_FLOAT;
441  case 12:
442  return PARM_FLOAT;
443  case 13:
444  return PARM_INTEGER;
445  case 14:
446  return PARM_INTEGER;
447  case 15:
448  return PARM_FLOAT;
449 
450  }
451  return PARM_UNSUPPORTED;
452  }
453 
454  // Boiler plate to load individual types.
455  static void loadData(UT_IStream &is, int64 &v)
456  { is.bread(&v, 1); }
457  static void loadData(UT_IStream &is, bool &v)
458  { int64 iv; is.bread(&iv, 1); v = iv; }
459  static void loadData(UT_IStream &is, fpreal64 &v)
460  { is.bread<fpreal64>(&v, 1); }
461  static void loadData(UT_IStream &is, UT_Vector2D &v)
462  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
463  static void loadData(UT_IStream &is, UT_Vector3D &v)
464  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
465  is.bread<fpreal64>(&v.z(), 1); }
466  static void loadData(UT_IStream &is, UT_Vector4D &v)
467  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
468  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
469  static void loadData(UT_IStream &is, UT_Matrix2D &v)
470  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
471  static void loadData(UT_IStream &is, UT_Matrix3D &v)
472  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
473  static void loadData(UT_IStream &is, UT_Matrix4D &v)
474  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
475  static void loadData(UT_IStream &is, UT_Vector2I &v)
476  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
477  static void loadData(UT_IStream &is, UT_Vector3I &v)
478  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
479  is.bread<int64>(&v.z(), 1); }
480  static void loadData(UT_IStream &is, UT_Vector4I &v)
481  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
482  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
484  { is.bread(v); }
486  { UT_StringHolder rampdata;
487  loadData(is, rampdata);
488  if (rampdata.isstring())
489  {
490  v.reset(new UT_Ramp());
491  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
492  v->load(istr);
493  }
494  else v.reset();
495  }
498  loadData(is, data);
499  if (data.isstring())
500  {
501  // Find the data type.
502  const char *colon = UT_StringWrap(data).findChar(':');
503  if (colon)
504  {
505  int typelen = colon - data.buffer();
507  type.strncpy(data.buffer(), typelen);
508  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
509 
510  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
511  }
512  }
513  else v.reset();
514  }
515 
516  static void saveData(std::ostream &os, int64 v)
517  { UTwrite(os, &v); }
518  static void saveData(std::ostream &os, bool v)
519  { int64 iv = v; UTwrite(os, &iv); }
520  static void saveData(std::ostream &os, fpreal64 v)
521  { UTwrite<fpreal64>(os, &v); }
522  static void saveData(std::ostream &os, UT_Vector2D v)
523  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
524  static void saveData(std::ostream &os, UT_Vector3D v)
525  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
526  UTwrite<fpreal64>(os, &v.z()); }
527  static void saveData(std::ostream &os, UT_Vector4D v)
528  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
529  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
530  static void saveData(std::ostream &os, UT_Matrix2D v)
532  static void saveData(std::ostream &os, UT_Matrix3D v)
534  static void saveData(std::ostream &os, UT_Matrix4D v)
536  static void saveData(std::ostream &os, UT_StringHolder s)
537  { UT_StringWrap(s).saveBinary(os); }
538  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
540  UT_OStringStream ostr;
541  if (s) s->save(ostr);
542  result = ostr.str();
543  saveData(os, result);
544  }
545  static void saveData(std::ostream &os, PRM_DataItemHandle s)
547  UT_OStringStream ostr;
548  if (s)
549  {
550  ostr << s->getDataTypeToken();
551  ostr << ":";
552  s->saveBinary(ostr);
553  }
554  result = ostr.str();
555  saveData(os, result);
556  }
557 
558 
559  void save(std::ostream &os) const
560  {
561  int32 v = version();
562  UTwrite(os, &v);
563  saveData(os, myGroup);
564  saveData(os, myToolgroup);
565  saveData(os, myCentergroup);
566  saveData(os, myCenterprimgroup);
567  saveData(os, myMask);
568  saveData(os, myEnablemaskattrib);
569  saveData(os, myMaskattrib);
570  saveData(os, myToolidname);
571  saveData(os, myCenteroverlap);
572  saveData(os, myBlendexponent);
573  saveData(os, myClampsurfdist);
574  saveData(os, myMinsurfdist);
575  saveData(os, myTightness);
576  saveData(os, myInflatetofarthest);
577  saveData(os, myMaxinflateenable);
578  saveData(os, myMaxinflate);
579 
580  }
581 
582  bool load(UT_IStream &is)
583  {
584  int32 v;
585  is.bread(&v, 1);
586  if (version() != v)
587  {
588  // Fail incompatible versions
589  return false;
590  }
591  loadData(is, myGroup);
592  loadData(is, myToolgroup);
593  loadData(is, myCentergroup);
594  loadData(is, myCenterprimgroup);
595  loadData(is, myMask);
596  loadData(is, myEnablemaskattrib);
597  loadData(is, myMaskattrib);
598  loadData(is, myToolidname);
599  loadData(is, myCenteroverlap);
600  loadData(is, myBlendexponent);
601  loadData(is, myClampsurfdist);
602  loadData(is, myMinsurfdist);
603  loadData(is, myTightness);
604  loadData(is, myInflatetofarthest);
605  loadData(is, myMaxinflateenable);
606  loadData(is, myMaxinflate);
607 
608  return true;
609  }
610 
611  const UT_StringHolder & getGroup() const { return myGroup; }
612  void setGroup(const UT_StringHolder & val) { myGroup = val; }
614  {
615  SOP_Node *thissop = cookparms.getNode();
616  if (!thissop) return getGroup();
618  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
619  return result;
620  }
621  const UT_StringHolder & getToolgroup() const { return myToolgroup; }
622  void setToolgroup(const UT_StringHolder & val) { myToolgroup = val; }
624  {
625  SOP_Node *thissop = cookparms.getNode();
626  if (!thissop) return getToolgroup();
628  OP_Utils::evalOpParm(result, thissop, "toolgroup", cookparms.getCookTime(), 0);
629  return result;
630  }
631  const UT_StringHolder & getCentergroup() const { return myCentergroup; }
632  void setCentergroup(const UT_StringHolder & val) { myCentergroup = val; }
634  {
635  SOP_Node *thissop = cookparms.getNode();
636  if (!thissop) return getCentergroup();
638  OP_Utils::evalOpParm(result, thissop, "centergroup", cookparms.getCookTime(), 0);
639  return result;
640  }
641  const UT_StringHolder & getCenterprimgroup() const { return myCenterprimgroup; }
642  void setCenterprimgroup(const UT_StringHolder & val) { myCenterprimgroup = val; }
644  {
645  SOP_Node *thissop = cookparms.getNode();
646  if (!thissop) return getCenterprimgroup();
648  OP_Utils::evalOpParm(result, thissop, "centerprimgroup", cookparms.getCookTime(), 0);
649  return result;
650  }
651  fpreal64 getMask() const { return myMask; }
652  void setMask(fpreal64 val) { myMask = val; }
653  fpreal64 opMask(const SOP_NodeVerb::CookParms &cookparms) const
654  {
655  SOP_Node *thissop = cookparms.getNode();
656  if (!thissop) return getMask();
658  OP_Utils::evalOpParm(result, thissop, "mask", cookparms.getCookTime(), 0);
659  return result;
660  }
661  Enablemaskattrib getEnablemaskattrib() const { return Enablemaskattrib(myEnablemaskattrib); }
662  void setEnablemaskattrib(Enablemaskattrib val) { myEnablemaskattrib = int64(val); }
664  {
665  SOP_Node *thissop = cookparms.getNode();
666  if (!thissop) return getEnablemaskattrib();
667  int64 result;
668  OP_Utils::evalOpParm(result, thissop, "enablemaskattrib", cookparms.getCookTime(), 0);
669  return Enablemaskattrib(result);
670  }
671  const UT_StringHolder & getMaskattrib() const { return myMaskattrib; }
672  void setMaskattrib(const UT_StringHolder & val) { myMaskattrib = val; }
674  {
675  SOP_Node *thissop = cookparms.getNode();
676  if (!thissop) return getMaskattrib();
678  OP_Utils::evalOpParm(result, thissop, "maskattrib", cookparms.getCookTime(), 0);
679  return result;
680  }
681  const UT_StringHolder & getToolidname() const { return myToolidname; }
682  void setToolidname(const UT_StringHolder & val) { myToolidname = val; }
684  {
685  SOP_Node *thissop = cookparms.getNode();
686  if (!thissop) return getToolidname();
688  OP_Utils::evalOpParm(result, thissop, "toolidname", cookparms.getCookTime(), 0);
689  return result;
690  }
691  fpreal64 getCenteroverlap() const { return myCenteroverlap; }
692  void setCenteroverlap(fpreal64 val) { myCenteroverlap = val; }
694  {
695  SOP_Node *thissop = cookparms.getNode();
696  if (!thissop) return getCenteroverlap();
698  OP_Utils::evalOpParm(result, thissop, "centeroverlap", cookparms.getCookTime(), 0);
699  return result;
700  }
701  fpreal64 getBlendexponent() const { return myBlendexponent; }
702  void setBlendexponent(fpreal64 val) { myBlendexponent = val; }
704  {
705  SOP_Node *thissop = cookparms.getNode();
706  if (!thissop) return getBlendexponent();
708  OP_Utils::evalOpParm(result, thissop, "blendexponent", cookparms.getCookTime(), 0);
709  return result;
710  }
711  bool getClampsurfdist() const { return myClampsurfdist; }
712  void setClampsurfdist(bool val) { myClampsurfdist = val; }
713  bool opClampsurfdist(const SOP_NodeVerb::CookParms &cookparms) const
714  {
715  SOP_Node *thissop = cookparms.getNode();
716  if (!thissop) return getClampsurfdist();
717  bool result;
718  OP_Utils::evalOpParm(result, thissop, "clampsurfdist", cookparms.getCookTime(), 0);
719  return result;
720  }
721  fpreal64 getMinsurfdist() const { return myMinsurfdist; }
722  void setMinsurfdist(fpreal64 val) { myMinsurfdist = val; }
724  {
725  SOP_Node *thissop = cookparms.getNode();
726  if (!thissop) return getMinsurfdist();
728  OP_Utils::evalOpParm(result, thissop, "minsurfdist", cookparms.getCookTime(), 0);
729  return result;
730  }
731  fpreal64 getTightness() const { return myTightness; }
732  void setTightness(fpreal64 val) { myTightness = val; }
734  {
735  SOP_Node *thissop = cookparms.getNode();
736  if (!thissop) return getTightness();
738  OP_Utils::evalOpParm(result, thissop, "tightness", cookparms.getCookTime(), 0);
739  return result;
740  }
741  bool getInflatetofarthest() const { return myInflatetofarthest; }
742  void setInflatetofarthest(bool val) { myInflatetofarthest = val; }
743  bool opInflatetofarthest(const SOP_NodeVerb::CookParms &cookparms) const
744  {
745  SOP_Node *thissop = cookparms.getNode();
746  if (!thissop) return getInflatetofarthest();
747  bool result;
748  OP_Utils::evalOpParm(result, thissop, "inflatetofarthest", cookparms.getCookTime(), 0);
749  return result;
750  }
751  bool getMaxinflateenable() const { return myMaxinflateenable; }
752  void setMaxinflateenable(bool val) { myMaxinflateenable = val; }
753  bool opMaxinflateenable(const SOP_NodeVerb::CookParms &cookparms) const
754  {
755  SOP_Node *thissop = cookparms.getNode();
756  if (!thissop) return getMaxinflateenable();
757  bool result;
758  OP_Utils::evalOpParm(result, thissop, "maxinflateenable", cookparms.getCookTime(), 0);
759  return result;
760  }
761  fpreal64 getMaxinflate() const { return myMaxinflate; }
762  void setMaxinflate(fpreal64 val) { myMaxinflate = val; }
764  {
765  SOP_Node *thissop = cookparms.getNode();
766  if (!thissop) return getMaxinflate();
768  OP_Utils::evalOpParm(result, thissop, "maxinflate", cookparms.getCookTime(), 0);
769  return result;
770  }
771 
772 private:
773  UT_StringHolder myGroup;
774  UT_StringHolder myToolgroup;
775  UT_StringHolder myCentergroup;
776  UT_StringHolder myCenterprimgroup;
777  fpreal64 myMask;
778  int64 myEnablemaskattrib;
779  UT_StringHolder myMaskattrib;
780  UT_StringHolder myToolidname;
781  fpreal64 myCenteroverlap;
782  fpreal64 myBlendexponent;
783  bool myClampsurfdist;
784  fpreal64 myMinsurfdist;
785  fpreal64 myTightness;
786  bool myInflatetofarthest;
787  bool myMaxinflateenable;
788  fpreal64 myMaxinflate;
789 
790 };
type
Definition: core.h:556
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
ParmType getNestParmType(TempIndex fieldnum) const override
void setMinsurfdist(fpreal64 val)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setMaxinflateenable(bool val)
void copyFrom(const OP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
const GLdouble * v
Definition: glcorearb.h:837
bool operator!=(const SOP_InflateParms &src) const
fpreal getTime() const
Definition: OP_Context.h:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
const UT_StringHolder & getToolgroup() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
GLdouble s
Definition: glad.h:3009
UT_StringHolder opCentergroup(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector4I &v)
**But if you need a result
Definition: thread.h:622
UT_StringHolder opMaskattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
void setMaskattrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
fpreal64 opMinsurfdist(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
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 getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool operator==(const SOP_InflateParms &src) const
fpreal64 getTightness() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setCentergroup(const UT_StringHolder &val)
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
void setCenterprimgroup(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setEnablemaskattrib(Enablemaskattrib val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
Enablemaskattrib getEnablemaskattrib() const
fpreal64 getMask() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
fpreal64 getMaxinflate() const
exint length() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
Enablemaskattrib opEnablemaskattrib(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
fpreal64 getCenteroverlap() const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void setClampsurfdist(bool val)
fpreal64 getBlendexponent() const
UT_StringHolder opToolgroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setGroup(const UT_StringHolder &val)
fpreal64 getMinsurfdist() const
static void saveData(std::ostream &os, fpreal64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
fpreal64 opCenteroverlap(const SOP_NodeVerb::CookParms &cookparms) const
void setInflatetofarthest(bool val)
const UT_StringHolder & getToolidname() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, int64 &v)
const char * getNestParmName(TempIndex fieldnum) const override
bool getInflatetofarthest() const
bool opMaxinflateenable(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
fpreal64 opTightness(const SOP_NodeVerb::CookParms &cookparms) const
void setToolgroup(const UT_StringHolder &val)
const UT_StringHolder & getCenterprimgroup() const
static void saveData(std::ostream &os, UT_StringHolder s)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool getMaxinflateenable() const
void setMask(fpreal64 val)
bool getClampsurfdist() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
bool opInflatetofarthest(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GT_API const UT_StringHolder version
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
fpreal64 opMask(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE UT_StringHolder getToken(Enablemaskattrib enum_value)
static int version()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const UT_StringHolder & getMaskattrib() const
bool opClampsurfdist(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void save(std::ostream &os) const
fpreal64 fpreal
Definition: SYS_Types.h:278
UT_StringHolder opCenterprimgroup(const SOP_NodeVerb::CookParms &cookparms) const
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setMaxinflate(fpreal64 val)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
void setCenteroverlap(fpreal64 val)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
static void saveData(std::ostream &os, UT_Vector4D v)
UT_StringHolder opToolidname(const SOP_NodeVerb::CookParms &cookparms) const
#define SOP_API
Definition: SOP_API.h:10
void setTightness(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
static void loadData(UT_IStream &is, bool &v)
fpreal64 opMaxinflate(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool isParmColorRamp(exint idx) const override
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void saveData(std::ostream &os, UT_Vector2D v)
const UT_StringHolder & getCentergroup() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
void setToolidname(const UT_StringHolder &val)
void setBlendexponent(fpreal64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
exint getNestNumParms(TempIndex idx) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
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
fpreal64 opBlendexponent(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)