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