HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_SurfaceSplat.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  myBind_mask = "mask"_UTsh;
32  myNegatemask = false;
33  myBind_width = "width"_UTsh;
34  myBind_alpha = "alpha"_UTsh;
35  myBind_softedge = "softedge"_UTsh;
36  myBind_hit = "hit"_UTsh;
37  myBind_hitprim = "hitprim"_UTsh;
38  myBind_hituv = "hituv"_UTsh;
39 
40  }
41 
42  explicit SOP_SurfaceSplatParms(const SOP_SurfaceSplatParms &) = default;
44  SOP_SurfaceSplatParms(SOP_SurfaceSplatParms &&) noexcept = default;
45  SOP_SurfaceSplatParms &operator=(SOP_SurfaceSplatParms &&) noexcept = default;
46 
47  ~SOP_SurfaceSplatParms() override {}
48 
50  {
51  if (myBind_mask != src.myBind_mask) return false;
52  if (myNegatemask != src.myNegatemask) return false;
53  if (myBind_width != src.myBind_width) return false;
54  if (myBind_alpha != src.myBind_alpha) return false;
55  if (myBind_softedge != src.myBind_softedge) return false;
56  if (myBind_hit != src.myBind_hit) return false;
57  if (myBind_hitprim != src.myBind_hitprim) return false;
58  if (myBind_hituv != src.myBind_hituv) return false;
59 
60  return true;
61  }
63  {
64  return !operator==(src);
65  }
66 
67 
68 
69  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
70  {
71  myBind_mask = "mask"_UTsh;
72  if (true)
73  graph->evalOpParm(myBind_mask, nodeidx, "bind_mask", time, 0);
74  myNegatemask = false;
75  if (true)
76  graph->evalOpParm(myNegatemask, nodeidx, "negatemask", time, 0);
77  myBind_width = "width"_UTsh;
78  if (true)
79  graph->evalOpParm(myBind_width, nodeidx, "bind_width", time, 0);
80  myBind_alpha = "alpha"_UTsh;
81  if (true)
82  graph->evalOpParm(myBind_alpha, nodeidx, "bind_alpha", time, 0);
83  myBind_softedge = "softedge"_UTsh;
84  if (true)
85  graph->evalOpParm(myBind_softedge, nodeidx, "bind_softedge", time, 0);
86  myBind_hit = "hit"_UTsh;
87  if (true)
88  graph->evalOpParm(myBind_hit, nodeidx, "bind_hit", time, 0);
89  myBind_hitprim = "hitprim"_UTsh;
90  if (true)
91  graph->evalOpParm(myBind_hitprim, nodeidx, "bind_hitprim", time, 0);
92  myBind_hituv = "hituv"_UTsh;
93  if (true)
94  graph->evalOpParm(myBind_hituv, nodeidx, "bind_hituv", time, 0);
95 
96  }
97 
98 
99  void loadFromOpSubclass(const LoadParms &loadparms) override
100  {
101  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
102  }
103 
104 
105  void copyFrom(const OP_NodeParms *src) override
106  {
107  *this = *((const SOP_SurfaceSplatParms *)src);
108  }
109 
110  template <typename T>
111  void
112  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
113  {
114  if (idx.size() < 1)
115  return;
116  UT_ASSERT(idx.size() == instance.size()+1);
117  if (idx.size() != instance.size()+1)
118  return;
119  switch (idx[0])
120  {
121  case 0:
122  coerceValue(value, myBind_mask);
123  break;
124  case 1:
125  coerceValue(value, myNegatemask);
126  break;
127  case 2:
128  coerceValue(value, myBind_width);
129  break;
130  case 3:
131  coerceValue(value, myBind_alpha);
132  break;
133  case 4:
134  coerceValue(value, myBind_softedge);
135  break;
136  case 5:
137  coerceValue(value, myBind_hit);
138  break;
139  case 6:
140  coerceValue(value, myBind_hitprim);
141  break;
142  case 7:
143  coerceValue(value, myBind_hituv);
144  break;
145 
146  }
147  }
148 
149  bool isParmColorRamp(exint idx) const override
150  {
151  switch (idx)
152  {
153 
154  }
155  return false;
156  }
157 
158  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
159  { doGetParmValue(idx, instance, value); }
160  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
161  { doGetParmValue(idx, instance, value); }
162  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
179  { doGetParmValue(idx, instance, value); }
180 
181  template <typename T>
182  void
183  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
184  {
185  if (idx.size() < 1)
186  return;
187  UT_ASSERT(idx.size() == instance.size()+1);
188  if (idx.size() != instance.size()+1)
189  return;
190  switch (idx[0])
191  {
192  case 0:
193  coerceValue(myBind_mask, ( ( value ) ));
194  break;
195  case 1:
196  coerceValue(myNegatemask, ( ( value ) ));
197  break;
198  case 2:
199  coerceValue(myBind_width, ( ( value ) ));
200  break;
201  case 3:
202  coerceValue(myBind_alpha, ( ( value ) ));
203  break;
204  case 4:
205  coerceValue(myBind_softedge, ( ( value ) ));
206  break;
207  case 5:
208  coerceValue(myBind_hit, ( ( value ) ));
209  break;
210  case 6:
211  coerceValue(myBind_hitprim, ( ( value ) ));
212  break;
213  case 7:
214  coerceValue(myBind_hituv, ( ( value ) ));
215  break;
216 
217  }
218  }
219 
220  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
241  { doSetParmValue(idx, instance, value); }
242 
243  exint getNestNumParms(TempIndex idx) const override
244  {
245  if (idx.size() == 0)
246  return 8;
247  switch (idx[0])
248  {
249 
250  }
251  // Invalid
252  return 0;
253  }
254 
255  const char *getNestParmName(TempIndex fieldnum) const override
256  {
257  if (fieldnum.size() < 1)
258  return 0;
259  switch (fieldnum[0])
260  {
261  case 0:
262  return "bind_mask";
263  case 1:
264  return "negatemask";
265  case 2:
266  return "bind_width";
267  case 3:
268  return "bind_alpha";
269  case 4:
270  return "bind_softedge";
271  case 5:
272  return "bind_hit";
273  case 6:
274  return "bind_hitprim";
275  case 7:
276  return "bind_hituv";
277 
278  }
279  return 0;
280  }
281 
282  ParmType getNestParmType(TempIndex fieldnum) const override
283  {
284  if (fieldnum.size() < 1)
285  return PARM_UNSUPPORTED;
286  switch (fieldnum[0])
287  {
288  case 0:
289  return PARM_STRING;
290  case 1:
291  return PARM_INTEGER;
292  case 2:
293  return PARM_STRING;
294  case 3:
295  return PARM_STRING;
296  case 4:
297  return PARM_STRING;
298  case 5:
299  return PARM_STRING;
300  case 6:
301  return PARM_STRING;
302  case 7:
303  return PARM_STRING;
304 
305  }
306  return PARM_UNSUPPORTED;
307  }
308 
309  // Boiler plate to load individual types.
310  static void loadData(UT_IStream &is, int64 &v)
311  { is.bread(&v, 1); }
312  static void loadData(UT_IStream &is, bool &v)
313  { int64 iv; is.bread(&iv, 1); v = iv; }
314  static void loadData(UT_IStream &is, fpreal64 &v)
315  { is.bread<fpreal64>(&v, 1); }
316  static void loadData(UT_IStream &is, UT_Vector2D &v)
317  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector3D &v)
319  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
320  is.bread<fpreal64>(&v.z(), 1); }
321  static void loadData(UT_IStream &is, UT_Vector4D &v)
322  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
323  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
324  static void loadData(UT_IStream &is, UT_Matrix2D &v)
325  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
326  static void loadData(UT_IStream &is, UT_Matrix3D &v)
327  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
328  static void loadData(UT_IStream &is, UT_Matrix4D &v)
329  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
330  static void loadData(UT_IStream &is, UT_Vector2I &v)
331  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector3I &v)
333  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
334  is.bread<int64>(&v.z(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector4I &v)
336  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
337  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
339  { is.bread(v); }
341  { UT_StringHolder rampdata;
342  loadData(is, rampdata);
343  if (rampdata.isstring())
344  {
345  v.reset(new UT_Ramp());
346  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
347  v->load(istr);
348  }
349  else v.reset();
350  }
353  loadData(is, data);
354  if (data.isstring())
355  {
356  // Find the data type.
357  const char *colon = UT_StringWrap(data).findChar(':');
358  if (colon)
359  {
360  int typelen = colon - data.buffer();
362  type.strncpy(data.buffer(), typelen);
363  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
364 
365  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
366  }
367  }
368  else v.reset();
369  }
370 
371  static void saveData(std::ostream &os, int64 v)
372  { UTwrite(os, &v); }
373  static void saveData(std::ostream &os, bool v)
374  { int64 iv = v; UTwrite(os, &iv); }
375  static void saveData(std::ostream &os, fpreal64 v)
376  { UTwrite<fpreal64>(os, &v); }
377  static void saveData(std::ostream &os, UT_Vector2D v)
378  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
379  static void saveData(std::ostream &os, UT_Vector3D v)
380  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
381  UTwrite<fpreal64>(os, &v.z()); }
382  static void saveData(std::ostream &os, UT_Vector4D v)
383  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
384  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
385  static void saveData(std::ostream &os, UT_Matrix2D v)
387  static void saveData(std::ostream &os, UT_Matrix3D v)
389  static void saveData(std::ostream &os, UT_Matrix4D v)
391  static void saveData(std::ostream &os, UT_StringHolder s)
392  { UT_StringWrap(s).saveBinary(os); }
393  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
395  UT_OStringStream ostr;
396  if (s) s->save(ostr);
397  result = ostr.str();
398  saveData(os, result);
399  }
400  static void saveData(std::ostream &os, PRM_DataItemHandle s)
402  UT_OStringStream ostr;
403  if (s)
404  {
405  ostr << s->getDataTypeToken();
406  ostr << ":";
407  s->saveBinary(ostr);
408  }
409  result = ostr.str();
410  saveData(os, result);
411  }
412 
413 
414  void save(std::ostream &os) const
415  {
416  int32 v = version();
417  UTwrite(os, &v);
418  saveData(os, myBind_mask);
419  saveData(os, myNegatemask);
420  saveData(os, myBind_width);
421  saveData(os, myBind_alpha);
422  saveData(os, myBind_softedge);
423  saveData(os, myBind_hit);
424  saveData(os, myBind_hitprim);
425  saveData(os, myBind_hituv);
426 
427  }
428 
429  bool load(UT_IStream &is)
430  {
431  int32 v;
432  is.bread(&v, 1);
433  if (version() != v)
434  {
435  // Fail incompatible versions
436  return false;
437  }
438  loadData(is, myBind_mask);
439  loadData(is, myNegatemask);
440  loadData(is, myBind_width);
441  loadData(is, myBind_alpha);
442  loadData(is, myBind_softedge);
443  loadData(is, myBind_hit);
444  loadData(is, myBind_hitprim);
445  loadData(is, myBind_hituv);
446 
447  return true;
448  }
449 
450  const UT_StringHolder & getBind_mask() const { return myBind_mask; }
451  void setBind_mask(const UT_StringHolder & val) { myBind_mask = val; }
453  {
454  SOP_Node *thissop = cookparms.getNode();
455  if (!thissop) return getBind_mask();
457  OP_Utils::evalOpParm(result, thissop, "bind_mask", cookparms.getCookTime(), 0);
458  return result;
459  }
460  bool getNegatemask() const { return myNegatemask; }
461  void setNegatemask(bool val) { myNegatemask = val; }
462  bool opNegatemask(const SOP_NodeVerb::CookParms &cookparms) const
463  {
464  SOP_Node *thissop = cookparms.getNode();
465  if (!thissop) return getNegatemask();
466  bool result;
467  OP_Utils::evalOpParm(result, thissop, "negatemask", cookparms.getCookTime(), 0);
468  return result;
469  }
470  const UT_StringHolder & getBind_width() const { return myBind_width; }
471  void setBind_width(const UT_StringHolder & val) { myBind_width = val; }
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getBind_width();
477  OP_Utils::evalOpParm(result, thissop, "bind_width", cookparms.getCookTime(), 0);
478  return result;
479  }
480  const UT_StringHolder & getBind_alpha() const { return myBind_alpha; }
481  void setBind_alpha(const UT_StringHolder & val) { myBind_alpha = val; }
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getBind_alpha();
487  OP_Utils::evalOpParm(result, thissop, "bind_alpha", cookparms.getCookTime(), 0);
488  return result;
489  }
490  const UT_StringHolder & getBind_softedge() const { return myBind_softedge; }
491  void setBind_softedge(const UT_StringHolder & val) { myBind_softedge = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getBind_softedge();
497  OP_Utils::evalOpParm(result, thissop, "bind_softedge", cookparms.getCookTime(), 0);
498  return result;
499  }
500  const UT_StringHolder & getBind_hit() const { return myBind_hit; }
501  void setBind_hit(const UT_StringHolder & val) { myBind_hit = val; }
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getBind_hit();
507  OP_Utils::evalOpParm(result, thissop, "bind_hit", cookparms.getCookTime(), 0);
508  return result;
509  }
510  const UT_StringHolder & getBind_hitprim() const { return myBind_hitprim; }
511  void setBind_hitprim(const UT_StringHolder & val) { myBind_hitprim = val; }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getBind_hitprim();
517  OP_Utils::evalOpParm(result, thissop, "bind_hitprim", cookparms.getCookTime(), 0);
518  return result;
519  }
520  const UT_StringHolder & getBind_hituv() const { return myBind_hituv; }
521  void setBind_hituv(const UT_StringHolder & val) { myBind_hituv = val; }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getBind_hituv();
527  OP_Utils::evalOpParm(result, thissop, "bind_hituv", cookparms.getCookTime(), 0);
528  return result;
529  }
530 
531 private:
532  UT_StringHolder myBind_mask;
533  bool myNegatemask;
534  UT_StringHolder myBind_width;
535  UT_StringHolder myBind_alpha;
536  UT_StringHolder myBind_softedge;
537  UT_StringHolder myBind_hit;
538  UT_StringHolder myBind_hitprim;
539  UT_StringHolder myBind_hituv;
540 
541 };
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setBind_hituv(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, int64 &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const UT_StringHolder & getBind_width() const
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
fpreal getTime() const
Definition: OP_Context.h:62
const UT_StringHolder & getBind_alpha() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const UT_StringHolder & getBind_hit() const
bool load(UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setBind_mask(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
UT_StringHolder opBind_hituv(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
An output stream object that owns its own string buffer storage.
UT_StringHolder opBind_hit(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const SOP_SurfaceSplatParms &src) const
void setBind_width(const UT_StringHolder &val)
static void saveData(std::ostream &os, int64 v)
**But if you need a result
Definition: thread.h:613
UT_StringHolder opBind_softedge(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
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 buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
bool isParmColorRamp(exint idx) const override
const UT_StringHolder & getBind_hituv() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
static void saveData(std::ostream &os, UT_Vector2D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setBind_softedge(const UT_StringHolder &val)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setBind_hit(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
const char * getNestParmName(TempIndex fieldnum) const override
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Matrix2D &v)
exint getNestNumParms(TempIndex idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setBind_hitprim(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
UT_StringHolder opBind_alpha(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const UT_StringHolder & getBind_mask() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
bool opNegatemask(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
GT_API const UT_StringHolder version
const UT_StringHolder & getBind_hitprim() const
UT_StringHolder opBind_mask(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
UT_StringHolder opBind_hitprim(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, bool &v)
UT_StringHolder opBind_width(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
const UT_StringHolder & getBind_softedge() const
#define SOP_API
Definition: SOP_API.h:10
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void copyFrom(const OP_NodeParms *src) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &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
GLboolean r
Definition: glcorearb.h:1222
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Vector3D v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setBind_alpha(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
bool operator!=(const SOP_SurfaceSplatParms &src) const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663