HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 
84  };
85 
87  {
89 
90  buf.strcat("[ ");
91  for (int i = 0; i < list.entries(); i++)
92  {
93  if (i)
94  buf.strcat(", ");
95  buf.strcat("( ");
96  buf.append("");
97  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
98  buf.append(", ");
99  buf.appendSprintf("%d", (int) list(i).fromtype);
100  buf.append(", ");
101  buf.appendSprintf("%d", (int) list(i).totype);
102  buf.append(", ");
103  { UT_String tmp; tmp = UT_StringWrap(list(i).group).makeQuotedString('"'); buf.strcat(tmp); }
104  buf.append(", ");
105  { UT_String tmp; tmp = UT_StringWrap(list(i).newname).makeQuotedString('"'); buf.strcat(tmp); }
106  buf.append(", ");
107  buf.appendSprintf("%s", (list(i).preserve) ? "true" : "false");
108  buf.append(", ");
109  buf.appendSprintf("%s", (list(i).onlyfull) ? "true" : "false");
110  buf.append(", ");
111  buf.appendSprintf("%s", (list(i).toattrib) ? "true" : "false");
112 
113  buf.strcat(" )");
114  }
115  buf.strcat(" ]");
116 
117  UT_StringHolder result = buf;
118  return result;
119  }
120 
122  {
123 
124  }
125 
126  explicit SOP_GroupPromoteParms(const SOP_GroupPromoteParms &) = default;
127 
129 
131  {
132  if (myPromotions != src.myPromotions) return false;
133 
134  return true;
135  }
138 
139 
140 
141  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
142  {
143  if (true)
144  {
145  int64 length;
146  OP_Utils::evalOpParm(length, node, "promotions", time, 0);
147  myPromotions.entries(length);
148  for (exint i = 0; i < length; i++)
149  {
150  int parmidx = i+1;
151  auto && _curentry = myPromotions(i);
152  (void) _curentry;
153  if (true)
154  OP_Utils::evalOpParmInst(myPromotions(i).enable, node, "enable#", &parmidx, time, 0);
155  else myPromotions(i).enable = false;
156  if (true && ( (!(((_curentry.enable==0)))) ) )
157  OP_Utils::evalOpParmInst(myPromotions(i).fromtype, node, "fromtype#", &parmidx, time, 0);
158  else myPromotions(i).fromtype = 0;
159  if (true && ( (!(((_curentry.enable==0)))) ) )
160  OP_Utils::evalOpParmInst(myPromotions(i).totype, node, "totype#", &parmidx, time, 0);
161  else myPromotions(i).totype = 1;
162  if (true && ( (!(((_curentry.enable==0)))) ) )
163  OP_Utils::evalOpParmInst(myPromotions(i).group, node, "group#", &parmidx, time, 0);
164  else myPromotions(i).group = ""_sh;
165  if (true && ( (!(((_curentry.enable==0)))) ) )
166  OP_Utils::evalOpParmInst(myPromotions(i).newname, node, "newname#", &parmidx, time, 0);
167  else myPromotions(i).newname = ""_sh;
168  if (true && ( (!(((_curentry.enable==0)))) ) )
169  OP_Utils::evalOpParmInst(myPromotions(i).preserve, node, "preserve#", &parmidx, time, 0);
170  else myPromotions(i).preserve = false;
171  if (true && ( (!(((_curentry.enable==0))||((_curentry.totype==1)))) ) )
172  OP_Utils::evalOpParmInst(myPromotions(i).onlyfull, node, "onlyfull#", &parmidx, time, 0);
173  else myPromotions(i).onlyfull = false;
174  if (true && ( (!(((_curentry.enable==0))||((_curentry.totype==2)))) ) )
175  OP_Utils::evalOpParmInst(myPromotions(i).toattrib, node, "toattrib#", &parmidx, time, 0);
176  else myPromotions(i).toattrib = false;
177 
178  }
179  }
180  else
181  myPromotions.clear();
182 
183  }
184 
185 
186  virtual void loadFromOpSubclass(const LoadParms &loadparms)
187  {
188  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
189  }
190 
191 
192  virtual void copyFrom(const SOP_NodeParms *src)
193  {
194  *this = *((const SOP_GroupPromoteParms *)src);
195  }
196 
197  template <typename T>
198  void
199  doGetParmValue(exint idx, T &value) const
200  {
201  switch (idx)
202  {
203 
204  }
205  }
206 
207  void getParmValue(exint idx, exint &value) const
208  { doGetParmValue(idx, value); }
209  void getParmValue(exint idx, fpreal &value) const
210  { doGetParmValue(idx, value); }
212  { doGetParmValue(idx, value); }
214  { doGetParmValue(idx, value); }
216  { doGetParmValue(idx, value); }
218  { doGetParmValue(idx, value); }
220  { doGetParmValue(idx, value); }
222  { doGetParmValue(idx, value); }
224  { doGetParmValue(idx, value); }
226  { doGetParmValue(idx, value); }
228  { doGetParmValue(idx, value); }
229 
230  template <typename T>
231  void
232  doSetParmValue(exint idx, const T &value)
233  {
234  switch (idx)
235  {
236 
237  }
238  }
239 
240  void setParmValue(exint idx, const exint &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const fpreal &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Vector2D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Vector3D &value)
247  { doSetParmValue(idx, value); }
248  void setParmValue(exint idx, const UT_Vector4D &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const UT_Matrix2D &value)
251  { doSetParmValue(idx, value); }
252  void setParmValue(exint idx, const UT_Matrix3D &value)
253  { doSetParmValue(idx, value); }
254  void setParmValue(exint idx, const UT_Matrix4D &value)
255  { doSetParmValue(idx, value); }
257  { doSetParmValue(idx, value); }
259  { doSetParmValue(idx, value); }
261  { doSetParmValue(idx, value); }
262 
263  virtual exint getNumParms() const
264  {
265  return 1;
266  }
267 
268  virtual const char *getParmName(exint fieldnum) const
269  {
270  switch (fieldnum)
271  {
272  case 0:
273  return "promotions";
274 
275  }
276  return 0;
277  }
278 
279  virtual ParmType getParmType(exint fieldnum) const
280  {
281  switch (fieldnum)
282  {
283 
284  }
285  return PARM_UNSUPPORTED;
286  }
287 
288  // Boiler plate to load individual types.
289  static void loadData(UT_IStream &is, int64 &v)
290  { is.bread(&v, 1); }
291  static void loadData(UT_IStream &is, bool &v)
292  { int64 iv; is.bread(&iv, 1); v = iv; }
293  static void loadData(UT_IStream &is, fpreal64 &v)
294  { is.bread<fpreal64>(&v, 1); }
295  static void loadData(UT_IStream &is, UT_Vector2D &v)
296  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
297  static void loadData(UT_IStream &is, UT_Vector3D &v)
298  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
299  is.bread<fpreal64>(&v.z(), 1); }
300  static void loadData(UT_IStream &is, UT_Vector4D &v)
301  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
302  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
303  static void loadData(UT_IStream &is, UT_Matrix2D &v)
304  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
305  static void loadData(UT_IStream &is, UT_Matrix3D &v)
306  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
307  static void loadData(UT_IStream &is, UT_Matrix4D &v)
308  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
309  static void loadData(UT_IStream &is, UT_Vector2I &v)
310  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
311  static void loadData(UT_IStream &is, UT_Vector3I &v)
312  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
313  is.bread<int64>(&v.z(), 1); }
314  static void loadData(UT_IStream &is, UT_Vector4I &v)
315  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
316  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
318  { is.bread(v); }
320  { UT_StringHolder rampdata;
321  loadData(is, rampdata);
322  if (rampdata.isstring())
323  {
324  v.reset(new UT_Ramp());
325  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
326  v->load(istr);
327  }
328  else v.reset();
329  }
332  loadData(is, data);
333  if (data.isstring())
334  {
335  // Find the data type.
336  char *colon = UT_StringWrap(data).findChar(':');
337  if (colon)
338  {
339  int typelen = colon - data.buffer();
341  type.strncpy(data.buffer(), typelen);
342  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
343 
344  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
345  }
346  }
347  else v.reset();
348  }
349 
350  static void saveData(std::ostream &os, int64 v)
351  { UTwrite(os, &v); }
352  static void saveData(std::ostream &os, bool v)
353  { int64 iv = v; UTwrite(os, &iv); }
354  static void saveData(std::ostream &os, fpreal64 v)
355  { UTwrite<fpreal64>(os, &v); }
356  static void saveData(std::ostream &os, UT_Vector2D v)
357  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
358  static void saveData(std::ostream &os, UT_Vector3D v)
359  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
360  UTwrite<fpreal64>(os, &v.z()); }
361  static void saveData(std::ostream &os, UT_Vector4D v)
362  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
363  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
364  static void saveData(std::ostream &os, UT_Matrix2D v)
366  static void saveData(std::ostream &os, UT_Matrix3D v)
368  static void saveData(std::ostream &os, UT_Matrix4D v)
370  static void saveData(std::ostream &os, UT_StringHolder s)
371  { UT_StringWrap(s).saveBinary(os); }
372  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
373  { UT_StringHolder result;
374  UT_OStringStream ostr;
375  if (s) s->save(ostr);
376  result = ostr.str();
377  saveData(os, result);
378  }
379  static void saveData(std::ostream &os, PRM_DataItemHandle s)
380  { UT_StringHolder result;
381  UT_OStringStream ostr;
382  if (s)
383  {
384  ostr << s->getDataTypeToken();
385  ostr << ":";
386  s->saveBinary(ostr);
387  }
388  result = ostr.str();
389  saveData(os, result);
390  }
391 
392 
393  void save(std::ostream &os) const
394  {
395  int32 v = version();
396  UTwrite(os, &v);
397  {
398  int64 length = myPromotions.entries();
399  UTwrite(os, &length);
400  for (exint i = 0; i < length; i++)
401  {
402  saveData(os, myPromotions(i).enable);
403  saveData(os, myPromotions(i).fromtype);
404  saveData(os, myPromotions(i).totype);
405  saveData(os, myPromotions(i).group);
406  saveData(os, myPromotions(i).newname);
407  saveData(os, myPromotions(i).preserve);
408  saveData(os, myPromotions(i).onlyfull);
409  saveData(os, myPromotions(i).toattrib);
410 
411  }
412  }
413 
414  }
415 
416  bool load(UT_IStream &is)
417  {
418  int32 v;
419  is.bread(&v, 1);
420  if (version() != v)
421  {
422  // Fail incompatible versions
423  return false;
424  }
425  {
426  int64 length;
427  is.read(&length, 1);
428  myPromotions.entries(length);
429  for (exint i = 0; i < length; i++)
430  {
431  loadData(is, myPromotions(i).enable);
432  loadData(is, myPromotions(i).fromtype);
433  loadData(is, myPromotions(i).totype);
434  loadData(is, myPromotions(i).group);
435  loadData(is, myPromotions(i).newname);
436  loadData(is, myPromotions(i).preserve);
437  loadData(is, myPromotions(i).onlyfull);
438  loadData(is, myPromotions(i).toattrib);
439 
440  }
441  }
442 
443  return true;
444  }
445 
446  const UT_Array<Promotions> &getPromotions() const { return myPromotions; }
447  void setPromotions(const UT_Array<Promotions> &val) { myPromotions = val; }
449  {
450  SOP_Node *thissop = cookparms.getNode();
451  if (!thissop) return getPromotions().entries();
452  exint result;
453  OP_Utils::evalOpParm(result, thissop, "promotions", cookparms.getCookTime(), 0);
454  return result;
455  }
456  bool opPromotions_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
457  {
458  SOP_Node *thissop = cookparms.getNode();
459  if (!thissop) return (myPromotions(_idx).enable);
460  int _parmidx = _idx + 1;
461  bool result;
462  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
463  return (result);
464  }
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return (myPromotions(_idx).fromtype);
469  int _parmidx = _idx + 1;
470  int64 result;
471  OP_Utils::evalOpParmInst(result, thissop, "fromtype#", &_parmidx, cookparms.getCookTime(), 0);
472  return (result);
473  }
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return (myPromotions(_idx).totype);
478  int _parmidx = _idx + 1;
479  int64 result;
480  OP_Utils::evalOpParmInst(result, thissop, "totype#", &_parmidx, cookparms.getCookTime(), 0);
481  return (result);
482  }
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return (myPromotions(_idx).group);
487  int _parmidx = _idx + 1;
488  UT_StringHolder result;
489  OP_Utils::evalOpParmInst(result, thissop, "group#", &_parmidx, cookparms.getCookTime(), 0);
490  return (result);
491  }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return (myPromotions(_idx).newname);
496  int _parmidx = _idx + 1;
497  UT_StringHolder result;
498  OP_Utils::evalOpParmInst(result, thissop, "newname#", &_parmidx, cookparms.getCookTime(), 0);
499  return (result);
500  }
501  bool opPromotions_preserve(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return (myPromotions(_idx).preserve);
505  int _parmidx = _idx + 1;
506  bool result;
507  OP_Utils::evalOpParmInst(result, thissop, "preserve#", &_parmidx, cookparms.getCookTime(), 0);
508  return (result);
509  }
510  bool opPromotions_onlyfull(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return (myPromotions(_idx).onlyfull);
514  int _parmidx = _idx + 1;
515  bool result;
516  OP_Utils::evalOpParmInst(result, thissop, "onlyfull#", &_parmidx, cookparms.getCookTime(), 0);
517  return (result);
518  }
519  bool opPromotions_toattrib(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return (myPromotions(_idx).toattrib);
523  int _parmidx = _idx + 1;
524  bool result;
525  OP_Utils::evalOpParmInst(result, thissop, "toattrib#", &_parmidx, cookparms.getCookTime(), 0);
526  return (result);
527  }
528 
529 
530 private:
531  UT_Array<Promotions> myPromotions;
532 
533 };
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:492
static void saveData(std::ostream &os, int64 v)
T & z(void)
Definition: UT_Vector4.h:372
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)
fpreal getTime() const
Definition: OP_Context.h:34
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)
T & x(void)
Definition: UT_Vector2.h:284
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:581
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:585
void getParmValue(exint idx, UT_Vector3D &value) const
long long int64
Definition: SYS_Types.h:100
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
void append(char character)
SYS_FORCE_INLINE const char * buffer() const
int64 exint
Definition: SYS_Types.h:109
static void saveData(std::ostream &os, UT_StringHolder s)
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:185
void setParmValue(exint idx, const UT_Matrix4D &value)
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:280
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:28
static void saveData(std::ostream &os, UT_Vector2D v)
T & y(void)
Definition: UT_Vector4.h:370
virtual const char * getParmName(exint fieldnum) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getParmValue(exint idx, exint &value) const
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)
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
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:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:263
void strncpy(const char *src, exint maxlen)
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)
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)
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)
const char * buffer() const
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:499
T & x(void)
Definition: UT_Vector4.h:368
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:286
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
void strcat(const char *src)
T & w(void)
Definition: UT_Vector4.h:374
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
void getParmValue(exint idx, UT_Matrix2D &value) const
SYS_FORCE_INLINE bool isstring() const
const UT_Array< Promotions > & getPromotions() const
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:794
static void saveData(std::ostream &os, UT_Matrix2D v)
GLenum src
Definition: glcorearb.h:1792