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 <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 namespace SOP_VolumeBreakEnums
24 {
25  enum class Breaktype
26  {
27  FRACTURE = 0,
28  OUTSIDE,
29  INSIDE
30  };
31  enum class Closeholes
32  {
33  NOCLOSE = 0,
34  FLATCLOSE,
36  };
37 }
38 
39 
41 {
42 public:
43  static int version() { return 1; }
44 
46  {
47  myGroup = ""_sh;
48  myBreaktype = 1;
49  myCloseholes = 0;
50  myClosegeo = true;
51  mySnapdistance = 0.01;
52  myCreategroups = false;
53  myInsidegroup = "inside"_sh;
54  myInsideclosuregroup = "insideClosure"_sh;
55  myOutsidegroup = "outside"_sh;
56  myOutsideclosuregroup = "outsideClosure"_sh;
57 
58  }
59 
60  explicit SOP_VolumeBreakParms(const SOP_VolumeBreakParms &) = default;
61 
62  ~SOP_VolumeBreakParms() override {}
63 
64  bool operator==(const SOP_VolumeBreakParms &src) const
65  {
66  if (myGroup != src.myGroup) return false;
67  if (myBreaktype != src.myBreaktype) return false;
68  if (myCloseholes != src.myCloseholes) return false;
69  if (myClosegeo != src.myClosegeo) return false;
70  if (mySnapdistance != src.mySnapdistance) return false;
71  if (myCreategroups != src.myCreategroups) return false;
72  if (myInsidegroup != src.myInsidegroup) return false;
73  if (myInsideclosuregroup != src.myInsideclosuregroup) return false;
74  if (myOutsidegroup != src.myOutsidegroup) return false;
75  if (myOutsideclosuregroup != src.myOutsideclosuregroup) return false;
76 
77  return true;
78  }
79  bool operator!=(const SOP_VolumeBreakParms &src) const
80  {
81  return !operator==(src);
82  }
85 
86 
87 
88  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
89  {
90  myGroup = ""_sh;
91  if (true)
92  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
93  myBreaktype = 1;
94  if (true)
95  graph->evalOpParm(myBreaktype, nodeidx, "breaktype", time, 0);
96  myCloseholes = 0;
97  if (true)
98  graph->evalOpParm(myCloseholes, nodeidx, "closeholes", time, 0);
99  myClosegeo = true;
100  if (true && ( (!(((int64(getCloseholes())!=0)))) ) )
101  graph->evalOpParm(myClosegeo, nodeidx, "closegeo", time, 0);
102  mySnapdistance = 0.01;
103  if (true)
104  graph->evalOpParm(mySnapdistance, nodeidx, "snapdistance", time, 0);
105  myCreategroups = false;
106  if (true)
107  graph->evalOpParm(myCreategroups, nodeidx, "creategroups", time, 0);
108  myInsidegroup = "inside"_sh;
109  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==1)))) ) )
110  graph->evalOpParm(myInsidegroup, nodeidx, "insidegroup", time, 0);
111  myInsideclosuregroup = "insideClosure"_sh;
112  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==1))||((int64(getCloseholes())==0)))) ) )
113  graph->evalOpParm(myInsideclosuregroup, nodeidx, "insideclosuregroup", time, 0);
114  myOutsidegroup = "outside"_sh;
115  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==2)))) ) )
116  graph->evalOpParm(myOutsidegroup, nodeidx, "outsidegroup", time, 0);
117  myOutsideclosuregroup = "outsideClosure"_sh;
118  if (true && ( (!(((getCreategroups()==0))||((int64(getBreaktype())==2))||((int64(getCloseholes())==0)))) ) )
119  graph->evalOpParm(myOutsideclosuregroup, nodeidx, "outsideclosuregroup", time, 0);
120 
121  }
122 
123 
124  void loadFromOpSubclass(const LoadParms &loadparms) override
125  {
126  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
127  }
128 
129 
130  void copyFrom(const SOP_NodeParms *src) override
131  {
132  *this = *((const SOP_VolumeBreakParms *)src);
133  }
134 
135  template <typename T>
136  void
137  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
138  {
139  if (idx.size() < 1)
140  return;
141  UT_ASSERT(idx.size() == instance.size()+1);
142  if (idx.size() != instance.size()+1)
143  return;
144  switch (idx[0])
145  {
146  case 0:
147  coerceValue(value, myGroup);
148  break;
149  case 1:
150  coerceValue(value, myBreaktype);
151  break;
152  case 2:
153  coerceValue(value, myCloseholes);
154  break;
155  case 3:
156  coerceValue(value, myClosegeo);
157  break;
158  case 4:
159  coerceValue(value, mySnapdistance);
160  break;
161  case 5:
162  coerceValue(value, myCreategroups);
163  break;
164  case 6:
165  coerceValue(value, myInsidegroup);
166  break;
167  case 7:
168  coerceValue(value, myInsideclosuregroup);
169  break;
170  case 8:
171  coerceValue(value, myOutsidegroup);
172  break;
173  case 9:
174  coerceValue(value, myOutsideclosuregroup);
175  break;
176 
177  }
178  }
179 
180  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
201  { doGetParmValue(idx, instance, value); }
202 
203  template <typename T>
204  void
205  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
206  {
207  if (idx.size() < 1)
208  return;
209  UT_ASSERT(idx.size() == instance.size()+1);
210  if (idx.size() != instance.size()+1)
211  return;
212  switch (idx[0])
213  {
214  case 0:
215  coerceValue(myGroup, value);
216  break;
217  case 1:
218  coerceValue(myBreaktype, value);
219  break;
220  case 2:
221  coerceValue(myCloseholes, value);
222  break;
223  case 3:
224  coerceValue(myClosegeo, value);
225  break;
226  case 4:
227  coerceValue(mySnapdistance, value);
228  break;
229  case 5:
230  coerceValue(myCreategroups, value);
231  break;
232  case 6:
233  coerceValue(myInsidegroup, value);
234  break;
235  case 7:
236  coerceValue(myInsideclosuregroup, value);
237  break;
238  case 8:
239  coerceValue(myOutsidegroup, value);
240  break;
241  case 9:
242  coerceValue(myOutsideclosuregroup, value);
243  break;
244 
245  }
246  }
247 
248  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
269  { doSetParmValue(idx, instance, value); }
270 
271  exint getNestNumParms(TempIndex idx) const override
272  {
273  if (idx.size() == 0)
274  return 10;
275  switch (idx[0])
276  {
277 
278  }
279  // Invalid
280  return 0;
281  }
282 
283  const char *getNestParmName(TempIndex fieldnum) const override
284  {
285  if (fieldnum.size() < 1)
286  return 0;
287  switch (fieldnum[0])
288  {
289  case 0:
290  return "group";
291  case 1:
292  return "breaktype";
293  case 2:
294  return "closeholes";
295  case 3:
296  return "closegeo";
297  case 4:
298  return "snapdistance";
299  case 5:
300  return "creategroups";
301  case 6:
302  return "insidegroup";
303  case 7:
304  return "insideclosuregroup";
305  case 8:
306  return "outsidegroup";
307  case 9:
308  return "outsideclosuregroup";
309 
310  }
311  return 0;
312  }
313 
314  ParmType getNestParmType(TempIndex fieldnum) const override
315  {
316  if (fieldnum.size() < 1)
317  return PARM_UNSUPPORTED;
318  switch (fieldnum[0])
319  {
320  case 0:
321  return PARM_STRING;
322  case 1:
323  return PARM_INTEGER;
324  case 2:
325  return PARM_INTEGER;
326  case 3:
327  return PARM_INTEGER;
328  case 4:
329  return PARM_FLOAT;
330  case 5:
331  return PARM_INTEGER;
332  case 6:
333  return PARM_STRING;
334  case 7:
335  return PARM_STRING;
336  case 8:
337  return PARM_STRING;
338  case 9:
339  return PARM_STRING;
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  const 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)
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)
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, myBreaktype);
456  saveData(os, myCloseholes);
457  saveData(os, myClosegeo);
458  saveData(os, mySnapdistance);
459  saveData(os, myCreategroups);
460  saveData(os, myInsidegroup);
461  saveData(os, myInsideclosuregroup);
462  saveData(os, myOutsidegroup);
463  saveData(os, myOutsideclosuregroup);
464 
465  }
466 
467  bool load(UT_IStream &is)
468  {
469  int32 v;
470  is.bread(&v, 1);
471  if (version() != v)
472  {
473  // Fail incompatible versions
474  return false;
475  }
476  loadData(is, myGroup);
477  loadData(is, myBreaktype);
478  loadData(is, myCloseholes);
479  loadData(is, myClosegeo);
480  loadData(is, mySnapdistance);
481  loadData(is, myCreategroups);
482  loadData(is, myInsidegroup);
483  loadData(is, myInsideclosuregroup);
484  loadData(is, myOutsidegroup);
485  loadData(is, myOutsideclosuregroup);
486 
487  return true;
488  }
489 
490  const UT_StringHolder & getGroup() const { return myGroup; }
491  void setGroup(const UT_StringHolder & val) { myGroup = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getGroup();
497  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
498  return result;
499  }
500  Breaktype getBreaktype() const { return Breaktype(myBreaktype); }
501  void setBreaktype(Breaktype val) { myBreaktype = int64(val); }
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getBreaktype();
506  int64 result;
507  OP_Utils::evalOpParm(result, thissop, "breaktype", cookparms.getCookTime(), 0);
508  return Breaktype(result);
509  }
510  Closeholes getCloseholes() const { return Closeholes(myCloseholes); }
511  void setCloseholes(Closeholes val) { myCloseholes = int64(val); }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getCloseholes();
516  int64 result;
517  OP_Utils::evalOpParm(result, thissop, "closeholes", cookparms.getCookTime(), 0);
518  return Closeholes(result);
519  }
520  bool getClosegeo() const { return myClosegeo; }
521  void setClosegeo(bool val) { myClosegeo = val; }
522  bool opClosegeo(const SOP_NodeVerb::CookParms &cookparms) const
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getClosegeo();
526  bool result;
527  OP_Utils::evalOpParm(result, thissop, "closegeo", cookparms.getCookTime(), 0);
528  return result;
529  }
530  fpreal64 getSnapdistance() const { return mySnapdistance; }
531  void setSnapdistance(fpreal64 val) { mySnapdistance = val; }
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getSnapdistance();
537  OP_Utils::evalOpParm(result, thissop, "snapdistance", cookparms.getCookTime(), 0);
538  return result;
539  }
540  bool getCreategroups() const { return myCreategroups; }
541  void setCreategroups(bool val) { myCreategroups = val; }
542  bool opCreategroups(const SOP_NodeVerb::CookParms &cookparms) const
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getCreategroups();
546  bool result;
547  OP_Utils::evalOpParm(result, thissop, "creategroups", cookparms.getCookTime(), 0);
548  return result;
549  }
550  const UT_StringHolder & getInsidegroup() const { return myInsidegroup; }
551  void setInsidegroup(const UT_StringHolder & val) { myInsidegroup = val; }
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getInsidegroup();
557  OP_Utils::evalOpParm(result, thissop, "insidegroup", cookparms.getCookTime(), 0);
558  return result;
559  }
560  const UT_StringHolder & getInsideclosuregroup() const { return myInsideclosuregroup; }
561  void setInsideclosuregroup(const UT_StringHolder & val) { myInsideclosuregroup = val; }
563  {
564  SOP_Node *thissop = cookparms.getNode();
565  if (!thissop) return getInsideclosuregroup();
567  OP_Utils::evalOpParm(result, thissop, "insideclosuregroup", cookparms.getCookTime(), 0);
568  return result;
569  }
570  const UT_StringHolder & getOutsidegroup() const { return myOutsidegroup; }
571  void setOutsidegroup(const UT_StringHolder & val) { myOutsidegroup = val; }
573  {
574  SOP_Node *thissop = cookparms.getNode();
575  if (!thissop) return getOutsidegroup();
577  OP_Utils::evalOpParm(result, thissop, "outsidegroup", cookparms.getCookTime(), 0);
578  return result;
579  }
580  const UT_StringHolder & getOutsideclosuregroup() const { return myOutsideclosuregroup; }
581  void setOutsideclosuregroup(const UT_StringHolder & val) { myOutsideclosuregroup = val; }
583  {
584  SOP_Node *thissop = cookparms.getNode();
585  if (!thissop) return getOutsideclosuregroup();
587  OP_Utils::evalOpParm(result, thissop, "outsideclosuregroup", cookparms.getCookTime(), 0);
588  return result;
589  }
590 
591 private:
592  UT_StringHolder myGroup;
593  int64 myBreaktype;
594  int64 myCloseholes;
595  bool myClosegeo;
596  fpreal64 mySnapdistance;
597  bool myCreategroups;
598  UT_StringHolder myInsidegroup;
599  UT_StringHolder myInsideclosuregroup;
600  UT_StringHolder myOutsidegroup;
601  UT_StringHolder myOutsideclosuregroup;
602 
603 };
static void loadData(UT_IStream &is, UT_Vector4I &v)
GLdouble s
Definition: glew.h:1390
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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)
GT_API const UT_StringHolder time
void setSnapdistance(fpreal64 val)
fpreal getTime() const
Definition: OP_Context.h:60
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setOutsidegroup(const UT_StringHolder &val)
Breaktype getBreaktype() const
GLuint const GLfloat * val
Definition: glew.h:2794
static void saveData(std::ostream &os, PRM_DataItemHandle s)
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
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)
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
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)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal64 opSnapdistance(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
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
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setOutsideclosuregroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
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
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
const GLfloat * c
Definition: glew.h:16296
const UT_StringHolder & getInsidegroup() const
long long int64
Definition: SYS_Types.h:116
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void copyFrom(const SOP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal64 getSnapdistance() const
void setCloseholes(Closeholes val)
void loadFromOpSubclass(const LoadParms &loadparms) override
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:121
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)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
exint getNestNumParms(TempIndex idx) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
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
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void saveData(std::ostream &os, bool v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
#define SOP_API
Definition: SOP_API.h:10
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
static void saveData(std::ostream &os, UT_Matrix4D v)
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
static void saveData(std::ostream &os, UT_Vector3D v)
bool operator==(const SOP_VolumeBreakParms &src) const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
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)
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)
ParmType getNestParmType(TempIndex fieldnum) const override
GLsizei const GLfloat * value
Definition: glew.h:1849
bool opClosegeo(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
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)
type
Definition: core.h:528
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)