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