HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribPromote.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_AttribPromoteEnums
24 {
25  enum class Inclass
26  {
27  DETAIL = 0,
28  PRIMITIVE,
29  POINT,
30  VERTEX
31  };
32 
34  getToken(Inclass enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Inclass::DETAIL: return "detail"_sh;
39  case Inclass::PRIMITIVE: return "primitive"_sh;
40  case Inclass::POINT: return "point"_sh;
41  case Inclass::VERTEX: return "vertex"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46  enum class Outclass
47  {
48  DETAIL = 0,
49  PRIMITIVE,
50  POINT,
51  VERTEX
52  };
53 
55  getToken(Outclass enum_value)
56  {
57  using namespace UT::Literal;
58  switch (enum_value) {
59  case Outclass::DETAIL: return "detail"_sh;
60  case Outclass::PRIMITIVE: return "primitive"_sh;
61  case Outclass::POINT: return "point"_sh;
62  case Outclass::VERTEX: return "vertex"_sh;
63  default: UT_ASSERT(false); return ""_sh;
64  }
65  }
66 
67  enum class Method
68  {
69  MAX = 0,
70  MIN,
71  MEAN,
72  MODE,
73  MEDIAN,
74  SUM,
75  SUMSQUARE,
76  RMS,
77  FIRST,
78  LAST,
79  ARRAY
80  };
81 
83  getToken(Method enum_value)
84  {
85  using namespace UT::Literal;
86  switch (enum_value) {
87  case Method::MAX: return "max"_sh;
88  case Method::MIN: return "min"_sh;
89  case Method::MEAN: return "mean"_sh;
90  case Method::MODE: return "mode"_sh;
91  case Method::MEDIAN: return "median"_sh;
92  case Method::SUM: return "sum"_sh;
93  case Method::SUMSQUARE: return "sumsquare"_sh;
94  case Method::RMS: return "rms"_sh;
95  case Method::FIRST: return "first"_sh;
96  case Method::LAST: return "last"_sh;
97  case Method::ARRAY: return "array"_sh;
98  default: UT_ASSERT(false); return ""_sh;
99  }
100  }
101 
102 }
103 
104 
106 {
107 public:
108  static int version() { return 1; }
109 
111  {
112  myInname = ""_UTsh;
113  myInclass = 2;
114  myOutclass = 2;
115  myUsePieceAttrib = false;
116  myPieceAttrib = "name"_UTsh;
117  myMethod = 2;
118  myUseoutname = false;
119  myOutname = ""_UTsh;
120  myDeletein = true;
121 
122  }
123 
124  explicit SOP_AttribPromoteParms(const SOP_AttribPromoteParms &) = default;
126  SOP_AttribPromoteParms(SOP_AttribPromoteParms &&) noexcept = default;
127  SOP_AttribPromoteParms &operator=(SOP_AttribPromoteParms &&) noexcept = default;
128 
129  ~SOP_AttribPromoteParms() override {}
130 
132  {
133  if (myInname != src.myInname) return false;
134  if (myInclass != src.myInclass) return false;
135  if (myOutclass != src.myOutclass) return false;
136  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
137  if (myPieceAttrib != src.myPieceAttrib) return false;
138  if (myMethod != src.myMethod) return false;
139  if (myUseoutname != src.myUseoutname) return false;
140  if (myOutname != src.myOutname) return false;
141  if (myDeletein != src.myDeletein) return false;
142 
143  return true;
144  }
146  {
147  return !operator==(src);
148  }
152 
153 
154 
155  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
156  {
157  myInname = ""_UTsh;
158  if (true)
159  graph->evalOpParm(myInname, nodeidx, "inname", time, 0);
160  myInclass = 2;
161  if (true)
162  graph->evalOpParm(myInclass, nodeidx, "inclass", time, 0);
163  myOutclass = 2;
164  if (true)
165  graph->evalOpParm(myOutclass, nodeidx, "outclass", time, 0);
166  myUsePieceAttrib = false;
167  if (true && ( (true&&!(((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
168  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, 0);
169  myPieceAttrib = "name"_UTsh;
170  if (true && ( (true&&!(((getUsePieceAttrib()==0))||((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
171  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
172  myMethod = 2;
173  if (true)
174  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
175  myUseoutname = false;
176  if (true)
177  graph->evalOpParm(myUseoutname, nodeidx, "useoutname", time, 0);
178  myOutname = ""_UTsh;
179  if (true && ( (true&&!(((getUseoutname()==0)))) ) )
180  graph->evalOpParm(myOutname, nodeidx, "outname", time, 0);
181  myDeletein = true;
182  if (true && ( (true&&!(((getUseoutname()==0)&&(int64(getInclass())==2)&&(int64(getOutclass())==3))||((getUseoutname()==0)&&(int64(getInclass())==3)&&(int64(getOutclass())==2)))) ) )
183  graph->evalOpParm(myDeletein, nodeidx, "deletein", time, 0);
184 
185  }
186 
187 
188  void loadFromOpSubclass(const LoadParms &loadparms) override
189  {
190  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
191  }
192 
193 
194  void copyFrom(const OP_NodeParms *src) override
195  {
196  *this = *((const SOP_AttribPromoteParms *)src);
197  }
198 
199  template <typename T>
200  void
201  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
202  {
203  if (idx.size() < 1)
204  return;
205  UT_ASSERT(idx.size() == instance.size()+1);
206  if (idx.size() != instance.size()+1)
207  return;
208  switch (idx[0])
209  {
210  case 0:
211  coerceValue(value, myInname);
212  break;
213  case 1:
214  coerceValue(value, myInclass);
215  break;
216  case 2:
217  coerceValue(value, myOutclass);
218  break;
219  case 3:
220  coerceValue(value, myUsePieceAttrib);
221  break;
222  case 4:
223  coerceValue(value, myPieceAttrib);
224  break;
225  case 5:
226  coerceValue(value, myMethod);
227  break;
228  case 6:
229  coerceValue(value, myUseoutname);
230  break;
231  case 7:
232  coerceValue(value, myOutname);
233  break;
234  case 8:
235  coerceValue(value, myDeletein);
236  break;
237 
238  }
239  }
240 
241  bool isParmColorRamp(exint idx) const override
242  {
243  switch (idx)
244  {
245 
246  }
247  return false;
248  }
249 
250  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
251  { doGetParmValue(idx, instance, value); }
252  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
253  { doGetParmValue(idx, instance, value); }
254  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
255  { doGetParmValue(idx, instance, value); }
256  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
257  { doGetParmValue(idx, instance, value); }
258  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
259  { doGetParmValue(idx, instance, value); }
260  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
261  { doGetParmValue(idx, instance, value); }
262  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
263  { doGetParmValue(idx, instance, value); }
264  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
265  { doGetParmValue(idx, instance, value); }
266  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
267  { doGetParmValue(idx, instance, value); }
268  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
269  { doGetParmValue(idx, instance, value); }
270  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
271  { doGetParmValue(idx, instance, value); }
272 
273  template <typename T>
274  void
275  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
276  {
277  if (idx.size() < 1)
278  return;
279  UT_ASSERT(idx.size() == instance.size()+1);
280  if (idx.size() != instance.size()+1)
281  return;
282  switch (idx[0])
283  {
284  case 0:
285  coerceValue(myInname, ( ( value ) ));
286  break;
287  case 1:
288  coerceValue(myInclass, clampMinValue(0, clampMaxValue(3, value ) ));
289  break;
290  case 2:
291  coerceValue(myOutclass, clampMinValue(0, clampMaxValue(3, value ) ));
292  break;
293  case 3:
294  coerceValue(myUsePieceAttrib, ( ( value ) ));
295  break;
296  case 4:
297  coerceValue(myPieceAttrib, ( ( value ) ));
298  break;
299  case 5:
300  coerceValue(myMethod, clampMinValue(0, clampMaxValue(10, value ) ));
301  break;
302  case 6:
303  coerceValue(myUseoutname, ( ( value ) ));
304  break;
305  case 7:
306  coerceValue(myOutname, ( ( value ) ));
307  break;
308  case 8:
309  coerceValue(myDeletein, ( ( value ) ));
310  break;
311 
312  }
313  }
314 
315  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
316  { doSetParmValue(idx, instance, value); }
317  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
318  { doSetParmValue(idx, instance, value); }
319  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
320  { doSetParmValue(idx, instance, value); }
321  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
322  { doSetParmValue(idx, instance, value); }
323  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
324  { doSetParmValue(idx, instance, value); }
325  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
326  { doSetParmValue(idx, instance, value); }
327  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
328  { doSetParmValue(idx, instance, value); }
329  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
330  { doSetParmValue(idx, instance, value); }
331  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
332  { doSetParmValue(idx, instance, value); }
333  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
334  { doSetParmValue(idx, instance, value); }
335  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
336  { doSetParmValue(idx, instance, value); }
337 
338  exint getNestNumParms(TempIndex idx) const override
339  {
340  if (idx.size() == 0)
341  return 9;
342  switch (idx[0])
343  {
344 
345  }
346  // Invalid
347  return 0;
348  }
349 
350  const char *getNestParmName(TempIndex fieldnum) const override
351  {
352  if (fieldnum.size() < 1)
353  return 0;
354  switch (fieldnum[0])
355  {
356  case 0:
357  return "inname";
358  case 1:
359  return "inclass";
360  case 2:
361  return "outclass";
362  case 3:
363  return "usepieceattrib";
364  case 4:
365  return "pieceattrib";
366  case 5:
367  return "method";
368  case 6:
369  return "useoutname";
370  case 7:
371  return "outname";
372  case 8:
373  return "deletein";
374 
375  }
376  return 0;
377  }
378 
379  ParmType getNestParmType(TempIndex fieldnum) const override
380  {
381  if (fieldnum.size() < 1)
382  return PARM_UNSUPPORTED;
383  switch (fieldnum[0])
384  {
385  case 0:
386  return PARM_STRING;
387  case 1:
388  return PARM_INTEGER;
389  case 2:
390  return PARM_INTEGER;
391  case 3:
392  return PARM_INTEGER;
393  case 4:
394  return PARM_STRING;
395  case 5:
396  return PARM_INTEGER;
397  case 6:
398  return PARM_INTEGER;
399  case 7:
400  return PARM_STRING;
401  case 8:
402  return PARM_INTEGER;
403 
404  }
405  return PARM_UNSUPPORTED;
406  }
407 
408  // Boiler plate to load individual types.
409  static void loadData(UT_IStream &is, int64 &v)
410  { is.bread(&v, 1); }
411  static void loadData(UT_IStream &is, bool &v)
412  { int64 iv; is.bread(&iv, 1); v = iv; }
413  static void loadData(UT_IStream &is, fpreal64 &v)
414  { is.bread<fpreal64>(&v, 1); }
415  static void loadData(UT_IStream &is, UT_Vector2D &v)
416  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
417  static void loadData(UT_IStream &is, UT_Vector3D &v)
418  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
419  is.bread<fpreal64>(&v.z(), 1); }
420  static void loadData(UT_IStream &is, UT_Vector4D &v)
421  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
422  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
423  static void loadData(UT_IStream &is, UT_Matrix2D &v)
424  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
425  static void loadData(UT_IStream &is, UT_Matrix3D &v)
426  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
427  static void loadData(UT_IStream &is, UT_Matrix4D &v)
428  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
429  static void loadData(UT_IStream &is, UT_Vector2I &v)
430  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
431  static void loadData(UT_IStream &is, UT_Vector3I &v)
432  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
433  is.bread<int64>(&v.z(), 1); }
434  static void loadData(UT_IStream &is, UT_Vector4I &v)
435  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
436  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
438  { is.bread(v); }
440  { UT_StringHolder rampdata;
441  loadData(is, rampdata);
442  if (rampdata.isstring())
443  {
444  v.reset(new UT_Ramp());
445  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
446  v->load(istr);
447  }
448  else v.reset();
449  }
452  loadData(is, data);
453  if (data.isstring())
454  {
455  // Find the data type.
456  const char *colon = UT_StringWrap(data).findChar(':');
457  if (colon)
458  {
459  int typelen = colon - data.buffer();
461  type.strncpy(data.buffer(), typelen);
462  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
463 
464  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
465  }
466  }
467  else v.reset();
468  }
469 
470  static void saveData(std::ostream &os, int64 v)
471  { UTwrite(os, &v); }
472  static void saveData(std::ostream &os, bool v)
473  { int64 iv = v; UTwrite(os, &iv); }
474  static void saveData(std::ostream &os, fpreal64 v)
475  { UTwrite<fpreal64>(os, &v); }
476  static void saveData(std::ostream &os, UT_Vector2D v)
477  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
478  static void saveData(std::ostream &os, UT_Vector3D v)
479  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
480  UTwrite<fpreal64>(os, &v.z()); }
481  static void saveData(std::ostream &os, UT_Vector4D v)
482  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
483  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
484  static void saveData(std::ostream &os, UT_Matrix2D v)
486  static void saveData(std::ostream &os, UT_Matrix3D v)
488  static void saveData(std::ostream &os, UT_Matrix4D v)
490  static void saveData(std::ostream &os, UT_StringHolder s)
491  { UT_StringWrap(s).saveBinary(os); }
492  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
494  UT_OStringStream ostr;
495  if (s) s->save(ostr);
496  result = ostr.str();
497  saveData(os, result);
498  }
499  static void saveData(std::ostream &os, PRM_DataItemHandle s)
501  UT_OStringStream ostr;
502  if (s)
503  {
504  ostr << s->getDataTypeToken();
505  ostr << ":";
506  s->saveBinary(ostr);
507  }
508  result = ostr.str();
509  saveData(os, result);
510  }
511 
512 
513  void save(std::ostream &os) const
514  {
515  int32 v = version();
516  UTwrite(os, &v);
517  saveData(os, myInname);
518  saveData(os, myInclass);
519  saveData(os, myOutclass);
520  saveData(os, myUsePieceAttrib);
521  saveData(os, myPieceAttrib);
522  saveData(os, myMethod);
523  saveData(os, myUseoutname);
524  saveData(os, myOutname);
525  saveData(os, myDeletein);
526 
527  }
528 
529  bool load(UT_IStream &is)
530  {
531  int32 v;
532  is.bread(&v, 1);
533  if (version() != v)
534  {
535  // Fail incompatible versions
536  return false;
537  }
538  loadData(is, myInname);
539  loadData(is, myInclass);
540  loadData(is, myOutclass);
541  loadData(is, myUsePieceAttrib);
542  loadData(is, myPieceAttrib);
543  loadData(is, myMethod);
544  loadData(is, myUseoutname);
545  loadData(is, myOutname);
546  loadData(is, myDeletein);
547 
548  return true;
549  }
550 
551  const UT_StringHolder & getInname() const { return myInname; }
552  void setInname(const UT_StringHolder & val) { myInname = val; }
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getInname();
558  OP_Utils::evalOpParm(result, thissop, "inname", cookparms.getCookTime(), 0);
559  return result;
560  }
561  Inclass getInclass() const { return Inclass(myInclass); }
562  void setInclass(Inclass val) { myInclass = int64(val); }
563  Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getInclass();
567  int64 result;
568  OP_Utils::evalOpParm(result, thissop, "inclass", cookparms.getCookTime(), 0);
569  return Inclass(result);
570  }
571  Outclass getOutclass() const { return Outclass(myOutclass); }
572  void setOutclass(Outclass val) { myOutclass = int64(val); }
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getOutclass();
577  int64 result;
578  OP_Utils::evalOpParm(result, thissop, "outclass", cookparms.getCookTime(), 0);
579  return Outclass(result);
580  }
581  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
582  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
583  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getUsePieceAttrib();
587  bool result;
588  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
589  return result;
590  }
591  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
592  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getPieceAttrib();
598  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
599  return result;
600  }
601  Method getMethod() const { return Method(myMethod); }
602  void setMethod(Method val) { myMethod = int64(val); }
603  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return getMethod();
607  int64 result;
608  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
609  return Method(result);
610  }
611  bool getUseoutname() const { return myUseoutname; }
612  void setUseoutname(bool val) { myUseoutname = val; }
613  bool opUseoutname(const SOP_NodeVerb::CookParms &cookparms) const
614  {
615  SOP_Node *thissop = cookparms.getNode();
616  if (!thissop) return getUseoutname();
617  bool result;
618  OP_Utils::evalOpParm(result, thissop, "useoutname", cookparms.getCookTime(), 0);
619  return result;
620  }
621  const UT_StringHolder & getOutname() const { return myOutname; }
622  void setOutname(const UT_StringHolder & val) { myOutname = val; }
624  {
625  SOP_Node *thissop = cookparms.getNode();
626  if (!thissop) return getOutname();
628  OP_Utils::evalOpParm(result, thissop, "outname", cookparms.getCookTime(), 0);
629  return result;
630  }
631  bool getDeletein() const { return myDeletein; }
632  void setDeletein(bool val) { myDeletein = val; }
633  bool opDeletein(const SOP_NodeVerb::CookParms &cookparms) const
634  {
635  SOP_Node *thissop = cookparms.getNode();
636  if (!thissop) return getDeletein();
637  bool result;
638  OP_Utils::evalOpParm(result, thissop, "deletein", cookparms.getCookTime(), 0);
639  return result;
640  }
641 
642 private:
643  UT_StringHolder myInname;
644  int64 myInclass;
645  int64 myOutclass;
646  bool myUsePieceAttrib;
647  UT_StringHolder myPieceAttrib;
648  int64 myMethod;
649  bool myUseoutname;
650  UT_StringHolder myOutname;
651  bool myDeletein;
652 
653 };
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
bool operator==(const SOP_AttribPromoteParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool opDeletein(const SOP_NodeVerb::CookParms &cookparms) const
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, UT_StringHolder s)
bool operator!=(const SOP_AttribPromoteParms &src) const
exint bread(int32 *buffer, exint asize=1)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
void setOutname(const UT_StringHolder &val)
UT_StringHolder opPieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE UT_StringHolder getToken(Inclass enum_value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setInname(const UT_StringHolder &val)
An output stream object that owns its own string buffer storage.
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
**But if you need a result
Definition: thread.h:613
const UT_StringHolder & getPieceAttrib() const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
bool opUseoutname(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
ParmType getNestParmType(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Vector4D v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void loadFromOpSubclass(const LoadParms &loadparms) override
const UT_StringHolder & getInname() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
UT_StringHolder opOutname(const SOP_NodeVerb::CookParms &cookparms) const
bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, fpreal64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
const UT_StringHolder & getOutname() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, UT_Matrix2D v)
GT_API const UT_StringHolder version
UT_StringHolder opInname(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, bool &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
#define SOP_API
Definition: SOP_API.h:10
void save(std::ostream &os) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setPieceAttrib(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix4D v)
bool isParmColorRamp(exint idx) const override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
const char * getNestParmName(TempIndex fieldnum) const override
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
GLboolean r
Definition: glcorearb.h:1222
void copyFrom(const OP_NodeParms *src) override
Outclass opOutclass(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)