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 
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  return true;
123  }
124  bool operator!=(const SOP_InvokeParms &src) const
125  {
126  return !operator==(src);
127  }
129 
130 
131 
132  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
133  {
134  myBlockpath = ""_UTsh;
135  if (true)
136  graph->evalOpParm(myBlockpath, nodeidx, "blockpath", time, 0);
137  if (true)
138  {
139  int64 length = 0;
140  graph->evalOpParm(length, nodeidx, "inputs", time, 0);
141  if (length < 0) length = 0;
142  myInputs.setSize(length);
143  for (exint i = 0; i < length; i++)
144  {
145  int parmidx[1];
146  int offsets[1];
147  parmidx[0] = i+0;
148  offsets[0] = 0;
149  auto && _curentry = myInputs(i);
150  (void) _curentry;
151  _curentry.name = ""_UTsh;
152  if (true)
153  graph->evalOpParmInst(_curentry.name, nodeidx, "name#", parmidx, offsets, time, 0, 2-1);
154  _curentry.inputpath = ""_UTsh;
155  if (true)
156  graph->evalOpParmInst(_curentry.inputpath, nodeidx, "inputpath#", parmidx, offsets, time, 0, 2-1);
157 
158  }
159  }
160  else
161  myInputs.clear();
162  myUnload = 2;
163  if (true)
164  graph->evalOpParm(myUnload, nodeidx, "unload", time, 0);
165 
166  }
167 
168 
169  void loadFromOpSubclass(const LoadParms &loadparms) override
170  {
171  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
172  }
173 
174 
175  void copyFrom(const OP_NodeParms *src) override
176  {
177  *this = *((const SOP_InvokeParms *)src);
178  }
179 
180  template <typename T>
181  void
182  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
183  {
184  if (idx.size() < 1)
185  return;
186  UT_ASSERT(idx.size() == instance.size()+1);
187  if (idx.size() != instance.size()+1)
188  return;
189  switch (idx[0])
190  {
191  case 0:
192  coerceValue(value, myBlockpath);
193  break;
194  case 1:
195  if (idx.size() == 1)
196  coerceValue(value, myInputs.entries());
197  else if (instance[0] < myInputs.entries())
198  {
199  auto && _data = myInputs(instance[0]);
200  switch (idx[1])
201  {
202  case 0:
203  coerceValue(value, _data.name);
204  break;
205  case 1:
206  coerceValue(value, _data.inputpath);
207  break;
208 
209  }
210  }
211  break;
212  case 2:
213  coerceValue(value, myUnload);
214  break;
215 
216  }
217  }
218 
219  bool isParmColorRamp(exint idx) const override
220  {
221  switch (idx)
222  {
223 
224  }
225  return false;
226  }
227 
228  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
233  { doGetParmValue(idx, instance, value); }
234  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
235  { doGetParmValue(idx, instance, value); }
236  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
237  { doGetParmValue(idx, instance, value); }
238  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
239  { doGetParmValue(idx, instance, value); }
240  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
241  { doGetParmValue(idx, instance, value); }
242  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
243  { doGetParmValue(idx, instance, value); }
244  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
245  { doGetParmValue(idx, instance, value); }
246  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
247  { doGetParmValue(idx, instance, value); }
248  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
249  { doGetParmValue(idx, instance, value); }
250 
251  template <typename T>
252  void
253  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
254  {
255  if (idx.size() < 1)
256  return;
257  UT_ASSERT(idx.size() == instance.size()+1);
258  if (idx.size() != instance.size()+1)
259  return;
260  switch (idx[0])
261  {
262  case 0:
263  coerceValue(myBlockpath, ( ( value ) ));
264  break;
265  case 1:
266  if (idx.size() == 1)
267  {
268  exint newsize;
269  coerceValue(newsize, value);
270  if (newsize < 0) newsize = 0;
271  myInputs.setSize(newsize);
272  }
273  else
274  {
275  if (instance[0] < 0)
276  return;
277  myInputs.setSizeIfNeeded(instance[0]+1);
278  auto && _data = myInputs(instance[0]);
279  switch (idx[1])
280  {
281  case 0:
282  coerceValue(_data.name, value);
283  break;
284  case 1:
285  coerceValue(_data.inputpath, value);
286  break;
287 
288  }
289  }
290  break;
291  case 2:
292  coerceValue(myUnload, clampMinValue(0, clampMaxValue(2, value ) ));
293  break;
294 
295  }
296  }
297 
298  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
299  { doSetParmValue(idx, instance, value); }
300  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
301  { doSetParmValue(idx, instance, value); }
302  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
303  { doSetParmValue(idx, instance, value); }
304  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
305  { doSetParmValue(idx, instance, value); }
306  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
307  { doSetParmValue(idx, instance, value); }
308  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
309  { doSetParmValue(idx, instance, value); }
310  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
311  { doSetParmValue(idx, instance, value); }
312  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
313  { doSetParmValue(idx, instance, value); }
314  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
315  { doSetParmValue(idx, instance, value); }
316  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
317  { doSetParmValue(idx, instance, value); }
318  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
319  { doSetParmValue(idx, instance, value); }
320 
321  exint getNestNumParms(TempIndex idx) const override
322  {
323  if (idx.size() == 0)
324  return 3;
325  switch (idx[0])
326  {
327  case 1:
328  return 2;
329 
330  }
331  // Invalid
332  return 0;
333  }
334 
335  const char *getNestParmName(TempIndex fieldnum) const override
336  {
337  if (fieldnum.size() < 1)
338  return 0;
339  switch (fieldnum[0])
340  {
341  case 0:
342  return "blockpath";
343  case 1:
344  if (fieldnum.size() == 1)
345  return "inputs";
346  switch (fieldnum[1])
347  {
348  case 0:
349  return "name#";
350  case 1:
351  return "inputpath#";
352 
353  }
354  return 0;
355  case 2:
356  return "unload";
357 
358  }
359  return 0;
360  }
361 
362  ParmType getNestParmType(TempIndex fieldnum) const override
363  {
364  if (fieldnum.size() < 1)
365  return PARM_UNSUPPORTED;
366  switch (fieldnum[0])
367  {
368  case 0:
369  return PARM_STRING;
370  case 1:
371  if (fieldnum.size() == 1)
372  return PARM_MULTIPARM;
373  switch (fieldnum[1])
374  {
375  case 0:
376  return PARM_STRING;
377  case 1:
378  return PARM_STRING;
379 
380  }
381  return PARM_UNSUPPORTED;
382  case 2:
383  return PARM_INTEGER;
384 
385  }
386  return PARM_UNSUPPORTED;
387  }
388 
389  // Boiler plate to load individual types.
390  static void loadData(UT_IStream &is, int64 &v)
391  { is.bread(&v, 1); }
392  static void loadData(UT_IStream &is, bool &v)
393  { int64 iv; is.bread(&iv, 1); v = iv; }
394  static void loadData(UT_IStream &is, fpreal64 &v)
395  { is.bread<fpreal64>(&v, 1); }
396  static void loadData(UT_IStream &is, UT_Vector2D &v)
397  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector3D &v)
399  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
400  is.bread<fpreal64>(&v.z(), 1); }
401  static void loadData(UT_IStream &is, UT_Vector4D &v)
402  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
403  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
404  static void loadData(UT_IStream &is, UT_Matrix2D &v)
405  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
406  static void loadData(UT_IStream &is, UT_Matrix3D &v)
407  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
408  static void loadData(UT_IStream &is, UT_Matrix4D &v)
409  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
410  static void loadData(UT_IStream &is, UT_Vector2I &v)
411  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
412  static void loadData(UT_IStream &is, UT_Vector3I &v)
413  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
414  is.bread<int64>(&v.z(), 1); }
415  static void loadData(UT_IStream &is, UT_Vector4I &v)
416  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
417  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
419  { is.bread(v); }
421  { UT_StringHolder rampdata;
422  loadData(is, rampdata);
423  if (rampdata.isstring())
424  {
425  v.reset(new UT_Ramp());
426  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
427  v->load(istr);
428  }
429  else v.reset();
430  }
433  loadData(is, data);
434  if (data.isstring())
435  {
436  // Find the data type.
437  const char *colon = UT_StringWrap(data).findChar(':');
438  if (colon)
439  {
440  int typelen = colon - data.buffer();
442  type.strncpy(data.buffer(), typelen);
443  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
444 
445  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
446  }
447  }
448  else v.reset();
449  }
450 
451  static void saveData(std::ostream &os, int64 v)
452  { UTwrite(os, &v); }
453  static void saveData(std::ostream &os, bool v)
454  { int64 iv = v; UTwrite(os, &iv); }
455  static void saveData(std::ostream &os, fpreal64 v)
456  { UTwrite<fpreal64>(os, &v); }
457  static void saveData(std::ostream &os, UT_Vector2D v)
458  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
459  static void saveData(std::ostream &os, UT_Vector3D v)
460  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
461  UTwrite<fpreal64>(os, &v.z()); }
462  static void saveData(std::ostream &os, UT_Vector4D v)
463  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
464  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
465  static void saveData(std::ostream &os, UT_Matrix2D v)
467  static void saveData(std::ostream &os, UT_Matrix3D v)
469  static void saveData(std::ostream &os, UT_Matrix4D v)
471  static void saveData(std::ostream &os, UT_StringHolder s)
472  { UT_StringWrap(s).saveBinary(os); }
473  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
475  UT_OStringStream ostr;
476  if (s) s->save(ostr);
477  result = ostr.str();
478  saveData(os, result);
479  }
480  static void saveData(std::ostream &os, PRM_DataItemHandle s)
482  UT_OStringStream ostr;
483  if (s)
484  {
485  ostr << s->getDataTypeToken();
486  ostr << ":";
487  s->saveBinary(ostr);
488  }
489  result = ostr.str();
490  saveData(os, result);
491  }
492 
493 
494  void save(std::ostream &os) const
495  {
496  int32 v = version();
497  UTwrite(os, &v);
498  saveData(os, myBlockpath);
499  {
500  int64 length = myInputs.entries();
501  UTwrite(os, &length);
502  for (exint i = 0; i < length; i++)
503  {
504  auto && _curentry = myInputs(i);
505  (void) _curentry;
506  saveData(os, _curentry.name);
507  saveData(os, _curentry.inputpath);
508 
509  }
510  }
511  saveData(os, myUnload);
512 
513  }
514 
515  bool load(UT_IStream &is)
516  {
517  int32 v;
518  is.bread(&v, 1);
519  if (version() != v)
520  {
521  // Fail incompatible versions
522  return false;
523  }
524  loadData(is, myBlockpath);
525  {
526  int64 length;
527  is.read(&length, 1);
528  myInputs.setSize(length);
529  for (exint i = 0; i < length; i++)
530  {
531  auto && _curentry = myInputs(i);
532  (void) _curentry;
533  loadData(is, _curentry.name);
534  loadData(is, _curentry.inputpath);
535 
536  }
537  }
538  loadData(is, myUnload);
539 
540  return true;
541  }
542 
543  const UT_StringHolder & getBlockpath() const { return myBlockpath; }
544  void setBlockpath(const UT_StringHolder & val) { myBlockpath = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getBlockpath();
550  OP_Utils::evalOpParm(result, thissop, "blockpath", cookparms.getCookTime(), 0);
551  return result;
552  }
553  const UT_Array<Inputs> &getInputs() const { return myInputs; }
554 void setInputs(const UT_Array<Inputs> &val) { myInputs = val; }
555  exint opInputs(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getInputs().entries();
559  exint result;
560  OP_Utils::evalOpParm(result, thissop, "inputs", cookparms.getCookTime(), 0);
561  return result;
562  }
563  UT_StringHolder opInputs_name(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
564  { return opinstInputs_name(cookparms, &_idx); }
565  UT_StringHolder opinstInputs_name(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return (myInputs(_idx[0]).name);
569  int _parmidx[2-1];
570  _parmidx[1-1] = _idx[1-1] + 0;
571 
573  OP_Utils::evalOpParmInst(result, thissop, "name#", _parmidx, cookparms.getCookTime(), 0, 2-1);
574  return (result);
575  }
577  { return opinstInputs_inputpath(cookparms, &_idx); }
578  UT_StringHolder opinstInputs_inputpath(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
579  {
580  SOP_Node *thissop = cookparms.getNode();
581  if (!thissop) return (myInputs(_idx[0]).inputpath);
582  int _parmidx[2-1];
583  _parmidx[1-1] = _idx[1-1] + 0;
584 
586  OP_Utils::evalOpParmInst(result, thissop, "inputpath#", _parmidx, cookparms.getCookTime(), 0, 2-1);
587  return (result);
588  }
589 
590  Unload getUnload() const { return Unload(myUnload); }
591  void setUnload(Unload val) { myUnload = int64(val); }
592  Unload opUnload(const SOP_NodeVerb::CookParms &cookparms) const
593  {
594  SOP_Node *thissop = cookparms.getNode();
595  if (!thissop) return getUnload();
596  int64 result;
597  OP_Utils::evalOpParm(result, thissop, "unload", cookparms.getCookTime(), 0);
598  return Unload(result);
599  }
600 
601 private:
602  UT_StringHolder myBlockpath;
603  UT_Array<Inputs> myInputs;
604  int64 myUnload;
605 
606 };
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
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: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
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)
#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: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
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
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
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:1395
#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:97
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