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