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