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