HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VoronoiSplit.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_VoronoiSplitEnums
24 {
25  enum class WeightMethod
26  {
27  POWER = 0,
28  RATIO
29  };
30 
32  getToken(WeightMethod enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case WeightMethod::POWER: return "power"_sh;
37  case WeightMethod::RATIO: return "ratio"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myGroup = ""_UTsh;
53  myClipptsgrp = ""_UTsh;
54  myOffset = 0;
55  myInterior = false;
56  myTransferAttribs = true;
57  myStamppieces = false;
58  myPieceattrib = "piece"_UTsh;
59  myClipptattrib = "clippt"_UTsh;
60  myUseweightattrib = false;
61  myWeightattrib = "pscale"_UTsh;
62  myWeightMethod = 0;
63 
64  }
65 
66  explicit SOP_VoronoiSplitParms(const SOP_VoronoiSplitParms &) = default;
68  SOP_VoronoiSplitParms(SOP_VoronoiSplitParms &&) noexcept = default;
69  SOP_VoronoiSplitParms &operator=(SOP_VoronoiSplitParms &&) noexcept = default;
70 
71  ~SOP_VoronoiSplitParms() override {}
72 
74  {
75  if (myGroup != src.myGroup) return false;
76  if (myClipptsgrp != src.myClipptsgrp) return false;
77  if (myOffset != src.myOffset) return false;
78  if (myInterior != src.myInterior) return false;
79  if (myTransferAttribs != src.myTransferAttribs) return false;
80  if (myStamppieces != src.myStamppieces) return false;
81  if (myPieceattrib != src.myPieceattrib) return false;
82  if (myClipptattrib != src.myClipptattrib) return false;
83  if (myUseweightattrib != src.myUseweightattrib) return false;
84  if (myWeightattrib != src.myWeightattrib) return false;
85  if (myWeightMethod != src.myWeightMethod) return false;
86 
87  return true;
88  }
90  {
91  return !operator==(src);
92  }
94 
95 
96 
97  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
98  {
99  myGroup = ""_UTsh;
100  if (true)
101  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
102  myClipptsgrp = ""_UTsh;
103  if (true)
104  graph->evalOpParm(myClipptsgrp, nodeidx, "clipptsgrp", time, 0);
105  myOffset = 0;
106  if (true)
107  graph->evalOpParm(myOffset, nodeidx, "offset", time, 0);
108  myInterior = false;
109  if (true)
110  graph->evalOpParm(myInterior, nodeidx, "interior", time, 0);
111  myTransferAttribs = true;
112  if (true && ( (true&&!(((getInterior()==0))||((getInterior()==0)))) ) )
113  graph->evalOpParm(myTransferAttribs, nodeidx, "transferattribs", time, 0);
114  myStamppieces = false;
115  if (true)
116  graph->evalOpParm(myStamppieces, nodeidx, "stamppieces", time, 0);
117  myPieceattrib = "piece"_UTsh;
118  if (true && ( (true&&!(((getStamppieces()==0)))) ) )
119  graph->evalOpParm(myPieceattrib, nodeidx, "pieceattrib", time, 0);
120  myClipptattrib = "clippt"_UTsh;
121  if (true && ( (true&&!(((getStamppieces()==0))||((getInterior()==0)))) ) )
122  graph->evalOpParm(myClipptattrib, nodeidx, "clipptattrib", time, 0);
123  myUseweightattrib = false;
124  if (true)
125  graph->evalOpParm(myUseweightattrib, nodeidx, "useweightattrib", time, 0);
126  myWeightattrib = "pscale"_UTsh;
127  if (true && ( (true&&!(((getUseweightattrib()==0)))) ) )
128  graph->evalOpParm(myWeightattrib, nodeidx, "weightattrib", time, 0);
129  myWeightMethod = 0;
130  if (true && ( (true&&!(((getUseweightattrib()==0)))) ) )
131  graph->evalOpParm(myWeightMethod, nodeidx, "weightmethod", time, 0);
132 
133  }
134 
135 
136  void loadFromOpSubclass(const LoadParms &loadparms) override
137  {
138  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
139  }
140 
141 
142  void copyFrom(const OP_NodeParms *src) override
143  {
144  *this = *((const SOP_VoronoiSplitParms *)src);
145  }
146 
147  template <typename T>
148  void
149  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
150  {
151  if (idx.size() < 1)
152  return;
153  UT_ASSERT(idx.size() == instance.size()+1);
154  if (idx.size() != instance.size()+1)
155  return;
156  switch (idx[0])
157  {
158  case 0:
159  coerceValue(value, myGroup);
160  break;
161  case 1:
162  coerceValue(value, myClipptsgrp);
163  break;
164  case 2:
165  coerceValue(value, myOffset);
166  break;
167  case 3:
168  coerceValue(value, myInterior);
169  break;
170  case 4:
171  coerceValue(value, myTransferAttribs);
172  break;
173  case 5:
174  coerceValue(value, myStamppieces);
175  break;
176  case 6:
177  coerceValue(value, myPieceattrib);
178  break;
179  case 7:
180  coerceValue(value, myClipptattrib);
181  break;
182  case 8:
183  coerceValue(value, myUseweightattrib);
184  break;
185  case 9:
186  coerceValue(value, myWeightattrib);
187  break;
188  case 10:
189  coerceValue(value, myWeightMethod);
190  break;
191 
192  }
193  }
194 
195  bool isParmColorRamp(exint idx) const override
196  {
197  switch (idx)
198  {
199 
200  }
201  return false;
202  }
203 
204  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
225  { doGetParmValue(idx, instance, value); }
226 
227  template <typename T>
228  void
229  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
230  {
231  if (idx.size() < 1)
232  return;
233  UT_ASSERT(idx.size() == instance.size()+1);
234  if (idx.size() != instance.size()+1)
235  return;
236  switch (idx[0])
237  {
238  case 0:
239  coerceValue(myGroup, ( ( value ) ));
240  break;
241  case 1:
242  coerceValue(myClipptsgrp, ( ( value ) ));
243  break;
244  case 2:
245  coerceValue(myOffset, ( ( value ) ));
246  break;
247  case 3:
248  coerceValue(myInterior, ( ( value ) ));
249  break;
250  case 4:
251  coerceValue(myTransferAttribs, ( ( value ) ));
252  break;
253  case 5:
254  coerceValue(myStamppieces, ( ( value ) ));
255  break;
256  case 6:
257  coerceValue(myPieceattrib, ( ( value ) ));
258  break;
259  case 7:
260  coerceValue(myClipptattrib, ( ( value ) ));
261  break;
262  case 8:
263  coerceValue(myUseweightattrib, ( ( value ) ));
264  break;
265  case 9:
266  coerceValue(myWeightattrib, ( ( value ) ));
267  break;
268  case 10:
269  coerceValue(myWeightMethod, clampMinValue(0, clampMaxValue(1, value ) ));
270  break;
271 
272  }
273  }
274 
275  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
296  { doSetParmValue(idx, instance, value); }
297 
298  exint getNestNumParms(TempIndex idx) const override
299  {
300  if (idx.size() == 0)
301  return 11;
302  switch (idx[0])
303  {
304 
305  }
306  // Invalid
307  return 0;
308  }
309 
310  const char *getNestParmName(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return 0;
314  switch (fieldnum[0])
315  {
316  case 0:
317  return "group";
318  case 1:
319  return "clipptsgrp";
320  case 2:
321  return "offset";
322  case 3:
323  return "interior";
324  case 4:
325  return "transferattribs";
326  case 5:
327  return "stamppieces";
328  case 6:
329  return "pieceattrib";
330  case 7:
331  return "clipptattrib";
332  case 8:
333  return "useweightattrib";
334  case 9:
335  return "weightattrib";
336  case 10:
337  return "weightmethod";
338 
339  }
340  return 0;
341  }
342 
343  ParmType getNestParmType(TempIndex fieldnum) const override
344  {
345  if (fieldnum.size() < 1)
346  return PARM_UNSUPPORTED;
347  switch (fieldnum[0])
348  {
349  case 0:
350  return PARM_STRING;
351  case 1:
352  return PARM_STRING;
353  case 2:
354  return PARM_FLOAT;
355  case 3:
356  return PARM_INTEGER;
357  case 4:
358  return PARM_INTEGER;
359  case 5:
360  return PARM_INTEGER;
361  case 6:
362  return PARM_STRING;
363  case 7:
364  return PARM_STRING;
365  case 8:
366  return PARM_INTEGER;
367  case 9:
368  return PARM_STRING;
369  case 10:
370  return PARM_INTEGER;
371 
372  }
373  return PARM_UNSUPPORTED;
374  }
375 
376  // Boiler plate to load individual types.
377  static void loadData(UT_IStream &is, int64 &v)
378  { is.bread(&v, 1); }
379  static void loadData(UT_IStream &is, bool &v)
380  { int64 iv; is.bread(&iv, 1); v = iv; }
381  static void loadData(UT_IStream &is, fpreal64 &v)
382  { is.bread<fpreal64>(&v, 1); }
383  static void loadData(UT_IStream &is, UT_Vector2D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
385  static void loadData(UT_IStream &is, UT_Vector3D &v)
386  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
387  is.bread<fpreal64>(&v.z(), 1); }
388  static void loadData(UT_IStream &is, UT_Vector4D &v)
389  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
390  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix2D &v)
392  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Matrix3D &v)
394  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
395  static void loadData(UT_IStream &is, UT_Matrix4D &v)
396  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
397  static void loadData(UT_IStream &is, UT_Vector2I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
399  static void loadData(UT_IStream &is, UT_Vector3I &v)
400  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
401  is.bread<int64>(&v.z(), 1); }
402  static void loadData(UT_IStream &is, UT_Vector4I &v)
403  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
404  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
406  { is.bread(v); }
408  { UT_StringHolder rampdata;
409  loadData(is, rampdata);
410  if (rampdata.isstring())
411  {
412  v.reset(new UT_Ramp());
413  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
414  v->load(istr);
415  }
416  else v.reset();
417  }
420  loadData(is, data);
421  if (data.isstring())
422  {
423  // Find the data type.
424  const char *colon = UT_StringWrap(data).findChar(':');
425  if (colon)
426  {
427  int typelen = colon - data.buffer();
429  type.strncpy(data.buffer(), typelen);
430  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
431 
432  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
433  }
434  }
435  else v.reset();
436  }
437 
438  static void saveData(std::ostream &os, int64 v)
439  { UTwrite(os, &v); }
440  static void saveData(std::ostream &os, bool v)
441  { int64 iv = v; UTwrite(os, &iv); }
442  static void saveData(std::ostream &os, fpreal64 v)
443  { UTwrite<fpreal64>(os, &v); }
444  static void saveData(std::ostream &os, UT_Vector2D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
446  static void saveData(std::ostream &os, UT_Vector3D v)
447  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
448  UTwrite<fpreal64>(os, &v.z()); }
449  static void saveData(std::ostream &os, UT_Vector4D v)
450  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
451  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
452  static void saveData(std::ostream &os, UT_Matrix2D v)
454  static void saveData(std::ostream &os, UT_Matrix3D v)
456  static void saveData(std::ostream &os, UT_Matrix4D v)
458  static void saveData(std::ostream &os, UT_StringHolder s)
459  { UT_StringWrap(s).saveBinary(os); }
460  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
462  UT_OStringStream ostr;
463  if (s) s->save(ostr);
464  result = ostr.str();
465  saveData(os, result);
466  }
467  static void saveData(std::ostream &os, PRM_DataItemHandle s)
469  UT_OStringStream ostr;
470  if (s)
471  {
472  ostr << s->getDataTypeToken();
473  ostr << ":";
474  s->saveBinary(ostr);
475  }
476  result = ostr.str();
477  saveData(os, result);
478  }
479 
480 
481  void save(std::ostream &os) const
482  {
483  int32 v = version();
484  UTwrite(os, &v);
485  saveData(os, myGroup);
486  saveData(os, myClipptsgrp);
487  saveData(os, myOffset);
488  saveData(os, myInterior);
489  saveData(os, myTransferAttribs);
490  saveData(os, myStamppieces);
491  saveData(os, myPieceattrib);
492  saveData(os, myClipptattrib);
493  saveData(os, myUseweightattrib);
494  saveData(os, myWeightattrib);
495  saveData(os, myWeightMethod);
496 
497  }
498 
499  bool load(UT_IStream &is)
500  {
501  int32 v;
502  is.bread(&v, 1);
503  if (version() != v)
504  {
505  // Fail incompatible versions
506  return false;
507  }
508  loadData(is, myGroup);
509  loadData(is, myClipptsgrp);
510  loadData(is, myOffset);
511  loadData(is, myInterior);
512  loadData(is, myTransferAttribs);
513  loadData(is, myStamppieces);
514  loadData(is, myPieceattrib);
515  loadData(is, myClipptattrib);
516  loadData(is, myUseweightattrib);
517  loadData(is, myWeightattrib);
518  loadData(is, myWeightMethod);
519 
520  return true;
521  }
522 
523  const UT_StringHolder & getGroup() const { return myGroup; }
524  void setGroup(const UT_StringHolder & val) { myGroup = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getGroup();
530  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
531  return result;
532  }
533  const UT_StringHolder & getClipptsgrp() const { return myClipptsgrp; }
534  void setClipptsgrp(const UT_StringHolder & val) { myClipptsgrp = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getClipptsgrp();
540  OP_Utils::evalOpParm(result, thissop, "clipptsgrp", cookparms.getCookTime(), 0);
541  return result;
542  }
543  fpreal64 getOffset() const { return myOffset; }
544  void setOffset(fpreal64 val) { myOffset = val; }
545  fpreal64 opOffset(const SOP_NodeVerb::CookParms &cookparms) const
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getOffset();
550  OP_Utils::evalOpParm(result, thissop, "offset", cookparms.getCookTime(), 0);
551  return result;
552  }
553  bool getInterior() const { return myInterior; }
554  void setInterior(bool val) { myInterior = val; }
555  bool opInterior(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getInterior();
559  bool result;
560  OP_Utils::evalOpParm(result, thissop, "interior", cookparms.getCookTime(), 0);
561  return result;
562  }
563  bool getTransferAttribs() const { return myTransferAttribs; }
564  void setTransferAttribs(bool val) { myTransferAttribs = val; }
565  bool opTransferAttribs(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getTransferAttribs();
569  bool result;
570  OP_Utils::evalOpParm(result, thissop, "transferattribs", cookparms.getCookTime(), 0);
571  return result;
572  }
573  bool getStamppieces() const { return myStamppieces; }
574  void setStamppieces(bool val) { myStamppieces = val; }
575  bool opStamppieces(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getStamppieces();
579  bool result;
580  OP_Utils::evalOpParm(result, thissop, "stamppieces", cookparms.getCookTime(), 0);
581  return result;
582  }
583  const UT_StringHolder & getPieceattrib() const { return myPieceattrib; }
584  void setPieceattrib(const UT_StringHolder & val) { myPieceattrib = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getPieceattrib();
590  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
591  return result;
592  }
593  const UT_StringHolder & getClipptattrib() const { return myClipptattrib; }
594  void setClipptattrib(const UT_StringHolder & val) { myClipptattrib = val; }
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getClipptattrib();
600  OP_Utils::evalOpParm(result, thissop, "clipptattrib", cookparms.getCookTime(), 0);
601  return result;
602  }
603  bool getUseweightattrib() const { return myUseweightattrib; }
604  void setUseweightattrib(bool val) { myUseweightattrib = val; }
605  bool opUseweightattrib(const SOP_NodeVerb::CookParms &cookparms) const
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getUseweightattrib();
609  bool result;
610  OP_Utils::evalOpParm(result, thissop, "useweightattrib", cookparms.getCookTime(), 0);
611  return result;
612  }
613  const UT_StringHolder & getWeightattrib() const { return myWeightattrib; }
614  void setWeightattrib(const UT_StringHolder & val) { myWeightattrib = val; }
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getWeightattrib();
620  OP_Utils::evalOpParm(result, thissop, "weightattrib", cookparms.getCookTime(), 0);
621  return result;
622  }
623  WeightMethod getWeightMethod() const { return WeightMethod(myWeightMethod); }
624  void setWeightMethod(WeightMethod val) { myWeightMethod = int64(val); }
626  {
627  SOP_Node *thissop = cookparms.getNode();
628  if (!thissop) return getWeightMethod();
629  int64 result;
630  OP_Utils::evalOpParm(result, thissop, "weightmethod", cookparms.getCookTime(), 0);
631  return WeightMethod(result);
632  }
633 
634 private:
635  UT_StringHolder myGroup;
636  UT_StringHolder myClipptsgrp;
637  fpreal64 myOffset;
638  bool myInterior;
639  bool myTransferAttribs;
640  bool myStamppieces;
641  UT_StringHolder myPieceattrib;
642  UT_StringHolder myClipptattrib;
643  bool myUseweightattrib;
644  UT_StringHolder myWeightattrib;
645  int64 myWeightMethod;
646 
647 };
static void saveData(std::ostream &os, fpreal64 v)
WeightMethod opWeightMethod(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opPieceattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setClipptsgrp(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool opUseweightattrib(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
const UT_StringHolder & getClipptsgrp() const
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setOffset(fpreal64 val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
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
fpreal getTime() const
Definition: OP_Context.h:62
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
fpreal64 opOffset(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, UT_Matrix4D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void copyFrom(const OP_NodeParms *src) override
SYS_FORCE_INLINE const char * buffer() const
const UT_StringHolder & getWeightattrib() const
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, UT_Vector3D v)
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.
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
const UT_StringHolder & getPieceattrib() const
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Vector3D &v)
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setPieceattrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Vector4D v)
void setClipptattrib(const UT_StringHolder &val)
exint length() 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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, bool &v)
UT_StringHolder opClipptattrib(const SOP_NodeVerb::CookParms &cookparms) const
bool opTransferAttribs(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
WeightMethod getWeightMethod() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
bool isParmColorRamp(exint idx) const override
bool opInterior(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
SYS_FORCE_INLINE UT_StringHolder getToken(WeightMethod enum_value)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector2I &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool operator==(const SOP_VoronoiSplitParms &src) const
void setWeightattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
bool operator!=(const SOP_VoronoiSplitParms &src) const
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const UT_StringHolder & getClipptattrib() const
void setWeightMethod(WeightMethod val)
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, int64 &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
static void saveData(std::ostream &os, bool v)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
bool load(UT_IStream &is)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GLuint GLfloat * val
Definition: glcorearb.h:1608
UT_StringHolder opWeightattrib(const SOP_NodeVerb::CookParms &cookparms) const
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const char * getNestParmName(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
bool opStamppieces(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
Definition: core.h:1131
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
static void loadData(UT_IStream &is, UT_Vector2D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE bool isstring() const
void setGroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
UT_StringHolder opClipptsgrp(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663