HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_WireBlend.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  struct Nblends
29  {
31 
32 
34  {
35  blend = 0;
36 
37  }
38 
39  bool operator==(const Nblends &src) const
40  {
41  if (blend != src.blend) return false;
42 
43  return true;
44  }
45  bool operator!=(const Nblends &src) const
46  {
47  return !operator==(src);
48  }
49 
50  };
51 
53  {
55 
56  buf.strcat("[ ");
57  for (int i = 0; i < list.entries(); i++)
58  {
59  if (i)
60  buf.strcat(", ");
61  buf.strcat("( ");
62  buf.append("");
63  buf.appendSprintf("%f", (list(i).blend));
64 
65  buf.strcat(" )");
66  }
67  buf.strcat(" ]");
68 
70  return result;
71  }
72 
74  {
75  myGroup = ""_UTsh;
76  myDiff = true;
77  myNblends.setSize(2);
78 
79  }
80 
81  explicit SOP_WireBlendParms(const SOP_WireBlendParms &) = default;
83  SOP_WireBlendParms(SOP_WireBlendParms &&) noexcept = default;
84  SOP_WireBlendParms &operator=(SOP_WireBlendParms &&) noexcept = default;
85 
86  ~SOP_WireBlendParms() override {}
87 
88  bool operator==(const SOP_WireBlendParms &src) const
89  {
90  if (myGroup != src.myGroup) return false;
91  if (myDiff != src.myDiff) return false;
92  if (myNblends != src.myNblends) return false;
93 
94  return true;
95  }
96  bool operator!=(const SOP_WireBlendParms &src) const
97  {
98  return !operator==(src);
99  }
100 
101 
102 
103  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
104  {
105  myGroup = ""_UTsh;
106  if (true)
107  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
108  myDiff = true;
109  if (true)
110  graph->evalOpParm(myDiff, nodeidx, "diff", time, 0);
111  if (true)
112  {
113  int64 length = 0;
114  graph->evalOpParm(length, nodeidx, "nblends", time, 0);
115  if (length < 0) length = 0;
116  myNblends.setSize(length);
117  for (exint i = 0; i < length; i++)
118  {
119  int parmidx[1];
120  int offsets[1];
121  parmidx[0] = i+0;
122  offsets[0] = 0;
123  auto && _curentry = myNblends(i);
124  (void) _curentry;
125  _curentry.blend = 0;
126  if (true)
127  graph->evalOpParmInst(_curentry.blend, nodeidx, "blend#", parmidx, offsets, time, 0, 2-1);
128 
129  }
130  }
131  else
132  myNblends.clear();
133 
134  }
135 
136 
137  void loadFromOpSubclass(const LoadParms &loadparms) override
138  {
139  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
140  }
141 
142 
143  void copyFrom(const OP_NodeParms *src) override
144  {
145  *this = *((const SOP_WireBlendParms *)src);
146  }
147 
148  template <typename T>
149  void
150  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
151  {
152  if (idx.size() < 1)
153  return;
154  UT_ASSERT(idx.size() == instance.size()+1);
155  if (idx.size() != instance.size()+1)
156  return;
157  switch (idx[0])
158  {
159  case 0:
160  coerceValue(value, myGroup);
161  break;
162  case 1:
163  coerceValue(value, myDiff);
164  break;
165  case 2:
166  if (idx.size() == 1)
167  coerceValue(value, myNblends.entries());
168  else if (instance[0] < myNblends.entries())
169  {
170  auto && _data = myNblends(instance[0]);
171  switch (idx[1])
172  {
173  case 0:
174  coerceValue(value, _data.blend);
175  break;
176 
177  }
178  }
179  break;
180 
181  }
182  }
183 
184  bool isParmColorRamp(exint idx) const override
185  {
186  switch (idx)
187  {
188 
189  }
190  return false;
191  }
192 
193  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
214  { doGetParmValue(idx, instance, value); }
215 
216  template <typename T>
217  void
218  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
219  {
220  if (idx.size() < 1)
221  return;
222  UT_ASSERT(idx.size() == instance.size()+1);
223  if (idx.size() != instance.size()+1)
224  return;
225  switch (idx[0])
226  {
227  case 0:
228  coerceValue(myGroup, ( ( value ) ));
229  break;
230  case 1:
231  coerceValue(myDiff, ( ( value ) ));
232  break;
233  case 2:
234  if (idx.size() == 1)
235  {
236  exint newsize;
237  coerceValue(newsize, value);
238  if (newsize < 0) newsize = 0;
239  myNblends.setSize(newsize);
240  }
241  else
242  {
243  if (instance[0] < 0)
244  return;
245  myNblends.setSizeIfNeeded(instance[0]+1);
246  auto && _data = myNblends(instance[0]);
247  switch (idx[1])
248  {
249  case 0:
250  coerceValue(_data.blend, value);
251  break;
252 
253  }
254  }
255  break;
256 
257  }
258  }
259 
260  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
281  { doSetParmValue(idx, instance, value); }
282 
283  exint getNestNumParms(TempIndex idx) const override
284  {
285  if (idx.size() == 0)
286  return 3;
287  switch (idx[0])
288  {
289  case 2:
290  return 1;
291 
292  }
293  // Invalid
294  return 0;
295  }
296 
297  const char *getNestParmName(TempIndex fieldnum) const override
298  {
299  if (fieldnum.size() < 1)
300  return 0;
301  switch (fieldnum[0])
302  {
303  case 0:
304  return "group";
305  case 1:
306  return "diff";
307  case 2:
308  if (fieldnum.size() == 1)
309  return "nblends";
310  switch (fieldnum[1])
311  {
312  case 0:
313  return "blend#";
314 
315  }
316  return 0;
317 
318  }
319  return 0;
320  }
321 
322  ParmType getNestParmType(TempIndex fieldnum) const override
323  {
324  if (fieldnum.size() < 1)
325  return PARM_UNSUPPORTED;
326  switch (fieldnum[0])
327  {
328  case 0:
329  return PARM_STRING;
330  case 1:
331  return PARM_INTEGER;
332  case 2:
333  if (fieldnum.size() == 1)
334  return PARM_MULTIPARM;
335  switch (fieldnum[1])
336  {
337  case 0:
338  return PARM_FLOAT;
339 
340  }
341  return PARM_UNSUPPORTED;
342 
343  }
344  return PARM_UNSUPPORTED;
345  }
346 
347  // Boiler plate to load individual types.
348  static void loadData(UT_IStream &is, int64 &v)
349  { is.bread(&v, 1); }
350  static void loadData(UT_IStream &is, bool &v)
351  { int64 iv; is.bread(&iv, 1); v = iv; }
352  static void loadData(UT_IStream &is, fpreal64 &v)
353  { is.bread<fpreal64>(&v, 1); }
354  static void loadData(UT_IStream &is, UT_Vector2D &v)
355  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
356  static void loadData(UT_IStream &is, UT_Vector3D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
358  is.bread<fpreal64>(&v.z(), 1); }
359  static void loadData(UT_IStream &is, UT_Vector4D &v)
360  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
361  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
362  static void loadData(UT_IStream &is, UT_Matrix2D &v)
363  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
364  static void loadData(UT_IStream &is, UT_Matrix3D &v)
365  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
366  static void loadData(UT_IStream &is, UT_Matrix4D &v)
367  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
368  static void loadData(UT_IStream &is, UT_Vector2I &v)
369  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector3I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
372  is.bread<int64>(&v.z(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector4I &v)
374  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
375  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
377  { is.bread(v); }
379  { UT_StringHolder rampdata;
380  loadData(is, rampdata);
381  if (rampdata.isstring())
382  {
383  v.reset(new UT_Ramp());
384  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
385  v->load(istr);
386  }
387  else v.reset();
388  }
391  loadData(is, data);
392  if (data.isstring())
393  {
394  // Find the data type.
395  const char *colon = UT_StringWrap(data).findChar(':');
396  if (colon)
397  {
398  int typelen = colon - data.buffer();
400  type.strncpy(data.buffer(), typelen);
401  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
402 
403  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
404  }
405  }
406  else v.reset();
407  }
408 
409  static void saveData(std::ostream &os, int64 v)
410  { UTwrite(os, &v); }
411  static void saveData(std::ostream &os, bool v)
412  { int64 iv = v; UTwrite(os, &iv); }
413  static void saveData(std::ostream &os, fpreal64 v)
414  { UTwrite<fpreal64>(os, &v); }
415  static void saveData(std::ostream &os, UT_Vector2D v)
416  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
417  static void saveData(std::ostream &os, UT_Vector3D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
419  UTwrite<fpreal64>(os, &v.z()); }
420  static void saveData(std::ostream &os, UT_Vector4D v)
421  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
422  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
423  static void saveData(std::ostream &os, UT_Matrix2D v)
425  static void saveData(std::ostream &os, UT_Matrix3D v)
427  static void saveData(std::ostream &os, UT_Matrix4D v)
429  static void saveData(std::ostream &os, UT_StringHolder s)
430  { UT_StringWrap(s).saveBinary(os); }
431  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
433  UT_OStringStream ostr;
434  if (s) s->save(ostr);
435  result = ostr.str();
436  saveData(os, result);
437  }
438  static void saveData(std::ostream &os, PRM_DataItemHandle s)
440  UT_OStringStream ostr;
441  if (s)
442  {
443  ostr << s->getDataTypeToken();
444  ostr << ":";
445  s->saveBinary(ostr);
446  }
447  result = ostr.str();
448  saveData(os, result);
449  }
450 
451 
452  void save(std::ostream &os) const
453  {
454  int32 v = version();
455  UTwrite(os, &v);
456  saveData(os, myGroup);
457  saveData(os, myDiff);
458  {
459  int64 length = myNblends.entries();
460  UTwrite(os, &length);
461  for (exint i = 0; i < length; i++)
462  {
463  auto && _curentry = myNblends(i);
464  (void) _curentry;
465  saveData(os, _curentry.blend);
466 
467  }
468  }
469 
470  }
471 
472  bool load(UT_IStream &is)
473  {
474  int32 v;
475  is.bread(&v, 1);
476  if (version() != v)
477  {
478  // Fail incompatible versions
479  return false;
480  }
481  loadData(is, myGroup);
482  loadData(is, myDiff);
483  {
484  int64 length;
485  is.read(&length, 1);
486  myNblends.setSize(length);
487  for (exint i = 0; i < length; i++)
488  {
489  auto && _curentry = myNblends(i);
490  (void) _curentry;
491  loadData(is, _curentry.blend);
492 
493  }
494  }
495 
496  return true;
497  }
498 
499  const UT_StringHolder & getGroup() const { return myGroup; }
500  void setGroup(const UT_StringHolder & val) { myGroup = val; }
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return getGroup();
506  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
507  return result;
508  }
509  bool getDiff() const { return myDiff; }
510  void setDiff(bool val) { myDiff = val; }
511  bool opDiff(const SOP_NodeVerb::CookParms &cookparms) const
512  {
513  SOP_Node *thissop = cookparms.getNode();
514  if (!thissop) return getDiff();
515  bool result;
516  OP_Utils::evalOpParm(result, thissop, "diff", cookparms.getCookTime(), 0);
517  return result;
518  }
519  const UT_Array<Nblends> &getNblends() const { return myNblends; }
520 void setNblends(const UT_Array<Nblends> &val) { myNblends = val; }
521  exint opNblends(const SOP_NodeVerb::CookParms &cookparms) const
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return getNblends().entries();
525  exint result;
526  OP_Utils::evalOpParm(result, thissop, "nblends", cookparms.getCookTime(), 0);
527  return result;
528  }
529  fpreal64 opNblends_blend(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
530  { return opinstNblends_blend(cookparms, &_idx); }
531  fpreal64 opinstNblends_blend(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return (myNblends(_idx[0]).blend);
535  int _parmidx[2-1];
536  _parmidx[1-1] = _idx[1-1] + 0;
537 
539  OP_Utils::evalOpParmInst(result, thissop, "blend#", _parmidx, cookparms.getCookTime(), 0, 2-1);
540  return (result);
541  }
542 
543 
544 private:
545  UT_StringHolder myGroup;
546  bool myDiff;
547  UT_Array<Nblends> myNblends;
548 
549 };
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
bool operator!=(const SOP_WireBlendParms &src) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void
Definition: png.h:1083
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
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const UT_Array< Nblends > & getNblends() const
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const 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
static void saveData(std::ostream &os, UT_Matrix2D v)
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
static void loadData(UT_IStream &is, UT_Vector2D &v)
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:613
UT_StringHolder createString(const UT_Array< Nblends > &list) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
bool load(UT_IStream &is)
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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
const char * getNestParmName(TempIndex fieldnum) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glcorearb.h:2621
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
exint getNestNumParms(TempIndex idx) const override
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
Definition: simd.h:4784
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
exint length() 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
bool operator==(const Nblends &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal64 opNblends_blend(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:276
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, const int *inst, const int *offsets, fpreal time, DEP_MicroNode *depnode, int nestlevel=1) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, bool &v)
ParmType getNestParmType(TempIndex fieldnum) const override
const UT_StringHolder & getGroup() const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, int64 v)
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:648
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
bool opDiff(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
fpreal64 opinstNblends_blend(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
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
static void loadData(UT_IStream &is, UT_Vector4I &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
SYS_FORCE_INLINE void append(char character)
static void saveData(std::ostream &os, bool v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void save(std::ostream &os) const
void copyFrom(const OP_NodeParms *src) override
GLboolean r
Definition: glcorearb.h:1222
bool operator==(const SOP_WireBlendParms &src) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
type
Definition: core.h:1059
void setNblends(const UT_Array< Nblends > &val)
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void loadData(UT_IStream &is, UT_StringHolder &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
bool operator!=(const Nblends &src) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, int64 &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GLenum src
Definition: glcorearb.h:1793
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
exint opNblends(const SOP_NodeVerb::CookParms &cookparms) const