HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_SBlend.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myBlend = 0;
32  myDoPos = true;
33  myDoClr = false;
34  myDoNml = false;
35  myDoUVW = false;
36  myDoVoxel = false;
37  myDoSlerp = false;
38  myPtIDAttr = ""_UTsh;
39  myPrimIDAttr = ""_UTsh;
40 
41  }
42 
43  explicit SOP_SBlendParms(const SOP_SBlendParms &) = default;
44  SOP_SBlendParms &operator=(const SOP_SBlendParms &) = default;
45  SOP_SBlendParms(SOP_SBlendParms &&) noexcept = default;
46  SOP_SBlendParms &operator=(SOP_SBlendParms &&) noexcept = default;
47 
48  ~SOP_SBlendParms() override {}
49 
50  bool operator==(const SOP_SBlendParms &src) const
51  {
52  if (myBlend != src.myBlend) return false;
53  if (myDoPos != src.myDoPos) return false;
54  if (myDoClr != src.myDoClr) return false;
55  if (myDoNml != src.myDoNml) return false;
56  if (myDoUVW != src.myDoUVW) return false;
57  if (myDoVoxel != src.myDoVoxel) return false;
58  if (myDoSlerp != src.myDoSlerp) return false;
59  if (myPtIDAttr != src.myPtIDAttr) return false;
60  if (myPrimIDAttr != src.myPrimIDAttr) return false;
61 
62  return true;
63  }
64  bool operator!=(const SOP_SBlendParms &src) const
65  {
66  return !operator==(src);
67  }
68 
69 
70 
71  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
72  {
73  myBlend = 0;
74  if (true)
75  graph->evalOpParm(myBlend, nodeidx, "blend", time, 0);
76  myDoPos = true;
77  if (true)
78  graph->evalOpParm(myDoPos, nodeidx, "dopos", time, 0);
79  myDoClr = false;
80  if (true)
81  graph->evalOpParm(myDoClr, nodeidx, "doclr", time, 0);
82  myDoNml = false;
83  if (true)
84  graph->evalOpParm(myDoNml, nodeidx, "donml", time, 0);
85  myDoUVW = false;
86  if (true)
87  graph->evalOpParm(myDoUVW, nodeidx, "douvw", time, 0);
88  myDoVoxel = false;
89  if (true)
90  graph->evalOpParm(myDoVoxel, nodeidx, "dovoxel", time, 0);
91  myDoSlerp = false;
92  if (true)
93  graph->evalOpParm(myDoSlerp, nodeidx, "doslerp", time, 0);
94  myPtIDAttr = ""_UTsh;
95  if (true)
96  graph->evalOpParm(myPtIDAttr, nodeidx, "ptidattr", time, 0);
97  myPrimIDAttr = ""_UTsh;
98  if (true)
99  graph->evalOpParm(myPrimIDAttr, nodeidx, "primidattr", time, 0);
100 
101  }
102 
103 
104  void loadFromOpSubclass(const LoadParms &loadparms) override
105  {
106  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
107  }
108 
109 
110  void copyFrom(const OP_NodeParms *src) override
111  {
112  *this = *((const SOP_SBlendParms *)src);
113  }
114 
115  template <typename T>
116  void
117  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
118  {
119  if (idx.size() < 1)
120  return;
121  UT_ASSERT(idx.size() == instance.size()+1);
122  if (idx.size() != instance.size()+1)
123  return;
124  switch (idx[0])
125  {
126  case 0:
127  coerceValue(value, myBlend);
128  break;
129  case 1:
130  coerceValue(value, myDoPos);
131  break;
132  case 2:
133  coerceValue(value, myDoClr);
134  break;
135  case 3:
136  coerceValue(value, myDoNml);
137  break;
138  case 4:
139  coerceValue(value, myDoUVW);
140  break;
141  case 5:
142  coerceValue(value, myDoVoxel);
143  break;
144  case 6:
145  coerceValue(value, myDoSlerp);
146  break;
147  case 7:
148  coerceValue(value, myPtIDAttr);
149  break;
150  case 8:
151  coerceValue(value, myPrimIDAttr);
152  break;
153 
154  }
155  }
156 
157  bool isParmColorRamp(exint idx) const override
158  {
159  switch (idx)
160  {
161 
162  }
163  return false;
164  }
165 
166  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
187  { doGetParmValue(idx, instance, value); }
188 
189  template <typename T>
190  void
191  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
192  {
193  if (idx.size() < 1)
194  return;
195  UT_ASSERT(idx.size() == instance.size()+1);
196  if (idx.size() != instance.size()+1)
197  return;
198  switch (idx[0])
199  {
200  case 0:
201  coerceValue(myBlend, clampMinValue(0, ( value ) ));
202  break;
203  case 1:
204  coerceValue(myDoPos, ( ( value ) ));
205  break;
206  case 2:
207  coerceValue(myDoClr, ( ( value ) ));
208  break;
209  case 3:
210  coerceValue(myDoNml, ( ( value ) ));
211  break;
212  case 4:
213  coerceValue(myDoUVW, ( ( value ) ));
214  break;
215  case 5:
216  coerceValue(myDoVoxel, ( ( value ) ));
217  break;
218  case 6:
219  coerceValue(myDoSlerp, ( ( value ) ));
220  break;
221  case 7:
222  coerceValue(myPtIDAttr, ( ( value ) ));
223  break;
224  case 8:
225  coerceValue(myPrimIDAttr, ( ( value ) ));
226  break;
227 
228  }
229  }
230 
231  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
252  { doSetParmValue(idx, instance, value); }
253 
254  exint getNestNumParms(TempIndex idx) const override
255  {
256  if (idx.size() == 0)
257  return 9;
258  switch (idx[0])
259  {
260 
261  }
262  // Invalid
263  return 0;
264  }
265 
266  const char *getNestParmName(TempIndex fieldnum) const override
267  {
268  if (fieldnum.size() < 1)
269  return 0;
270  switch (fieldnum[0])
271  {
272  case 0:
273  return "blend";
274  case 1:
275  return "dopos";
276  case 2:
277  return "doclr";
278  case 3:
279  return "donml";
280  case 4:
281  return "douvw";
282  case 5:
283  return "dovoxel";
284  case 6:
285  return "doslerp";
286  case 7:
287  return "ptidattr";
288  case 8:
289  return "primidattr";
290 
291  }
292  return 0;
293  }
294 
295  ParmType getNestParmType(TempIndex fieldnum) const override
296  {
297  if (fieldnum.size() < 1)
298  return PARM_UNSUPPORTED;
299  switch (fieldnum[0])
300  {
301  case 0:
302  return PARM_FLOAT;
303  case 1:
304  return PARM_INTEGER;
305  case 2:
306  return PARM_INTEGER;
307  case 3:
308  return PARM_INTEGER;
309  case 4:
310  return PARM_INTEGER;
311  case 5:
312  return PARM_INTEGER;
313  case 6:
314  return PARM_INTEGER;
315  case 7:
316  return PARM_STRING;
317  case 8:
318  return PARM_STRING;
319 
320  }
321  return PARM_UNSUPPORTED;
322  }
323 
324  // Boiler plate to load individual types.
325  static void loadData(UT_IStream &is, int64 &v)
326  { is.bread(&v, 1); }
327  static void loadData(UT_IStream &is, bool &v)
328  { int64 iv; is.bread(&iv, 1); v = iv; }
329  static void loadData(UT_IStream &is, fpreal64 &v)
330  { is.bread<fpreal64>(&v, 1); }
331  static void loadData(UT_IStream &is, UT_Vector2D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector3D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
335  is.bread<fpreal64>(&v.z(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector4D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix2D &v)
340  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix3D &v)
342  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix4D &v)
344  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Vector2I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector3I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
349  is.bread<int64>(&v.z(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector4I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
354  { is.bread(v); }
356  { UT_StringHolder rampdata;
357  loadData(is, rampdata);
358  if (rampdata.isstring())
359  {
360  v.reset(new UT_Ramp());
361  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
362  v->load(istr);
363  }
364  else v.reset();
365  }
368  loadData(is, data);
369  if (data.isstring())
370  {
371  // Find the data type.
372  const char *colon = UT_StringWrap(data).findChar(':');
373  if (colon)
374  {
375  int typelen = colon - data.buffer();
377  type.strncpy(data.buffer(), typelen);
378  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
379 
380  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
381  }
382  }
383  else v.reset();
384  }
385 
386  static void saveData(std::ostream &os, int64 v)
387  { UTwrite(os, &v); }
388  static void saveData(std::ostream &os, bool v)
389  { int64 iv = v; UTwrite(os, &iv); }
390  static void saveData(std::ostream &os, fpreal64 v)
391  { UTwrite<fpreal64>(os, &v); }
392  static void saveData(std::ostream &os, UT_Vector2D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
394  static void saveData(std::ostream &os, UT_Vector3D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
396  UTwrite<fpreal64>(os, &v.z()); }
397  static void saveData(std::ostream &os, UT_Vector4D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
400  static void saveData(std::ostream &os, UT_Matrix2D v)
402  static void saveData(std::ostream &os, UT_Matrix3D v)
404  static void saveData(std::ostream &os, UT_Matrix4D v)
406  static void saveData(std::ostream &os, UT_StringHolder s)
407  { UT_StringWrap(s).saveBinary(os); }
408  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
410  UT_OStringStream ostr;
411  if (s) s->save(ostr);
412  result = ostr.str();
413  saveData(os, result);
414  }
415  static void saveData(std::ostream &os, PRM_DataItemHandle s)
417  UT_OStringStream ostr;
418  if (s)
419  {
420  ostr << s->getDataTypeToken();
421  ostr << ":";
422  s->saveBinary(ostr);
423  }
424  result = ostr.str();
425  saveData(os, result);
426  }
427 
428 
429  void save(std::ostream &os) const
430  {
431  int32 v = version();
432  UTwrite(os, &v);
433  saveData(os, myBlend);
434  saveData(os, myDoPos);
435  saveData(os, myDoClr);
436  saveData(os, myDoNml);
437  saveData(os, myDoUVW);
438  saveData(os, myDoVoxel);
439  saveData(os, myDoSlerp);
440  saveData(os, myPtIDAttr);
441  saveData(os, myPrimIDAttr);
442 
443  }
444 
445  bool load(UT_IStream &is)
446  {
447  int32 v;
448  is.bread(&v, 1);
449  if (version() != v)
450  {
451  // Fail incompatible versions
452  return false;
453  }
454  loadData(is, myBlend);
455  loadData(is, myDoPos);
456  loadData(is, myDoClr);
457  loadData(is, myDoNml);
458  loadData(is, myDoUVW);
459  loadData(is, myDoVoxel);
460  loadData(is, myDoSlerp);
461  loadData(is, myPtIDAttr);
462  loadData(is, myPrimIDAttr);
463 
464  return true;
465  }
466 
467  fpreal64 getBlend() const { return myBlend; }
468  void setBlend(fpreal64 val) { myBlend = val; }
469  fpreal64 opBlend(const SOP_NodeVerb::CookParms &cookparms) const
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getBlend();
474  OP_Utils::evalOpParm(result, thissop, "blend", cookparms.getCookTime(), 0);
475  return result;
476  }
477  bool getDoPos() const { return myDoPos; }
478  void setDoPos(bool val) { myDoPos = val; }
479  bool opDoPos(const SOP_NodeVerb::CookParms &cookparms) const
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getDoPos();
483  bool result;
484  OP_Utils::evalOpParm(result, thissop, "dopos", cookparms.getCookTime(), 0);
485  return result;
486  }
487  bool getDoClr() const { return myDoClr; }
488  void setDoClr(bool val) { myDoClr = val; }
489  bool opDoClr(const SOP_NodeVerb::CookParms &cookparms) const
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getDoClr();
493  bool result;
494  OP_Utils::evalOpParm(result, thissop, "doclr", cookparms.getCookTime(), 0);
495  return result;
496  }
497  bool getDoNml() const { return myDoNml; }
498  void setDoNml(bool val) { myDoNml = val; }
499  bool opDoNml(const SOP_NodeVerb::CookParms &cookparms) const
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getDoNml();
503  bool result;
504  OP_Utils::evalOpParm(result, thissop, "donml", cookparms.getCookTime(), 0);
505  return result;
506  }
507  bool getDoUVW() const { return myDoUVW; }
508  void setDoUVW(bool val) { myDoUVW = val; }
509  bool opDoUVW(const SOP_NodeVerb::CookParms &cookparms) const
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getDoUVW();
513  bool result;
514  OP_Utils::evalOpParm(result, thissop, "douvw", cookparms.getCookTime(), 0);
515  return result;
516  }
517  bool getDoVoxel() const { return myDoVoxel; }
518  void setDoVoxel(bool val) { myDoVoxel = val; }
519  bool opDoVoxel(const SOP_NodeVerb::CookParms &cookparms) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getDoVoxel();
523  bool result;
524  OP_Utils::evalOpParm(result, thissop, "dovoxel", cookparms.getCookTime(), 0);
525  return result;
526  }
527  bool getDoSlerp() const { return myDoSlerp; }
528  void setDoSlerp(bool val) { myDoSlerp = val; }
529  bool opDoSlerp(const SOP_NodeVerb::CookParms &cookparms) const
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getDoSlerp();
533  bool result;
534  OP_Utils::evalOpParm(result, thissop, "doslerp", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getPtIDAttr() const { return myPtIDAttr; }
538  void setPtIDAttr(const UT_StringHolder & val) { myPtIDAttr = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getPtIDAttr();
544  OP_Utils::evalOpParm(result, thissop, "ptidattr", cookparms.getCookTime(), 0);
545  return result;
546  }
547  const UT_StringHolder & getPrimIDAttr() const { return myPrimIDAttr; }
548  void setPrimIDAttr(const UT_StringHolder & val) { myPrimIDAttr = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getPrimIDAttr();
554  OP_Utils::evalOpParm(result, thissop, "primidattr", cookparms.getCookTime(), 0);
555  return result;
556  }
557 
558 private:
559  fpreal64 myBlend;
560  bool myDoPos;
561  bool myDoClr;
562  bool myDoNml;
563  bool myDoUVW;
564  bool myDoVoxel;
565  bool myDoSlerp;
566  UT_StringHolder myPtIDAttr;
567  UT_StringHolder myPrimIDAttr;
568 
569 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Vector4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
bool getDoNml() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_StringHolder s)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setDoSlerp(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
exint bread(int32 *buffer, exint asize=1)
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
bool getDoPos() const
fpreal getTime() const
Definition: OP_Context.h:62
bool operator==(const SOP_SBlendParms &src) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool getDoUVW() const
void setDoNml(bool val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE const char * buffer() const
exint getNestNumParms(TempIndex idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:613
static void loadData(UT_IStream &is, bool &v)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
bool opDoClr(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setDoPos(bool val)
static void saveData(std::ostream &os, UT_Matrix4D v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, int64 &v)
UT_StringHolder opPtIDAttr(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
static void loadData(UT_IStream &is, UT_Vector4D &v)
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
fpreal64 opBlend(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint length() const
bool getDoVoxel() const
bool getDoClr() const
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 setBlend(fpreal64 val)
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setDoUVW(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setDoClr(bool val)
bool load(UT_IStream &is)
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
UT_StringHolder opPrimIDAttr(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static int version()
static void saveData(std::ostream &os, UT_Vector2D v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
fpreal64 getBlend() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setDoVoxel(bool val)
void setPtIDAttr(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setPrimIDAttr(const UT_StringHolder &val)
bool opDoPos(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
bool getDoSlerp() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, UT_StringHolder &v)
#define SOP_API
Definition: SOP_API.h:10
const UT_StringHolder & getPrimIDAttr() const
static void loadData(UT_IStream &is, fpreal64 &v)
bool isParmColorRamp(exint idx) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const UT_StringHolder & getPtIDAttr() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
bool operator!=(const SOP_SBlendParms &src) const
GLboolean r
Definition: glcorearb.h:1222
bool opDoUVW(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void copyFrom(const OP_NodeParms *src) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
bool opDoNml(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
bool opDoSlerp(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
ParmType getNestParmType(TempIndex fieldnum) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
bool opDoVoxel(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
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
const char * getNestParmName(TempIndex fieldnum) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const