HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupPromote.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_GroupPromoteEnums
22 {
23  enum class Fromtype
24  {
25  AUTO = 0,
26  PRIMS,
27  POINTS,
28  EDGES,
29  VERTICES
30  };
31  enum class Totype
32  {
33  PRIMS = 0,
34  POINTS,
35  EDGES,
36  VERTICES
37  };
38 }
39 
40 
42 {
43 public:
44  static int version() { return 1; }
45  struct Promotions
46  {
47  bool enable;
52  bool preserve;
53  bool onlyfull;
54  bool toattrib;
55 
56 
58  {
59  enable = false;
60  fromtype = 0;
61  totype = 1;
62  group = ""_sh;
63  newname = ""_sh;
64  preserve = false;
65  onlyfull = false;
66  toattrib = false;
67 
68  }
69 
70  bool operator==(const Promotions &src) const
71  {
72  if (enable != src.enable) return false;
73  if (fromtype != src.fromtype) return false;
74  if (totype != src.totype) return false;
75  if (group != src.group) return false;
76  if (newname != src.newname) return false;
77  if (preserve != src.preserve) return false;
78  if (onlyfull != src.onlyfull) return false;
79  if (toattrib != src.toattrib) return false;
80 
81  return true;
82  }
83  bool operator!=(const Promotions &src) const
84  {
85  return !operator==(src);
86  }
87 
88  };
89 
91  {
93 
94  buf.strcat("[ ");
95  for (int i = 0; i < list.entries(); i++)
96  {
97  if (i)
98  buf.strcat(", ");
99  buf.strcat("( ");
100  buf.append("");
101  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
102  buf.append(", ");
103  buf.appendSprintf("%d", (int) list(i).fromtype);
104  buf.append(", ");
105  buf.appendSprintf("%d", (int) list(i).totype);
106  buf.append(", ");
107  { UT_String tmp; tmp = UT_StringWrap(list(i).group).makeQuotedString('"'); buf.strcat(tmp); }
108  buf.append(", ");
109  { UT_String tmp; tmp = UT_StringWrap(list(i).newname).makeQuotedString('"'); buf.strcat(tmp); }
110  buf.append(", ");
111  buf.appendSprintf("%s", (list(i).preserve) ? "true" : "false");
112  buf.append(", ");
113  buf.appendSprintf("%s", (list(i).onlyfull) ? "true" : "false");
114  buf.append(", ");
115  buf.appendSprintf("%s", (list(i).toattrib) ? "true" : "false");
116 
117  buf.strcat(" )");
118  }
119  buf.strcat(" ]");
120 
121  UT_StringHolder result = buf;
122  return result;
123  }
124 
126  {
127 
128  }
129 
130  explicit SOP_GroupPromoteParms(const SOP_GroupPromoteParms &) = default;
131 
133 
135  {
136  if (myPromotions != src.myPromotions) return false;
137 
138  return true;
139  }
141  {
142  return !operator==(src);
143  }
146 
147 
148 
149  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
150  {
151  if (true)
152  {
153  int64 length;
154  OP_Utils::evalOpParm(length, node, "promotions", time, 0);
155  myPromotions.entries(length);
156  for (exint i = 0; i < length; i++)
157  {
158  int parmidx = i+1;
159  auto && _curentry = myPromotions(i);
160  (void) _curentry;
161  if (true)
162  OP_Utils::evalOpParmInst(myPromotions(i).enable, node, "enable#", &parmidx, time, 0);
163  else myPromotions(i).enable = false;
164  if (true && ( (!(((_curentry.enable==0)))) ) )
165  OP_Utils::evalOpParmInst(myPromotions(i).fromtype, node, "fromtype#", &parmidx, time, 0);
166  else myPromotions(i).fromtype = 0;
167  if (true && ( (!(((_curentry.enable==0)))) ) )
168  OP_Utils::evalOpParmInst(myPromotions(i).totype, node, "totype#", &parmidx, time, 0);
169  else myPromotions(i).totype = 1;
170  if (true && ( (!(((_curentry.enable==0)))) ) )
171  OP_Utils::evalOpParmInst(myPromotions(i).group, node, "group#", &parmidx, time, 0);
172  else myPromotions(i).group = ""_sh;
173  if (true && ( (!(((_curentry.enable==0)))) ) )
174  OP_Utils::evalOpParmInst(myPromotions(i).newname, node, "newname#", &parmidx, time, 0);
175  else myPromotions(i).newname = ""_sh;
176  if (true && ( (!(((_curentry.enable==0)))) ) )
177  OP_Utils::evalOpParmInst(myPromotions(i).preserve, node, "preserve#", &parmidx, time, 0);
178  else myPromotions(i).preserve = false;
179  if (true && ( (!(((_curentry.enable==0))||((_curentry.totype==1)))) ) )
180  OP_Utils::evalOpParmInst(myPromotions(i).onlyfull, node, "onlyfull#", &parmidx, time, 0);
181  else myPromotions(i).onlyfull = false;
182  if (true && ( (!(((_curentry.enable==0))||((_curentry.totype==2)))) ) )
183  OP_Utils::evalOpParmInst(myPromotions(i).toattrib, node, "toattrib#", &parmidx, time, 0);
184  else myPromotions(i).toattrib = false;
185 
186  }
187  }
188  else
189  myPromotions.clear();
190 
191  }
192 
193 
194  virtual void loadFromOpSubclass(const LoadParms &loadparms)
195  {
196  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
197  }
198 
199 
200  virtual void copyFrom(const SOP_NodeParms *src)
201  {
202  *this = *((const SOP_GroupPromoteParms *)src);
203  }
204 
205  template <typename T>
206  void
207  doGetParmValue(exint idx, T &value) const
208  {
209  switch (idx)
210  {
211 
212  }
213  }
214 
215  void getParmValue(exint idx, exint &value) const
216  { doGetParmValue(idx, value); }
217  void getParmValue(exint idx, fpreal &value) const
218  { doGetParmValue(idx, value); }
220  { doGetParmValue(idx, value); }
222  { doGetParmValue(idx, value); }
224  { doGetParmValue(idx, value); }
226  { doGetParmValue(idx, value); }
228  { doGetParmValue(idx, value); }
230  { doGetParmValue(idx, value); }
232  { doGetParmValue(idx, value); }
234  { doGetParmValue(idx, value); }
236  { doGetParmValue(idx, value); }
237 
238  template <typename T>
239  void
240  doSetParmValue(exint idx, const T &value)
241  {
242  switch (idx)
243  {
244 
245  }
246  }
247 
248  void setParmValue(exint idx, const exint &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const fpreal &value)
251  { doSetParmValue(idx, value); }
252  void setParmValue(exint idx, const UT_Vector2D &value)
253  { doSetParmValue(idx, value); }
254  void setParmValue(exint idx, const UT_Vector3D &value)
255  { doSetParmValue(idx, value); }
256  void setParmValue(exint idx, const UT_Vector4D &value)
257  { doSetParmValue(idx, value); }
258  void setParmValue(exint idx, const UT_Matrix2D &value)
259  { doSetParmValue(idx, value); }
260  void setParmValue(exint idx, const UT_Matrix3D &value)
261  { doSetParmValue(idx, value); }
262  void setParmValue(exint idx, const UT_Matrix4D &value)
263  { doSetParmValue(idx, value); }
265  { doSetParmValue(idx, value); }
267  { doSetParmValue(idx, value); }
269  { doSetParmValue(idx, value); }
270 
271  virtual exint getNumParms() const
272  {
273  return 1;
274  }
275 
276  virtual const char *getParmName(exint fieldnum) const
277  {
278  switch (fieldnum)
279  {
280  case 0:
281  return "promotions";
282 
283  }
284  return 0;
285  }
286 
287  virtual ParmType getParmType(exint fieldnum) const
288  {
289  switch (fieldnum)
290  {
291 
292  }
293  return PARM_UNSUPPORTED;
294  }
295 
296  // Boiler plate to load individual types.
297  static void loadData(UT_IStream &is, int64 &v)
298  { is.bread(&v, 1); }
299  static void loadData(UT_IStream &is, bool &v)
300  { int64 iv; is.bread(&iv, 1); v = iv; }
301  static void loadData(UT_IStream &is, fpreal64 &v)
302  { is.bread<fpreal64>(&v, 1); }
303  static void loadData(UT_IStream &is, UT_Vector2D &v)
304  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
305  static void loadData(UT_IStream &is, UT_Vector3D &v)
306  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
307  is.bread<fpreal64>(&v.z(), 1); }
308  static void loadData(UT_IStream &is, UT_Vector4D &v)
309  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
310  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
311  static void loadData(UT_IStream &is, UT_Matrix2D &v)
312  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
313  static void loadData(UT_IStream &is, UT_Matrix3D &v)
314  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
315  static void loadData(UT_IStream &is, UT_Matrix4D &v)
316  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
317  static void loadData(UT_IStream &is, UT_Vector2I &v)
318  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
319  static void loadData(UT_IStream &is, UT_Vector3I &v)
320  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
321  is.bread<int64>(&v.z(), 1); }
322  static void loadData(UT_IStream &is, UT_Vector4I &v)
323  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
324  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
326  { is.bread(v); }
328  { UT_StringHolder rampdata;
329  loadData(is, rampdata);
330  if (rampdata.isstring())
331  {
332  v.reset(new UT_Ramp());
333  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
334  v->load(istr);
335  }
336  else v.reset();
337  }
340  loadData(is, data);
341  if (data.isstring())
342  {
343  // Find the data type.
344  char *colon = UT_StringWrap(data).findChar(':');
345  if (colon)
346  {
347  int typelen = colon - data.buffer();
349  type.strncpy(data.buffer(), typelen);
350  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
351 
352  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
353  }
354  }
355  else v.reset();
356  }
357 
358  static void saveData(std::ostream &os, int64 v)
359  { UTwrite(os, &v); }
360  static void saveData(std::ostream &os, bool v)
361  { int64 iv = v; UTwrite(os, &iv); }
362  static void saveData(std::ostream &os, fpreal64 v)
363  { UTwrite<fpreal64>(os, &v); }
364  static void saveData(std::ostream &os, UT_Vector2D v)
365  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
366  static void saveData(std::ostream &os, UT_Vector3D v)
367  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
368  UTwrite<fpreal64>(os, &v.z()); }
369  static void saveData(std::ostream &os, UT_Vector4D v)
370  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
371  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
372  static void saveData(std::ostream &os, UT_Matrix2D v)
374  static void saveData(std::ostream &os, UT_Matrix3D v)
376  static void saveData(std::ostream &os, UT_Matrix4D v)
378  static void saveData(std::ostream &os, UT_StringHolder s)
379  { UT_StringWrap(s).saveBinary(os); }
380  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
381  { UT_StringHolder result;
382  UT_OStringStream ostr;
383  if (s) s->save(ostr);
384  result = ostr.str();
385  saveData(os, result);
386  }
387  static void saveData(std::ostream &os, PRM_DataItemHandle s)
388  { UT_StringHolder result;
389  UT_OStringStream ostr;
390  if (s)
391  {
392  ostr << s->getDataTypeToken();
393  ostr << ":";
394  s->saveBinary(ostr);
395  }
396  result = ostr.str();
397  saveData(os, result);
398  }
399 
400 
401  void save(std::ostream &os) const
402  {
403  int32 v = version();
404  UTwrite(os, &v);
405  {
406  int64 length = myPromotions.entries();
407  UTwrite(os, &length);
408  for (exint i = 0; i < length; i++)
409  {
410  saveData(os, myPromotions(i).enable);
411  saveData(os, myPromotions(i).fromtype);
412  saveData(os, myPromotions(i).totype);
413  saveData(os, myPromotions(i).group);
414  saveData(os, myPromotions(i).newname);
415  saveData(os, myPromotions(i).preserve);
416  saveData(os, myPromotions(i).onlyfull);
417  saveData(os, myPromotions(i).toattrib);
418 
419  }
420  }
421 
422  }
423 
424  bool load(UT_IStream &is)
425  {
426  int32 v;
427  is.bread(&v, 1);
428  if (version() != v)
429  {
430  // Fail incompatible versions
431  return false;
432  }
433  {
434  int64 length;
435  is.read(&length, 1);
436  myPromotions.entries(length);
437  for (exint i = 0; i < length; i++)
438  {
439  loadData(is, myPromotions(i).enable);
440  loadData(is, myPromotions(i).fromtype);
441  loadData(is, myPromotions(i).totype);
442  loadData(is, myPromotions(i).group);
443  loadData(is, myPromotions(i).newname);
444  loadData(is, myPromotions(i).preserve);
445  loadData(is, myPromotions(i).onlyfull);
446  loadData(is, myPromotions(i).toattrib);
447 
448  }
449  }
450 
451  return true;
452  }
453 
454  const UT_Array<Promotions> &getPromotions() const { return myPromotions; }
455  void setPromotions(const UT_Array<Promotions> &val) { myPromotions = val; }
457  {
458  SOP_Node *thissop = cookparms.getNode();
459  if (!thissop) return getPromotions().entries();
460  exint result;
461  OP_Utils::evalOpParm(result, thissop, "promotions", cookparms.getCookTime(), 0);
462  return result;
463  }
464  bool opPromotions_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return (myPromotions(_idx).enable);
468  int _parmidx = _idx + 1;
469  bool result;
470  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
471  return (result);
472  }
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return (myPromotions(_idx).fromtype);
477  int _parmidx = _idx + 1;
478  int64 result;
479  OP_Utils::evalOpParmInst(result, thissop, "fromtype#", &_parmidx, cookparms.getCookTime(), 0);
480  return (result);
481  }
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return (myPromotions(_idx).totype);
486  int _parmidx = _idx + 1;
487  int64 result;
488  OP_Utils::evalOpParmInst(result, thissop, "totype#", &_parmidx, cookparms.getCookTime(), 0);
489  return (result);
490  }
492  {
493  SOP_Node *thissop = cookparms.getNode();
494  if (!thissop) return (myPromotions(_idx).group);
495  int _parmidx = _idx + 1;
496  UT_StringHolder result;
497  OP_Utils::evalOpParmInst(result, thissop, "group#", &_parmidx, cookparms.getCookTime(), 0);
498  return (result);
499  }
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return (myPromotions(_idx).newname);
504  int _parmidx = _idx + 1;
505  UT_StringHolder result;
506  OP_Utils::evalOpParmInst(result, thissop, "newname#", &_parmidx, cookparms.getCookTime(), 0);
507  return (result);
508  }
509  bool opPromotions_preserve(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return (myPromotions(_idx).preserve);
513  int _parmidx = _idx + 1;
514  bool result;
515  OP_Utils::evalOpParmInst(result, thissop, "preserve#", &_parmidx, cookparms.getCookTime(), 0);
516  return (result);
517  }
518  bool opPromotions_onlyfull(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return (myPromotions(_idx).onlyfull);
522  int _parmidx = _idx + 1;
523  bool result;
524  OP_Utils::evalOpParmInst(result, thissop, "onlyfull#", &_parmidx, cookparms.getCookTime(), 0);
525  return (result);
526  }
527  bool opPromotions_toattrib(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
528  {
529  SOP_Node *thissop = cookparms.getNode();
530  if (!thissop) return (myPromotions(_idx).toattrib);
531  int _parmidx = _idx + 1;
532  bool result;
533  OP_Utils::evalOpParmInst(result, thissop, "toattrib#", &_parmidx, cookparms.getCookTime(), 0);
534  return (result);
535  }
536 
537 
538 private:
539  UT_Array<Promotions> myPromotions;
540 
541 };
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
static void saveData(std::ostream &os, int64 v)
T & z(void)
Definition: UT_Vector4.h:379
static void loadData(UT_IStream &is, UT_Vector3D &v)
void doGetParmValue(exint idx, T &value) const
bool opPromotions_toattrib(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
UT_StringHolder createString(const UT_Array< Promotions > &list) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
exint bread(int32 *buffer, exint asize=1)
static void saveData(std::ostream &os, fpreal64 v)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
static void loadData(UT_IStream &is, UT_Matrix4D &v)
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
void setParmValue(exint idx, const UT_Vector3D &value)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
void doSetParmValue(exint idx, const T &value)
void getParmValue(exint idx, UT_Matrix3D &value) const
static void loadData(UT_IStream &is, fpreal64 &v)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
bool opPromotions_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
bool opPromotions_onlyfull(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
An output stream object that owns its own string buffer storage.
void setParmValue(exint idx, const UT_StringHolder &value)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
void getParmValue(exint idx, UT_Vector4D &value) const
int64 opPromotions_fromtype(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
void setParmValue(exint idx, const UT_Vector2D &value)
virtual exint getNumParms() const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
png_uint_32 i
Definition: png.h:2877
bool opPromotions_preserve(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
int64 opPromotions_totype(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void getParmValue(exint idx, UT_Vector2D &value) const
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, bool v)
virtual void copyFrom(const SOP_NodeParms *src)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
UT_StringHolder opPromotions_group(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
void getParmValue(exint idx, UT_Vector3D &value) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
static void loadData(UT_IStream &is, int64 &v)
void setParmValue(exint idx, const UT_Matrix3D &value)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_StringHolder s)
bool operator!=(const Promotions &src) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
static void saveData(std::ostream &os, PRM_DataItemHandle s)
double fpreal64
Definition: SYS_Types.h:192
void setParmValue(exint idx, const UT_Matrix4D &value)
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:284
void setParmValue(exint idx, const fpreal &value)
void save(std::ostream &os) const
void getParmValue(exint idx, UT_StringHolder &value) const
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
static void saveData(std::ostream &os, UT_Vector2D v)
T & y(void)
Definition: UT_Vector4.h:377
virtual const char * getParmName(exint fieldnum) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getParmValue(exint idx, exint &value) const
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 loadData(UT_IStream &is, PRM_DataItemHandle &v)
GT_API const UT_StringHolder version
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:453
void setParmValue(exint idx, const exint &value)
exint opPromotions(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector4D &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
void setParmValue(exint idx, const UT_Matrix2D &value)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
static void saveData(std::ostream &os, UT_Matrix3D v)
bool operator!=(const SOP_GroupPromoteParms &src) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setPromotions(const UT_Array< Promotions > &val)
SYS_FORCE_INLINE void append(char character)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual ParmType getParmType(exint fieldnum) const
#define SOP_API
Definition: SOP_API.h:10
bool load(UT_IStream &is)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
static void loadData(UT_IStream &is, UT_Vector4I &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
static void saveData(std::ostream &os, UT_Vector3D v)
bool operator==(const Promotions &src) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getParmValue(exint idx, UT_Matrix4D &value) const
T & y(void)
Definition: UT_Vector2.h:287
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
GLboolean r
Definition: glcorearb.h:1221
UT_StringHolder opPromotions_newname(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void getParmValue(exint idx, fpreal &value) const
T & w(void)
Definition: UT_Vector4.h:381
void setParmValue(exint idx, const PRM_DataItemHandle &value)
bool operator==(const SOP_GroupPromoteParms &src) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
void getParmValue(exint idx, UT_Matrix2D &value) const
SYS_FORCE_INLINE bool isstring() const
const UT_Array< Promotions > & getPromotions() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:794
static void saveData(std::ostream &os, UT_Matrix2D v)
GLenum src
Definition: glcorearb.h:1792