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