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 }
31 
32 
34 {
35 public:
36  static int version() { return 1; }
37 
39  {
40  myGroup = ""_UTsh;
41  myClipptsgrp = ""_UTsh;
42  myOffset = 0;
43  myInterior = false;
44  myTransferAttribs = true;
45  myStamppieces = false;
46  myPieceattrib = "piece"_UTsh;
47  myClipptattrib = "clippt"_UTsh;
48  myUseweightattrib = false;
49  myWeightattrib = "pscale"_UTsh;
50  myWeightMethod = 0;
51 
52  }
53 
54  explicit SOP_VoronoiSplitParms(const SOP_VoronoiSplitParms &) = default;
56  SOP_VoronoiSplitParms(SOP_VoronoiSplitParms &&) noexcept = default;
57  SOP_VoronoiSplitParms &operator=(SOP_VoronoiSplitParms &&) noexcept = default;
58 
59  ~SOP_VoronoiSplitParms() override {}
60 
62  {
63  if (myGroup != src.myGroup) return false;
64  if (myClipptsgrp != src.myClipptsgrp) return false;
65  if (myOffset != src.myOffset) return false;
66  if (myInterior != src.myInterior) return false;
67  if (myTransferAttribs != src.myTransferAttribs) return false;
68  if (myStamppieces != src.myStamppieces) return false;
69  if (myPieceattrib != src.myPieceattrib) return false;
70  if (myClipptattrib != src.myClipptattrib) return false;
71  if (myUseweightattrib != src.myUseweightattrib) return false;
72  if (myWeightattrib != src.myWeightattrib) return false;
73  if (myWeightMethod != src.myWeightMethod) return false;
74 
75  return true;
76  }
78  {
79  return !operator==(src);
80  }
82 
83 
84 
85  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
86  {
87  myGroup = ""_UTsh;
88  if (true)
89  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
90  myClipptsgrp = ""_UTsh;
91  if (true)
92  graph->evalOpParm(myClipptsgrp, nodeidx, "clipptsgrp", time, 0);
93  myOffset = 0;
94  if (true)
95  graph->evalOpParm(myOffset, nodeidx, "offset", time, 0);
96  myInterior = false;
97  if (true)
98  graph->evalOpParm(myInterior, nodeidx, "interior", time, 0);
99  myTransferAttribs = true;
100  if (true && ( (true&&!(((getInterior()==0))||((getInterior()==0)))) ) )
101  graph->evalOpParm(myTransferAttribs, nodeidx, "transferattribs", time, 0);
102  myStamppieces = false;
103  if (true)
104  graph->evalOpParm(myStamppieces, nodeidx, "stamppieces", time, 0);
105  myPieceattrib = "piece"_UTsh;
106  if (true && ( (true&&!(((getStamppieces()==0)))) ) )
107  graph->evalOpParm(myPieceattrib, nodeidx, "pieceattrib", time, 0);
108  myClipptattrib = "clippt"_UTsh;
109  if (true && ( (true&&!(((getStamppieces()==0))||((getInterior()==0)))) ) )
110  graph->evalOpParm(myClipptattrib, nodeidx, "clipptattrib", time, 0);
111  myUseweightattrib = false;
112  if (true)
113  graph->evalOpParm(myUseweightattrib, nodeidx, "useweightattrib", time, 0);
114  myWeightattrib = "pscale"_UTsh;
115  if (true && ( (true&&!(((getUseweightattrib()==0)))) ) )
116  graph->evalOpParm(myWeightattrib, nodeidx, "weightattrib", time, 0);
117  myWeightMethod = 0;
118  if (true && ( (true&&!(((getUseweightattrib()==0)))) ) )
119  graph->evalOpParm(myWeightMethod, nodeidx, "weightmethod", 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 OP_NodeParms *src) override
131  {
132  *this = *((const SOP_VoronoiSplitParms *)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, myClipptsgrp);
151  break;
152  case 2:
153  coerceValue(value, myOffset);
154  break;
155  case 3:
156  coerceValue(value, myInterior);
157  break;
158  case 4:
159  coerceValue(value, myTransferAttribs);
160  break;
161  case 5:
162  coerceValue(value, myStamppieces);
163  break;
164  case 6:
165  coerceValue(value, myPieceattrib);
166  break;
167  case 7:
168  coerceValue(value, myClipptattrib);
169  break;
170  case 8:
171  coerceValue(value, myUseweightattrib);
172  break;
173  case 9:
174  coerceValue(value, myWeightattrib);
175  break;
176  case 10:
177  coerceValue(value, myWeightMethod);
178  break;
179 
180  }
181  }
182 
183  bool isParmColorRamp(exint idx) const override
184  {
185  switch (idx)
186  {
187 
188  }
189  return false;
190  }
191 
192  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
213  { doGetParmValue(idx, instance, value); }
214 
215  template <typename T>
216  void
217  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
218  {
219  if (idx.size() < 1)
220  return;
221  UT_ASSERT(idx.size() == instance.size()+1);
222  if (idx.size() != instance.size()+1)
223  return;
224  switch (idx[0])
225  {
226  case 0:
227  coerceValue(myGroup, ( ( value ) ));
228  break;
229  case 1:
230  coerceValue(myClipptsgrp, ( ( value ) ));
231  break;
232  case 2:
233  coerceValue(myOffset, ( ( value ) ));
234  break;
235  case 3:
236  coerceValue(myInterior, ( ( value ) ));
237  break;
238  case 4:
239  coerceValue(myTransferAttribs, ( ( value ) ));
240  break;
241  case 5:
242  coerceValue(myStamppieces, ( ( value ) ));
243  break;
244  case 6:
245  coerceValue(myPieceattrib, ( ( value ) ));
246  break;
247  case 7:
248  coerceValue(myClipptattrib, ( ( value ) ));
249  break;
250  case 8:
251  coerceValue(myUseweightattrib, ( ( value ) ));
252  break;
253  case 9:
254  coerceValue(myWeightattrib, ( ( value ) ));
255  break;
256  case 10:
257  coerceValue(myWeightMethod, clampMinValue(0, clampMaxValue(1, value ) ));
258  break;
259 
260  }
261  }
262 
263  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
284  { doSetParmValue(idx, instance, value); }
285 
286  exint getNestNumParms(TempIndex idx) const override
287  {
288  if (idx.size() == 0)
289  return 11;
290  switch (idx[0])
291  {
292 
293  }
294  // Invalid
295  return 0;
296  }
297 
298  const char *getNestParmName(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return 0;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return "group";
306  case 1:
307  return "clipptsgrp";
308  case 2:
309  return "offset";
310  case 3:
311  return "interior";
312  case 4:
313  return "transferattribs";
314  case 5:
315  return "stamppieces";
316  case 6:
317  return "pieceattrib";
318  case 7:
319  return "clipptattrib";
320  case 8:
321  return "useweightattrib";
322  case 9:
323  return "weightattrib";
324  case 10:
325  return "weightmethod";
326 
327  }
328  return 0;
329  }
330 
331  ParmType getNestParmType(TempIndex fieldnum) const override
332  {
333  if (fieldnum.size() < 1)
334  return PARM_UNSUPPORTED;
335  switch (fieldnum[0])
336  {
337  case 0:
338  return PARM_STRING;
339  case 1:
340  return PARM_STRING;
341  case 2:
342  return PARM_FLOAT;
343  case 3:
344  return PARM_INTEGER;
345  case 4:
346  return PARM_INTEGER;
347  case 5:
348  return PARM_INTEGER;
349  case 6:
350  return PARM_STRING;
351  case 7:
352  return PARM_STRING;
353  case 8:
354  return PARM_INTEGER;
355  case 9:
356  return PARM_STRING;
357  case 10:
358  return PARM_INTEGER;
359 
360  }
361  return PARM_UNSUPPORTED;
362  }
363 
364  // Boiler plate to load individual types.
365  static void loadData(UT_IStream &is, int64 &v)
366  { is.bread(&v, 1); }
367  static void loadData(UT_IStream &is, bool &v)
368  { int64 iv; is.bread(&iv, 1); v = iv; }
369  static void loadData(UT_IStream &is, fpreal64 &v)
370  { is.bread<fpreal64>(&v, 1); }
371  static void loadData(UT_IStream &is, UT_Vector2D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix2D &v)
380  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix3D &v)
382  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix4D &v)
384  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Vector2I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector3I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector4I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
394  { is.bread(v); }
396  { UT_StringHolder rampdata;
397  loadData(is, rampdata);
398  if (rampdata.isstring())
399  {
400  v.reset(new UT_Ramp());
401  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
402  v->load(istr);
403  }
404  else v.reset();
405  }
408  loadData(is, data);
409  if (data.isstring())
410  {
411  // Find the data type.
412  const char *colon = UT_StringWrap(data).findChar(':');
413  if (colon)
414  {
415  int typelen = colon - data.buffer();
417  type.strncpy(data.buffer(), typelen);
418  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
419 
420  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
421  }
422  }
423  else v.reset();
424  }
425 
426  static void saveData(std::ostream &os, int64 v)
427  { UTwrite(os, &v); }
428  static void saveData(std::ostream &os, bool v)
429  { int64 iv = v; UTwrite(os, &iv); }
430  static void saveData(std::ostream &os, fpreal64 v)
431  { UTwrite<fpreal64>(os, &v); }
432  static void saveData(std::ostream &os, UT_Vector2D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
434  static void saveData(std::ostream &os, UT_Vector3D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); }
437  static void saveData(std::ostream &os, UT_Vector4D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
440  static void saveData(std::ostream &os, UT_Matrix2D v)
442  static void saveData(std::ostream &os, UT_Matrix3D v)
444  static void saveData(std::ostream &os, UT_Matrix4D v)
446  static void saveData(std::ostream &os, UT_StringHolder s)
447  { UT_StringWrap(s).saveBinary(os); }
448  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
450  UT_OStringStream ostr;
451  if (s) s->save(ostr);
452  result = ostr.str();
453  saveData(os, result);
454  }
455  static void saveData(std::ostream &os, PRM_DataItemHandle s)
457  UT_OStringStream ostr;
458  if (s)
459  {
460  ostr << s->getDataTypeToken();
461  ostr << ":";
462  s->saveBinary(ostr);
463  }
464  result = ostr.str();
465  saveData(os, result);
466  }
467 
468 
469  void save(std::ostream &os) const
470  {
471  int32 v = version();
472  UTwrite(os, &v);
473  saveData(os, myGroup);
474  saveData(os, myClipptsgrp);
475  saveData(os, myOffset);
476  saveData(os, myInterior);
477  saveData(os, myTransferAttribs);
478  saveData(os, myStamppieces);
479  saveData(os, myPieceattrib);
480  saveData(os, myClipptattrib);
481  saveData(os, myUseweightattrib);
482  saveData(os, myWeightattrib);
483  saveData(os, myWeightMethod);
484 
485  }
486 
487  bool load(UT_IStream &is)
488  {
489  int32 v;
490  is.bread(&v, 1);
491  if (version() != v)
492  {
493  // Fail incompatible versions
494  return false;
495  }
496  loadData(is, myGroup);
497  loadData(is, myClipptsgrp);
498  loadData(is, myOffset);
499  loadData(is, myInterior);
500  loadData(is, myTransferAttribs);
501  loadData(is, myStamppieces);
502  loadData(is, myPieceattrib);
503  loadData(is, myClipptattrib);
504  loadData(is, myUseweightattrib);
505  loadData(is, myWeightattrib);
506  loadData(is, myWeightMethod);
507 
508  return true;
509  }
510 
511  const UT_StringHolder & getGroup() const { return myGroup; }
512  void setGroup(const UT_StringHolder & val) { myGroup = val; }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getGroup();
518  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
519  return result;
520  }
521  const UT_StringHolder & getClipptsgrp() const { return myClipptsgrp; }
522  void setClipptsgrp(const UT_StringHolder & val) { myClipptsgrp = val; }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getClipptsgrp();
528  OP_Utils::evalOpParm(result, thissop, "clipptsgrp", cookparms.getCookTime(), 0);
529  return result;
530  }
531  fpreal64 getOffset() const { return myOffset; }
532  void setOffset(fpreal64 val) { myOffset = val; }
533  fpreal64 opOffset(const SOP_NodeVerb::CookParms &cookparms) const
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getOffset();
538  OP_Utils::evalOpParm(result, thissop, "offset", cookparms.getCookTime(), 0);
539  return result;
540  }
541  bool getInterior() const { return myInterior; }
542  void setInterior(bool val) { myInterior = val; }
543  bool opInterior(const SOP_NodeVerb::CookParms &cookparms) const
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getInterior();
547  bool result;
548  OP_Utils::evalOpParm(result, thissop, "interior", cookparms.getCookTime(), 0);
549  return result;
550  }
551  bool getTransferAttribs() const { return myTransferAttribs; }
552  void setTransferAttribs(bool val) { myTransferAttribs = val; }
553  bool opTransferAttribs(const SOP_NodeVerb::CookParms &cookparms) const
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getTransferAttribs();
557  bool result;
558  OP_Utils::evalOpParm(result, thissop, "transferattribs", cookparms.getCookTime(), 0);
559  return result;
560  }
561  bool getStamppieces() const { return myStamppieces; }
562  void setStamppieces(bool val) { myStamppieces = val; }
563  bool opStamppieces(const SOP_NodeVerb::CookParms &cookparms) const
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getStamppieces();
567  bool result;
568  OP_Utils::evalOpParm(result, thissop, "stamppieces", cookparms.getCookTime(), 0);
569  return result;
570  }
571  const UT_StringHolder & getPieceattrib() const { return myPieceattrib; }
572  void setPieceattrib(const UT_StringHolder & val) { myPieceattrib = val; }
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getPieceattrib();
578  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
579  return result;
580  }
581  const UT_StringHolder & getClipptattrib() const { return myClipptattrib; }
582  void setClipptattrib(const UT_StringHolder & val) { myClipptattrib = val; }
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getClipptattrib();
588  OP_Utils::evalOpParm(result, thissop, "clipptattrib", cookparms.getCookTime(), 0);
589  return result;
590  }
591  bool getUseweightattrib() const { return myUseweightattrib; }
592  void setUseweightattrib(bool val) { myUseweightattrib = val; }
593  bool opUseweightattrib(const SOP_NodeVerb::CookParms &cookparms) const
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getUseweightattrib();
597  bool result;
598  OP_Utils::evalOpParm(result, thissop, "useweightattrib", cookparms.getCookTime(), 0);
599  return result;
600  }
601  const UT_StringHolder & getWeightattrib() const { return myWeightattrib; }
602  void setWeightattrib(const UT_StringHolder & val) { myWeightattrib = val; }
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return getWeightattrib();
608  OP_Utils::evalOpParm(result, thissop, "weightattrib", cookparms.getCookTime(), 0);
609  return result;
610  }
611  WeightMethod getWeightMethod() const { return WeightMethod(myWeightMethod); }
612  void setWeightMethod(WeightMethod val) { myWeightMethod = int64(val); }
614  {
615  SOP_Node *thissop = cookparms.getNode();
616  if (!thissop) return getWeightMethod();
617  int64 result;
618  OP_Utils::evalOpParm(result, thissop, "weightmethod", cookparms.getCookTime(), 0);
619  return WeightMethod(result);
620  }
621 
622 private:
623  UT_StringHolder myGroup;
624  UT_StringHolder myClipptsgrp;
625  fpreal64 myOffset;
626  bool myInterior;
627  bool myTransferAttribs;
628  bool myStamppieces;
629  UT_StringHolder myPieceattrib;
630  UT_StringHolder myClipptattrib;
631  bool myUseweightattrib;
632  UT_StringHolder myWeightattrib;
633  int64 myWeightMethod;
634 
635 };
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)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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
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)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
bool load(UT_IStream &is)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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)
OP_NodeParms & operator=(const OP_NodeParms &)=default
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