HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupRename.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_GroupRenameEnums
24 {
25  enum class Grouptype
26  {
27  ANY = 0,
28  POINTS,
29  PRIMS,
30  EDGES,
31  VERTICES
32  };
33 
35  getToken(Grouptype enum_value)
36  {
37  using namespace UT::Literal;
38  switch (enum_value) {
39  case Grouptype::ANY: return "any"_sh;
40  case Grouptype::POINTS: return "points"_sh;
41  case Grouptype::PRIMS: return "prims"_sh;
42  case Grouptype::EDGES: return "edges"_sh;
43  case Grouptype::VERTICES: return "vertices"_sh;
44  default: UT_ASSERT(false); return ""_sh;
45  }
46  }
47 
48  enum class Conflict
49  {
50  WARN = 0,
51  ERROR,
52  OVERWRITE,
53  UNION
54  };
55 
57  getToken(Conflict enum_value)
58  {
59  using namespace UT::Literal;
60  switch (enum_value) {
61  case Conflict::WARN: return "warn"_sh;
62  case Conflict::ERROR: return "error"_sh;
63  case Conflict::OVERWRITE: return "overwrite"_sh;
64  case Conflict::UNION: return "union"_sh;
65  default: UT_ASSERT(false); return ""_sh;
66  }
67  }
68 
69 }
70 
71 
73 {
74 public:
75  static int version() { return 1; }
76  struct Renames
77  {
78  bool enable;
83 
84 
86  {
87  enable = true;
88  grouptype = 0;
89  group = ""_UTsh;
90  newname = ""_UTsh;
91  conflict = 0;
92 
93  }
94 
95  bool operator==(const Renames &src) const
96  {
97  if (enable != src.enable) return false;
98  if (grouptype != src.grouptype) return false;
99  if (group != src.group) return false;
100  if (newname != src.newname) return false;
101  if (conflict != src.conflict) return false;
102 
103  return true;
104  }
105  bool operator!=(const Renames &src) const
106  {
107  return !operator==(src);
108  }
109 
110  };
111 
113  {
115 
116  buf.strcat("[ ");
117  for (int i = 0; i < list.entries(); i++)
118  {
119  if (i)
120  buf.strcat(", ");
121  buf.strcat("( ");
122  buf.append("");
123  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
124  buf.append(", ");
125  buf.appendSprintf("%d", (int) list(i).grouptype);
126  buf.append(", ");
127  { UT_String tmp; tmp = UT_StringWrap(list(i).group).makeQuotedString('"'); buf.strcat(tmp); }
128  buf.append(", ");
129  { UT_String tmp; tmp = UT_StringWrap(list(i).newname).makeQuotedString('"'); buf.strcat(tmp); }
130  buf.append(", ");
131  buf.appendSprintf("%d", (int) list(i).conflict);
132 
133  buf.strcat(" )");
134  }
135  buf.strcat(" ]");
136 
138  return result;
139  }
140 
142  {
143  myRenames.setSize(1);
144 
145  }
146 
147  explicit SOP_GroupRenameParms(const SOP_GroupRenameParms &) = default;
149  SOP_GroupRenameParms(SOP_GroupRenameParms &&) noexcept = default;
150  SOP_GroupRenameParms &operator=(SOP_GroupRenameParms &&) noexcept = default;
151 
152  ~SOP_GroupRenameParms() override {}
153 
155  {
156  if (myRenames != src.myRenames) return false;
157 
158 
159  if (baseGetSignature() != src.baseGetSignature()) return false;
160 
161  return true;
162  }
164  {
165  return !operator==(src);
166  }
169 
170 
171 
172  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
173  {
174  if (true)
175  {
176  int64 length = 0;
177  graph->evalOpParm(length, nodeidx, "renames", time, graph->isDirect()?nullptr:depnode);
178  if (length < 0) length = 0;
179  myRenames.setSize(length);
180  for (exint i = 0; i < length; i++)
181  {
182  int parmidx[1];
183  int offsets[1];
184  parmidx[0] = i+1;
185  offsets[0] = 1;
186  auto && _curentry = myRenames(i);
187  (void) _curentry;
188  _curentry.enable = true;
189  if (true)
190  graph->evalOpParmInst(_curentry.enable, nodeidx, "enable#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
191  _curentry.grouptype = 0;
192  if (true && ( (true&&!(((_curentry.enable==0)))) ) )
193  graph->evalOpParmInst(_curentry.grouptype, nodeidx, "grouptype#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
194  _curentry.group = ""_UTsh;
195  if (true && ( (true&&!(((_curentry.enable==0)))) ) )
196  graph->evalOpParmInst(_curentry.group, nodeidx, "group#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
197  _curentry.newname = ""_UTsh;
198  if (true && ( (true&&!(((_curentry.enable==0)))) ) )
199  graph->evalOpParmInst(_curentry.newname, nodeidx, "newname#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
200  _curentry.conflict = 0;
201  if (true && ( (true&&!(((_curentry.enable==0)))) ) )
202  graph->evalOpParmInst(_curentry.conflict, nodeidx, "conflict#", parmidx, offsets, time, graph->isDirect()?nullptr:depnode, 2-1);
203 
204  }
205  }
206  else
207  myRenames.clear();
208 
209  }
210 
211 
212  void loadFromOpSubclass(const LoadParms &loadparms) override
213  {
214  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
215  }
216 
217 
218  void copyFrom(const OP_NodeParms *src) override
219  {
220  *this = *((const SOP_GroupRenameParms *)src);
221  }
222 
223  template <typename T>
224  void
225  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
226  {
227  if (idx.size() < 1)
228  return;
229  UT_ASSERT(idx.size() == instance.size()+1);
230  if (idx.size() != instance.size()+1)
231  return;
232  switch (idx[0])
233  {
234  case 0:
235  if (idx.size() == 1)
236  coerceValue(value, myRenames.entries());
237  else if (instance[0] < myRenames.entries())
238  {
239  auto && _data = myRenames(instance[0]);
240  switch (idx[1])
241  {
242  case 0:
243  coerceValue(value, _data.enable);
244  break;
245  case 1:
246  coerceValue(value, _data.grouptype);
247  break;
248  case 2:
249  coerceValue(value, _data.group);
250  break;
251  case 3:
252  coerceValue(value, _data.newname);
253  break;
254  case 4:
255  coerceValue(value, _data.conflict);
256  break;
257 
258  }
259  }
260  break;
261 
262  }
263  }
264 
265  bool isParmColorRamp(exint idx) const override
266  {
267  switch (idx)
268  {
269 
270  }
271  return false;
272  }
273 
274  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
275  { doGetParmValue(idx, instance, value); }
276  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
277  { doGetParmValue(idx, instance, value); }
278  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
279  { doGetParmValue(idx, instance, value); }
280  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
281  { doGetParmValue(idx, instance, value); }
282  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
283  { doGetParmValue(idx, instance, value); }
284  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
285  { doGetParmValue(idx, instance, value); }
286  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
287  { doGetParmValue(idx, instance, value); }
288  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
289  { doGetParmValue(idx, instance, value); }
290  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
291  { doGetParmValue(idx, instance, value); }
292  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
293  { doGetParmValue(idx, instance, value); }
294  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
295  { doGetParmValue(idx, instance, value); }
296 
297  template <typename T>
298  void
299  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
300  {
301  if (idx.size() < 1)
302  return;
303  UT_ASSERT(idx.size() == instance.size()+1);
304  if (idx.size() != instance.size()+1)
305  return;
306  switch (idx[0])
307  {
308  case 0:
309  if (idx.size() == 1)
310  {
311  exint newsize;
312  coerceValue(newsize, value);
313  if (newsize < 0) newsize = 0;
314  myRenames.setSize(newsize);
315  }
316  else
317  {
318  if (instance[0] < 0)
319  return;
320  myRenames.setSizeIfNeeded(instance[0]+1);
321  auto && _data = myRenames(instance[0]);
322  switch (idx[1])
323  {
324  case 0:
325  coerceValue(_data.enable, value);
326  break;
327  case 1:
328  coerceValue(_data.grouptype, value);
329  break;
330  case 2:
331  coerceValue(_data.group, value);
332  break;
333  case 3:
334  coerceValue(_data.newname, value);
335  break;
336  case 4:
337  coerceValue(_data.conflict, value);
338  break;
339 
340  }
341  }
342  break;
343 
344  }
345  }
346 
347  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
348  { doSetParmValue(idx, instance, value); }
349  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
350  { doSetParmValue(idx, instance, value); }
351  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
352  { doSetParmValue(idx, instance, value); }
353  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
354  { doSetParmValue(idx, instance, value); }
355  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
356  { doSetParmValue(idx, instance, value); }
357  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
358  { doSetParmValue(idx, instance, value); }
359  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
360  { doSetParmValue(idx, instance, value); }
361  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
362  { doSetParmValue(idx, instance, value); }
363  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
364  { doSetParmValue(idx, instance, value); }
365  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
366  { doSetParmValue(idx, instance, value); }
367  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
368  { doSetParmValue(idx, instance, value); }
369 
370  exint getNestNumParms(TempIndex idx) const override
371  {
372  if (idx.size() == 0)
373  return 1;
374  switch (idx[0])
375  {
376  case 0:
377  return 5;
378 
379  }
380  // Invalid
381  return 0;
382  }
383 
384  const char *getNestParmName(TempIndex fieldnum) const override
385  {
386  if (fieldnum.size() < 1)
387  return 0;
388  switch (fieldnum[0])
389  {
390  case 0:
391  if (fieldnum.size() == 1)
392  return "renames";
393  switch (fieldnum[1])
394  {
395  case 0:
396  return "enable#";
397  case 1:
398  return "grouptype#";
399  case 2:
400  return "group#";
401  case 3:
402  return "newname#";
403  case 4:
404  return "conflict#";
405 
406  }
407  return 0;
408 
409  }
410  return 0;
411  }
412 
413  ParmType getNestParmType(TempIndex fieldnum) const override
414  {
415  if (fieldnum.size() < 1)
416  return PARM_UNSUPPORTED;
417  switch (fieldnum[0])
418  {
419  case 0:
420  if (fieldnum.size() == 1)
421  return PARM_MULTIPARM;
422  switch (fieldnum[1])
423  {
424  case 0:
425  return PARM_INTEGER;
426  case 1:
427  return PARM_INTEGER;
428  case 2:
429  return PARM_STRING;
430  case 3:
431  return PARM_STRING;
432  case 4:
433  return PARM_INTEGER;
434 
435  }
436  return PARM_UNSUPPORTED;
437 
438  }
439  return PARM_UNSUPPORTED;
440  }
441 
442  // Boiler plate to load individual types.
443  static void loadData(UT_IStream &is, int64 &v)
444  { is.bread(&v, 1); }
445  static void loadData(UT_IStream &is, bool &v)
446  { int64 iv; is.bread(&iv, 1); v = iv; }
447  static void loadData(UT_IStream &is, fpreal64 &v)
448  { is.bread<fpreal64>(&v, 1); }
449  static void loadData(UT_IStream &is, UT_Vector2D &v)
450  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
451  static void loadData(UT_IStream &is, UT_Vector3D &v)
452  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
453  is.bread<fpreal64>(&v.z(), 1); }
454  static void loadData(UT_IStream &is, UT_Vector4D &v)
455  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
456  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
457  static void loadData(UT_IStream &is, UT_Matrix2D &v)
458  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
459  static void loadData(UT_IStream &is, UT_Matrix3D &v)
460  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
461  static void loadData(UT_IStream &is, UT_Matrix4D &v)
462  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
463  static void loadData(UT_IStream &is, UT_Vector2I &v)
464  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
465  static void loadData(UT_IStream &is, UT_Vector3I &v)
466  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
467  is.bread<int64>(&v.z(), 1); }
468  static void loadData(UT_IStream &is, UT_Vector4I &v)
469  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
470  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
472  { is.bread(v); }
474  { UT_StringHolder rampdata;
475  loadData(is, rampdata);
476  if (rampdata.isstring())
477  {
478  v.reset(new UT_Ramp());
479  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
480  v->load(istr);
481  }
482  else v.reset();
483  }
486  loadData(is, data);
487  if (data.isstring())
488  {
489  // Find the data type.
490  const char *colon = UT_StringWrap(data).findChar(':');
491  if (colon)
492  {
493  int typelen = colon - data.buffer();
495  type.strncpy(data.buffer(), typelen);
496  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
497 
498  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
499  }
500  }
501  else v.reset();
502  }
503 
504  static void saveData(std::ostream &os, int64 v)
505  { UTwrite(os, &v); }
506  static void saveData(std::ostream &os, bool v)
507  { int64 iv = v; UTwrite(os, &iv); }
508  static void saveData(std::ostream &os, fpreal64 v)
509  { UTwrite<fpreal64>(os, &v); }
510  static void saveData(std::ostream &os, UT_Vector2D v)
511  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
512  static void saveData(std::ostream &os, UT_Vector3D v)
513  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
514  UTwrite<fpreal64>(os, &v.z()); }
515  static void saveData(std::ostream &os, UT_Vector4D v)
516  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
517  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
518  static void saveData(std::ostream &os, UT_Matrix2D v)
520  static void saveData(std::ostream &os, UT_Matrix3D v)
522  static void saveData(std::ostream &os, UT_Matrix4D v)
524  static void saveData(std::ostream &os, UT_StringHolder s)
525  { UT_StringWrap(s).saveBinary(os); }
526  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
528  UT_OStringStream ostr;
529  if (s) s->save(ostr);
530  result = ostr.str();
531  saveData(os, result);
532  }
533  static void saveData(std::ostream &os, PRM_DataItemHandle s)
535  UT_OStringStream ostr;
536  if (s)
537  {
538  ostr << s->getDataTypeToken();
539  ostr << ":";
540  s->saveBinary(ostr);
541  }
542  result = ostr.str();
543  saveData(os, result);
544  }
545 
546 
547  void save(std::ostream &os) const
548  {
549  int32 v = version();
550  UTwrite(os, &v);
551  {
552  int64 length = myRenames.entries();
553  UTwrite(os, &length);
554  for (exint i = 0; i < length; i++)
555  {
556  auto && _curentry = myRenames(i);
557  (void) _curentry;
558  saveData(os, _curentry.enable);
559  saveData(os, _curentry.grouptype);
560  saveData(os, _curentry.group);
561  saveData(os, _curentry.newname);
562  saveData(os, _curentry.conflict);
563 
564  }
565  }
566 
567  }
568 
569  bool load(UT_IStream &is)
570  {
571  int32 v;
572  is.bread(&v, 1);
573  if (version() != v)
574  {
575  // Fail incompatible versions
576  return false;
577  }
578  {
579  int64 length;
580  is.read(&length, 1);
581  myRenames.setSize(length);
582  for (exint i = 0; i < length; i++)
583  {
584  auto && _curentry = myRenames(i);
585  (void) _curentry;
586  loadData(is, _curentry.enable);
587  loadData(is, _curentry.grouptype);
588  loadData(is, _curentry.group);
589  loadData(is, _curentry.newname);
590  loadData(is, _curentry.conflict);
591 
592  }
593  }
594 
595  return true;
596  }
597 
598  const UT_Array<Renames> &getRenames() const { return myRenames; }
599 void setRenames(const UT_Array<Renames> &val) { myRenames = val; }
600  exint opRenames(const SOP_NodeVerb::CookParms &cookparms) const
601  {
602  SOP_Node *thissop = cookparms.getNode();
603  if (!thissop) return getRenames().entries();
604  exint result;
605  OP_Utils::evalOpParm(result, thissop, "renames", cookparms.getCookTime(), 0);
606  return result;
607  }
608  bool opRenames_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
609  { return opinstRenames_enable(cookparms, &_idx); }
610  bool opinstRenames_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
611  {
612  SOP_Node *thissop = cookparms.getNode();
613  if (!thissop) return (myRenames(_idx[0]).enable);
614  int _parmidx[2-1];
615  _parmidx[1-1] = _idx[1-1] + 1;
616 
617  bool result;
618  OP_Utils::evalOpParmInst(result, thissop, "enable#", _parmidx, cookparms.getCookTime(), 0, 2-1);
619  return (result);
620  }
621  int64 opRenames_grouptype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
622  { return opinstRenames_grouptype(cookparms, &_idx); }
623  int64 opinstRenames_grouptype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
624  {
625  SOP_Node *thissop = cookparms.getNode();
626  if (!thissop) return (myRenames(_idx[0]).grouptype);
627  int _parmidx[2-1];
628  _parmidx[1-1] = _idx[1-1] + 1;
629 
630  int64 result;
631  OP_Utils::evalOpParmInst(result, thissop, "grouptype#", _parmidx, cookparms.getCookTime(), 0, 2-1);
632  return (result);
633  }
634  UT_StringHolder opRenames_group(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
635  { return opinstRenames_group(cookparms, &_idx); }
636  UT_StringHolder opinstRenames_group(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
637  {
638  SOP_Node *thissop = cookparms.getNode();
639  if (!thissop) return (myRenames(_idx[0]).group);
640  int _parmidx[2-1];
641  _parmidx[1-1] = _idx[1-1] + 1;
642 
644  OP_Utils::evalOpParmInst(result, thissop, "group#", _parmidx, cookparms.getCookTime(), 0, 2-1);
645  return (result);
646  }
648  { return opinstRenames_newname(cookparms, &_idx); }
649  UT_StringHolder opinstRenames_newname(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
650  {
651  SOP_Node *thissop = cookparms.getNode();
652  if (!thissop) return (myRenames(_idx[0]).newname);
653  int _parmidx[2-1];
654  _parmidx[1-1] = _idx[1-1] + 1;
655 
657  OP_Utils::evalOpParmInst(result, thissop, "newname#", _parmidx, cookparms.getCookTime(), 0, 2-1);
658  return (result);
659  }
660  int64 opRenames_conflict(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
661  { return opinstRenames_conflict(cookparms, &_idx); }
662  int64 opinstRenames_conflict(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
663  {
664  SOP_Node *thissop = cookparms.getNode();
665  if (!thissop) return (myRenames(_idx[0]).conflict);
666  int _parmidx[2-1];
667  _parmidx[1-1] = _idx[1-1] + 1;
668 
669  int64 result;
670  OP_Utils::evalOpParmInst(result, thissop, "conflict#", _parmidx, cookparms.getCookTime(), 0, 2-1);
671  return (result);
672  }
673 
674 
675 private:
676  UT_Array<Renames> myRenames;
677 
678 };
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
type
Definition: core.h:556
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:403
UT_StringHolder opRenames_newname(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
const UT_Array< Renames > & getRenames() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void
Definition: png.h:1083
static void loadData(UT_IStream &is, UT_Vector4I &v)
GLboolean * data
Definition: glcorearb.h:131
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:495
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() const
Definition: OP_NodeParms.h:105
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:669
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, fpreal64 v)
GLdouble s
Definition: glad.h:3009
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
void setRenames(const UT_Array< Renames > &val)
An output stream object that owns its own string buffer storage.
void copyFrom(const OP_NodeParms *src) override
**But if you need a result
Definition: thread.h:622
static void loadData(UT_IStream &is, UT_Matrix2D &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:103
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:493
static void loadData(UT_IStream &is, UT_Vector3I &v)
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:426
static void saveData(std::ostream &os, int64 v)
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 loadData(UT_IStream &is, int64 &v)
UT_StringHolder createString(const UT_Array< Renames > &list) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
exint length() const
bool operator!=(const SOP_GroupRenameParms &src) const
SYS_FORCE_INLINE const char * buffer() const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
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:497
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool operator==(const SOP_GroupRenameParms &src) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:271
UT_StringHolder opinstRenames_group(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:102
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
bool opRenames_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool opinstRenames_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
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
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void saveData(std::ostream &os, bool v)
exint opRenames(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
UT_StringHolder opRenames_group(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:306
static void saveData(std::ostream &os, UT_Vector3D v)
GT_API const UT_StringHolder version
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:669
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void save(std::ostream &os) const
bool operator!=(const Renames &src) const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
UT_StringHolder opinstRenames_newname(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
fpreal64 fpreal
Definition: SYS_Types.h:283
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:107
void loadFromOpSubclass(const LoadParms &loadparms) override
int64 opinstRenames_grouptype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
SYS_FORCE_INLINE UT_StringHolder getToken(Grouptype enum_value)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool load(UT_IStream &is)
int64 opinstRenames_conflict(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:499
SYS_FORCE_INLINE void append(char character)
const char * getNestParmName(TempIndex fieldnum) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:302
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:432
bool isParmColorRamp(exint idx) const override
const char * findChar(int c) const
Definition: UT_String.h:1421
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:165
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
exint getNestNumParms(TempIndex idx) const override
GLboolean r
Definition: glcorearb.h:1222
exint bread(uint8 *buffer, exint asize=1)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:667
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void loadData(UT_IStream &is, bool &v)
int64 opRenames_grouptype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:428
SYS_FORCE_INLINE bool isstring() const
bool operator==(const Renames &src) const
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, UT_StringHolder s)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
int64 opRenames_conflict(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override