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