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