HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeBreak.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 namespace SOP_VolumeBreakEnums
22 {
23  enum class Breaktype
24  {
25  FRACTURE = 0,
26  OUTSIDE,
27  INSIDE
28  };
29  enum class Closeholes
30  {
31  NOCLOSE = 0,
32  FLATCLOSE,
34  };
35 }
36 
37 
39 {
40 public:
41  static int version() { return 1; }
42 
44  {
45  myGroup = ""_sh;
46  myBreaktype = 1;
47  myCloseholes = 0;
48  myClosegeo = false;
49  mySnapdistance = 0.01;
50  myCreategroups = false;
51  myInsidegroup = "inside"_sh;
52  myInsideclosuregroup = "insideClosure"_sh;
53  myOutsidegroup = "outside"_sh;
54  myOutsideclosuregroup = "outsideClosure"_sh;
55 
56  }
57 
58  explicit SOP_VolumeBreakParms(const SOP_VolumeBreakParms &) = default;
59 
60  virtual ~SOP_VolumeBreakParms() {}
61 
62  bool operator==(const SOP_VolumeBreakParms &src) const
63  {
64  if (myGroup != src.myGroup) return false;
65  if (myBreaktype != src.myBreaktype) return false;
66  if (myCloseholes != src.myCloseholes) return false;
67  if (myClosegeo != src.myClosegeo) return false;
68  if (mySnapdistance != src.mySnapdistance) return false;
69  if (myCreategroups != src.myCreategroups) return false;
70  if (myInsidegroup != src.myInsidegroup) return false;
71  if (myInsideclosuregroup != src.myInsideclosuregroup) return false;
72  if (myOutsidegroup != src.myOutsidegroup) return false;
73  if (myOutsideclosuregroup != src.myOutsideclosuregroup) return false;
74 
75  return true;
76  }
77  bool operator!=(const SOP_VolumeBreakParms &src) const
78  {
79  return !operator==(src);
80  }
83 
84 
85 
86  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
87  {
88  if (true)
89  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
90  else myGroup = ""_sh;
91  if (true)
92  OP_Utils::evalOpParm(myBreaktype, node, "breaktype", time, 0);
93  else myBreaktype = 1;
94  if (true)
95  OP_Utils::evalOpParm(myCloseholes, node, "closeholes", time, 0);
96  else myCloseholes = 0;
97  if (true && ( (!(((int64(getCloseholes())!=0)))) ) )
98  OP_Utils::evalOpParm(myClosegeo, node, "closegeo", time, 0);
99  else myClosegeo = false;
100  if (true)
101  OP_Utils::evalOpParm(mySnapdistance, node, "snapdistance", time, 0);
102  else mySnapdistance = 0.01;
103  if (true)
104  OP_Utils::evalOpParm(myCreategroups, node, "creategroups", time, 0);
105  else myCreategroups = false;
106  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==1)))) ) )
107  OP_Utils::evalOpParm(myInsidegroup, node, "insidegroup", time, 0);
108  else myInsidegroup = "inside"_sh;
109  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==1))||((int64(getCloseholes())==0)))) ) )
110  OP_Utils::evalOpParm(myInsideclosuregroup, node, "insideclosuregroup", time, 0);
111  else myInsideclosuregroup = "insideClosure"_sh;
112  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==2)))) ) )
113  OP_Utils::evalOpParm(myOutsidegroup, node, "outsidegroup", time, 0);
114  else myOutsidegroup = "outside"_sh;
115  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==2))||((int64(getCloseholes())==0)))) ) )
116  OP_Utils::evalOpParm(myOutsideclosuregroup, node, "outsideclosuregroup", time, 0);
117  else myOutsideclosuregroup = "outsideClosure"_sh;
118 
119  }
120 
121 
122  virtual void loadFromOpSubclass(const LoadParms &loadparms)
123  {
124  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
125  }
126 
127 
128  virtual void copyFrom(const SOP_NodeParms *src)
129  {
130  *this = *((const SOP_VolumeBreakParms *)src);
131  }
132 
133  template <typename T>
134  void
135  doGetParmValue(exint idx, T &value) const
136  {
137  switch (idx)
138  {
139  case 0:
140  coerceValue(value, myGroup);
141  break;
142  case 1:
143  coerceValue(value, myBreaktype);
144  break;
145  case 2:
146  coerceValue(value, myCloseholes);
147  break;
148  case 3:
149  coerceValue(value, myClosegeo);
150  break;
151  case 4:
152  coerceValue(value, mySnapdistance);
153  break;
154  case 5:
155  coerceValue(value, myCreategroups);
156  break;
157  case 6:
158  coerceValue(value, myInsidegroup);
159  break;
160  case 7:
161  coerceValue(value, myInsideclosuregroup);
162  break;
163  case 8:
164  coerceValue(value, myOutsidegroup);
165  break;
166  case 9:
167  coerceValue(value, myOutsideclosuregroup);
168  break;
169 
170  }
171  }
172 
173  void getParmValue(exint idx, exint &value) const
174  { doGetParmValue(idx, value); }
175  void getParmValue(exint idx, fpreal &value) const
176  { doGetParmValue(idx, value); }
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); }
195 
196  template <typename T>
197  void
198  doSetParmValue(exint idx, const T &value)
199  {
200  switch (idx)
201  {
202  case 0:
203  coerceValue(myGroup, value);
204  break;
205  case 1:
206  coerceValue(myBreaktype, value);
207  break;
208  case 2:
209  coerceValue(myCloseholes, value);
210  break;
211  case 3:
212  coerceValue(myClosegeo, value);
213  break;
214  case 4:
215  coerceValue(mySnapdistance, value);
216  break;
217  case 5:
218  coerceValue(myCreategroups, value);
219  break;
220  case 6:
221  coerceValue(myInsidegroup, value);
222  break;
223  case 7:
224  coerceValue(myInsideclosuregroup, value);
225  break;
226  case 8:
227  coerceValue(myOutsidegroup, value);
228  break;
229  case 9:
230  coerceValue(myOutsideclosuregroup, value);
231  break;
232 
233  }
234  }
235 
236  void setParmValue(exint idx, const exint &value)
237  { doSetParmValue(idx, value); }
238  void setParmValue(exint idx, const fpreal &value)
239  { doSetParmValue(idx, value); }
240  void setParmValue(exint idx, const UT_Vector2D &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const UT_Vector3D &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Vector4D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Matrix2D &value)
247  { doSetParmValue(idx, value); }
248  void setParmValue(exint idx, const UT_Matrix3D &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const UT_Matrix4D &value)
251  { doSetParmValue(idx, value); }
253  { doSetParmValue(idx, value); }
255  { doSetParmValue(idx, value); }
257  { doSetParmValue(idx, value); }
258 
259  virtual exint getNumParms() const
260  {
261  return 10;
262  }
263 
264  virtual const char *getParmName(exint fieldnum) const
265  {
266  switch (fieldnum)
267  {
268  case 0:
269  return "group";
270  case 1:
271  return "breaktype";
272  case 2:
273  return "closeholes";
274  case 3:
275  return "closegeo";
276  case 4:
277  return "snapdistance";
278  case 5:
279  return "creategroups";
280  case 6:
281  return "insidegroup";
282  case 7:
283  return "insideclosuregroup";
284  case 8:
285  return "outsidegroup";
286  case 9:
287  return "outsideclosuregroup";
288 
289  }
290  return 0;
291  }
292 
293  virtual ParmType getParmType(exint fieldnum) const
294  {
295  switch (fieldnum)
296  {
297  case 0:
298  return PARM_STRING;
299  case 1:
300  return PARM_INTEGER;
301  case 2:
302  return PARM_INTEGER;
303  case 3:
304  return PARM_INTEGER;
305  case 4:
306  return PARM_FLOAT;
307  case 5:
308  return PARM_INTEGER;
309  case 6:
310  return PARM_STRING;
311  case 7:
312  return PARM_STRING;
313  case 8:
314  return PARM_STRING;
315  case 9:
316  return PARM_STRING;
317 
318  }
319  return PARM_UNSUPPORTED;
320  }
321 
322  // Boiler plate to load individual types.
323  static void loadData(UT_IStream &is, int64 &v)
324  { is.bread(&v, 1); }
325  static void loadData(UT_IStream &is, bool &v)
326  { int64 iv; is.bread(&iv, 1); v = iv; }
327  static void loadData(UT_IStream &is, fpreal64 &v)
328  { is.bread<fpreal64>(&v, 1); }
329  static void loadData(UT_IStream &is, UT_Vector2D &v)
330  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
331  static void loadData(UT_IStream &is, UT_Vector3D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
333  is.bread<fpreal64>(&v.z(), 1); }
334  static void loadData(UT_IStream &is, UT_Vector4D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
336  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
337  static void loadData(UT_IStream &is, UT_Matrix2D &v)
338  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix3D &v)
340  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix4D &v)
342  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Vector2I &v)
344  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
345  static void loadData(UT_IStream &is, UT_Vector3I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
347  is.bread<int64>(&v.z(), 1); }
348  static void loadData(UT_IStream &is, UT_Vector4I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
350  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
352  { is.bread(v); }
354  { UT_StringHolder rampdata;
355  loadData(is, rampdata);
356  if (rampdata.isstring())
357  {
358  v.reset(new UT_Ramp());
359  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
360  v->load(istr);
361  }
362  else v.reset();
363  }
366  loadData(is, data);
367  if (data.isstring())
368  {
369  // Find the data type.
370  char *colon = UT_StringWrap(data).findChar(':');
371  if (colon)
372  {
373  int typelen = colon - data.buffer();
375  type.strncpy(data.buffer(), typelen);
376  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
377 
378  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
379  }
380  }
381  else v.reset();
382  }
383 
384  static void saveData(std::ostream &os, int64 v)
385  { UTwrite(os, &v); }
386  static void saveData(std::ostream &os, bool v)
387  { int64 iv = v; UTwrite(os, &iv); }
388  static void saveData(std::ostream &os, fpreal64 v)
389  { UTwrite<fpreal64>(os, &v); }
390  static void saveData(std::ostream &os, UT_Vector2D v)
391  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
392  static void saveData(std::ostream &os, UT_Vector3D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
394  UTwrite<fpreal64>(os, &v.z()); }
395  static void saveData(std::ostream &os, UT_Vector4D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
397  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
398  static void saveData(std::ostream &os, UT_Matrix2D v)
400  static void saveData(std::ostream &os, UT_Matrix3D v)
402  static void saveData(std::ostream &os, UT_Matrix4D v)
404  static void saveData(std::ostream &os, UT_StringHolder s)
405  { UT_StringWrap(s).saveBinary(os); }
406  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
407  { UT_StringHolder result;
408  UT_OStringStream ostr;
409  if (s) s->save(ostr);
410  result = ostr.str();
411  saveData(os, result);
412  }
413  static void saveData(std::ostream &os, PRM_DataItemHandle s)
414  { UT_StringHolder result;
415  UT_OStringStream ostr;
416  if (s)
417  {
418  ostr << s->getDataTypeToken();
419  ostr << ":";
420  s->saveBinary(ostr);
421  }
422  result = ostr.str();
423  saveData(os, result);
424  }
425 
426 
427  void save(std::ostream &os) const
428  {
429  int32 v = version();
430  UTwrite(os, &v);
431  saveData(os, myGroup);
432  saveData(os, myBreaktype);
433  saveData(os, myCloseholes);
434  saveData(os, myClosegeo);
435  saveData(os, mySnapdistance);
436  saveData(os, myCreategroups);
437  saveData(os, myInsidegroup);
438  saveData(os, myInsideclosuregroup);
439  saveData(os, myOutsidegroup);
440  saveData(os, myOutsideclosuregroup);
441 
442  }
443 
444  bool load(UT_IStream &is)
445  {
446  int32 v;
447  is.bread(&v, 1);
448  if (version() != v)
449  {
450  // Fail incompatible versions
451  return false;
452  }
453  loadData(is, myGroup);
454  loadData(is, myBreaktype);
455  loadData(is, myCloseholes);
456  loadData(is, myClosegeo);
457  loadData(is, mySnapdistance);
458  loadData(is, myCreategroups);
459  loadData(is, myInsidegroup);
460  loadData(is, myInsideclosuregroup);
461  loadData(is, myOutsidegroup);
462  loadData(is, myOutsideclosuregroup);
463 
464  return true;
465  }
466 
467  const UT_StringHolder & getGroup() const { return myGroup; }
468  void setGroup(const UT_StringHolder & val) { myGroup = val; }
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getGroup();
473  UT_StringHolder result;
474  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
475  return result;
476  }
477  Breaktype getBreaktype() const { return Breaktype(myBreaktype); }
478  void setBreaktype(Breaktype val) { myBreaktype = int64(val); }
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getBreaktype();
483  int64 result;
484  OP_Utils::evalOpParm(result, thissop, "breaktype", cookparms.getCookTime(), 0);
485  return Breaktype(result);
486  }
487  Closeholes getCloseholes() const { return Closeholes(myCloseholes); }
488  void setCloseholes(Closeholes val) { myCloseholes = int64(val); }
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getCloseholes();
493  int64 result;
494  OP_Utils::evalOpParm(result, thissop, "closeholes", cookparms.getCookTime(), 0);
495  return Closeholes(result);
496  }
497  bool getClosegeo() const { return myClosegeo; }
498  void setClosegeo(bool val) { myClosegeo = val; }
499  bool opClosegeo(const SOP_NodeVerb::CookParms &cookparms) const
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getClosegeo();
503  bool result;
504  OP_Utils::evalOpParm(result, thissop, "closegeo", cookparms.getCookTime(), 0);
505  return result;
506  }
507  fpreal64 getSnapdistance() const { return mySnapdistance; }
508  void setSnapdistance(fpreal64 val) { mySnapdistance = val; }
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getSnapdistance();
513  fpreal64 result;
514  OP_Utils::evalOpParm(result, thissop, "snapdistance", cookparms.getCookTime(), 0);
515  return result;
516  }
517  bool getCreategroups() const { return myCreategroups; }
518  void setCreategroups(bool val) { myCreategroups = val; }
519  bool opCreategroups(const SOP_NodeVerb::CookParms &cookparms) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getCreategroups();
523  bool result;
524  OP_Utils::evalOpParm(result, thissop, "creategroups", cookparms.getCookTime(), 0);
525  return result;
526  }
527  const UT_StringHolder & getInsidegroup() const { return myInsidegroup; }
528  void setInsidegroup(const UT_StringHolder & val) { myInsidegroup = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getInsidegroup();
533  UT_StringHolder result;
534  OP_Utils::evalOpParm(result, thissop, "insidegroup", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getInsideclosuregroup() const { return myInsideclosuregroup; }
538  void setInsideclosuregroup(const UT_StringHolder & val) { myInsideclosuregroup = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getInsideclosuregroup();
543  UT_StringHolder result;
544  OP_Utils::evalOpParm(result, thissop, "insideclosuregroup", cookparms.getCookTime(), 0);
545  return result;
546  }
547  const UT_StringHolder & getOutsidegroup() const { return myOutsidegroup; }
548  void setOutsidegroup(const UT_StringHolder & val) { myOutsidegroup = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getOutsidegroup();
553  UT_StringHolder result;
554  OP_Utils::evalOpParm(result, thissop, "outsidegroup", cookparms.getCookTime(), 0);
555  return result;
556  }
557  const UT_StringHolder & getOutsideclosuregroup() const { return myOutsideclosuregroup; }
558  void setOutsideclosuregroup(const UT_StringHolder & val) { myOutsideclosuregroup = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getOutsideclosuregroup();
563  UT_StringHolder result;
564  OP_Utils::evalOpParm(result, thissop, "outsideclosuregroup", cookparms.getCookTime(), 0);
565  return result;
566  }
567 
568 private:
569  UT_StringHolder myGroup;
570  int64 myBreaktype;
571  int64 myCloseholes;
572  bool myClosegeo;
573  fpreal64 mySnapdistance;
574  bool myCreategroups;
575  UT_StringHolder myInsidegroup;
576  UT_StringHolder myInsideclosuregroup;
577  UT_StringHolder myOutsidegroup;
578  UT_StringHolder myOutsideclosuregroup;
579 
580 };
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getParmValue(exint idx, UT_Matrix4D &value) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
void doGetParmValue(exint idx, T &value) const
void getParmValue(exint idx, UT_Matrix2D &value) const
void setParmValue(exint idx, const UT_Matrix3D &value)
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool opCreategroups(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_StringHolder s)
Closeholes getCloseholes() const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
void setSnapdistance(fpreal64 val)
void setParmValue(exint idx, const UT_StringHolder &value)
fpreal getTime() const
Definition: OP_Context.h:60
static void loadData(UT_IStream &is, UT_Vector2I &v)
const GLdouble * v
Definition: glcorearb.h:836
void setOutsidegroup(const UT_StringHolder &val)
void setParmValue(exint idx, const fpreal &value)
void getParmValue(exint idx, UT_StringHolder &value) const
Breaktype getBreaktype() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setParmValue(exint idx, const UT_Matrix4D &value)
void getParmValue(exint idx, exint &value) const
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
An output stream object that owns its own string buffer storage.
void getParmValue(exint idx, UT_Vector4D &value) const
void setGroup(const UT_StringHolder &val)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, bool &v)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setParmValue(exint idx, const UT_Vector2D &value)
void setParmValue(exint idx, const exint &value)
virtual exint getNumParms() const
void setParmValue(exint idx, const UT_Vector3D &value)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal64 opSnapdistance(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector4D &value)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
UT_StringHolder opOutsidegroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
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_Vector2D &value) const
void setInsidegroup(const UT_StringHolder &val)
UT_StringHolder opOutsideclosuregroup(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
Closeholes opCloseholes(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
virtual void copyFrom(const SOP_NodeParms *src)
void setOutsideclosuregroup(const UT_StringHolder &val)
int64 exint
Definition: SYS_Types.h:116
const UT_StringHolder & getGroup() const
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
static void saveData(std::ostream &os, UT_Vector4D v)
double fpreal64
Definition: SYS_Types.h:192
Breaktype opBreaktype(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
const UT_StringHolder & getInsidegroup() const
virtual const char * getParmName(exint fieldnum) const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void saveData(std::ostream &os, UT_Matrix2D v)
void getParmValue(exint idx, UT_Vector3D &value) const
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
fpreal64 getSnapdistance() const
T & y(void)
Definition: UT_Vector4.h:377
void setCloseholes(Closeholes val)
virtual ParmType getParmType(exint fieldnum) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
UT_StringHolder opInsidegroup(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void setInsideclosuregroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, fpreal64 &v)
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
const UT_StringHolder & getOutsidegroup() const
void setBreaktype(Breaktype val)
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector2D v)
void setParmValue(exint idx, const UT_Matrix2D &value)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, int64 &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
const UT_StringHolder & getOutsideclosuregroup() const
const UT_StringHolder & getInsideclosuregroup() const
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void saveData(std::ostream &os, bool v)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, fpreal64 v)
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
T & y(void)
Definition: UT_Vector2.h:287
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator!=(const SOP_VolumeBreakParms &src) const
void doSetParmValue(exint idx, const T &value)
GLboolean r
Definition: glcorearb.h:1221
static void saveData(std::ostream &os, UT_Vector3D v)
bool operator==(const SOP_VolumeBreakParms &src) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
UT_StringHolder opInsideclosuregroup(const SOP_NodeVerb::CookParms &cookparms) const
T & w(void)
Definition: UT_Vector4.h:381
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getParmValue(exint idx, UT_Matrix3D &value) const
void getParmValue(exint idx, PRM_DataItemHandle &value) const
bool opClosegeo(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getParmValue(exint idx, fpreal &value) const
GLenum src
Definition: glcorearb.h:1792