HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribInterpolate.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_AttribInterpolateEnums
24 {
25  enum class Totype
26  {
27  POINTS = 0,
28  VERTICES,
29  PRIMS,
30  DETAIL
31  };
32  enum class Interpby
33  {
34  PRIMUVW = 0,
38  };
39  enum class Computenumberstype
40  {
41  NUMBERTYPEPOINT = 0,
43  };
44 }
45 
46 
48 {
49 public:
50  static int version() { return 1; }
51 
53  {
54  myTotype = 0;
55  myInterpby = 0;
56  myNumberattrib = "sourceprim"_sh;
57  myWeightsattrib = "sourceprimuv"_sh;
58  myPointattribs = "*"_sh;
59  myVertattribs = ""_sh;
60  myPrimattribs = ""_sh;
61  myDetailattribs = ""_sh;
62  myComputeweights = false;
63  myComputenumberstype = 1;
64  myComputednumbersattrib = "sourcevtxnums"_sh;
65  myComputedweightsattrib = "sourcevtxweights"_sh;
66  myGroup = ""_sh;
67 
68  }
69 
70  explicit SOP_AttribInterpolateParms(const SOP_AttribInterpolateParms &) = default;
71 
73 
75  {
76  if (myTotype != src.myTotype) return false;
77  if (myInterpby != src.myInterpby) return false;
78  if (myNumberattrib != src.myNumberattrib) return false;
79  if (myWeightsattrib != src.myWeightsattrib) return false;
80  if (myPointattribs != src.myPointattribs) return false;
81  if (myVertattribs != src.myVertattribs) return false;
82  if (myPrimattribs != src.myPrimattribs) return false;
83  if (myDetailattribs != src.myDetailattribs) return false;
84  if (myComputeweights != src.myComputeweights) return false;
85  if (myComputenumberstype != src.myComputenumberstype) return false;
86  if (myComputednumbersattrib != src.myComputednumbersattrib) return false;
87  if (myComputedweightsattrib != src.myComputedweightsattrib) return false;
88  if (myGroup != src.myGroup) return false;
89 
90  return true;
91  }
93  {
94  return !operator==(src);
95  }
99 
100 
101 
102  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
103  {
104  myTotype = 0;
105  if (true)
106  graph->evalOpParm(myTotype, nodeidx, "totype", time, 0);
107  myInterpby = 0;
108  if (true)
109  graph->evalOpParm(myInterpby, nodeidx, "interpby", time, 0);
110  myNumberattrib = "sourceprim"_sh;
111  if (true)
112  graph->evalOpParm(myNumberattrib, nodeidx, "numberattrib", time, 0);
113  myWeightsattrib = "sourceprimuv"_sh;
114  if (true)
115  graph->evalOpParm(myWeightsattrib, nodeidx, "weightsattrib", time, 0);
116  myPointattribs = "*"_sh;
117  if (true && ( (!(((int64(getInterpby())==3)))) ) )
118  graph->evalOpParm(myPointattribs, nodeidx, "pointattribs", time, 0);
119  myVertattribs = ""_sh;
120  if (true && ( (!(((int64(getInterpby())==3))||((int64(getInterpby())==1)))) ) )
121  graph->evalOpParm(myVertattribs, nodeidx, "vertattribs", time, 0);
122  myPrimattribs = ""_sh;
123  if (true && ( (!(((int64(getInterpby())==1)))) ) )
124  graph->evalOpParm(myPrimattribs, nodeidx, "primattribs", time, 0);
125  myDetailattribs = ""_sh;
126  if (true)
127  graph->evalOpParm(myDetailattribs, nodeidx, "detailattribs", time, 0);
128  myComputeweights = false;
129  if (true && ( (!(((int64(getInterpby())!=0)))) ) )
130  graph->evalOpParm(myComputeweights, nodeidx, "computeweights", time, 0);
131  myComputenumberstype = 1;
132  if (true && ( (!(((int64(getInterpby())!=0))||((getComputeweights()==0)))) ) )
133  graph->evalOpParm(myComputenumberstype, nodeidx, "computenumberstype", time, 0);
134  myComputednumbersattrib = "sourcevtxnums"_sh;
135  if (true && ( (!(((int64(getInterpby())!=0))||((getComputeweights()==0)))) ) )
136  graph->evalOpParm(myComputednumbersattrib, nodeidx, "computednumbersattrib", time, 0);
137  myComputedweightsattrib = "sourcevtxweights"_sh;
138  if (true && ( (!(((int64(getInterpby())!=0))||((getComputeweights()==0)))) ) )
139  graph->evalOpParm(myComputedweightsattrib, nodeidx, "computedweightsattrib", time, 0);
140  myGroup = ""_sh;
141  if (true && ( (!(((int64(getTotype())==3)))) ) )
142  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
143 
144  }
145 
146 
147  void loadFromOpSubclass(const LoadParms &loadparms) override
148  {
149  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
150  }
151 
152 
153  void copyFrom(const SOP_NodeParms *src) override
154  {
155  *this = *((const SOP_AttribInterpolateParms *)src);
156  }
157 
158  template <typename T>
159  void
160  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
161  {
162  if (idx.size() < 1)
163  return;
164  UT_ASSERT(idx.size() == instance.size()+1);
165  if (idx.size() != instance.size()+1)
166  return;
167  switch (idx[0])
168  {
169  case 0:
170  coerceValue(value, myTotype);
171  break;
172  case 1:
173  coerceValue(value, myInterpby);
174  break;
175  case 2:
176  coerceValue(value, myNumberattrib);
177  break;
178  case 3:
179  coerceValue(value, myWeightsattrib);
180  break;
181  case 4:
182  coerceValue(value, myPointattribs);
183  break;
184  case 5:
185  coerceValue(value, myVertattribs);
186  break;
187  case 6:
188  coerceValue(value, myPrimattribs);
189  break;
190  case 7:
191  coerceValue(value, myDetailattribs);
192  break;
193  case 8:
194  coerceValue(value, myComputeweights);
195  break;
196  case 9:
197  coerceValue(value, myComputenumberstype);
198  break;
199  case 10:
200  coerceValue(value, myComputednumbersattrib);
201  break;
202  case 11:
203  coerceValue(value, myComputedweightsattrib);
204  break;
205  case 12:
206  coerceValue(value, myGroup);
207  break;
208 
209  }
210  }
211 
212  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
233  { doGetParmValue(idx, instance, value); }
234 
235  template <typename T>
236  void
237  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
238  {
239  if (idx.size() < 1)
240  return;
241  UT_ASSERT(idx.size() == instance.size()+1);
242  if (idx.size() != instance.size()+1)
243  return;
244  switch (idx[0])
245  {
246  case 0:
247  coerceValue(myTotype, value);
248  break;
249  case 1:
250  coerceValue(myInterpby, value);
251  break;
252  case 2:
253  coerceValue(myNumberattrib, value);
254  break;
255  case 3:
256  coerceValue(myWeightsattrib, value);
257  break;
258  case 4:
259  coerceValue(myPointattribs, value);
260  break;
261  case 5:
262  coerceValue(myVertattribs, value);
263  break;
264  case 6:
265  coerceValue(myPrimattribs, value);
266  break;
267  case 7:
268  coerceValue(myDetailattribs, value);
269  break;
270  case 8:
271  coerceValue(myComputeweights, value);
272  break;
273  case 9:
274  coerceValue(myComputenumberstype, value);
275  break;
276  case 10:
277  coerceValue(myComputednumbersattrib, value);
278  break;
279  case 11:
280  coerceValue(myComputedweightsattrib, value);
281  break;
282  case 12:
283  coerceValue(myGroup, value);
284  break;
285 
286  }
287  }
288 
289  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
296  { doSetParmValue(idx, instance, value); }
297  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
298  { doSetParmValue(idx, instance, value); }
299  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
300  { doSetParmValue(idx, instance, value); }
301  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
302  { doSetParmValue(idx, instance, value); }
303  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
304  { doSetParmValue(idx, instance, value); }
305  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
306  { doSetParmValue(idx, instance, value); }
307  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
308  { doSetParmValue(idx, instance, value); }
309  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
310  { doSetParmValue(idx, instance, value); }
311 
312  exint getNestNumParms(TempIndex idx) const override
313  {
314  if (idx.size() == 0)
315  return 13;
316  switch (idx[0])
317  {
318 
319  }
320  // Invalid
321  return 0;
322  }
323 
324  const char *getNestParmName(TempIndex fieldnum) const override
325  {
326  if (fieldnum.size() < 1)
327  return 0;
328  switch (fieldnum[0])
329  {
330  case 0:
331  return "totype";
332  case 1:
333  return "interpby";
334  case 2:
335  return "numberattrib";
336  case 3:
337  return "weightsattrib";
338  case 4:
339  return "pointattribs";
340  case 5:
341  return "vertattribs";
342  case 6:
343  return "primattribs";
344  case 7:
345  return "detailattribs";
346  case 8:
347  return "computeweights";
348  case 9:
349  return "computenumberstype";
350  case 10:
351  return "computednumbersattrib";
352  case 11:
353  return "computedweightsattrib";
354  case 12:
355  return "group";
356 
357  }
358  return 0;
359  }
360 
361  ParmType getNestParmType(TempIndex fieldnum) const override
362  {
363  if (fieldnum.size() < 1)
364  return PARM_UNSUPPORTED;
365  switch (fieldnum[0])
366  {
367  case 0:
368  return PARM_INTEGER;
369  case 1:
370  return PARM_INTEGER;
371  case 2:
372  return PARM_STRING;
373  case 3:
374  return PARM_STRING;
375  case 4:
376  return PARM_STRING;
377  case 5:
378  return PARM_STRING;
379  case 6:
380  return PARM_STRING;
381  case 7:
382  return PARM_STRING;
383  case 8:
384  return PARM_INTEGER;
385  case 9:
386  return PARM_INTEGER;
387  case 10:
388  return PARM_STRING;
389  case 11:
390  return PARM_STRING;
391  case 12:
392  return PARM_STRING;
393 
394  }
395  return PARM_UNSUPPORTED;
396  }
397 
398  // Boiler plate to load individual types.
399  static void loadData(UT_IStream &is, int64 &v)
400  { is.bread(&v, 1); }
401  static void loadData(UT_IStream &is, bool &v)
402  { int64 iv; is.bread(&iv, 1); v = iv; }
403  static void loadData(UT_IStream &is, fpreal64 &v)
404  { is.bread<fpreal64>(&v, 1); }
405  static void loadData(UT_IStream &is, UT_Vector2D &v)
406  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
407  static void loadData(UT_IStream &is, UT_Vector3D &v)
408  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
409  is.bread<fpreal64>(&v.z(), 1); }
410  static void loadData(UT_IStream &is, UT_Vector4D &v)
411  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
412  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
413  static void loadData(UT_IStream &is, UT_Matrix2D &v)
414  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
415  static void loadData(UT_IStream &is, UT_Matrix3D &v)
416  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
417  static void loadData(UT_IStream &is, UT_Matrix4D &v)
418  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
419  static void loadData(UT_IStream &is, UT_Vector2I &v)
420  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
421  static void loadData(UT_IStream &is, UT_Vector3I &v)
422  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
423  is.bread<int64>(&v.z(), 1); }
424  static void loadData(UT_IStream &is, UT_Vector4I &v)
425  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
426  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
428  { is.bread(v); }
430  { UT_StringHolder rampdata;
431  loadData(is, rampdata);
432  if (rampdata.isstring())
433  {
434  v.reset(new UT_Ramp());
435  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
436  v->load(istr);
437  }
438  else v.reset();
439  }
442  loadData(is, data);
443  if (data.isstring())
444  {
445  // Find the data type.
446  const char *colon = UT_StringWrap(data).findChar(':');
447  if (colon)
448  {
449  int typelen = colon - data.buffer();
451  type.strncpy(data.buffer(), typelen);
452  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
453 
454  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
455  }
456  }
457  else v.reset();
458  }
459 
460  static void saveData(std::ostream &os, int64 v)
461  { UTwrite(os, &v); }
462  static void saveData(std::ostream &os, bool v)
463  { int64 iv = v; UTwrite(os, &iv); }
464  static void saveData(std::ostream &os, fpreal64 v)
465  { UTwrite<fpreal64>(os, &v); }
466  static void saveData(std::ostream &os, UT_Vector2D v)
467  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
468  static void saveData(std::ostream &os, UT_Vector3D v)
469  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
470  UTwrite<fpreal64>(os, &v.z()); }
471  static void saveData(std::ostream &os, UT_Vector4D v)
472  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
473  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
474  static void saveData(std::ostream &os, UT_Matrix2D v)
476  static void saveData(std::ostream &os, UT_Matrix3D v)
478  static void saveData(std::ostream &os, UT_Matrix4D v)
480  static void saveData(std::ostream &os, UT_StringHolder s)
481  { UT_StringWrap(s).saveBinary(os); }
482  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
484  UT_OStringStream ostr;
485  if (s) s->save(ostr);
486  result = ostr.str();
487  saveData(os, result);
488  }
489  static void saveData(std::ostream &os, PRM_DataItemHandle s)
491  UT_OStringStream ostr;
492  if (s)
493  {
494  ostr << s->getDataTypeToken();
495  ostr << ":";
496  s->saveBinary(ostr);
497  }
498  result = ostr.str();
499  saveData(os, result);
500  }
501 
502 
503  void save(std::ostream &os) const
504  {
505  int32 v = version();
506  UTwrite(os, &v);
507  saveData(os, myTotype);
508  saveData(os, myInterpby);
509  saveData(os, myNumberattrib);
510  saveData(os, myWeightsattrib);
511  saveData(os, myPointattribs);
512  saveData(os, myVertattribs);
513  saveData(os, myPrimattribs);
514  saveData(os, myDetailattribs);
515  saveData(os, myComputeweights);
516  saveData(os, myComputenumberstype);
517  saveData(os, myComputednumbersattrib);
518  saveData(os, myComputedweightsattrib);
519  saveData(os, myGroup);
520 
521  }
522 
523  bool load(UT_IStream &is)
524  {
525  int32 v;
526  is.bread(&v, 1);
527  if (version() != v)
528  {
529  // Fail incompatible versions
530  return false;
531  }
532  loadData(is, myTotype);
533  loadData(is, myInterpby);
534  loadData(is, myNumberattrib);
535  loadData(is, myWeightsattrib);
536  loadData(is, myPointattribs);
537  loadData(is, myVertattribs);
538  loadData(is, myPrimattribs);
539  loadData(is, myDetailattribs);
540  loadData(is, myComputeweights);
541  loadData(is, myComputenumberstype);
542  loadData(is, myComputednumbersattrib);
543  loadData(is, myComputedweightsattrib);
544  loadData(is, myGroup);
545 
546  return true;
547  }
548 
549  Totype getTotype() const { return Totype(myTotype); }
550  void setTotype(Totype val) { myTotype = int64(val); }
551  Totype opTotype(const SOP_NodeVerb::CookParms &cookparms) const
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getTotype();
555  int64 result;
556  OP_Utils::evalOpParm(result, thissop, "totype", cookparms.getCookTime(), 0);
557  return Totype(result);
558  }
559  Interpby getInterpby() const { return Interpby(myInterpby); }
560  void setInterpby(Interpby val) { myInterpby = int64(val); }
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getInterpby();
565  int64 result;
566  OP_Utils::evalOpParm(result, thissop, "interpby", cookparms.getCookTime(), 0);
567  return Interpby(result);
568  }
569  const UT_StringHolder & getNumberattrib() const { return myNumberattrib; }
570  void setNumberattrib(const UT_StringHolder & val) { myNumberattrib = val; }
572  {
573  SOP_Node *thissop = cookparms.getNode();
574  if (!thissop) return getNumberattrib();
576  OP_Utils::evalOpParm(result, thissop, "numberattrib", cookparms.getCookTime(), 0);
577  return result;
578  }
579  const UT_StringHolder & getWeightsattrib() const { return myWeightsattrib; }
580  void setWeightsattrib(const UT_StringHolder & val) { myWeightsattrib = val; }
582  {
583  SOP_Node *thissop = cookparms.getNode();
584  if (!thissop) return getWeightsattrib();
586  OP_Utils::evalOpParm(result, thissop, "weightsattrib", cookparms.getCookTime(), 0);
587  return result;
588  }
589  const UT_StringHolder & getPointattribs() const { return myPointattribs; }
590  void setPointattribs(const UT_StringHolder & val) { myPointattribs = val; }
592  {
593  SOP_Node *thissop = cookparms.getNode();
594  if (!thissop) return getPointattribs();
596  OP_Utils::evalOpParm(result, thissop, "pointattribs", cookparms.getCookTime(), 0);
597  return result;
598  }
599  const UT_StringHolder & getVertattribs() const { return myVertattribs; }
600  void setVertattribs(const UT_StringHolder & val) { myVertattribs = val; }
602  {
603  SOP_Node *thissop = cookparms.getNode();
604  if (!thissop) return getVertattribs();
606  OP_Utils::evalOpParm(result, thissop, "vertattribs", cookparms.getCookTime(), 0);
607  return result;
608  }
609  const UT_StringHolder & getPrimattribs() const { return myPrimattribs; }
610  void setPrimattribs(const UT_StringHolder & val) { myPrimattribs = val; }
612  {
613  SOP_Node *thissop = cookparms.getNode();
614  if (!thissop) return getPrimattribs();
616  OP_Utils::evalOpParm(result, thissop, "primattribs", cookparms.getCookTime(), 0);
617  return result;
618  }
619  const UT_StringHolder & getDetailattribs() const { return myDetailattribs; }
620  void setDetailattribs(const UT_StringHolder & val) { myDetailattribs = val; }
622  {
623  SOP_Node *thissop = cookparms.getNode();
624  if (!thissop) return getDetailattribs();
626  OP_Utils::evalOpParm(result, thissop, "detailattribs", cookparms.getCookTime(), 0);
627  return result;
628  }
629  bool getComputeweights() const { return myComputeweights; }
630  void setComputeweights(bool val) { myComputeweights = val; }
631  bool opComputeweights(const SOP_NodeVerb::CookParms &cookparms) const
632  {
633  SOP_Node *thissop = cookparms.getNode();
634  if (!thissop) return getComputeweights();
635  bool result;
636  OP_Utils::evalOpParm(result, thissop, "computeweights", cookparms.getCookTime(), 0);
637  return result;
638  }
639  Computenumberstype getComputenumberstype() const { return Computenumberstype(myComputenumberstype); }
640  void setComputenumberstype(Computenumberstype val) { myComputenumberstype = int64(val); }
642  {
643  SOP_Node *thissop = cookparms.getNode();
644  if (!thissop) return getComputenumberstype();
645  int64 result;
646  OP_Utils::evalOpParm(result, thissop, "computenumberstype", cookparms.getCookTime(), 0);
647  return Computenumberstype(result);
648  }
649  const UT_StringHolder & getComputednumbersattrib() const { return myComputednumbersattrib; }
650  void setComputednumbersattrib(const UT_StringHolder & val) { myComputednumbersattrib = val; }
652  {
653  SOP_Node *thissop = cookparms.getNode();
654  if (!thissop) return getComputednumbersattrib();
656  OP_Utils::evalOpParm(result, thissop, "computednumbersattrib", cookparms.getCookTime(), 0);
657  return result;
658  }
659  const UT_StringHolder & getComputedweightsattrib() const { return myComputedweightsattrib; }
660  void setComputedweightsattrib(const UT_StringHolder & val) { myComputedweightsattrib = val; }
662  {
663  SOP_Node *thissop = cookparms.getNode();
664  if (!thissop) return getComputedweightsattrib();
666  OP_Utils::evalOpParm(result, thissop, "computedweightsattrib", cookparms.getCookTime(), 0);
667  return result;
668  }
669  const UT_StringHolder & getGroup() const { return myGroup; }
670  void setGroup(const UT_StringHolder & val) { myGroup = val; }
672  {
673  SOP_Node *thissop = cookparms.getNode();
674  if (!thissop) return getGroup();
676  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
677  return result;
678  }
679 
680 private:
681  int64 myTotype;
682  int64 myInterpby;
683  UT_StringHolder myNumberattrib;
684  UT_StringHolder myWeightsattrib;
685  UT_StringHolder myPointattribs;
686  UT_StringHolder myVertattribs;
687  UT_StringHolder myPrimattribs;
688  UT_StringHolder myDetailattribs;
689  bool myComputeweights;
690  int64 myComputenumberstype;
691  UT_StringHolder myComputednumbersattrib;
692  UT_StringHolder myComputedweightsattrib;
693  UT_StringHolder myGroup;
694 
695 };
GLdouble s
Definition: glew.h:1390
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setComputedweightsattrib(const UT_StringHolder &val)
void setPrimattribs(const UT_StringHolder &val)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opComputednumbersattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setWeightsattrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint bread(int32 *buffer, exint asize=1)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_StringHolder opPrimattribs(const SOP_NodeVerb::CookParms &cookparms) const
GLuint const GLfloat * val
Definition: glew.h:2794
static void loadData(UT_IStream &is, UT_Matrix3D &v)
const UT_StringHolder & getNumberattrib() const
int64 exint
Definition: SYS_Types.h:125
bool operator!=(const SOP_AttribInterpolateParms &src) const
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const UT_StringHolder & getGroup() const
bool opComputeweights(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opNumberattrib(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const GLdouble * v
Definition: glew.h:1391
const char * getNestParmName(TempIndex fieldnum) const override
Totype opTotype(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector4D &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, PRM_DataItemHandle &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setComputednumbersattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void save(std::ostream &os) const
double fpreal64
Definition: SYS_Types.h:201
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
static void loadData(UT_IStream &is, UT_Matrix4D &v)
exint length() const
UT_StringHolder opPointattribs(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
const UT_StringHolder & getPrimattribs() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void saveData(std::ostream &os, UT_Matrix2D v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_Matrix4D v)
const GLfloat * c
Definition: glew.h:16296
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
UT_StringHolder opWeightsattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setPointattribs(const UT_StringHolder &val)
const UT_StringHolder & getComputednumbersattrib() const
const UT_StringHolder & getWeightsattrib() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const UT_StringHolder & getComputedweightsattrib() const
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const UT_StringHolder & getVertattribs() const
void setVertattribs(const UT_StringHolder &val)
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
Computenumberstype getComputenumberstype() const
static void saveData(std::ostream &os, UT_Vector2D v)
UT_StringHolder opComputedweightsattrib(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getDetailattribs() const
exint getNestNumParms(TempIndex idx) const override
void copyFrom(const SOP_NodeParms *src) override
Computenumberstype opComputenumberstype(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
Interpby opInterpby(const SOP_NodeVerb::CookParms &cookparms) const
#define SOP_API
Definition: SOP_API.h:10
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
UT_StringHolder opDetailattribs(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
const UT_StringHolder & getPointattribs() const
UT_StringHolder opVertattribs(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setDetailattribs(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
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
void setNumberattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE bool isstring() const
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
bool operator==(const SOP_AttribInterpolateParms &src) const
void setComputenumberstype(Computenumberstype val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
ParmType getNestParmType(TempIndex fieldnum) const override