HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Enumerate.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 using namespace UT::Literal;
23 
24 class DEP_MicroNode;
25 namespace SOP_EnumerateEnums
26 {
27  enum class GroupType
28  {
29  PRIMITIVE = 0,
30  POINT,
31  VERTEX
32  };
33  enum class PieceMode
34  {
35  ELEMENTS = 0,
36  PIECES
37  };
38  enum class AttribType
39  {
40  INT = 0,
41  STRING
42  };
43 }
44 
45 
47 {
48 public:
49  static int version() { return 1; }
50 
52  {
53  myGroup = ""_sh;
54  myGroupType = 0;
55  myUsePieceAttrib = false;
56  myPieceAttrib = "name"_sh;
57  myPieceMode = 0;
58  myAttribname = "index"_sh;
59  myAttribType = 0;
60  myPrefix = "piece"_sh;
61 
62  }
63 
64  explicit SOP_EnumerateParms(const SOP_EnumerateParms &) = default;
65 
66  ~SOP_EnumerateParms() override {}
67 
68  bool operator==(const SOP_EnumerateParms &src) const
69  {
70  if (myGroup != src.myGroup) return false;
71  if (myGroupType != src.myGroupType) return false;
72  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
73  if (myPieceAttrib != src.myPieceAttrib) return false;
74  if (myPieceMode != src.myPieceMode) return false;
75  if (myAttribname != src.myAttribname) return false;
76  if (myAttribType != src.myAttribType) return false;
77  if (myPrefix != src.myPrefix) return false;
78 
79  return true;
80  }
81  bool operator!=(const SOP_EnumerateParms &src) const
82  {
83  return !operator==(src);
84  }
88 
89 
90 
91  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
92  {
93  myGroup = ""_sh;
94  if (true)
95  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
96  myGroupType = 0;
97  if (true)
98  graph->evalOpParm(myGroupType, nodeidx, "grouptype", time, 0);
99  myUsePieceAttrib = false;
100  if (true)
101  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, 0);
102  myPieceAttrib = "name"_sh;
103  if (true && ( (true&&!(((getUsePieceAttrib()==0)))) ) )
104  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
105  myPieceMode = 0;
106  if (true && ( (true&&!(((getUsePieceAttrib()==0))||((getUsePieceAttrib()==0)))) ) )
107  graph->evalOpParm(myPieceMode, nodeidx, "piecemode", time, 0);
108  myAttribname = "index"_sh;
109  if (true)
110  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, 0);
111  myAttribType = 0;
112  if (true)
113  graph->evalOpParm(myAttribType, nodeidx, "attribtype", time, 0);
114  myPrefix = "piece"_sh;
115  if (true && ( (true&&!(((int64(getAttribType())!=1))||((int64(getAttribType())!=1)))) ) )
116  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, 0);
117 
118  }
119 
120 
121  void loadFromOpSubclass(const LoadParms &loadparms) override
122  {
123  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
124  }
125 
126 
127  void copyFrom(const SOP_NodeParms *src) override
128  {
129  *this = *((const SOP_EnumerateParms *)src);
130  }
131 
132  template <typename T>
133  void
134  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
135  {
136  if (idx.size() < 1)
137  return;
138  UT_ASSERT(idx.size() == instance.size()+1);
139  if (idx.size() != instance.size()+1)
140  return;
141  switch (idx[0])
142  {
143  case 0:
144  coerceValue(value, myGroup);
145  break;
146  case 1:
147  coerceValue(value, myGroupType);
148  break;
149  case 2:
150  coerceValue(value, myUsePieceAttrib);
151  break;
152  case 3:
153  coerceValue(value, myPieceAttrib);
154  break;
155  case 4:
156  coerceValue(value, myPieceMode);
157  break;
158  case 5:
159  coerceValue(value, myAttribname);
160  break;
161  case 6:
162  coerceValue(value, myAttribType);
163  break;
164  case 7:
165  coerceValue(value, myPrefix);
166  break;
167 
168  }
169  }
170 
171  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
192  { doGetParmValue(idx, instance, value); }
193 
194  template <typename T>
195  void
196  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
197  {
198  if (idx.size() < 1)
199  return;
200  UT_ASSERT(idx.size() == instance.size()+1);
201  if (idx.size() != instance.size()+1)
202  return;
203  switch (idx[0])
204  {
205  case 0:
206  coerceValue(myGroup, ( ( value ) ));
207  break;
208  case 1:
209  coerceValue(myGroupType, clampMinValue(0, clampMaxValue(2, value ) ));
210  break;
211  case 2:
212  coerceValue(myUsePieceAttrib, ( ( value ) ));
213  break;
214  case 3:
215  coerceValue(myPieceAttrib, ( ( value ) ));
216  break;
217  case 4:
218  coerceValue(myPieceMode, clampMinValue(0, clampMaxValue(1, value ) ));
219  break;
220  case 5:
221  coerceValue(myAttribname, ( ( value ) ));
222  break;
223  case 6:
224  coerceValue(myAttribType, clampMinValue(0, clampMaxValue(1, value ) ));
225  break;
226  case 7:
227  coerceValue(myPrefix, ( ( value ) ));
228  break;
229 
230  }
231  }
232 
233  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
254  { doSetParmValue(idx, instance, value); }
255 
256  exint getNestNumParms(TempIndex idx) const override
257  {
258  if (idx.size() == 0)
259  return 8;
260  switch (idx[0])
261  {
262 
263  }
264  // Invalid
265  return 0;
266  }
267 
268  const char *getNestParmName(TempIndex fieldnum) const override
269  {
270  if (fieldnum.size() < 1)
271  return 0;
272  switch (fieldnum[0])
273  {
274  case 0:
275  return "group";
276  case 1:
277  return "grouptype";
278  case 2:
279  return "usepieceattrib";
280  case 3:
281  return "pieceattrib";
282  case 4:
283  return "piecemode";
284  case 5:
285  return "attribname";
286  case 6:
287  return "attribtype";
288  case 7:
289  return "prefix";
290 
291  }
292  return 0;
293  }
294 
295  ParmType getNestParmType(TempIndex fieldnum) const override
296  {
297  if (fieldnum.size() < 1)
298  return PARM_UNSUPPORTED;
299  switch (fieldnum[0])
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_INTEGER;
305  case 2:
306  return PARM_INTEGER;
307  case 3:
308  return PARM_STRING;
309  case 4:
310  return PARM_INTEGER;
311  case 5:
312  return PARM_STRING;
313  case 6:
314  return PARM_INTEGER;
315  case 7:
316  return PARM_STRING;
317 
318  }
319  return PARM_UNSUPPORTED;
320  }
321 
322  // Boiler plate to load individual types.
323  static void loadData(UT_IStream &is, int64 &v)
324  { is.bread(&v, 1); }
325  static void loadData(UT_IStream &is, bool &v)
326  { int64 iv; is.bread(&iv, 1); v = iv; }
327  static void loadData(UT_IStream &is, fpreal64 &v)
328  { is.bread<fpreal64>(&v, 1); }
329  static void loadData(UT_IStream &is, UT_Vector2D &v)
330  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
331  static void loadData(UT_IStream &is, UT_Vector3D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
333  is.bread<fpreal64>(&v.z(), 1); }
334  static void loadData(UT_IStream &is, UT_Vector4D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
336  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
337  static void loadData(UT_IStream &is, UT_Matrix2D &v)
338  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix3D &v)
340  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix4D &v)
342  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Vector2I &v)
344  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
345  static void loadData(UT_IStream &is, UT_Vector3I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
347  is.bread<int64>(&v.z(), 1); }
348  static void loadData(UT_IStream &is, UT_Vector4I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
350  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
352  { is.bread(v); }
354  { UT_StringHolder rampdata;
355  loadData(is, rampdata);
356  if (rampdata.isstring())
357  {
358  v.reset(new UT_Ramp());
359  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
360  v->load(istr);
361  }
362  else v.reset();
363  }
366  loadData(is, data);
367  if (data.isstring())
368  {
369  // Find the data type.
370  const char *colon = UT_StringWrap(data).findChar(':');
371  if (colon)
372  {
373  int typelen = colon - data.buffer();
375  type.strncpy(data.buffer(), typelen);
376  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
377 
378  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
379  }
380  }
381  else v.reset();
382  }
383 
384  static void saveData(std::ostream &os, int64 v)
385  { UTwrite(os, &v); }
386  static void saveData(std::ostream &os, bool v)
387  { int64 iv = v; UTwrite(os, &iv); }
388  static void saveData(std::ostream &os, fpreal64 v)
389  { UTwrite<fpreal64>(os, &v); }
390  static void saveData(std::ostream &os, UT_Vector2D v)
391  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
392  static void saveData(std::ostream &os, UT_Vector3D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
394  UTwrite<fpreal64>(os, &v.z()); }
395  static void saveData(std::ostream &os, UT_Vector4D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
397  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
398  static void saveData(std::ostream &os, UT_Matrix2D v)
400  static void saveData(std::ostream &os, UT_Matrix3D v)
402  static void saveData(std::ostream &os, UT_Matrix4D v)
404  static void saveData(std::ostream &os, UT_StringHolder s)
405  { UT_StringWrap(s).saveBinary(os); }
406  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
408  UT_OStringStream ostr;
409  if (s) s->save(ostr);
410  result = ostr.str();
411  saveData(os, result);
412  }
413  static void saveData(std::ostream &os, PRM_DataItemHandle s)
415  UT_OStringStream ostr;
416  if (s)
417  {
418  ostr << s->getDataTypeToken();
419  ostr << ":";
420  s->saveBinary(ostr);
421  }
422  result = ostr.str();
423  saveData(os, result);
424  }
425 
426 
427  void save(std::ostream &os) const
428  {
429  int32 v = version();
430  UTwrite(os, &v);
431  saveData(os, myGroup);
432  saveData(os, myGroupType);
433  saveData(os, myUsePieceAttrib);
434  saveData(os, myPieceAttrib);
435  saveData(os, myPieceMode);
436  saveData(os, myAttribname);
437  saveData(os, myAttribType);
438  saveData(os, myPrefix);
439 
440  }
441 
442  bool load(UT_IStream &is)
443  {
444  int32 v;
445  is.bread(&v, 1);
446  if (version() != v)
447  {
448  // Fail incompatible versions
449  return false;
450  }
451  loadData(is, myGroup);
452  loadData(is, myGroupType);
453  loadData(is, myUsePieceAttrib);
454  loadData(is, myPieceAttrib);
455  loadData(is, myPieceMode);
456  loadData(is, myAttribname);
457  loadData(is, myAttribType);
458  loadData(is, myPrefix);
459 
460  return true;
461  }
462 
463  const UT_StringHolder & getGroup() const { return myGroup; }
464  void setGroup(const UT_StringHolder & val) { myGroup = val; }
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return getGroup();
470  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
471  return result;
472  }
473  GroupType getGroupType() const { return GroupType(myGroupType); }
474  void setGroupType(GroupType val) { myGroupType = int64(val); }
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return getGroupType();
479  int64 result;
480  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
481  return GroupType(result);
482  }
483  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
484  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
485  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getUsePieceAttrib();
489  bool result;
490  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
491  return result;
492  }
493  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
494  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getPieceAttrib();
500  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
501  return result;
502  }
503  PieceMode getPieceMode() const { return PieceMode(myPieceMode); }
504  void setPieceMode(PieceMode val) { myPieceMode = int64(val); }
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getPieceMode();
509  int64 result;
510  OP_Utils::evalOpParm(result, thissop, "piecemode", cookparms.getCookTime(), 0);
511  return PieceMode(result);
512  }
513  const UT_StringHolder & getAttribname() const { return myAttribname; }
514  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getAttribname();
520  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
521  return result;
522  }
523  AttribType getAttribType() const { return AttribType(myAttribType); }
524  void setAttribType(AttribType val) { myAttribType = int64(val); }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getAttribType();
529  int64 result;
530  OP_Utils::evalOpParm(result, thissop, "attribtype", cookparms.getCookTime(), 0);
531  return AttribType(result);
532  }
533  const UT_StringHolder & getPrefix() const { return myPrefix; }
534  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getPrefix();
540  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
541  return result;
542  }
543 
544 private:
545  UT_StringHolder myGroup;
546  int64 myGroupType;
547  bool myUsePieceAttrib;
548  UT_StringHolder myPieceAttrib;
549  int64 myPieceMode;
550  UT_StringHolder myAttribname;
551  int64 myAttribType;
552  UT_StringHolder myPrefix;
553 
554 };
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
const UT_StringHolder & getGroup() const
exint nodeIdx() const
Definition: SOP_NodeVerb.h:102
static void saveData(std::ostream &os, UT_Vector2D v)
void setPieceMode(PieceMode val)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:734
void setAttribname(const UT_StringHolder &val)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const UT_StringHolder & getPrefix() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:59
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
const GLfloat * c
Definition: glew.h:16631
bool getUsePieceAttrib() const
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
GroupType getGroupType() const
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_StringHolder opPrefix(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:656
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:101
void setPrefix(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
An output stream object that owns its own string buffer storage.
PieceMode getPieceMode() const
bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void setGroupType(GroupType val)
GLenum src
Definition: glcorearb.h:1793
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 loadData(UT_IStream &is, UT_Vector3I &v)
void setGroup(const UT_StringHolder &val)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, bool &v)
double fpreal64
Definition: SYS_Types.h:201
static void loadData(UT_IStream &is, UT_Vector2I &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
const UT_StringHolder & getPieceAttrib() const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void copyFrom(const SOP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setAttribType(AttribType val)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
typedef INT(WINAPI *PFNWGLGETGPUINFOAMDPROC)(UINT id
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint length() const
static void saveData(std::ostream &os, UT_Vector3D v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
const GLdouble * v
Definition: glcorearb.h:837
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool operator!=(const SOP_EnumerateParms &src) const
ParmType getNestParmType(TempIndex fieldnum) const override
void save(std::ostream &os) const
long long int64
Definition: SYS_Types.h:116
AttribType opAttribType(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
const UT_StringHolder & getAttribname() const
AttribType getAttribType() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:287
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:109
GLboolean * data
Definition: glcorearb.h:131
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setPieceAttrib(const UT_StringHolder &val)
fpreal64 fpreal
Definition: SYS_Types.h:277
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void saveData(std::ostream &os, fpreal64 v)
~SOP_EnumerateParms() override
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector3D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator==(const SOP_EnumerateParms &src) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:748
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const char * findChar(int c) const
Definition: UT_String.h:1372
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:153
Definition: core.h:1131
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
GroupType opGroupType(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
GLboolean r
Definition: glcorearb.h:1222
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:654
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
void setUsePieceAttrib(bool val)
static void saveData(std::ostream &os, UT_Vector4D v)
PieceMode opPieceMode(const SOP_NodeVerb::CookParms &cookparms) const
GLdouble s
Definition: glew.h:1395
UT_StringHolder opPieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
const OP_Context & context() const
Definition: SOP_NodeVerb.h:107
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void saveData(std::ostream &os, int64 v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool load(UT_IStream &is)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:652
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override