HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_Name.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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_NameEnums
22 {
23  enum class Class
24  {
25  PRIMITIVE = 0,
26  POINT
27  };
28 }
29 
30 
32 {
33 public:
34  static int version() { return 1; }
35  struct Numnames
36  {
39 
40 
42  {
43  group = ""_sh;
44  name = ""_sh;
45 
46  }
47 
48  bool operator==(const Numnames &src) const
49  {
50  if (group != src.group) return false;
51  if (name != src.name) return false;
52 
53  return true;
54  }
55 
56  };
57 
59  {
61 
62  buf.strcat("[ ");
63  for (int i = 0; i < list.entries(); i++)
64  {
65  if (i)
66  buf.strcat(", ");
67  buf.strcat("( ");
68  buf.append("");
69  { UT_String tmp; tmp = UT_StringWrap(list(i).group).makeQuotedString('"'); buf.strcat(tmp); }
70  buf.append(", ");
71  { UT_String tmp; tmp = UT_StringWrap(list(i).name).makeQuotedString('"'); buf.strcat(tmp); }
72 
73  buf.strcat(" )");
74  }
75  buf.strcat(" ]");
76 
77  UT_StringHolder result = buf;
78  return result;
79  }
80  struct Numrenames
81  {
82  bool enable;
83  bool global;
86 
87 
89  {
90  enable = false;
91  global = false;
92  from = ""_sh;
93  to = ""_sh;
94 
95  }
96 
97  bool operator==(const Numrenames &src) const
98  {
99  if (enable != src.enable) return false;
100  if (global != src.global) return false;
101  if (from != src.from) return false;
102  if (to != src.to) return false;
103 
104  return true;
105  }
106 
107  };
108 
110  {
112 
113  buf.strcat("[ ");
114  for (int i = 0; i < list.entries(); i++)
115  {
116  if (i)
117  buf.strcat(", ");
118  buf.strcat("( ");
119  buf.append("");
120  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
121  buf.append(", ");
122  buf.appendSprintf("%s", (list(i).global) ? "true" : "false");
123  buf.append(", ");
124  { UT_String tmp; tmp = UT_StringWrap(list(i).from).makeQuotedString('"'); buf.strcat(tmp); }
125  buf.append(", ");
126  { UT_String tmp; tmp = UT_StringWrap(list(i).to).makeQuotedString('"'); buf.strcat(tmp); }
127 
128  buf.strcat(" )");
129  }
130  buf.strcat(" ]");
131 
132  UT_StringHolder result = buf;
133  return result;
134  }
135 
137  {
138  myAttribname = "name"_sh;
139  myClass = 0;
140  myDonamefromgroup = false;
141  myNamefromgroupmask = "piece*"_sh;
142 
143  }
144 
145  explicit SOP_NameParms(const SOP_NameParms &) = default;
146 
147  virtual ~SOP_NameParms() {}
148 
149  bool operator==(const SOP_NameParms &src) const
150  {
151  if (myAttribname != src.myAttribname) return false;
152  if (myClass != src.myClass) return false;
153  if (myDonamefromgroup != src.myDonamefromgroup) return false;
154  if (myNamefromgroupmask != src.myNamefromgroupmask) return false;
155  if (myNumnames != src.myNumnames) return false;
156  if (myNumrenames != src.myNumrenames) return false;
157 
158  return true;
159  }
161 
162 
163 
164  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
165  {
166  if (true)
167  OP_Utils::evalOpParm(myAttribname, node, "attribname", time, 0);
168  else myAttribname = "name"_sh;
169  if (true)
170  OP_Utils::evalOpParm(myClass, node, "class", time, 0);
171  else myClass = 0;
172  if (true)
173  OP_Utils::evalOpParm(myDonamefromgroup, node, "donamefromgroup", time, 0);
174  else myDonamefromgroup = false;
175  if (true && ( (!(((getDonamefromgroup()==0)))) ) )
176  OP_Utils::evalOpParm(myNamefromgroupmask, node, "namefromgroupmask", time, 0);
177  else myNamefromgroupmask = "piece*"_sh;
178  if (true)
179  {
180  int64 length;
181  OP_Utils::evalOpParm(length, node, "numnames", time, 0);
182  myNumnames.entries(length);
183  for (exint i = 0; i < length; i++)
184  {
185  int parmidx = i+1;
186  auto && _curentry = myNumnames(i);
187  (void) _curentry;
188  if (true)
189  OP_Utils::evalOpParmInst(myNumnames(i).group, node, "group#", &parmidx, time, 0);
190  else myNumnames(i).group = ""_sh;
191  if (true)
192  OP_Utils::evalOpParmInst(myNumnames(i).name, node, "name#", &parmidx, time, 0);
193  else myNumnames(i).name = ""_sh;
194 
195  }
196  }
197  else
198  myNumnames.clear();
199  if (true)
200  {
201  int64 length;
202  OP_Utils::evalOpParm(length, node, "numrenames", time, 0);
203  myNumrenames.entries(length);
204  for (exint i = 0; i < length; i++)
205  {
206  int parmidx = i+1;
207  auto && _curentry = myNumrenames(i);
208  (void) _curentry;
209  if (true)
210  OP_Utils::evalOpParmInst(myNumrenames(i).enable, node, "enable#", &parmidx, time, 0);
211  else myNumrenames(i).enable = false;
212  if (true && ( (!(((_curentry.enable==0)))) ) )
213  OP_Utils::evalOpParmInst(myNumrenames(i).global, node, "global#", &parmidx, time, 0);
214  else myNumrenames(i).global = false;
215  if (true && ( (!(((_curentry.enable==0)))) ) )
216  OP_Utils::evalOpParmInst(myNumrenames(i).from, node, "from#", &parmidx, time, 0);
217  else myNumrenames(i).from = ""_sh;
218  if (true && ( (!(((_curentry.enable==0)))) ) )
219  OP_Utils::evalOpParmInst(myNumrenames(i).to, node, "to#", &parmidx, time, 0);
220  else myNumrenames(i).to = ""_sh;
221 
222  }
223  }
224  else
225  myNumrenames.clear();
226 
227  }
228 
229 
230  virtual void loadFromOpSubclass(const LoadParms &loadparms)
231  {
232  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
233  }
234 
235 
236  virtual void copyFrom(const SOP_NodeParms *src)
237  {
238  *this = *((const SOP_NameParms *)src);
239  }
240 
241  template <typename T>
242  void
243  doGetParmValue(exint idx, T &value) const
244  {
245  switch (idx)
246  {
247  case 0:
248  coerceValue(value, myAttribname);
249  break;
250  case 1:
251  coerceValue(value, myClass);
252  break;
253  case 2:
254  coerceValue(value, myDonamefromgroup);
255  break;
256  case 3:
257  coerceValue(value, myNamefromgroupmask);
258  break;
259 
260  }
261  }
262 
263  void getParmValue(exint idx, exint &value) const
264  { doGetParmValue(idx, value); }
265  void getParmValue(exint idx, fpreal &value) const
266  { doGetParmValue(idx, value); }
268  { doGetParmValue(idx, value); }
270  { doGetParmValue(idx, value); }
272  { doGetParmValue(idx, value); }
274  { doGetParmValue(idx, value); }
276  { doGetParmValue(idx, value); }
278  { doGetParmValue(idx, value); }
280  { doGetParmValue(idx, value); }
282  { doGetParmValue(idx, value); }
284  { doGetParmValue(idx, value); }
285 
286  template <typename T>
287  void
288  doSetParmValue(exint idx, const T &value)
289  {
290  switch (idx)
291  {
292  case 0:
293  coerceValue(myAttribname, value);
294  break;
295  case 1:
296  coerceValue(myClass, value);
297  break;
298  case 2:
299  coerceValue(myDonamefromgroup, value);
300  break;
301  case 3:
302  coerceValue(myNamefromgroupmask, value);
303  break;
304 
305  }
306  }
307 
308  void setParmValue(exint idx, const exint &value)
309  { doSetParmValue(idx, value); }
310  void setParmValue(exint idx, const fpreal &value)
311  { doSetParmValue(idx, value); }
312  void setParmValue(exint idx, const UT_Vector2D &value)
313  { doSetParmValue(idx, value); }
314  void setParmValue(exint idx, const UT_Vector3D &value)
315  { doSetParmValue(idx, value); }
316  void setParmValue(exint idx, const UT_Vector4D &value)
317  { doSetParmValue(idx, value); }
318  void setParmValue(exint idx, const UT_Matrix2D &value)
319  { doSetParmValue(idx, value); }
320  void setParmValue(exint idx, const UT_Matrix3D &value)
321  { doSetParmValue(idx, value); }
322  void setParmValue(exint idx, const UT_Matrix4D &value)
323  { doSetParmValue(idx, value); }
325  { doSetParmValue(idx, value); }
327  { doSetParmValue(idx, value); }
329  { doSetParmValue(idx, value); }
330 
331  virtual exint getNumParms() const
332  {
333  return 6;
334  }
335 
336  virtual const char *getParmName(exint fieldnum) const
337  {
338  switch (fieldnum)
339  {
340  case 0:
341  return "attribname";
342  case 1:
343  return "class";
344  case 2:
345  return "donamefromgroup";
346  case 3:
347  return "namefromgroupmask";
348  case 4:
349  return "numnames";
350  case 5:
351  return "numrenames";
352 
353  }
354  return 0;
355  }
356 
357  virtual ParmType getParmType(exint fieldnum) const
358  {
359  switch (fieldnum)
360  {
361  case 0:
362  return PARM_STRING;
363  case 1:
364  return PARM_INTEGER;
365  case 2:
366  return PARM_INTEGER;
367  case 3:
368  return PARM_STRING;
369 
370  }
371  return PARM_UNSUPPORTED;
372  }
373 
374  // Boiler plate to load individual types.
375  static void loadData(UT_IStream &is, int64 &v)
376  { is.bread(&v, 1); }
377  static void loadData(UT_IStream &is, bool &v)
378  { int64 iv; is.bread(&iv, 1); v = iv; }
379  static void loadData(UT_IStream &is, fpreal64 &v)
380  { is.bread<fpreal64>(&v, 1); }
381  static void loadData(UT_IStream &is, UT_Vector2D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
383  static void loadData(UT_IStream &is, UT_Vector3D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
385  is.bread<fpreal64>(&v.z(), 1); }
386  static void loadData(UT_IStream &is, UT_Vector4D &v)
387  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
388  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix2D &v)
390  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix3D &v)
392  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Matrix4D &v)
394  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
395  static void loadData(UT_IStream &is, UT_Vector2I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
397  static void loadData(UT_IStream &is, UT_Vector3I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
399  is.bread<int64>(&v.z(), 1); }
400  static void loadData(UT_IStream &is, UT_Vector4I &v)
401  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
402  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
404  { is.bread(v); }
406  { UT_StringHolder rampdata;
407  loadData(is, rampdata);
408  if (rampdata.isstring())
409  {
410  v.reset(new UT_Ramp());
411  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
412  v->load(istr);
413  }
414  else v.reset();
415  }
418  loadData(is, data);
419  if (data.isstring())
420  {
421  // Find the data type.
422  char *colon = UT_StringWrap(data).findChar(':');
423  if (colon)
424  {
425  int typelen = colon - data.buffer();
427  type.strncpy(data.buffer(), typelen);
428  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
429 
430  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
431  }
432  }
433  else v.reset();
434  }
435 
436  static void saveData(std::ostream &os, int64 v)
437  { UTwrite(os, &v); }
438  static void saveData(std::ostream &os, bool v)
439  { int64 iv = v; UTwrite(os, &iv); }
440  static void saveData(std::ostream &os, fpreal64 v)
441  { UTwrite<fpreal64>(os, &v); }
442  static void saveData(std::ostream &os, UT_Vector2D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
444  static void saveData(std::ostream &os, UT_Vector3D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
446  UTwrite<fpreal64>(os, &v.z()); }
447  static void saveData(std::ostream &os, UT_Vector4D v)
448  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
449  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
450  static void saveData(std::ostream &os, UT_Matrix2D v)
452  static void saveData(std::ostream &os, UT_Matrix3D v)
454  static void saveData(std::ostream &os, UT_Matrix4D v)
456  static void saveData(std::ostream &os, UT_StringHolder s)
457  { UT_StringWrap(s).saveBinary(os); }
458  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
459  { UT_StringHolder result;
460  UT_OStringStream ostr;
461  if (s) s->save(ostr);
462  result = ostr.str();
463  saveData(os, result);
464  }
465  static void saveData(std::ostream &os, PRM_DataItemHandle s)
466  { UT_StringHolder result;
467  UT_OStringStream ostr;
468  if (s)
469  {
470  ostr << s->getDataTypeToken();
471  ostr << ":";
472  s->saveBinary(ostr);
473  }
474  result = ostr.str();
475  saveData(os, result);
476  }
477 
478 
479  void save(std::ostream &os) const
480  {
481  int32 v = version();
482  UTwrite(os, &v);
483  saveData(os, myAttribname);
484  saveData(os, myClass);
485  saveData(os, myDonamefromgroup);
486  saveData(os, myNamefromgroupmask);
487  {
488  int64 length = myNumnames.entries();
489  UTwrite(os, &length);
490  for (exint i = 0; i < length; i++)
491  {
492  saveData(os, myNumnames(i).group);
493  saveData(os, myNumnames(i).name);
494 
495  }
496  }
497  {
498  int64 length = myNumrenames.entries();
499  UTwrite(os, &length);
500  for (exint i = 0; i < length; i++)
501  {
502  saveData(os, myNumrenames(i).enable);
503  saveData(os, myNumrenames(i).global);
504  saveData(os, myNumrenames(i).from);
505  saveData(os, myNumrenames(i).to);
506 
507  }
508  }
509 
510  }
511 
512  bool load(UT_IStream &is)
513  {
514  int32 v;
515  is.bread(&v, 1);
516  if (version() != v)
517  {
518  // Fail incompatible versions
519  return false;
520  }
521  loadData(is, myAttribname);
522  loadData(is, myClass);
523  loadData(is, myDonamefromgroup);
524  loadData(is, myNamefromgroupmask);
525  {
526  int64 length;
527  is.read(&length, 1);
528  myNumnames.entries(length);
529  for (exint i = 0; i < length; i++)
530  {
531  loadData(is, myNumnames(i).group);
532  loadData(is, myNumnames(i).name);
533 
534  }
535  }
536  {
537  int64 length;
538  is.read(&length, 1);
539  myNumrenames.entries(length);
540  for (exint i = 0; i < length; i++)
541  {
542  loadData(is, myNumrenames(i).enable);
543  loadData(is, myNumrenames(i).global);
544  loadData(is, myNumrenames(i).from);
545  loadData(is, myNumrenames(i).to);
546 
547  }
548  }
549 
550  return true;
551  }
552 
553  const UT_StringHolder & getAttribname() const { return myAttribname; }
554  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getAttribname();
559  UT_StringHolder result;
560  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
561  return result;
562  }
563  Class getClass() const { return Class(myClass); }
564  void setClass(Class val) { myClass = int64(val); }
565  Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getClass();
569  int64 result;
570  OP_Utils::evalOpParm(result, thissop, "class", cookparms.getCookTime(), 0);
571  return Class(result);
572  }
573  bool getDonamefromgroup() const { return myDonamefromgroup; }
574  void setDonamefromgroup(bool val) { myDonamefromgroup = val; }
575  bool opDonamefromgroup(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getDonamefromgroup();
579  bool result;
580  OP_Utils::evalOpParm(result, thissop, "donamefromgroup", cookparms.getCookTime(), 0);
581  return result;
582  }
583  const UT_StringHolder & getNamefromgroupmask() const { return myNamefromgroupmask; }
584  void setNamefromgroupmask(const UT_StringHolder & val) { myNamefromgroupmask = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getNamefromgroupmask();
589  UT_StringHolder result;
590  OP_Utils::evalOpParm(result, thissop, "namefromgroupmask", cookparms.getCookTime(), 0);
591  return result;
592  }
593  const UT_Array<Numnames> &getNumnames() const { return myNumnames; }
594  void setNumnames(const UT_Array<Numnames> &val) { myNumnames = val; }
595  exint opNumnames(const SOP_NodeVerb::CookParms &cookparms) const
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getNumnames().entries();
599  exint result;
600  OP_Utils::evalOpParm(result, thissop, "numnames", cookparms.getCookTime(), 0);
601  return result;
602  }
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return (myNumnames(_idx).group);
607  int _parmidx = _idx + 1;
608  UT_StringHolder result;
609  OP_Utils::evalOpParmInst(result, thissop, "group#", &_parmidx, cookparms.getCookTime(), 0);
610  return (result);
611  }
613  {
614  SOP_Node *thissop = cookparms.getNode();
615  if (!thissop) return (myNumnames(_idx).name);
616  int _parmidx = _idx + 1;
617  UT_StringHolder result;
618  OP_Utils::evalOpParmInst(result, thissop, "name#", &_parmidx, cookparms.getCookTime(), 0);
619  return (result);
620  }
621 
622  const UT_Array<Numrenames> &getNumrenames() const { return myNumrenames; }
623  void setNumrenames(const UT_Array<Numrenames> &val) { myNumrenames = val; }
625  {
626  SOP_Node *thissop = cookparms.getNode();
627  if (!thissop) return getNumrenames().entries();
628  exint result;
629  OP_Utils::evalOpParm(result, thissop, "numrenames", cookparms.getCookTime(), 0);
630  return result;
631  }
632  bool opNumrenames_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
633  {
634  SOP_Node *thissop = cookparms.getNode();
635  if (!thissop) return (myNumrenames(_idx).enable);
636  int _parmidx = _idx + 1;
637  bool result;
638  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
639  return (result);
640  }
641  bool opNumrenames_global(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
642  {
643  SOP_Node *thissop = cookparms.getNode();
644  if (!thissop) return (myNumrenames(_idx).global);
645  int _parmidx = _idx + 1;
646  bool result;
647  OP_Utils::evalOpParmInst(result, thissop, "global#", &_parmidx, cookparms.getCookTime(), 0);
648  return (result);
649  }
651  {
652  SOP_Node *thissop = cookparms.getNode();
653  if (!thissop) return (myNumrenames(_idx).from);
654  int _parmidx = _idx + 1;
655  UT_StringHolder result;
656  OP_Utils::evalOpParmInst(result, thissop, "from#", &_parmidx, cookparms.getCookTime(), 0);
657  return (result);
658  }
660  {
661  SOP_Node *thissop = cookparms.getNode();
662  if (!thissop) return (myNumrenames(_idx).to);
663  int _parmidx = _idx + 1;
664  UT_StringHolder result;
665  OP_Utils::evalOpParmInst(result, thissop, "to#", &_parmidx, cookparms.getCookTime(), 0);
666  return (result);
667  }
668 
669 
670 private:
671  UT_StringHolder myAttribname;
672  int64 myClass;
673  bool myDonamefromgroup;
674  UT_StringHolder myNamefromgroupmask;
675  UT_Array<Numnames> myNumnames;
676  UT_Array<Numrenames> myNumrenames;
677 
678 };
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
virtual const char * getParmName(exint fieldnum) const
Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const Numrenames &src) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
void getParmValue(exint idx, UT_Matrix4D &value) const
T & z(void)
Definition: UT_Vector4.h:372
bool operator==(const SOP_NameParms &src) const
static void saveData(std::ostream &os, UT_Vector3D v)
exint bread(int32 *buffer, exint asize=1)
static void saveData(std::ostream &os, UT_Vector4D v)
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
virtual void copyFrom(const SOP_NodeParms *src)
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
UT_StringHolder opNumnames_name(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void setDonamefromgroup(bool val)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
T & x(void)
Definition: UT_Vector2.h:284
An output stream object that owns its own string buffer storage.
bool opNumrenames_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
UT_StringHolder createString(const UT_Array< Numnames > &list) const
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, int64 v)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
exint opNumnames(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder createString(const UT_Array< Numrenames > &list) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool opDonamefromgroup(const SOP_NodeVerb::CookParms &cookparms) const
bool load(UT_IStream &is)
png_uint_32 i
Definition: png.h:2877
UT_StringHolder opNumrenames_from(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void saveData(std::ostream &os, UT_Vector2D v)
const UT_StringHolder & getAttribname() const
static void saveData(std::ostream &os, UT_Matrix2D v)
bool getDonamefromgroup() const
UT_StringHolder opNamefromgroupmask(const SOP_NodeVerb::CookParms &cookparms) const
virtual ParmType getParmType(exint fieldnum) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
long long int64
Definition: SYS_Types.h:106
void setNamefromgroupmask(const UT_StringHolder &val)
void getParmValue(exint idx, exint &value) const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void getParmValue(exint idx, UT_Matrix3D &value) const
exint length() const
bool opNumrenames_global(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void append(char character)
void doSetParmValue(exint idx, const T &value)
SYS_FORCE_INLINE const char * buffer() const
UT_StringHolder opNumrenames_to(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
int64 exint
Definition: SYS_Types.h:115
void getParmValue(exint idx, UT_Vector4D &value) const
void setNumnames(const UT_Array< Numnames > &val)
void getParmValue(exint idx, UT_Vector2D &value) const
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
static void loadData(UT_IStream &is, fpreal64 &v)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
double fpreal64
Definition: SYS_Types.h:191
void setParmValue(exint idx, const UT_Matrix2D &value)
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:280
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, bool v)
void setParmValue(exint idx, const UT_Vector3D &value)
static void loadData(UT_IStream &is, int64 &v)
void setClass(Class val)
void setParmValue(exint idx, const UT_Vector2D &value)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void doGetParmValue(exint idx, T &value) const
void setParmValue(exint idx, const UT_StringHolder &value)
GLboolean * data
Definition: glcorearb.h:130
GLuint const GLchar * name
Definition: glcorearb.h:785
int int32
Definition: SYS_Types.h:34
void setParmValue(exint idx, const UT_Vector4D &value)
T & y(void)
Definition: UT_Vector4.h:370
const UT_Array< Numnames > & getNumnames() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void loadData(UT_IStream &is, UT_StringHolder &v)
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:446
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
exint opNumrenames(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:269
void strncpy(const char *src, exint maxlen)
void getParmValue(exint idx, fpreal &value) const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
void setNumrenames(const UT_Array< Numrenames > &val)
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static int version()
Class getClass() const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
virtual exint getNumParms() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
UT_StringHolder name
const UT_StringHolder & getNamefromgroupmask() const
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Matrix3D v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void loadData(UT_IStream &is, bool &v)
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Matrix4D &v)
const char * buffer() const
void setAttribname(const UT_StringHolder &val)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:499
T & x(void)
Definition: UT_Vector4.h:368
void getParmValue(exint idx, UT_StringHolder &value) const
void setParmValue(exint idx, const UT_Matrix4D &value)
bool operator==(const Numnames &src) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
UT_StringHolder opNumnames_group(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
T & y(void)
Definition: UT_Vector2.h:286
void setParmValue(exint idx, const fpreal &value)
void getParmValue(exint idx, UT_Matrix2D &value) const
void setParmValue(exint idx, const UT_Matrix3D &value)
GLboolean r
Definition: glcorearb.h:1221
void getParmValue(exint idx, UT_Vector3D &value) const
static void saveData(std::ostream &os, UT_StringHolder s)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
void strcat(const char *src)
T & w(void)
Definition: UT_Vector4.h:374
static void saveData(std::ostream &os, PRM_DataItemHandle s)
virtual ~SOP_NameParms()
UT_StringHolder group
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
const UT_Array< Numrenames > & getNumrenames() const
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const exint &value)
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:794
GLenum src
Definition: glcorearb.h:1792