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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
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 = ""_sh;
53  newname = ""_sh;
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 
103  }
104 
105  explicit SOP_GroupRenameParms(const SOP_GroupRenameParms &) = default;
106 
107  ~SOP_GroupRenameParms() override {}
108 
110  {
111  if (myRenames != src.myRenames) return false;
112 
113  return true;
114  }
116  {
117  return !operator==(src);
118  }
120 
121 
122 
123  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
124  {
125  if (true)
126  {
127  int64 length = 0;
128  graph->evalOpParm(length, nodeidx, "renames", time, 0);
129  myRenames.entries(length);
130  for (exint i = 0; i < length; i++)
131  {
132  int parmidx = i+1;
133  auto && _curentry = myRenames(i);
134  (void) _curentry;
135  myRenames(i).enable = true;
136  if (true)
137  graph->evalOpParmInst(myRenames(i).enable, nodeidx, "enable#", &parmidx, time, 0);
138  myRenames(i).grouptype = 0;
139  if (true && ( (!(((_curentry.enable==0)))) ) )
140  graph->evalOpParmInst(myRenames(i).grouptype, nodeidx, "grouptype#", &parmidx, time, 0);
141  myRenames(i).group = ""_sh;
142  if (true && ( (!(((_curentry.enable==0)))) ) )
143  graph->evalOpParmInst(myRenames(i).group, nodeidx, "group#", &parmidx, time, 0);
144  myRenames(i).newname = ""_sh;
145  if (true && ( (!(((_curentry.enable==0)))) ) )
146  graph->evalOpParmInst(myRenames(i).newname, nodeidx, "newname#", &parmidx, time, 0);
147 
148  }
149  }
150  else
151  myRenames.clear();
152 
153  }
154 
155 
156  void loadFromOpSubclass(const LoadParms &loadparms) override
157  {
158  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
159  }
160 
161 
162  void copyFrom(const SOP_NodeParms *src) override
163  {
164  *this = *((const SOP_GroupRenameParms *)src);
165  }
166 
167  template <typename T>
168  void
169  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
170  {
171  if (idx.size() < 1)
172  return;
173  UT_ASSERT(idx.size() == instance.size()+1);
174  if (idx.size() != instance.size()+1)
175  return;
176  switch (idx[0])
177  {
178  case 0:
179  if (idx.size() == 1)
180  coerceValue(value, myRenames.entries());
181  else if (instance[0] < myRenames.entries())
182  {
183  auto && _data = myRenames(instance[0]);
184  switch (idx[1])
185  {
186  case 0:
187  coerceValue(value, _data.enable);
188  break;
189  case 1:
190  coerceValue(value, _data.grouptype);
191  break;
192  case 2:
193  coerceValue(value, _data.group);
194  break;
195  case 3:
196  coerceValue(value, _data.newname);
197  break;
198 
199  }
200  }
201  break;
202 
203  }
204  }
205 
206  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
227  { doGetParmValue(idx, instance, value); }
228 
229  template <typename T>
230  void
231  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
232  {
233  if (idx.size() < 1)
234  return;
235  UT_ASSERT(idx.size() == instance.size()+1);
236  if (idx.size() != instance.size()+1)
237  return;
238  switch (idx[0])
239  {
240  case 0:
241  if (idx.size() == 1)
242  {
243  exint newsize;
244  coerceValue(newsize, value);
245  myRenames.setSize(newsize);
246  }
247  else
248  {
249  myRenames.setSizeIfNeeded(instance[0]+1);
250  auto && _data = myRenames(instance[0]);
251  switch (idx[1])
252  {
253  case 0:
254  coerceValue(_data.enable, value);
255  break;
256  case 1:
257  coerceValue(_data.grouptype, value);
258  break;
259  case 2:
260  coerceValue(_data.group, value);
261  break;
262  case 3:
263  coerceValue(_data.newname, value);
264  break;
265 
266  }
267  }
268  break;
269 
270  }
271  }
272 
273  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
294  { doSetParmValue(idx, instance, value); }
295 
296  exint getNestNumParms(TempIndex idx) const override
297  {
298  if (idx.size() == 0)
299  return 1;
300  switch (idx[0])
301  {
302  case 0:
303  return 4;
304 
305  }
306  // Invalid
307  return 0;
308  }
309 
310  const char *getNestParmName(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return 0;
314  switch (fieldnum[0])
315  {
316  case 0:
317  if (fieldnum.size() == 1)
318  return "renames";
319  switch (fieldnum[1])
320  {
321  case 0:
322  return "enable#";
323  case 1:
324  return "grouptype#";
325  case 2:
326  return "group#";
327  case 3:
328  return "newname#";
329 
330  }
331  return 0;
332 
333  }
334  return 0;
335  }
336 
337  ParmType getNestParmType(TempIndex fieldnum) const override
338  {
339  if (fieldnum.size() < 1)
340  return PARM_UNSUPPORTED;
341  switch (fieldnum[0])
342  {
343  case 0:
344  if (fieldnum.size() == 1)
345  return PARM_MULTIPARM;
346  switch (fieldnum[1])
347  {
348  case 0:
349  return PARM_INTEGER;
350  case 1:
351  return PARM_INTEGER;
352  case 2:
353  return PARM_STRING;
354  case 3:
355  return PARM_STRING;
356 
357  }
358  return PARM_UNSUPPORTED;
359 
360  }
361  return PARM_UNSUPPORTED;
362  }
363 
364  // Boiler plate to load individual types.
365  static void loadData(UT_IStream &is, int64 &v)
366  { is.bread(&v, 1); }
367  static void loadData(UT_IStream &is, bool &v)
368  { int64 iv; is.bread(&iv, 1); v = iv; }
369  static void loadData(UT_IStream &is, fpreal64 &v)
370  { is.bread<fpreal64>(&v, 1); }
371  static void loadData(UT_IStream &is, UT_Vector2D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix2D &v)
380  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix3D &v)
382  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix4D &v)
384  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Vector2I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector3I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector4I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
394  { is.bread(v); }
396  { UT_StringHolder rampdata;
397  loadData(is, rampdata);
398  if (rampdata.isstring())
399  {
400  v.reset(new UT_Ramp());
401  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
402  v->load(istr);
403  }
404  else v.reset();
405  }
408  loadData(is, data);
409  if (data.isstring())
410  {
411  // Find the data type.
412  const char *colon = UT_StringWrap(data).findChar(':');
413  if (colon)
414  {
415  int typelen = colon - data.buffer();
417  type.strncpy(data.buffer(), typelen);
418  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
419 
420  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
421  }
422  }
423  else v.reset();
424  }
425 
426  static void saveData(std::ostream &os, int64 v)
427  { UTwrite(os, &v); }
428  static void saveData(std::ostream &os, bool v)
429  { int64 iv = v; UTwrite(os, &iv); }
430  static void saveData(std::ostream &os, fpreal64 v)
431  { UTwrite<fpreal64>(os, &v); }
432  static void saveData(std::ostream &os, UT_Vector2D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
434  static void saveData(std::ostream &os, UT_Vector3D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); }
437  static void saveData(std::ostream &os, UT_Vector4D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
440  static void saveData(std::ostream &os, UT_Matrix2D v)
442  static void saveData(std::ostream &os, UT_Matrix3D v)
444  static void saveData(std::ostream &os, UT_Matrix4D v)
446  static void saveData(std::ostream &os, UT_StringHolder s)
447  { UT_StringWrap(s).saveBinary(os); }
448  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
450  UT_OStringStream ostr;
451  if (s) s->save(ostr);
452  result = ostr.str();
453  saveData(os, result);
454  }
455  static void saveData(std::ostream &os, PRM_DataItemHandle s)
457  UT_OStringStream ostr;
458  if (s)
459  {
460  ostr << s->getDataTypeToken();
461  ostr << ":";
462  s->saveBinary(ostr);
463  }
464  result = ostr.str();
465  saveData(os, result);
466  }
467 
468 
469  void save(std::ostream &os) const
470  {
471  int32 v = version();
472  UTwrite(os, &v);
473  {
474  int64 length = myRenames.entries();
475  UTwrite(os, &length);
476  for (exint i = 0; i < length; i++)
477  {
478  saveData(os, myRenames(i).enable);
479  saveData(os, myRenames(i).grouptype);
480  saveData(os, myRenames(i).group);
481  saveData(os, myRenames(i).newname);
482 
483  }
484  }
485 
486  }
487 
488  bool load(UT_IStream &is)
489  {
490  int32 v;
491  is.bread(&v, 1);
492  if (version() != v)
493  {
494  // Fail incompatible versions
495  return false;
496  }
497  {
498  int64 length;
499  is.read(&length, 1);
500  myRenames.entries(length);
501  for (exint i = 0; i < length; i++)
502  {
503  loadData(is, myRenames(i).enable);
504  loadData(is, myRenames(i).grouptype);
505  loadData(is, myRenames(i).group);
506  loadData(is, myRenames(i).newname);
507 
508  }
509  }
510 
511  return true;
512  }
513 
514  const UT_Array<Renames> &getRenames() const { return myRenames; }
515  void setRenames(const UT_Array<Renames> &val) { myRenames = val; }
516  exint opRenames(const SOP_NodeVerb::CookParms &cookparms) const
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getRenames().entries();
520  exint result;
521  OP_Utils::evalOpParm(result, thissop, "renames", cookparms.getCookTime(), 0);
522  return result;
523  }
524  bool opRenames_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return (myRenames(_idx).enable);
528  int _parmidx = _idx + 1;
529  bool result;
530  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
531  return (result);
532  }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return (myRenames(_idx).grouptype);
537  int _parmidx = _idx + 1;
538  int64 result;
539  OP_Utils::evalOpParmInst(result, thissop, "grouptype#", &_parmidx, cookparms.getCookTime(), 0);
540  return (result);
541  }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return (myRenames(_idx).group);
546  int _parmidx = _idx + 1;
548  OP_Utils::evalOpParmInst(result, thissop, "group#", &_parmidx, cookparms.getCookTime(), 0);
549  return (result);
550  }
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return (myRenames(_idx).newname);
555  int _parmidx = _idx + 1;
557  OP_Utils::evalOpParmInst(result, thissop, "newname#", &_parmidx, cookparms.getCookTime(), 0);
558  return (result);
559  }
560 
561 
562 private:
563  UT_Array<Renames> myRenames;
564 
565 };
UT_StringHolder opRenames_newname(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
GLdouble s
Definition: glew.h:1390
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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)
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, int *inst, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint bread(int32 *buffer, exint asize=1)
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
static void saveData(std::ostream &os, fpreal64 v)
void copyFrom(const SOP_NodeParms *src) override
void setRenames(const UT_Array< Renames > &val)
An output stream object that owns its own string buffer storage.
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, UT_Matrix2D &v)
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)
static void loadData(UT_IStream &is, UT_Vector3I &v)
double fpreal64
Definition: SYS_Types.h:201
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
UT_StringHolder opRenames_group(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
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:284
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void
Definition: png.h:1083
static void loadData(UT_IStream &is, UT_Vector3D &v)
const GLfloat * c
Definition: glew.h:16296
GLuint GLsizei GLsizei * length
Definition: glew.h:1825
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
bool opRenames_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void saveData(std::ostream &os, UT_Vector3D v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:460
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
fpreal64 fpreal
Definition: SYS_Types.h:277
void loadFromOpSubclass(const LoadParms &loadparms) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
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 opRenames_grouptype(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
SYS_FORCE_INLINE void append(char character)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
const char * getNestParmName(TempIndex fieldnum) const override
#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)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
exint getNestNumParms(TempIndex idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GLenum GLuint GLsizei const GLchar * buf
Definition: glew.h:2580
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, bool &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
GLboolean enable
Definition: glew.h:2745
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
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)
type
Definition: core.h:528
GLboolean GLuint group
Definition: glew.h:2745
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override