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 <OP/OP_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 
144  if (baseGetSignature() != src.baseGetSignature()) return false;
145 
146  return true;
147  }
149  {
150  return !operator==(src);
151  }
155 
156 
157 
158  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
159  {
160  myInname = ""_UTsh;
161  if (true)
162  graph->evalOpParm(myInname, nodeidx, "inname", time, graph->isDirect()?nullptr:depnode);
163  myInclass = 2;
164  if (true)
165  graph->evalOpParm(myInclass, nodeidx, "inclass", time, graph->isDirect()?nullptr:depnode);
166  myOutclass = 2;
167  if (true)
168  graph->evalOpParm(myOutclass, nodeidx, "outclass", time, graph->isDirect()?nullptr:depnode);
169  myUsePieceAttrib = false;
170  if (true && ( (true&&!(((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
171  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, graph->isDirect()?nullptr:depnode);
172  myPieceAttrib = "name"_UTsh;
173  if (true && ( (true&&!(((getUsePieceAttrib()==0))||((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
174  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, graph->isDirect()?nullptr:depnode);
175  myMethod = 2;
176  if (true)
177  graph->evalOpParm(myMethod, nodeidx, "method", time, graph->isDirect()?nullptr:depnode);
178  myUseoutname = false;
179  if (true)
180  graph->evalOpParm(myUseoutname, nodeidx, "useoutname", time, graph->isDirect()?nullptr:depnode);
181  myOutname = ""_UTsh;
182  if (true && ( (true&&!(((getUseoutname()==0)))) ) )
183  graph->evalOpParm(myOutname, nodeidx, "outname", time, graph->isDirect()?nullptr:depnode);
184  myDeletein = true;
185  if (true && ( (true&&!(((getUseoutname()==0)&&(int64(getInclass())==2)&&(int64(getOutclass())==3))||((getUseoutname()==0)&&(int64(getInclass())==3)&&(int64(getOutclass())==2)))) ) )
186  graph->evalOpParm(myDeletein, nodeidx, "deletein", time, graph->isDirect()?nullptr:depnode);
187 
188  }
189 
190 
191  void loadFromOpSubclass(const LoadParms &loadparms) override
192  {
193  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
194  }
195 
196 
197  void copyFrom(const OP_NodeParms *src) override
198  {
199  *this = *((const SOP_AttribPromoteParms *)src);
200  }
201 
202  template <typename T>
203  void
204  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
205  {
206  if (idx.size() < 1)
207  return;
208  UT_ASSERT(idx.size() == instance.size()+1);
209  if (idx.size() != instance.size()+1)
210  return;
211  switch (idx[0])
212  {
213  case 0:
214  coerceValue(value, myInname);
215  break;
216  case 1:
217  coerceValue(value, myInclass);
218  break;
219  case 2:
220  coerceValue(value, myOutclass);
221  break;
222  case 3:
223  coerceValue(value, myUsePieceAttrib);
224  break;
225  case 4:
226  coerceValue(value, myPieceAttrib);
227  break;
228  case 5:
229  coerceValue(value, myMethod);
230  break;
231  case 6:
232  coerceValue(value, myUseoutname);
233  break;
234  case 7:
235  coerceValue(value, myOutname);
236  break;
237  case 8:
238  coerceValue(value, myDeletein);
239  break;
240 
241  }
242  }
243 
244  bool isParmColorRamp(exint idx) const override
245  {
246  switch (idx)
247  {
248 
249  }
250  return false;
251  }
252 
253  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
254  { doGetParmValue(idx, instance, value); }
255  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
256  { doGetParmValue(idx, instance, value); }
257  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
258  { doGetParmValue(idx, instance, value); }
259  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
260  { doGetParmValue(idx, instance, value); }
261  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
262  { doGetParmValue(idx, instance, value); }
263  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
264  { doGetParmValue(idx, instance, value); }
265  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
266  { doGetParmValue(idx, instance, value); }
267  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
268  { doGetParmValue(idx, instance, value); }
269  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
270  { doGetParmValue(idx, instance, value); }
271  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
272  { doGetParmValue(idx, instance, value); }
273  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
274  { doGetParmValue(idx, instance, value); }
275 
276  template <typename T>
277  void
278  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
279  {
280  if (idx.size() < 1)
281  return;
282  UT_ASSERT(idx.size() == instance.size()+1);
283  if (idx.size() != instance.size()+1)
284  return;
285  switch (idx[0])
286  {
287  case 0:
288  coerceValue(myInname, ( ( value ) ));
289  break;
290  case 1:
291  coerceValue(myInclass, clampMinValue(0, clampMaxValue(3, value ) ));
292  break;
293  case 2:
294  coerceValue(myOutclass, clampMinValue(0, clampMaxValue(3, value ) ));
295  break;
296  case 3:
297  coerceValue(myUsePieceAttrib, ( ( value ) ));
298  break;
299  case 4:
300  coerceValue(myPieceAttrib, ( ( value ) ));
301  break;
302  case 5:
303  coerceValue(myMethod, clampMinValue(0, clampMaxValue(10, value ) ));
304  break;
305  case 6:
306  coerceValue(myUseoutname, ( ( value ) ));
307  break;
308  case 7:
309  coerceValue(myOutname, ( ( value ) ));
310  break;
311  case 8:
312  coerceValue(myDeletein, ( ( value ) ));
313  break;
314 
315  }
316  }
317 
318  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
319  { doSetParmValue(idx, instance, value); }
320  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
321  { doSetParmValue(idx, instance, value); }
322  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
323  { doSetParmValue(idx, instance, value); }
324  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
325  { doSetParmValue(idx, instance, value); }
326  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
327  { doSetParmValue(idx, instance, value); }
328  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
329  { doSetParmValue(idx, instance, value); }
330  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
331  { doSetParmValue(idx, instance, value); }
332  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
333  { doSetParmValue(idx, instance, value); }
334  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
335  { doSetParmValue(idx, instance, value); }
336  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
337  { doSetParmValue(idx, instance, value); }
338  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
339  { doSetParmValue(idx, instance, value); }
340 
341  exint getNestNumParms(TempIndex idx) const override
342  {
343  if (idx.size() == 0)
344  return 9;
345  switch (idx[0])
346  {
347 
348  }
349  // Invalid
350  return 0;
351  }
352 
353  const char *getNestParmName(TempIndex fieldnum) const override
354  {
355  if (fieldnum.size() < 1)
356  return 0;
357  switch (fieldnum[0])
358  {
359  case 0:
360  return "inname";
361  case 1:
362  return "inclass";
363  case 2:
364  return "outclass";
365  case 3:
366  return "usepieceattrib";
367  case 4:
368  return "pieceattrib";
369  case 5:
370  return "method";
371  case 6:
372  return "useoutname";
373  case 7:
374  return "outname";
375  case 8:
376  return "deletein";
377 
378  }
379  return 0;
380  }
381 
382  ParmType getNestParmType(TempIndex fieldnum) const override
383  {
384  if (fieldnum.size() < 1)
385  return PARM_UNSUPPORTED;
386  switch (fieldnum[0])
387  {
388  case 0:
389  return PARM_STRING;
390  case 1:
391  return PARM_INTEGER;
392  case 2:
393  return PARM_INTEGER;
394  case 3:
395  return PARM_INTEGER;
396  case 4:
397  return PARM_STRING;
398  case 5:
399  return PARM_INTEGER;
400  case 6:
401  return PARM_INTEGER;
402  case 7:
403  return PARM_STRING;
404  case 8:
405  return PARM_INTEGER;
406 
407  }
408  return PARM_UNSUPPORTED;
409  }
410 
411  // Boiler plate to load individual types.
412  static void loadData(UT_IStream &is, int64 &v)
413  { is.bread(&v, 1); }
414  static void loadData(UT_IStream &is, bool &v)
415  { int64 iv; is.bread(&iv, 1); v = iv; }
416  static void loadData(UT_IStream &is, fpreal64 &v)
417  { is.bread<fpreal64>(&v, 1); }
418  static void loadData(UT_IStream &is, UT_Vector2D &v)
419  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
420  static void loadData(UT_IStream &is, UT_Vector3D &v)
421  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
422  is.bread<fpreal64>(&v.z(), 1); }
423  static void loadData(UT_IStream &is, UT_Vector4D &v)
424  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
425  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
426  static void loadData(UT_IStream &is, UT_Matrix2D &v)
427  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
428  static void loadData(UT_IStream &is, UT_Matrix3D &v)
429  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
430  static void loadData(UT_IStream &is, UT_Matrix4D &v)
431  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
432  static void loadData(UT_IStream &is, UT_Vector2I &v)
433  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
434  static void loadData(UT_IStream &is, UT_Vector3I &v)
435  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
436  is.bread<int64>(&v.z(), 1); }
437  static void loadData(UT_IStream &is, UT_Vector4I &v)
438  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
439  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
441  { is.bread(v); }
443  { UT_StringHolder rampdata;
444  loadData(is, rampdata);
445  if (rampdata.isstring())
446  {
447  v.reset(new UT_Ramp());
448  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
449  v->load(istr);
450  }
451  else v.reset();
452  }
455  loadData(is, data);
456  if (data.isstring())
457  {
458  // Find the data type.
459  const char *colon = UT_StringWrap(data).findChar(':');
460  if (colon)
461  {
462  int typelen = colon - data.buffer();
464  type.strncpy(data.buffer(), typelen);
465  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
466 
467  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
468  }
469  }
470  else v.reset();
471  }
472 
473  static void saveData(std::ostream &os, int64 v)
474  { UTwrite(os, &v); }
475  static void saveData(std::ostream &os, bool v)
476  { int64 iv = v; UTwrite(os, &iv); }
477  static void saveData(std::ostream &os, fpreal64 v)
478  { UTwrite<fpreal64>(os, &v); }
479  static void saveData(std::ostream &os, UT_Vector2D v)
480  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
481  static void saveData(std::ostream &os, UT_Vector3D v)
482  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
483  UTwrite<fpreal64>(os, &v.z()); }
484  static void saveData(std::ostream &os, UT_Vector4D v)
485  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
486  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
487  static void saveData(std::ostream &os, UT_Matrix2D v)
489  static void saveData(std::ostream &os, UT_Matrix3D v)
491  static void saveData(std::ostream &os, UT_Matrix4D v)
493  static void saveData(std::ostream &os, UT_StringHolder s)
494  { UT_StringWrap(s).saveBinary(os); }
495  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
497  UT_OStringStream ostr;
498  if (s) s->save(ostr);
499  result = ostr.str();
500  saveData(os, result);
501  }
502  static void saveData(std::ostream &os, PRM_DataItemHandle s)
504  UT_OStringStream ostr;
505  if (s)
506  {
507  ostr << s->getDataTypeToken();
508  ostr << ":";
509  s->saveBinary(ostr);
510  }
511  result = ostr.str();
512  saveData(os, result);
513  }
514 
515 
516  void save(std::ostream &os) const
517  {
518  int32 v = version();
519  UTwrite(os, &v);
520  saveData(os, myInname);
521  saveData(os, myInclass);
522  saveData(os, myOutclass);
523  saveData(os, myUsePieceAttrib);
524  saveData(os, myPieceAttrib);
525  saveData(os, myMethod);
526  saveData(os, myUseoutname);
527  saveData(os, myOutname);
528  saveData(os, myDeletein);
529 
530  }
531 
532  bool load(UT_IStream &is)
533  {
534  int32 v;
535  is.bread(&v, 1);
536  if (version() != v)
537  {
538  // Fail incompatible versions
539  return false;
540  }
541  loadData(is, myInname);
542  loadData(is, myInclass);
543  loadData(is, myOutclass);
544  loadData(is, myUsePieceAttrib);
545  loadData(is, myPieceAttrib);
546  loadData(is, myMethod);
547  loadData(is, myUseoutname);
548  loadData(is, myOutname);
549  loadData(is, myDeletein);
550 
551  return true;
552  }
553 
554  const UT_StringHolder & getInname() const { return myInname; }
555  void setInname(const UT_StringHolder & val) { myInname = val; }
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getInname();
561  OP_Utils::evalOpParm(result, thissop, "inname", cookparms.getCookTime(), 0);
562  return result;
563  }
564  Inclass getInclass() const { return Inclass(myInclass); }
565  void setInclass(Inclass val) { myInclass = int64(val); }
566  Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getInclass();
570  int64 result;
571  OP_Utils::evalOpParm(result, thissop, "inclass", cookparms.getCookTime(), 0);
572  return Inclass(result);
573  }
574  Outclass getOutclass() const { return Outclass(myOutclass); }
575  void setOutclass(Outclass val) { myOutclass = int64(val); }
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getOutclass();
580  int64 result;
581  OP_Utils::evalOpParm(result, thissop, "outclass", cookparms.getCookTime(), 0);
582  return Outclass(result);
583  }
584  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
585  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
586  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getUsePieceAttrib();
590  bool result;
591  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
592  return result;
593  }
594  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
595  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getPieceAttrib();
601  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
602  return result;
603  }
604  Method getMethod() const { return Method(myMethod); }
605  void setMethod(Method val) { myMethod = int64(val); }
606  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
607  {
608  SOP_Node *thissop = cookparms.getNode();
609  if (!thissop) return getMethod();
610  int64 result;
611  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
612  return Method(result);
613  }
614  bool getUseoutname() const { return myUseoutname; }
615  void setUseoutname(bool val) { myUseoutname = val; }
616  bool opUseoutname(const SOP_NodeVerb::CookParms &cookparms) const
617  {
618  SOP_Node *thissop = cookparms.getNode();
619  if (!thissop) return getUseoutname();
620  bool result;
621  OP_Utils::evalOpParm(result, thissop, "useoutname", cookparms.getCookTime(), 0);
622  return result;
623  }
624  const UT_StringHolder & getOutname() const { return myOutname; }
625  void setOutname(const UT_StringHolder & val) { myOutname = val; }
627  {
628  SOP_Node *thissop = cookparms.getNode();
629  if (!thissop) return getOutname();
631  OP_Utils::evalOpParm(result, thissop, "outname", cookparms.getCookTime(), 0);
632  return result;
633  }
634  bool getDeletein() const { return myDeletein; }
635  void setDeletein(bool val) { myDeletein = val; }
636  bool opDeletein(const SOP_NodeVerb::CookParms &cookparms) const
637  {
638  SOP_Node *thissop = cookparms.getNode();
639  if (!thissop) return getDeletein();
640  bool result;
641  OP_Utils::evalOpParm(result, thissop, "deletein", cookparms.getCookTime(), 0);
642  return result;
643  }
644 
645 private:
646  UT_StringHolder myInname;
647  int64 myInclass;
648  int64 myOutclass;
649  bool myUsePieceAttrib;
650  UT_StringHolder myPieceAttrib;
651  int64 myMethod;
652  bool myUseoutname;
653  UT_StringHolder myOutname;
654  bool myDeletein;
655 
656 };
static void saveData(std::ostream &os, int64 v)
type
Definition: core.h:556
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:63
void setOutname(const UT_StringHolder &val)
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
const char * getNestParmName(TempIndex fieldnum) const override
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)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void saveData(std::ostream &os, UT_Vector2D v)
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)