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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_sh;
32  myToolgroup = ""_sh;
33  myCentergroup = ""_sh;
34  myCenterprimgroup = ""_sh;
35  myToolidname = "toolid"_sh;
36  myCenteroverlap = 0;
37  myBlendexponent = 2;
38  myClampsurfdist = true;
39  myMinsurfdist = 0;
40  myTightness = 3;
41  myInflatetofarthest = false;
42  myMaxinflateenable = false;
43  myMaxinflate = 1;
44 
45  }
46 
47  explicit SOP_InflateParms(const SOP_InflateParms &) = default;
48 
49  ~SOP_InflateParms() override {}
50 
51  bool operator==(const SOP_InflateParms &src) const
52  {
53  if (myGroup != src.myGroup) return false;
54  if (myToolgroup != src.myToolgroup) return false;
55  if (myCentergroup != src.myCentergroup) return false;
56  if (myCenterprimgroup != src.myCenterprimgroup) return false;
57  if (myToolidname != src.myToolidname) return false;
58  if (myCenteroverlap != src.myCenteroverlap) return false;
59  if (myBlendexponent != src.myBlendexponent) return false;
60  if (myClampsurfdist != src.myClampsurfdist) return false;
61  if (myMinsurfdist != src.myMinsurfdist) return false;
62  if (myTightness != src.myTightness) return false;
63  if (myInflatetofarthest != src.myInflatetofarthest) return false;
64  if (myMaxinflateenable != src.myMaxinflateenable) return false;
65  if (myMaxinflate != src.myMaxinflate) return false;
66 
67  return true;
68  }
69  bool operator!=(const SOP_InflateParms &src) const
70  {
71  return !operator==(src);
72  }
73 
74 
75 
76  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
77  {
78  myGroup = ""_sh;
79  if (true)
80  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
81  myToolgroup = ""_sh;
82  if (true)
83  graph->evalOpParm(myToolgroup, nodeidx, "toolgroup", time, 0);
84  myCentergroup = ""_sh;
85  if (true)
86  graph->evalOpParm(myCentergroup, nodeidx, "centergroup", time, 0);
87  myCenterprimgroup = ""_sh;
88  if (true)
89  graph->evalOpParm(myCenterprimgroup, nodeidx, "centerprimgroup", time, 0);
90  myToolidname = "toolid"_sh;
91  if (true)
92  graph->evalOpParm(myToolidname, nodeidx, "toolidname", time, 0);
93  myCenteroverlap = 0;
94  if (true)
95  graph->evalOpParm(myCenteroverlap, nodeidx, "centeroverlap", time, 0);
96  myBlendexponent = 2;
97  if (true)
98  graph->evalOpParm(myBlendexponent, nodeidx, "blendexponent", time, 0);
99  myClampsurfdist = true;
100  if (true)
101  graph->evalOpParm(myClampsurfdist, nodeidx, "clampsurfdist", time, 0);
102  myMinsurfdist = 0;
103  if (true && ( (!(((getClampsurfdist()==0)))) ) )
104  graph->evalOpParm(myMinsurfdist, nodeidx, "minsurfdist", time, 0);
105  myTightness = 3;
106  if (true)
107  graph->evalOpParm(myTightness, nodeidx, "tightness", time, 0);
108  myInflatetofarthest = false;
109  if (true)
110  graph->evalOpParm(myInflatetofarthest, nodeidx, "inflatetofarthest", time, 0);
111  myMaxinflateenable = false;
112  if (true)
113  graph->evalOpParm(myMaxinflateenable, nodeidx, "maxinflateenable", time, 0);
114  myMaxinflate = 1;
115  if (true && ( (!(((getMaxinflateenable()==0)))) ) )
116  graph->evalOpParm(myMaxinflate, nodeidx, "maxinflate", time, 0);
117 
118  }
119 
120 
121  void loadFromOpSubclass(const LoadParms &loadparms) override
122  {
123  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
124  }
125 
126 
127  void copyFrom(const SOP_NodeParms *src) override
128  {
129  *this = *((const SOP_InflateParms *)src);
130  }
131 
132  template <typename T>
133  void
134  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
135  {
136  if (idx.size() < 1)
137  return;
138  UT_ASSERT(idx.size() == instance.size()+1);
139  if (idx.size() != instance.size()+1)
140  return;
141  switch (idx[0])
142  {
143  case 0:
144  coerceValue(value, myGroup);
145  break;
146  case 1:
147  coerceValue(value, myToolgroup);
148  break;
149  case 2:
150  coerceValue(value, myCentergroup);
151  break;
152  case 3:
153  coerceValue(value, myCenterprimgroup);
154  break;
155  case 4:
156  coerceValue(value, myToolidname);
157  break;
158  case 5:
159  coerceValue(value, myCenteroverlap);
160  break;
161  case 6:
162  coerceValue(value, myBlendexponent);
163  break;
164  case 7:
165  coerceValue(value, myClampsurfdist);
166  break;
167  case 8:
168  coerceValue(value, myMinsurfdist);
169  break;
170  case 9:
171  coerceValue(value, myTightness);
172  break;
173  case 10:
174  coerceValue(value, myInflatetofarthest);
175  break;
176  case 11:
177  coerceValue(value, myMaxinflateenable);
178  break;
179  case 12:
180  coerceValue(value, myMaxinflate);
181  break;
182 
183  }
184  }
185 
186  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
207  { doGetParmValue(idx, instance, value); }
208 
209  template <typename T>
210  void
211  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
212  {
213  if (idx.size() < 1)
214  return;
215  UT_ASSERT(idx.size() == instance.size()+1);
216  if (idx.size() != instance.size()+1)
217  return;
218  switch (idx[0])
219  {
220  case 0:
221  coerceValue(myGroup, value);
222  break;
223  case 1:
224  coerceValue(myToolgroup, value);
225  break;
226  case 2:
227  coerceValue(myCentergroup, value);
228  break;
229  case 3:
230  coerceValue(myCenterprimgroup, value);
231  break;
232  case 4:
233  coerceValue(myToolidname, value);
234  break;
235  case 5:
236  coerceValue(myCenteroverlap, value);
237  break;
238  case 6:
239  coerceValue(myBlendexponent, value);
240  break;
241  case 7:
242  coerceValue(myClampsurfdist, value);
243  break;
244  case 8:
245  coerceValue(myMinsurfdist, value);
246  break;
247  case 9:
248  coerceValue(myTightness, value);
249  break;
250  case 10:
251  coerceValue(myInflatetofarthest, value);
252  break;
253  case 11:
254  coerceValue(myMaxinflateenable, value);
255  break;
256  case 12:
257  coerceValue(myMaxinflate, value);
258  break;
259 
260  }
261  }
262 
263  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
284  { doSetParmValue(idx, instance, value); }
285 
286  exint getNestNumParms(TempIndex idx) const override
287  {
288  if (idx.size() == 0)
289  return 13;
290  switch (idx[0])
291  {
292 
293  }
294  // Invalid
295  return 0;
296  }
297 
298  const char *getNestParmName(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return 0;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return "group";
306  case 1:
307  return "toolgroup";
308  case 2:
309  return "centergroup";
310  case 3:
311  return "centerprimgroup";
312  case 4:
313  return "toolidname";
314  case 5:
315  return "centeroverlap";
316  case 6:
317  return "blendexponent";
318  case 7:
319  return "clampsurfdist";
320  case 8:
321  return "minsurfdist";
322  case 9:
323  return "tightness";
324  case 10:
325  return "inflatetofarthest";
326  case 11:
327  return "maxinflateenable";
328  case 12:
329  return "maxinflate";
330 
331  }
332  return 0;
333  }
334 
335  ParmType getNestParmType(TempIndex fieldnum) const override
336  {
337  if (fieldnum.size() < 1)
338  return PARM_UNSUPPORTED;
339  switch (fieldnum[0])
340  {
341  case 0:
342  return PARM_STRING;
343  case 1:
344  return PARM_STRING;
345  case 2:
346  return PARM_STRING;
347  case 3:
348  return PARM_STRING;
349  case 4:
350  return PARM_STRING;
351  case 5:
352  return PARM_FLOAT;
353  case 6:
354  return PARM_FLOAT;
355  case 7:
356  return PARM_INTEGER;
357  case 8:
358  return PARM_FLOAT;
359  case 9:
360  return PARM_FLOAT;
361  case 10:
362  return PARM_INTEGER;
363  case 11:
364  return PARM_INTEGER;
365  case 12:
366  return PARM_FLOAT;
367 
368  }
369  return PARM_UNSUPPORTED;
370  }
371 
372  // Boiler plate to load individual types.
373  static void loadData(UT_IStream &is, int64 &v)
374  { is.bread(&v, 1); }
375  static void loadData(UT_IStream &is, bool &v)
376  { int64 iv; is.bread(&iv, 1); v = iv; }
377  static void loadData(UT_IStream &is, fpreal64 &v)
378  { is.bread<fpreal64>(&v, 1); }
379  static void loadData(UT_IStream &is, UT_Vector2D &v)
380  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
381  static void loadData(UT_IStream &is, UT_Vector3D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
383  is.bread<fpreal64>(&v.z(), 1); }
384  static void loadData(UT_IStream &is, UT_Vector4D &v)
385  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
386  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
387  static void loadData(UT_IStream &is, UT_Matrix2D &v)
388  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix3D &v)
390  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix4D &v)
392  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Vector2I &v)
394  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector3I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
397  is.bread<int64>(&v.z(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector4I &v)
399  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
400  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
402  { is.bread(v); }
404  { UT_StringHolder rampdata;
405  loadData(is, rampdata);
406  if (rampdata.isstring())
407  {
408  v.reset(new UT_Ramp());
409  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
410  v->load(istr);
411  }
412  else v.reset();
413  }
416  loadData(is, data);
417  if (data.isstring())
418  {
419  // Find the data type.
420  const char *colon = UT_StringWrap(data).findChar(':');
421  if (colon)
422  {
423  int typelen = colon - data.buffer();
425  type.strncpy(data.buffer(), typelen);
426  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
427 
428  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
429  }
430  }
431  else v.reset();
432  }
433 
434  static void saveData(std::ostream &os, int64 v)
435  { UTwrite(os, &v); }
436  static void saveData(std::ostream &os, bool v)
437  { int64 iv = v; UTwrite(os, &iv); }
438  static void saveData(std::ostream &os, fpreal64 v)
439  { UTwrite<fpreal64>(os, &v); }
440  static void saveData(std::ostream &os, UT_Vector2D v)
441  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
442  static void saveData(std::ostream &os, UT_Vector3D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
444  UTwrite<fpreal64>(os, &v.z()); }
445  static void saveData(std::ostream &os, UT_Vector4D v)
446  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
447  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
448  static void saveData(std::ostream &os, UT_Matrix2D v)
450  static void saveData(std::ostream &os, UT_Matrix3D v)
452  static void saveData(std::ostream &os, UT_Matrix4D v)
454  static void saveData(std::ostream &os, UT_StringHolder s)
455  { UT_StringWrap(s).saveBinary(os); }
456  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
458  UT_OStringStream ostr;
459  if (s) s->save(ostr);
460  result = ostr.str();
461  saveData(os, result);
462  }
463  static void saveData(std::ostream &os, PRM_DataItemHandle s)
465  UT_OStringStream ostr;
466  if (s)
467  {
468  ostr << s->getDataTypeToken();
469  ostr << ":";
470  s->saveBinary(ostr);
471  }
472  result = ostr.str();
473  saveData(os, result);
474  }
475 
476 
477  void save(std::ostream &os) const
478  {
479  int32 v = version();
480  UTwrite(os, &v);
481  saveData(os, myGroup);
482  saveData(os, myToolgroup);
483  saveData(os, myCentergroup);
484  saveData(os, myCenterprimgroup);
485  saveData(os, myToolidname);
486  saveData(os, myCenteroverlap);
487  saveData(os, myBlendexponent);
488  saveData(os, myClampsurfdist);
489  saveData(os, myMinsurfdist);
490  saveData(os, myTightness);
491  saveData(os, myInflatetofarthest);
492  saveData(os, myMaxinflateenable);
493  saveData(os, myMaxinflate);
494 
495  }
496 
497  bool load(UT_IStream &is)
498  {
499  int32 v;
500  is.bread(&v, 1);
501  if (version() != v)
502  {
503  // Fail incompatible versions
504  return false;
505  }
506  loadData(is, myGroup);
507  loadData(is, myToolgroup);
508  loadData(is, myCentergroup);
509  loadData(is, myCenterprimgroup);
510  loadData(is, myToolidname);
511  loadData(is, myCenteroverlap);
512  loadData(is, myBlendexponent);
513  loadData(is, myClampsurfdist);
514  loadData(is, myMinsurfdist);
515  loadData(is, myTightness);
516  loadData(is, myInflatetofarthest);
517  loadData(is, myMaxinflateenable);
518  loadData(is, myMaxinflate);
519 
520  return true;
521  }
522 
523  const UT_StringHolder & getGroup() const { return myGroup; }
524  void setGroup(const UT_StringHolder & val) { myGroup = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getGroup();
530  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
531  return result;
532  }
533  const UT_StringHolder & getToolgroup() const { return myToolgroup; }
534  void setToolgroup(const UT_StringHolder & val) { myToolgroup = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getToolgroup();
540  OP_Utils::evalOpParm(result, thissop, "toolgroup", cookparms.getCookTime(), 0);
541  return result;
542  }
543  const UT_StringHolder & getCentergroup() const { return myCentergroup; }
544  void setCentergroup(const UT_StringHolder & val) { myCentergroup = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getCentergroup();
550  OP_Utils::evalOpParm(result, thissop, "centergroup", cookparms.getCookTime(), 0);
551  return result;
552  }
553  const UT_StringHolder & getCenterprimgroup() const { return myCenterprimgroup; }
554  void setCenterprimgroup(const UT_StringHolder & val) { myCenterprimgroup = val; }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getCenterprimgroup();
560  OP_Utils::evalOpParm(result, thissop, "centerprimgroup", cookparms.getCookTime(), 0);
561  return result;
562  }
563  const UT_StringHolder & getToolidname() const { return myToolidname; }
564  void setToolidname(const UT_StringHolder & val) { myToolidname = val; }
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getToolidname();
570  OP_Utils::evalOpParm(result, thissop, "toolidname", cookparms.getCookTime(), 0);
571  return result;
572  }
573  fpreal64 getCenteroverlap() const { return myCenteroverlap; }
574  void setCenteroverlap(fpreal64 val) { myCenteroverlap = val; }
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getCenteroverlap();
580  OP_Utils::evalOpParm(result, thissop, "centeroverlap", cookparms.getCookTime(), 0);
581  return result;
582  }
583  fpreal64 getBlendexponent() const { return myBlendexponent; }
584  void setBlendexponent(fpreal64 val) { myBlendexponent = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getBlendexponent();
590  OP_Utils::evalOpParm(result, thissop, "blendexponent", cookparms.getCookTime(), 0);
591  return result;
592  }
593  bool getClampsurfdist() const { return myClampsurfdist; }
594  void setClampsurfdist(bool val) { myClampsurfdist = val; }
595  bool opClampsurfdist(const SOP_NodeVerb::CookParms &cookparms) const
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getClampsurfdist();
599  bool result;
600  OP_Utils::evalOpParm(result, thissop, "clampsurfdist", cookparms.getCookTime(), 0);
601  return result;
602  }
603  fpreal64 getMinsurfdist() const { return myMinsurfdist; }
604  void setMinsurfdist(fpreal64 val) { myMinsurfdist = val; }
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getMinsurfdist();
610  OP_Utils::evalOpParm(result, thissop, "minsurfdist", cookparms.getCookTime(), 0);
611  return result;
612  }
613  fpreal64 getTightness() const { return myTightness; }
614  void setTightness(fpreal64 val) { myTightness = val; }
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getTightness();
620  OP_Utils::evalOpParm(result, thissop, "tightness", cookparms.getCookTime(), 0);
621  return result;
622  }
623  bool getInflatetofarthest() const { return myInflatetofarthest; }
624  void setInflatetofarthest(bool val) { myInflatetofarthest = val; }
625  bool opInflatetofarthest(const SOP_NodeVerb::CookParms &cookparms) const
626  {
627  SOP_Node *thissop = cookparms.getNode();
628  if (!thissop) return getInflatetofarthest();
629  bool result;
630  OP_Utils::evalOpParm(result, thissop, "inflatetofarthest", cookparms.getCookTime(), 0);
631  return result;
632  }
633  bool getMaxinflateenable() const { return myMaxinflateenable; }
634  void setMaxinflateenable(bool val) { myMaxinflateenable = val; }
635  bool opMaxinflateenable(const SOP_NodeVerb::CookParms &cookparms) const
636  {
637  SOP_Node *thissop = cookparms.getNode();
638  if (!thissop) return getMaxinflateenable();
639  bool result;
640  OP_Utils::evalOpParm(result, thissop, "maxinflateenable", cookparms.getCookTime(), 0);
641  return result;
642  }
643  fpreal64 getMaxinflate() const { return myMaxinflate; }
644  void setMaxinflate(fpreal64 val) { myMaxinflate = val; }
646  {
647  SOP_Node *thissop = cookparms.getNode();
648  if (!thissop) return getMaxinflate();
650  OP_Utils::evalOpParm(result, thissop, "maxinflate", cookparms.getCookTime(), 0);
651  return result;
652  }
653 
654 private:
655  UT_StringHolder myGroup;
656  UT_StringHolder myToolgroup;
657  UT_StringHolder myCentergroup;
658  UT_StringHolder myCenterprimgroup;
659  UT_StringHolder myToolidname;
660  fpreal64 myCenteroverlap;
661  fpreal64 myBlendexponent;
662  bool myClampsurfdist;
663  fpreal64 myMinsurfdist;
664  fpreal64 myTightness;
665  bool myInflatetofarthest;
666  bool myMaxinflateenable;
667  fpreal64 myMaxinflate;
668 
669 };
GLdouble s
Definition: glew.h:1390
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)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setMaxinflateenable(bool val)
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)
GT_API const UT_StringHolder time
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_InflateParms &src) const
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const UT_StringHolder & getToolgroup() const
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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)
const GLdouble * v
Definition: glew.h:1391
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
fpreal64 opMinsurfdist(const SOP_NodeVerb::CookParms &cookparms) const
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)
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
void setCenterprimgroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
~SOP_InflateParms() override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
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
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
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
const GLfloat * c
Definition: glew.h:16296
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)
void copyFrom(const SOP_NodeParms *src) override
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)
bool getMaxinflateenable() const
bool getClampsurfdist() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
bool opInflatetofarthest(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static int version()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
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:277
UT_StringHolder opCenterprimgroup(const SOP_NodeVerb::CookParms &cookparms) const
void setMaxinflate(fpreal64 val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setCenteroverlap(fpreal64 val)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
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
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
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:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
const UT_StringHolder & getCentergroup() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
void setToolidname(const UT_StringHolder &val)
void setBlendexponent(fpreal64 val)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
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)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
exint getNestNumParms(TempIndex idx) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
fpreal64 opBlendexponent(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)