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