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