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