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 <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  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 
95  if (baseGetSignature() != src.baseGetSignature()) return false;
96 
97  return true;
98  }
99  bool operator!=(const SOP_WireBlendParms &src) const
100  {
101  return !operator==(src);
102  }
103 
104 
105 
106  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
107  {
108  myGroup = ""_UTsh;
109  if (true)
110  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
111  myDiff = true;
112  if (true)
113  graph->evalOpParm(myDiff, nodeidx, "diff", time, graph->isDirect()?nullptr:depnode);
114  if (true)
115  {
116  int64 length = 0;
117  graph->evalOpParm(length, nodeidx, "nblends", time, graph->isDirect()?nullptr:depnode);
118  if (length < 0) length = 0;
119  myNblends.setSize(length);
120  for (exint i = 0; i < length; i++)
121  {
122  int parmidx[1];
123  int offsets[1];
124  parmidx[0] = i+0;
125  offsets[0] = 0;
126  auto && _curentry = myNblends(i);
127  (void) _curentry;
128  _curentry.blend = 0;
129  if (true)
130  graph->evalOpParmInst(_curentry.blend, nodeidx, "blend#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
131 
132  }
133  }
134  else
135  myNblends.clear();
136 
137  }
138 
139 
140  void loadFromOpSubclass(const LoadParms &loadparms) override
141  {
142  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
143  }
144 
145 
146  void copyFrom(const OP_NodeParms *src) override
147  {
148  *this = *((const SOP_WireBlendParms *)src);
149  }
150 
151  template <typename T>
152  void
153  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
154  {
155  if (idx.size() < 1)
156  return;
157  UT_ASSERT(idx.size() == instance.size()+1);
158  if (idx.size() != instance.size()+1)
159  return;
160  switch (idx[0])
161  {
162  case 0:
163  coerceValue(value, myGroup);
164  break;
165  case 1:
166  coerceValue(value, myDiff);
167  break;
168  case 2:
169  if (idx.size() == 1)
170  coerceValue(value, myNblends.entries());
171  else if (instance[0] < myNblends.entries())
172  {
173  auto && _data = myNblends(instance[0]);
174  switch (idx[1])
175  {
176  case 0:
177  coerceValue(value, _data.blend);
178  break;
179 
180  }
181  }
182  break;
183 
184  }
185  }
186 
187  bool isParmColorRamp(exint idx) const override
188  {
189  switch (idx)
190  {
191 
192  }
193  return false;
194  }
195 
196  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
217  { doGetParmValue(idx, instance, value); }
218 
219  template <typename T>
220  void
221  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
222  {
223  if (idx.size() < 1)
224  return;
225  UT_ASSERT(idx.size() == instance.size()+1);
226  if (idx.size() != instance.size()+1)
227  return;
228  switch (idx[0])
229  {
230  case 0:
231  coerceValue(myGroup, ( ( value ) ));
232  break;
233  case 1:
234  coerceValue(myDiff, ( ( value ) ));
235  break;
236  case 2:
237  if (idx.size() == 1)
238  {
239  exint newsize;
240  coerceValue(newsize, value);
241  if (newsize < 0) newsize = 0;
242  myNblends.setSize(newsize);
243  }
244  else
245  {
246  if (instance[0] < 0)
247  return;
248  myNblends.setSizeIfNeeded(instance[0]+1);
249  auto && _data = myNblends(instance[0]);
250  switch (idx[1])
251  {
252  case 0:
253  coerceValue(_data.blend, value);
254  break;
255 
256  }
257  }
258  break;
259 
260  }
261  }
262 
263  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
284  { doSetParmValue(idx, instance, value); }
285 
286  exint getNestNumParms(TempIndex idx) const override
287  {
288  if (idx.size() == 0)
289  return 3;
290  switch (idx[0])
291  {
292  case 2:
293  return 1;
294 
295  }
296  // Invalid
297  return 0;
298  }
299 
300  const char *getNestParmName(TempIndex fieldnum) const override
301  {
302  if (fieldnum.size() < 1)
303  return 0;
304  switch (fieldnum[0])
305  {
306  case 0:
307  return "group";
308  case 1:
309  return "diff";
310  case 2:
311  if (fieldnum.size() == 1)
312  return "nblends";
313  switch (fieldnum[1])
314  {
315  case 0:
316  return "blend#";
317 
318  }
319  return 0;
320 
321  }
322  return 0;
323  }
324 
325  ParmType getNestParmType(TempIndex fieldnum) const override
326  {
327  if (fieldnum.size() < 1)
328  return PARM_UNSUPPORTED;
329  switch (fieldnum[0])
330  {
331  case 0:
332  return PARM_STRING;
333  case 1:
334  return PARM_INTEGER;
335  case 2:
336  if (fieldnum.size() == 1)
337  return PARM_MULTIPARM;
338  switch (fieldnum[1])
339  {
340  case 0:
341  return PARM_FLOAT;
342 
343  }
344  return PARM_UNSUPPORTED;
345 
346  }
347  return PARM_UNSUPPORTED;
348  }
349 
350  // Boiler plate to load individual types.
351  static void loadData(UT_IStream &is, int64 &v)
352  { is.bread(&v, 1); }
353  static void loadData(UT_IStream &is, bool &v)
354  { int64 iv; is.bread(&iv, 1); v = iv; }
355  static void loadData(UT_IStream &is, fpreal64 &v)
356  { is.bread<fpreal64>(&v, 1); }
357  static void loadData(UT_IStream &is, UT_Vector2D &v)
358  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
359  static void loadData(UT_IStream &is, UT_Vector3D &v)
360  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
361  is.bread<fpreal64>(&v.z(), 1); }
362  static void loadData(UT_IStream &is, UT_Vector4D &v)
363  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
364  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
365  static void loadData(UT_IStream &is, UT_Matrix2D &v)
366  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
367  static void loadData(UT_IStream &is, UT_Matrix3D &v)
368  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
369  static void loadData(UT_IStream &is, UT_Matrix4D &v)
370  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
371  static void loadData(UT_IStream &is, UT_Vector2I &v)
372  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3I &v)
374  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
375  is.bread<int64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4I &v)
377  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
378  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
380  { is.bread(v); }
382  { UT_StringHolder rampdata;
383  loadData(is, rampdata);
384  if (rampdata.isstring())
385  {
386  v.reset(new UT_Ramp());
387  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
388  v->load(istr);
389  }
390  else v.reset();
391  }
394  loadData(is, data);
395  if (data.isstring())
396  {
397  // Find the data type.
398  const char *colon = UT_StringWrap(data).findChar(':');
399  if (colon)
400  {
401  int typelen = colon - data.buffer();
403  type.strncpy(data.buffer(), typelen);
404  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
405 
406  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
407  }
408  }
409  else v.reset();
410  }
411 
412  static void saveData(std::ostream &os, int64 v)
413  { UTwrite(os, &v); }
414  static void saveData(std::ostream &os, bool v)
415  { int64 iv = v; UTwrite(os, &iv); }
416  static void saveData(std::ostream &os, fpreal64 v)
417  { UTwrite<fpreal64>(os, &v); }
418  static void saveData(std::ostream &os, UT_Vector2D v)
419  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
420  static void saveData(std::ostream &os, UT_Vector3D v)
421  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
422  UTwrite<fpreal64>(os, &v.z()); }
423  static void saveData(std::ostream &os, UT_Vector4D v)
424  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
425  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
426  static void saveData(std::ostream &os, UT_Matrix2D v)
428  static void saveData(std::ostream &os, UT_Matrix3D v)
430  static void saveData(std::ostream &os, UT_Matrix4D v)
432  static void saveData(std::ostream &os, UT_StringHolder s)
433  { UT_StringWrap(s).saveBinary(os); }
434  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
436  UT_OStringStream ostr;
437  if (s) s->save(ostr);
438  result = ostr.str();
439  saveData(os, result);
440  }
441  static void saveData(std::ostream &os, PRM_DataItemHandle s)
443  UT_OStringStream ostr;
444  if (s)
445  {
446  ostr << s->getDataTypeToken();
447  ostr << ":";
448  s->saveBinary(ostr);
449  }
450  result = ostr.str();
451  saveData(os, result);
452  }
453 
454 
455  void save(std::ostream &os) const
456  {
457  int32 v = version();
458  UTwrite(os, &v);
459  saveData(os, myGroup);
460  saveData(os, myDiff);
461  {
462  int64 length = myNblends.entries();
463  UTwrite(os, &length);
464  for (exint i = 0; i < length; i++)
465  {
466  auto && _curentry = myNblends(i);
467  (void) _curentry;
468  saveData(os, _curentry.blend);
469 
470  }
471  }
472 
473  }
474 
475  bool load(UT_IStream &is)
476  {
477  int32 v;
478  is.bread(&v, 1);
479  if (version() != v)
480  {
481  // Fail incompatible versions
482  return false;
483  }
484  loadData(is, myGroup);
485  loadData(is, myDiff);
486  {
487  int64 length;
488  is.read(&length, 1);
489  myNblends.setSize(length);
490  for (exint i = 0; i < length; i++)
491  {
492  auto && _curentry = myNblends(i);
493  (void) _curentry;
494  loadData(is, _curentry.blend);
495 
496  }
497  }
498 
499  return true;
500  }
501 
502  const UT_StringHolder & getGroup() const { return myGroup; }
503  void setGroup(const UT_StringHolder & val) { myGroup = val; }
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getGroup();
509  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
510  return result;
511  }
512  bool getDiff() const { return myDiff; }
513  void setDiff(bool val) { myDiff = val; }
514  bool opDiff(const SOP_NodeVerb::CookParms &cookparms) const
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getDiff();
518  bool result;
519  OP_Utils::evalOpParm(result, thissop, "diff", cookparms.getCookTime(), 0);
520  return result;
521  }
522  const UT_Array<Nblends> &getNblends() const { return myNblends; }
523 void setNblends(const UT_Array<Nblends> &val) { myNblends = val; }
524  exint opNblends(const SOP_NodeVerb::CookParms &cookparms) const
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getNblends().entries();
528  exint result;
529  OP_Utils::evalOpParm(result, thissop, "nblends", cookparms.getCookTime(), 0);
530  return result;
531  }
532  fpreal64 opNblends_blend(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
533  { return opinstNblends_blend(cookparms, &_idx); }
534  fpreal64 opinstNblends_blend(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return (myNblends(_idx[0]).blend);
538  int _parmidx[2-1];
539  _parmidx[1-1] = _idx[1-1] + 0;
540 
542  OP_Utils::evalOpParmInst(result, thissop, "blend#", _parmidx, cookparms.getCookTime(), 0, 2-1);
543  return (result);
544  }
545 
546 
547 private:
548  UT_StringHolder myGroup;
549  bool myDiff;
550  UT_Array<Nblends> myNblends;
551 
552 };
type
Definition: core.h:556
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:63
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const UT_Array< Nblends > & getNblends() const
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:4949
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:303
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:655
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:310
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
void setNblends(const UT_Array< Nblends > &val)
bool isParmColorRamp(exint idx) const override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void saveData(std::ostream &os, PRM_DataItemHandle s)
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