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