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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_VolumeBreakEnums
24 {
25  enum class Breaktype
26  {
27  FRACTURE = 0,
28  OUTSIDE,
29  INSIDE
30  };
31 
33  getToken(Breaktype enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case Breaktype::FRACTURE: return "fracture"_sh;
38  case Breaktype::OUTSIDE: return "outside"_sh;
39  case Breaktype::INSIDE: return "inside"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44  enum class Closeholes
45  {
46  NOCLOSE = 0,
47  FLATCLOSE,
49  };
50 
52  getToken(Closeholes enum_value)
53  {
54  using namespace UT::Literal;
55  switch (enum_value) {
56  case Closeholes::NOCLOSE: return "noclose"_sh;
57  case Closeholes::FLATCLOSE: return "flatclose"_sh;
58  case Closeholes::PYRAMIDCLOSE: return "pyramidclose"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63 }
64 
65 
67 {
68 public:
69  static int version() { return 1; }
70 
72  {
73  myGroup = ""_UTsh;
74  myBreaktype = 1;
75  myCloseholes = 0;
76  myClosegeo = true;
77  mySnapdistance = 0.01;
78  myCreategroups = false;
79  myInsidegroup = "inside"_UTsh;
80  myInsideclosuregroup = "insideClosure"_UTsh;
81  myOutsidegroup = "outside"_UTsh;
82  myOutsideclosuregroup = "outsideClosure"_UTsh;
83 
84  }
85 
86  explicit SOP_VolumeBreakParms(const SOP_VolumeBreakParms &) = default;
88  SOP_VolumeBreakParms(SOP_VolumeBreakParms &&) noexcept = default;
89  SOP_VolumeBreakParms &operator=(SOP_VolumeBreakParms &&) noexcept = default;
90 
91  ~SOP_VolumeBreakParms() override {}
92 
93  bool operator==(const SOP_VolumeBreakParms &src) const
94  {
95  if (myGroup != src.myGroup) return false;
96  if (myBreaktype != src.myBreaktype) return false;
97  if (myCloseholes != src.myCloseholes) return false;
98  if (myClosegeo != src.myClosegeo) return false;
99  if (mySnapdistance != src.mySnapdistance) return false;
100  if (myCreategroups != src.myCreategroups) return false;
101  if (myInsidegroup != src.myInsidegroup) return false;
102  if (myInsideclosuregroup != src.myInsideclosuregroup) return false;
103  if (myOutsidegroup != src.myOutsidegroup) return false;
104  if (myOutsideclosuregroup != src.myOutsideclosuregroup) return false;
105 
106  return true;
107  }
109  {
110  return !operator==(src);
111  }
114 
115 
116 
117  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
118  {
119  myGroup = ""_UTsh;
120  if (true)
121  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
122  myBreaktype = 1;
123  if (true)
124  graph->evalOpParm(myBreaktype, nodeidx, "breaktype", time, 0);
125  myCloseholes = 0;
126  if (true)
127  graph->evalOpParm(myCloseholes, nodeidx, "closeholes", time, 0);
128  myClosegeo = true;
129  if (true && ( (true&&!(((int64(getCloseholes())!=0)))) ) )
130  graph->evalOpParm(myClosegeo, nodeidx, "closegeo", time, 0);
131  mySnapdistance = 0.01;
132  if (true)
133  graph->evalOpParm(mySnapdistance, nodeidx, "snapdistance", time, 0);
134  myCreategroups = false;
135  if (true)
136  graph->evalOpParm(myCreategroups, nodeidx, "creategroups", time, 0);
137  myInsidegroup = "inside"_UTsh;
138  if (true && ( (true&&!(((getCreategroups()==0))||((int64(getBreaktype())==1)))) ) )
139  graph->evalOpParm(myInsidegroup, nodeidx, "insidegroup", time, 0);
140  myInsideclosuregroup = "insideClosure"_UTsh;
141  if (true && ( (true&&!(((getCreategroups()==0))||((int64(getBreaktype())==1))||((int64(getCloseholes())==0)))) ) )
142  graph->evalOpParm(myInsideclosuregroup, nodeidx, "insideclosuregroup", time, 0);
143  myOutsidegroup = "outside"_UTsh;
144  if (true && ( (true&&!(((getCreategroups()==0))||((int64(getBreaktype())==2)))) ) )
145  graph->evalOpParm(myOutsidegroup, nodeidx, "outsidegroup", time, 0);
146  myOutsideclosuregroup = "outsideClosure"_UTsh;
147  if (true && ( (true&&!(((getCreategroups()==0))||((int64(getBreaktype())==2))||((int64(getCloseholes())==0)))) ) )
148  graph->evalOpParm(myOutsideclosuregroup, nodeidx, "outsideclosuregroup", time, 0);
149 
150  }
151 
152 
153  void loadFromOpSubclass(const LoadParms &loadparms) override
154  {
155  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
156  }
157 
158 
159  void copyFrom(const OP_NodeParms *src) override
160  {
161  *this = *((const SOP_VolumeBreakParms *)src);
162  }
163 
164  template <typename T>
165  void
166  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
167  {
168  if (idx.size() < 1)
169  return;
170  UT_ASSERT(idx.size() == instance.size()+1);
171  if (idx.size() != instance.size()+1)
172  return;
173  switch (idx[0])
174  {
175  case 0:
176  coerceValue(value, myGroup);
177  break;
178  case 1:
179  coerceValue(value, myBreaktype);
180  break;
181  case 2:
182  coerceValue(value, myCloseholes);
183  break;
184  case 3:
185  coerceValue(value, myClosegeo);
186  break;
187  case 4:
188  coerceValue(value, mySnapdistance);
189  break;
190  case 5:
191  coerceValue(value, myCreategroups);
192  break;
193  case 6:
194  coerceValue(value, myInsidegroup);
195  break;
196  case 7:
197  coerceValue(value, myInsideclosuregroup);
198  break;
199  case 8:
200  coerceValue(value, myOutsidegroup);
201  break;
202  case 9:
203  coerceValue(value, myOutsideclosuregroup);
204  break;
205 
206  }
207  }
208 
209  bool isParmColorRamp(exint idx) const override
210  {
211  switch (idx)
212  {
213 
214  }
215  return false;
216  }
217 
218  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
233  { doGetParmValue(idx, instance, value); }
234  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
235  { doGetParmValue(idx, instance, value); }
236  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
237  { doGetParmValue(idx, instance, value); }
238  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
239  { doGetParmValue(idx, instance, value); }
240 
241  template <typename T>
242  void
243  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
244  {
245  if (idx.size() < 1)
246  return;
247  UT_ASSERT(idx.size() == instance.size()+1);
248  if (idx.size() != instance.size()+1)
249  return;
250  switch (idx[0])
251  {
252  case 0:
253  coerceValue(myGroup, ( ( value ) ));
254  break;
255  case 1:
256  coerceValue(myBreaktype, clampMinValue(0, clampMaxValue(2, value ) ));
257  break;
258  case 2:
259  coerceValue(myCloseholes, clampMinValue(0, clampMaxValue(2, value ) ));
260  break;
261  case 3:
262  coerceValue(myClosegeo, ( ( value ) ));
263  break;
264  case 4:
265  coerceValue(mySnapdistance, clampMinValue(0, ( value ) ));
266  break;
267  case 5:
268  coerceValue(myCreategroups, ( ( value ) ));
269  break;
270  case 6:
271  coerceValue(myInsidegroup, ( ( value ) ));
272  break;
273  case 7:
274  coerceValue(myInsideclosuregroup, ( ( value ) ));
275  break;
276  case 8:
277  coerceValue(myOutsidegroup, ( ( value ) ));
278  break;
279  case 9:
280  coerceValue(myOutsideclosuregroup, ( ( value ) ));
281  break;
282 
283  }
284  }
285 
286  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
299  { doSetParmValue(idx, instance, value); }
300  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
301  { doSetParmValue(idx, instance, value); }
302  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
303  { doSetParmValue(idx, instance, value); }
304  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
305  { doSetParmValue(idx, instance, value); }
306  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
307  { doSetParmValue(idx, instance, value); }
308 
309  exint getNestNumParms(TempIndex idx) const override
310  {
311  if (idx.size() == 0)
312  return 10;
313  switch (idx[0])
314  {
315 
316  }
317  // Invalid
318  return 0;
319  }
320 
321  const char *getNestParmName(TempIndex fieldnum) const override
322  {
323  if (fieldnum.size() < 1)
324  return 0;
325  switch (fieldnum[0])
326  {
327  case 0:
328  return "group";
329  case 1:
330  return "breaktype";
331  case 2:
332  return "closeholes";
333  case 3:
334  return "closegeo";
335  case 4:
336  return "snapdistance";
337  case 5:
338  return "creategroups";
339  case 6:
340  return "insidegroup";
341  case 7:
342  return "insideclosuregroup";
343  case 8:
344  return "outsidegroup";
345  case 9:
346  return "outsideclosuregroup";
347 
348  }
349  return 0;
350  }
351 
352  ParmType getNestParmType(TempIndex fieldnum) const override
353  {
354  if (fieldnum.size() < 1)
355  return PARM_UNSUPPORTED;
356  switch (fieldnum[0])
357  {
358  case 0:
359  return PARM_STRING;
360  case 1:
361  return PARM_INTEGER;
362  case 2:
363  return PARM_INTEGER;
364  case 3:
365  return PARM_INTEGER;
366  case 4:
367  return PARM_FLOAT;
368  case 5:
369  return PARM_INTEGER;
370  case 6:
371  return PARM_STRING;
372  case 7:
373  return PARM_STRING;
374  case 8:
375  return PARM_STRING;
376  case 9:
377  return PARM_STRING;
378 
379  }
380  return PARM_UNSUPPORTED;
381  }
382 
383  // Boiler plate to load individual types.
384  static void loadData(UT_IStream &is, int64 &v)
385  { is.bread(&v, 1); }
386  static void loadData(UT_IStream &is, bool &v)
387  { int64 iv; is.bread(&iv, 1); v = iv; }
388  static void loadData(UT_IStream &is, fpreal64 &v)
389  { is.bread<fpreal64>(&v, 1); }
390  static void loadData(UT_IStream &is, UT_Vector2D &v)
391  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector3D &v)
393  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
394  is.bread<fpreal64>(&v.z(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector4D &v)
396  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
397  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
398  static void loadData(UT_IStream &is, UT_Matrix2D &v)
399  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
400  static void loadData(UT_IStream &is, UT_Matrix3D &v)
401  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
402  static void loadData(UT_IStream &is, UT_Matrix4D &v)
403  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
404  static void loadData(UT_IStream &is, UT_Vector2I &v)
405  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
406  static void loadData(UT_IStream &is, UT_Vector3I &v)
407  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
408  is.bread<int64>(&v.z(), 1); }
409  static void loadData(UT_IStream &is, UT_Vector4I &v)
410  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
411  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
413  { is.bread(v); }
415  { UT_StringHolder rampdata;
416  loadData(is, rampdata);
417  if (rampdata.isstring())
418  {
419  v.reset(new UT_Ramp());
420  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
421  v->load(istr);
422  }
423  else v.reset();
424  }
427  loadData(is, data);
428  if (data.isstring())
429  {
430  // Find the data type.
431  const char *colon = UT_StringWrap(data).findChar(':');
432  if (colon)
433  {
434  int typelen = colon - data.buffer();
436  type.strncpy(data.buffer(), typelen);
437  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
438 
439  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
440  }
441  }
442  else v.reset();
443  }
444 
445  static void saveData(std::ostream &os, int64 v)
446  { UTwrite(os, &v); }
447  static void saveData(std::ostream &os, bool v)
448  { int64 iv = v; UTwrite(os, &iv); }
449  static void saveData(std::ostream &os, fpreal64 v)
450  { UTwrite<fpreal64>(os, &v); }
451  static void saveData(std::ostream &os, UT_Vector2D v)
452  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
453  static void saveData(std::ostream &os, UT_Vector3D v)
454  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
455  UTwrite<fpreal64>(os, &v.z()); }
456  static void saveData(std::ostream &os, UT_Vector4D v)
457  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
458  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
459  static void saveData(std::ostream &os, UT_Matrix2D v)
461  static void saveData(std::ostream &os, UT_Matrix3D v)
463  static void saveData(std::ostream &os, UT_Matrix4D v)
465  static void saveData(std::ostream &os, UT_StringHolder s)
466  { UT_StringWrap(s).saveBinary(os); }
467  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
469  UT_OStringStream ostr;
470  if (s) s->save(ostr);
471  result = ostr.str();
472  saveData(os, result);
473  }
474  static void saveData(std::ostream &os, PRM_DataItemHandle s)
476  UT_OStringStream ostr;
477  if (s)
478  {
479  ostr << s->getDataTypeToken();
480  ostr << ":";
481  s->saveBinary(ostr);
482  }
483  result = ostr.str();
484  saveData(os, result);
485  }
486 
487 
488  void save(std::ostream &os) const
489  {
490  int32 v = version();
491  UTwrite(os, &v);
492  saveData(os, myGroup);
493  saveData(os, myBreaktype);
494  saveData(os, myCloseholes);
495  saveData(os, myClosegeo);
496  saveData(os, mySnapdistance);
497  saveData(os, myCreategroups);
498  saveData(os, myInsidegroup);
499  saveData(os, myInsideclosuregroup);
500  saveData(os, myOutsidegroup);
501  saveData(os, myOutsideclosuregroup);
502 
503  }
504 
505  bool load(UT_IStream &is)
506  {
507  int32 v;
508  is.bread(&v, 1);
509  if (version() != v)
510  {
511  // Fail incompatible versions
512  return false;
513  }
514  loadData(is, myGroup);
515  loadData(is, myBreaktype);
516  loadData(is, myCloseholes);
517  loadData(is, myClosegeo);
518  loadData(is, mySnapdistance);
519  loadData(is, myCreategroups);
520  loadData(is, myInsidegroup);
521  loadData(is, myInsideclosuregroup);
522  loadData(is, myOutsidegroup);
523  loadData(is, myOutsideclosuregroup);
524 
525  return true;
526  }
527 
528  const UT_StringHolder & getGroup() const { return myGroup; }
529  void setGroup(const UT_StringHolder & val) { myGroup = val; }
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getGroup();
535  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
536  return result;
537  }
538  Breaktype getBreaktype() const { return Breaktype(myBreaktype); }
539  void setBreaktype(Breaktype val) { myBreaktype = int64(val); }
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getBreaktype();
544  int64 result;
545  OP_Utils::evalOpParm(result, thissop, "breaktype", cookparms.getCookTime(), 0);
546  return Breaktype(result);
547  }
548  Closeholes getCloseholes() const { return Closeholes(myCloseholes); }
549  void setCloseholes(Closeholes val) { myCloseholes = int64(val); }
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getCloseholes();
554  int64 result;
555  OP_Utils::evalOpParm(result, thissop, "closeholes", cookparms.getCookTime(), 0);
556  return Closeholes(result);
557  }
558  bool getClosegeo() const { return myClosegeo; }
559  void setClosegeo(bool val) { myClosegeo = val; }
560  bool opClosegeo(const SOP_NodeVerb::CookParms &cookparms) const
561  {
562  SOP_Node *thissop = cookparms.getNode();
563  if (!thissop) return getClosegeo();
564  bool result;
565  OP_Utils::evalOpParm(result, thissop, "closegeo", cookparms.getCookTime(), 0);
566  return result;
567  }
568  fpreal64 getSnapdistance() const { return mySnapdistance; }
569  void setSnapdistance(fpreal64 val) { mySnapdistance = val; }
571  {
572  SOP_Node *thissop = cookparms.getNode();
573  if (!thissop) return getSnapdistance();
575  OP_Utils::evalOpParm(result, thissop, "snapdistance", cookparms.getCookTime(), 0);
576  return result;
577  }
578  bool getCreategroups() const { return myCreategroups; }
579  void setCreategroups(bool val) { myCreategroups = val; }
580  bool opCreategroups(const SOP_NodeVerb::CookParms &cookparms) const
581  {
582  SOP_Node *thissop = cookparms.getNode();
583  if (!thissop) return getCreategroups();
584  bool result;
585  OP_Utils::evalOpParm(result, thissop, "creategroups", cookparms.getCookTime(), 0);
586  return result;
587  }
588  const UT_StringHolder & getInsidegroup() const { return myInsidegroup; }
589  void setInsidegroup(const UT_StringHolder & val) { myInsidegroup = val; }
591  {
592  SOP_Node *thissop = cookparms.getNode();
593  if (!thissop) return getInsidegroup();
595  OP_Utils::evalOpParm(result, thissop, "insidegroup", cookparms.getCookTime(), 0);
596  return result;
597  }
598  const UT_StringHolder & getInsideclosuregroup() const { return myInsideclosuregroup; }
599  void setInsideclosuregroup(const UT_StringHolder & val) { myInsideclosuregroup = val; }
601  {
602  SOP_Node *thissop = cookparms.getNode();
603  if (!thissop) return getInsideclosuregroup();
605  OP_Utils::evalOpParm(result, thissop, "insideclosuregroup", cookparms.getCookTime(), 0);
606  return result;
607  }
608  const UT_StringHolder & getOutsidegroup() const { return myOutsidegroup; }
609  void setOutsidegroup(const UT_StringHolder & val) { myOutsidegroup = val; }
611  {
612  SOP_Node *thissop = cookparms.getNode();
613  if (!thissop) return getOutsidegroup();
615  OP_Utils::evalOpParm(result, thissop, "outsidegroup", cookparms.getCookTime(), 0);
616  return result;
617  }
618  const UT_StringHolder & getOutsideclosuregroup() const { return myOutsideclosuregroup; }
619  void setOutsideclosuregroup(const UT_StringHolder & val) { myOutsideclosuregroup = val; }
621  {
622  SOP_Node *thissop = cookparms.getNode();
623  if (!thissop) return getOutsideclosuregroup();
625  OP_Utils::evalOpParm(result, thissop, "outsideclosuregroup", cookparms.getCookTime(), 0);
626  return result;
627  }
628 
629 private:
630  UT_StringHolder myGroup;
631  int64 myBreaktype;
632  int64 myCloseholes;
633  bool myClosegeo;
634  fpreal64 mySnapdistance;
635  bool myCreategroups;
636  UT_StringHolder myInsidegroup;
637  UT_StringHolder myInsideclosuregroup;
638  UT_StringHolder myOutsidegroup;
639  UT_StringHolder myOutsideclosuregroup;
640 
641 };
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
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)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
Closeholes getCloseholes() const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
void setSnapdistance(fpreal64 val)
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setOutsidegroup(const UT_StringHolder &val)
Breaktype getBreaktype() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
GLdouble s
Definition: glad.h:3009
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
An output stream object that owns its own string buffer storage.
void setGroup(const UT_StringHolder &val)
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, bool &v)
**But if you need a result
Definition: thread.h:613
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, int64 v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal64 opSnapdistance(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
UT_StringHolder opOutsidegroup(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setInsidegroup(const UT_StringHolder &val)
UT_StringHolder opOutsideclosuregroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
exint length() const
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:36
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setOutsideclosuregroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, UT_Vector4D v)
Breaktype opBreaktype(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void saveData(std::ostream &os, UT_Matrix3D v)
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
const UT_StringHolder & getInsidegroup() const
long long int64
Definition: SYS_Types.h:116
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal64 getSnapdistance() const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setCloseholes(Closeholes val)
void loadFromOpSubclass(const LoadParms &loadparms) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
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
void setInsideclosuregroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void loadData(UT_IStream &is, fpreal64 &v)
const UT_StringHolder & getOutsidegroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setBreaktype(Breaktype val)
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE UT_StringHolder getToken(Breaktype enum_value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
exint getNestNumParms(TempIndex idx) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
static void loadData(UT_IStream &is, int64 &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
const UT_StringHolder & getOutsideclosuregroup() const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
const UT_StringHolder & getInsideclosuregroup() const
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void saveData(std::ostream &os, bool v)
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, fpreal64 v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void saveData(std::ostream &os, UT_Matrix4D v)
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator!=(const SOP_VolumeBreakParms &src) const
GLboolean r
Definition: glcorearb.h:1222
static void saveData(std::ostream &os, UT_Vector3D v)
bool operator==(const SOP_VolumeBreakParms &src) 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
static void loadData(UT_IStream &is, UT_Vector2D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
type
Definition: core.h:1059
ParmType getNestParmType(TempIndex fieldnum) const override
bool opClosegeo(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
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)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663