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