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  enum class Outclass
33  {
34  DETAIL = 0,
35  PRIMITIVE,
36  POINT,
37  VERTEX
38  };
39  enum class Method
40  {
41  MAX = 0,
42  MIN,
43  MEAN,
44  MODE,
45  MEDIAN,
46  SUM,
47  SUMSQUARE,
48  RMS,
49  FIRST,
50  LAST,
51  ARRAY
52  };
53 }
54 
55 
57 {
58 public:
59  static int version() { return 1; }
60 
62  {
63  myInname = ""_UTsh;
64  myInclass = 2;
65  myOutclass = 2;
66  myUsePieceAttrib = false;
67  myPieceAttrib = "name"_UTsh;
68  myMethod = 2;
69  myUseoutname = false;
70  myOutname = ""_UTsh;
71  myDeletein = true;
72 
73  }
74 
75  explicit SOP_AttribPromoteParms(const SOP_AttribPromoteParms &) = default;
77  SOP_AttribPromoteParms(SOP_AttribPromoteParms &&) noexcept = default;
78  SOP_AttribPromoteParms &operator=(SOP_AttribPromoteParms &&) noexcept = default;
79 
80  ~SOP_AttribPromoteParms() override {}
81 
83  {
84  if (myInname != src.myInname) return false;
85  if (myInclass != src.myInclass) return false;
86  if (myOutclass != src.myOutclass) return false;
87  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
88  if (myPieceAttrib != src.myPieceAttrib) return false;
89  if (myMethod != src.myMethod) return false;
90  if (myUseoutname != src.myUseoutname) return false;
91  if (myOutname != src.myOutname) return false;
92  if (myDeletein != src.myDeletein) return false;
93 
94  return true;
95  }
97  {
98  return !operator==(src);
99  }
103 
104 
105 
106  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
107  {
108  myInname = ""_UTsh;
109  if (true)
110  graph->evalOpParm(myInname, nodeidx, "inname", time, 0);
111  myInclass = 2;
112  if (true)
113  graph->evalOpParm(myInclass, nodeidx, "inclass", time, 0);
114  myOutclass = 2;
115  if (true)
116  graph->evalOpParm(myOutclass, nodeidx, "outclass", time, 0);
117  myUsePieceAttrib = false;
118  if (true && ( (true&&!(((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
119  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, 0);
120  myPieceAttrib = "name"_UTsh;
121  if (true && ( (true&&!(((getUsePieceAttrib()==0))||((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
122  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
123  myMethod = 2;
124  if (true)
125  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
126  myUseoutname = false;
127  if (true)
128  graph->evalOpParm(myUseoutname, nodeidx, "useoutname", time, 0);
129  myOutname = ""_UTsh;
130  if (true && ( (true&&!(((getUseoutname()==0)))) ) )
131  graph->evalOpParm(myOutname, nodeidx, "outname", time, 0);
132  myDeletein = true;
133  if (true && ( (true&&!(((getUseoutname()==0)&&(int64(getInclass())==2)&&(int64(getOutclass())==3))||((getUseoutname()==0)&&(int64(getInclass())==3)&&(int64(getOutclass())==2)))) ) )
134  graph->evalOpParm(myDeletein, nodeidx, "deletein", time, 0);
135 
136  }
137 
138 
139  void loadFromOpSubclass(const LoadParms &loadparms) override
140  {
141  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
142  }
143 
144 
145  void copyFrom(const OP_NodeParms *src) override
146  {
147  *this = *((const SOP_AttribPromoteParms *)src);
148  }
149 
150  template <typename T>
151  void
152  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
153  {
154  if (idx.size() < 1)
155  return;
156  UT_ASSERT(idx.size() == instance.size()+1);
157  if (idx.size() != instance.size()+1)
158  return;
159  switch (idx[0])
160  {
161  case 0:
162  coerceValue(value, myInname);
163  break;
164  case 1:
165  coerceValue(value, myInclass);
166  break;
167  case 2:
168  coerceValue(value, myOutclass);
169  break;
170  case 3:
171  coerceValue(value, myUsePieceAttrib);
172  break;
173  case 4:
174  coerceValue(value, myPieceAttrib);
175  break;
176  case 5:
177  coerceValue(value, myMethod);
178  break;
179  case 6:
180  coerceValue(value, myUseoutname);
181  break;
182  case 7:
183  coerceValue(value, myOutname);
184  break;
185  case 8:
186  coerceValue(value, myDeletein);
187  break;
188 
189  }
190  }
191 
192  bool isParmColorRamp(exint idx) const override
193  {
194  switch (idx)
195  {
196 
197  }
198  return false;
199  }
200 
201  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
222  { doGetParmValue(idx, instance, value); }
223 
224  template <typename T>
225  void
226  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
227  {
228  if (idx.size() < 1)
229  return;
230  UT_ASSERT(idx.size() == instance.size()+1);
231  if (idx.size() != instance.size()+1)
232  return;
233  switch (idx[0])
234  {
235  case 0:
236  coerceValue(myInname, ( ( value ) ));
237  break;
238  case 1:
239  coerceValue(myInclass, clampMinValue(0, clampMaxValue(3, value ) ));
240  break;
241  case 2:
242  coerceValue(myOutclass, clampMinValue(0, clampMaxValue(3, value ) ));
243  break;
244  case 3:
245  coerceValue(myUsePieceAttrib, ( ( value ) ));
246  break;
247  case 4:
248  coerceValue(myPieceAttrib, ( ( value ) ));
249  break;
250  case 5:
251  coerceValue(myMethod, clampMinValue(0, clampMaxValue(10, value ) ));
252  break;
253  case 6:
254  coerceValue(myUseoutname, ( ( value ) ));
255  break;
256  case 7:
257  coerceValue(myOutname, ( ( value ) ));
258  break;
259  case 8:
260  coerceValue(myDeletein, ( ( value ) ));
261  break;
262 
263  }
264  }
265 
266  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
287  { doSetParmValue(idx, instance, value); }
288 
289  exint getNestNumParms(TempIndex idx) const override
290  {
291  if (idx.size() == 0)
292  return 9;
293  switch (idx[0])
294  {
295 
296  }
297  // Invalid
298  return 0;
299  }
300 
301  const char *getNestParmName(TempIndex fieldnum) const override
302  {
303  if (fieldnum.size() < 1)
304  return 0;
305  switch (fieldnum[0])
306  {
307  case 0:
308  return "inname";
309  case 1:
310  return "inclass";
311  case 2:
312  return "outclass";
313  case 3:
314  return "usepieceattrib";
315  case 4:
316  return "pieceattrib";
317  case 5:
318  return "method";
319  case 6:
320  return "useoutname";
321  case 7:
322  return "outname";
323  case 8:
324  return "deletein";
325 
326  }
327  return 0;
328  }
329 
330  ParmType getNestParmType(TempIndex fieldnum) const override
331  {
332  if (fieldnum.size() < 1)
333  return PARM_UNSUPPORTED;
334  switch (fieldnum[0])
335  {
336  case 0:
337  return PARM_STRING;
338  case 1:
339  return PARM_INTEGER;
340  case 2:
341  return PARM_INTEGER;
342  case 3:
343  return PARM_INTEGER;
344  case 4:
345  return PARM_STRING;
346  case 5:
347  return PARM_INTEGER;
348  case 6:
349  return PARM_INTEGER;
350  case 7:
351  return PARM_STRING;
352  case 8:
353  return PARM_INTEGER;
354 
355  }
356  return PARM_UNSUPPORTED;
357  }
358 
359  // Boiler plate to load individual types.
360  static void loadData(UT_IStream &is, int64 &v)
361  { is.bread(&v, 1); }
362  static void loadData(UT_IStream &is, bool &v)
363  { int64 iv; is.bread(&iv, 1); v = iv; }
364  static void loadData(UT_IStream &is, fpreal64 &v)
365  { is.bread<fpreal64>(&v, 1); }
366  static void loadData(UT_IStream &is, UT_Vector2D &v)
367  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
368  static void loadData(UT_IStream &is, UT_Vector3D &v)
369  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
370  is.bread<fpreal64>(&v.z(), 1); }
371  static void loadData(UT_IStream &is, UT_Vector4D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
373  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
374  static void loadData(UT_IStream &is, UT_Matrix2D &v)
375  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
376  static void loadData(UT_IStream &is, UT_Matrix3D &v)
377  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
378  static void loadData(UT_IStream &is, UT_Matrix4D &v)
379  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
380  static void loadData(UT_IStream &is, UT_Vector2I &v)
381  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
382  static void loadData(UT_IStream &is, UT_Vector3I &v)
383  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
384  is.bread<int64>(&v.z(), 1); }
385  static void loadData(UT_IStream &is, UT_Vector4I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
387  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
389  { is.bread(v); }
391  { UT_StringHolder rampdata;
392  loadData(is, rampdata);
393  if (rampdata.isstring())
394  {
395  v.reset(new UT_Ramp());
396  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
397  v->load(istr);
398  }
399  else v.reset();
400  }
403  loadData(is, data);
404  if (data.isstring())
405  {
406  // Find the data type.
407  const char *colon = UT_StringWrap(data).findChar(':');
408  if (colon)
409  {
410  int typelen = colon - data.buffer();
412  type.strncpy(data.buffer(), typelen);
413  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
414 
415  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
416  }
417  }
418  else v.reset();
419  }
420 
421  static void saveData(std::ostream &os, int64 v)
422  { UTwrite(os, &v); }
423  static void saveData(std::ostream &os, bool v)
424  { int64 iv = v; UTwrite(os, &iv); }
425  static void saveData(std::ostream &os, fpreal64 v)
426  { UTwrite<fpreal64>(os, &v); }
427  static void saveData(std::ostream &os, UT_Vector2D v)
428  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
429  static void saveData(std::ostream &os, UT_Vector3D v)
430  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
431  UTwrite<fpreal64>(os, &v.z()); }
432  static void saveData(std::ostream &os, UT_Vector4D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
434  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
435  static void saveData(std::ostream &os, UT_Matrix2D v)
437  static void saveData(std::ostream &os, UT_Matrix3D v)
439  static void saveData(std::ostream &os, UT_Matrix4D v)
441  static void saveData(std::ostream &os, UT_StringHolder s)
442  { UT_StringWrap(s).saveBinary(os); }
443  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
445  UT_OStringStream ostr;
446  if (s) s->save(ostr);
447  result = ostr.str();
448  saveData(os, result);
449  }
450  static void saveData(std::ostream &os, PRM_DataItemHandle s)
452  UT_OStringStream ostr;
453  if (s)
454  {
455  ostr << s->getDataTypeToken();
456  ostr << ":";
457  s->saveBinary(ostr);
458  }
459  result = ostr.str();
460  saveData(os, result);
461  }
462 
463 
464  void save(std::ostream &os) const
465  {
466  int32 v = version();
467  UTwrite(os, &v);
468  saveData(os, myInname);
469  saveData(os, myInclass);
470  saveData(os, myOutclass);
471  saveData(os, myUsePieceAttrib);
472  saveData(os, myPieceAttrib);
473  saveData(os, myMethod);
474  saveData(os, myUseoutname);
475  saveData(os, myOutname);
476  saveData(os, myDeletein);
477 
478  }
479 
480  bool load(UT_IStream &is)
481  {
482  int32 v;
483  is.bread(&v, 1);
484  if (version() != v)
485  {
486  // Fail incompatible versions
487  return false;
488  }
489  loadData(is, myInname);
490  loadData(is, myInclass);
491  loadData(is, myOutclass);
492  loadData(is, myUsePieceAttrib);
493  loadData(is, myPieceAttrib);
494  loadData(is, myMethod);
495  loadData(is, myUseoutname);
496  loadData(is, myOutname);
497  loadData(is, myDeletein);
498 
499  return true;
500  }
501 
502  const UT_StringHolder & getInname() const { return myInname; }
503  void setInname(const UT_StringHolder & val) { myInname = val; }
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getInname();
509  OP_Utils::evalOpParm(result, thissop, "inname", cookparms.getCookTime(), 0);
510  return result;
511  }
512  Inclass getInclass() const { return Inclass(myInclass); }
513  void setInclass(Inclass val) { myInclass = int64(val); }
514  Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getInclass();
518  int64 result;
519  OP_Utils::evalOpParm(result, thissop, "inclass", cookparms.getCookTime(), 0);
520  return Inclass(result);
521  }
522  Outclass getOutclass() const { return Outclass(myOutclass); }
523  void setOutclass(Outclass val) { myOutclass = int64(val); }
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getOutclass();
528  int64 result;
529  OP_Utils::evalOpParm(result, thissop, "outclass", cookparms.getCookTime(), 0);
530  return Outclass(result);
531  }
532  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
533  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
534  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return getUsePieceAttrib();
538  bool result;
539  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
540  return result;
541  }
542  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
543  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
545  {
546  SOP_Node *thissop = cookparms.getNode();
547  if (!thissop) return getPieceAttrib();
549  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
550  return result;
551  }
552  Method getMethod() const { return Method(myMethod); }
553  void setMethod(Method val) { myMethod = int64(val); }
554  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
555  {
556  SOP_Node *thissop = cookparms.getNode();
557  if (!thissop) return getMethod();
558  int64 result;
559  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
560  return Method(result);
561  }
562  bool getUseoutname() const { return myUseoutname; }
563  void setUseoutname(bool val) { myUseoutname = val; }
564  bool opUseoutname(const SOP_NodeVerb::CookParms &cookparms) const
565  {
566  SOP_Node *thissop = cookparms.getNode();
567  if (!thissop) return getUseoutname();
568  bool result;
569  OP_Utils::evalOpParm(result, thissop, "useoutname", cookparms.getCookTime(), 0);
570  return result;
571  }
572  const UT_StringHolder & getOutname() const { return myOutname; }
573  void setOutname(const UT_StringHolder & val) { myOutname = val; }
575  {
576  SOP_Node *thissop = cookparms.getNode();
577  if (!thissop) return getOutname();
579  OP_Utils::evalOpParm(result, thissop, "outname", cookparms.getCookTime(), 0);
580  return result;
581  }
582  bool getDeletein() const { return myDeletein; }
583  void setDeletein(bool val) { myDeletein = val; }
584  bool opDeletein(const SOP_NodeVerb::CookParms &cookparms) const
585  {
586  SOP_Node *thissop = cookparms.getNode();
587  if (!thissop) return getDeletein();
588  bool result;
589  OP_Utils::evalOpParm(result, thissop, "deletein", cookparms.getCookTime(), 0);
590  return result;
591  }
592 
593 private:
594  UT_StringHolder myInname;
595  int64 myInclass;
596  int64 myOutclass;
597  bool myUsePieceAttrib;
598  UT_StringHolder myPieceAttrib;
599  int64 myMethod;
600  bool myUseoutname;
601  UT_StringHolder myOutname;
602  bool myDeletein;
603 
604 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
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)