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 class DEP_MicroNode;
23 namespace SOP_EnumerateEnums
24 {
25  enum class GroupType
26  {
27  PRIMITIVE = 0,
28  POINT,
29  VERTEX
30  };
31 
33  getToken(GroupType enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case GroupType::PRIMITIVE: return "primitive"_sh;
38  case GroupType::POINT: return "point"_sh;
39  case GroupType::VERTEX: return "vertex"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44  enum class PieceMode
45  {
46  ELEMENTS = 0,
47  PIECES
48  };
49 
51  getToken(PieceMode enum_value)
52  {
53  using namespace UT::Literal;
54  switch (enum_value) {
55  case PieceMode::ELEMENTS: return "elements"_sh;
56  case PieceMode::PIECES: return "pieces"_sh;
57  default: UT_ASSERT(false); return ""_sh;
58  }
59  }
60 
61  enum class AttribType
62  {
63  INT = 0,
64  STRING
65  };
66 
68  getToken(AttribType enum_value)
69  {
70  using namespace UT::Literal;
71  switch (enum_value) {
72  case AttribType::INT: return "int"_sh;
73  case AttribType::STRING: return "string"_sh;
74  default: UT_ASSERT(false); return ""_sh;
75  }
76  }
77 
78 }
79 
80 
82 {
83 public:
84  static int version() { return 1; }
85 
87  {
88  myGroup = ""_UTsh;
89  myGroupType = 0;
90  myUsePieceAttrib = false;
91  myPieceAttrib = "name"_UTsh;
92  myPieceMode = 0;
93  myAttribname = "index"_UTsh;
94  myAttribType = 0;
95  myPrefix = "piece"_UTsh;
96 
97  }
98 
99  explicit SOP_EnumerateParms(const SOP_EnumerateParms &) = default;
100  SOP_EnumerateParms &operator=(const SOP_EnumerateParms &) = default;
101  SOP_EnumerateParms(SOP_EnumerateParms &&) noexcept = default;
102  SOP_EnumerateParms &operator=(SOP_EnumerateParms &&) noexcept = default;
103 
104  ~SOP_EnumerateParms() override {}
105 
106  bool operator==(const SOP_EnumerateParms &src) const
107  {
108  if (myGroup != src.myGroup) return false;
109  if (myGroupType != src.myGroupType) return false;
110  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
111  if (myPieceAttrib != src.myPieceAttrib) return false;
112  if (myPieceMode != src.myPieceMode) return false;
113  if (myAttribname != src.myAttribname) return false;
114  if (myAttribType != src.myAttribType) return false;
115  if (myPrefix != src.myPrefix) return false;
116 
117  return true;
118  }
119  bool operator!=(const SOP_EnumerateParms &src) const
120  {
121  return !operator==(src);
122  }
126 
127 
128 
129  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
130  {
131  myGroup = ""_UTsh;
132  if (true)
133  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
134  myGroupType = 0;
135  if (true)
136  graph->evalOpParm(myGroupType, nodeidx, "grouptype", time, 0);
137  myUsePieceAttrib = false;
138  if (true)
139  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, 0);
140  myPieceAttrib = "name"_UTsh;
141  if (true && ( (true&&!(((getUsePieceAttrib()==0)))) ) )
142  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
143  myPieceMode = 0;
144  if (true && ( (true&&!(((getUsePieceAttrib()==0))||((getUsePieceAttrib()==0)))) ) )
145  graph->evalOpParm(myPieceMode, nodeidx, "piecemode", time, 0);
146  myAttribname = "index"_UTsh;
147  if (true)
148  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, 0);
149  myAttribType = 0;
150  if (true)
151  graph->evalOpParm(myAttribType, nodeidx, "attribtype", time, 0);
152  myPrefix = "piece"_UTsh;
153  if (true && ( (true&&!(((int64(getAttribType())!=1))||((int64(getAttribType())!=1)))) ) )
154  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, 0);
155 
156  }
157 
158 
159  void loadFromOpSubclass(const LoadParms &loadparms) override
160  {
161  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
162  }
163 
164 
165  void copyFrom(const OP_NodeParms *src) override
166  {
167  *this = *((const SOP_EnumerateParms *)src);
168  }
169 
170  template <typename T>
171  void
172  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
173  {
174  if (idx.size() < 1)
175  return;
176  UT_ASSERT(idx.size() == instance.size()+1);
177  if (idx.size() != instance.size()+1)
178  return;
179  switch (idx[0])
180  {
181  case 0:
182  coerceValue(value, myGroup);
183  break;
184  case 1:
185  coerceValue(value, myGroupType);
186  break;
187  case 2:
188  coerceValue(value, myUsePieceAttrib);
189  break;
190  case 3:
191  coerceValue(value, myPieceAttrib);
192  break;
193  case 4:
194  coerceValue(value, myPieceMode);
195  break;
196  case 5:
197  coerceValue(value, myAttribname);
198  break;
199  case 6:
200  coerceValue(value, myAttribType);
201  break;
202  case 7:
203  coerceValue(value, myPrefix);
204  break;
205 
206  }
207  }
208 
209  bool isParmColorRamp(exint idx) const override
210  {
211  switch (idx)
212  {
213 
214  }
215  return false;
216  }
217 
218  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
233  { doGetParmValue(idx, instance, value); }
234  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
235  { doGetParmValue(idx, instance, value); }
236  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
237  { doGetParmValue(idx, instance, value); }
238  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
239  { doGetParmValue(idx, instance, value); }
240 
241  template <typename T>
242  void
243  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
244  {
245  if (idx.size() < 1)
246  return;
247  UT_ASSERT(idx.size() == instance.size()+1);
248  if (idx.size() != instance.size()+1)
249  return;
250  switch (idx[0])
251  {
252  case 0:
253  coerceValue(myGroup, ( ( value ) ));
254  break;
255  case 1:
256  coerceValue(myGroupType, clampMinValue(0, clampMaxValue(2, value ) ));
257  break;
258  case 2:
259  coerceValue(myUsePieceAttrib, ( ( value ) ));
260  break;
261  case 3:
262  coerceValue(myPieceAttrib, ( ( value ) ));
263  break;
264  case 4:
265  coerceValue(myPieceMode, clampMinValue(0, clampMaxValue(1, value ) ));
266  break;
267  case 5:
268  coerceValue(myAttribname, ( ( value ) ));
269  break;
270  case 6:
271  coerceValue(myAttribType, clampMinValue(0, clampMaxValue(1, value ) ));
272  break;
273  case 7:
274  coerceValue(myPrefix, ( ( value ) ));
275  break;
276 
277  }
278  }
279 
280  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
299  { doSetParmValue(idx, instance, value); }
300  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
301  { doSetParmValue(idx, instance, value); }
302 
303  exint getNestNumParms(TempIndex idx) const override
304  {
305  if (idx.size() == 0)
306  return 8;
307  switch (idx[0])
308  {
309 
310  }
311  // Invalid
312  return 0;
313  }
314 
315  const char *getNestParmName(TempIndex fieldnum) const override
316  {
317  if (fieldnum.size() < 1)
318  return 0;
319  switch (fieldnum[0])
320  {
321  case 0:
322  return "group";
323  case 1:
324  return "grouptype";
325  case 2:
326  return "usepieceattrib";
327  case 3:
328  return "pieceattrib";
329  case 4:
330  return "piecemode";
331  case 5:
332  return "attribname";
333  case 6:
334  return "attribtype";
335  case 7:
336  return "prefix";
337 
338  }
339  return 0;
340  }
341 
342  ParmType getNestParmType(TempIndex fieldnum) const override
343  {
344  if (fieldnum.size() < 1)
345  return PARM_UNSUPPORTED;
346  switch (fieldnum[0])
347  {
348  case 0:
349  return PARM_STRING;
350  case 1:
351  return PARM_INTEGER;
352  case 2:
353  return PARM_INTEGER;
354  case 3:
355  return PARM_STRING;
356  case 4:
357  return PARM_INTEGER;
358  case 5:
359  return PARM_STRING;
360  case 6:
361  return PARM_INTEGER;
362  case 7:
363  return PARM_STRING;
364 
365  }
366  return PARM_UNSUPPORTED;
367  }
368 
369  // Boiler plate to load individual types.
370  static void loadData(UT_IStream &is, int64 &v)
371  { is.bread(&v, 1); }
372  static void loadData(UT_IStream &is, bool &v)
373  { int64 iv; is.bread(&iv, 1); v = iv; }
374  static void loadData(UT_IStream &is, fpreal64 &v)
375  { is.bread<fpreal64>(&v, 1); }
376  static void loadData(UT_IStream &is, UT_Vector2D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector3D &v)
379  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
380  is.bread<fpreal64>(&v.z(), 1); }
381  static void loadData(UT_IStream &is, UT_Vector4D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
383  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
384  static void loadData(UT_IStream &is, UT_Matrix2D &v)
385  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
386  static void loadData(UT_IStream &is, UT_Matrix3D &v)
387  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
388  static void loadData(UT_IStream &is, UT_Matrix4D &v)
389  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
390  static void loadData(UT_IStream &is, UT_Vector2I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector3I &v)
393  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
394  is.bread<int64>(&v.z(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector4I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
397  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
399  { is.bread(v); }
401  { UT_StringHolder rampdata;
402  loadData(is, rampdata);
403  if (rampdata.isstring())
404  {
405  v.reset(new UT_Ramp());
406  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
407  v->load(istr);
408  }
409  else v.reset();
410  }
413  loadData(is, data);
414  if (data.isstring())
415  {
416  // Find the data type.
417  const char *colon = UT_StringWrap(data).findChar(':');
418  if (colon)
419  {
420  int typelen = colon - data.buffer();
422  type.strncpy(data.buffer(), typelen);
423  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
424 
425  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
426  }
427  }
428  else v.reset();
429  }
430 
431  static void saveData(std::ostream &os, int64 v)
432  { UTwrite(os, &v); }
433  static void saveData(std::ostream &os, bool v)
434  { int64 iv = v; UTwrite(os, &iv); }
435  static void saveData(std::ostream &os, fpreal64 v)
436  { UTwrite<fpreal64>(os, &v); }
437  static void saveData(std::ostream &os, UT_Vector2D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
439  static void saveData(std::ostream &os, UT_Vector3D v)
440  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
441  UTwrite<fpreal64>(os, &v.z()); }
442  static void saveData(std::ostream &os, UT_Vector4D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
444  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
445  static void saveData(std::ostream &os, UT_Matrix2D v)
447  static void saveData(std::ostream &os, UT_Matrix3D v)
449  static void saveData(std::ostream &os, UT_Matrix4D v)
451  static void saveData(std::ostream &os, UT_StringHolder s)
452  { UT_StringWrap(s).saveBinary(os); }
453  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
455  UT_OStringStream ostr;
456  if (s) s->save(ostr);
457  result = ostr.str();
458  saveData(os, result);
459  }
460  static void saveData(std::ostream &os, PRM_DataItemHandle s)
462  UT_OStringStream ostr;
463  if (s)
464  {
465  ostr << s->getDataTypeToken();
466  ostr << ":";
467  s->saveBinary(ostr);
468  }
469  result = ostr.str();
470  saveData(os, result);
471  }
472 
473 
474  void save(std::ostream &os) const
475  {
476  int32 v = version();
477  UTwrite(os, &v);
478  saveData(os, myGroup);
479  saveData(os, myGroupType);
480  saveData(os, myUsePieceAttrib);
481  saveData(os, myPieceAttrib);
482  saveData(os, myPieceMode);
483  saveData(os, myAttribname);
484  saveData(os, myAttribType);
485  saveData(os, myPrefix);
486 
487  }
488 
489  bool load(UT_IStream &is)
490  {
491  int32 v;
492  is.bread(&v, 1);
493  if (version() != v)
494  {
495  // Fail incompatible versions
496  return false;
497  }
498  loadData(is, myGroup);
499  loadData(is, myGroupType);
500  loadData(is, myUsePieceAttrib);
501  loadData(is, myPieceAttrib);
502  loadData(is, myPieceMode);
503  loadData(is, myAttribname);
504  loadData(is, myAttribType);
505  loadData(is, myPrefix);
506 
507  return true;
508  }
509 
510  const UT_StringHolder & getGroup() const { return myGroup; }
511  void setGroup(const UT_StringHolder & val) { myGroup = val; }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getGroup();
517  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
518  return result;
519  }
520  GroupType getGroupType() const { return GroupType(myGroupType); }
521  void setGroupType(GroupType val) { myGroupType = int64(val); }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getGroupType();
526  int64 result;
527  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
528  return GroupType(result);
529  }
530  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
531  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
532  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getUsePieceAttrib();
536  bool result;
537  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
538  return result;
539  }
540  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
541  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getPieceAttrib();
547  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
548  return result;
549  }
550  PieceMode getPieceMode() const { return PieceMode(myPieceMode); }
551  void setPieceMode(PieceMode val) { myPieceMode = int64(val); }
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getPieceMode();
556  int64 result;
557  OP_Utils::evalOpParm(result, thissop, "piecemode", cookparms.getCookTime(), 0);
558  return PieceMode(result);
559  }
560  const UT_StringHolder & getAttribname() const { return myAttribname; }
561  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
563  {
564  SOP_Node *thissop = cookparms.getNode();
565  if (!thissop) return getAttribname();
567  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
568  return result;
569  }
570  AttribType getAttribType() const { return AttribType(myAttribType); }
571  void setAttribType(AttribType val) { myAttribType = int64(val); }
573  {
574  SOP_Node *thissop = cookparms.getNode();
575  if (!thissop) return getAttribType();
576  int64 result;
577  OP_Utils::evalOpParm(result, thissop, "attribtype", cookparms.getCookTime(), 0);
578  return AttribType(result);
579  }
580  const UT_StringHolder & getPrefix() const { return myPrefix; }
581  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
583  {
584  SOP_Node *thissop = cookparms.getNode();
585  if (!thissop) return getPrefix();
587  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
588  return result;
589  }
590 
591 private:
592  UT_StringHolder myGroup;
593  int64 myGroupType;
594  bool myUsePieceAttrib;
595  UT_StringHolder myPieceAttrib;
596  int64 myPieceMode;
597  UT_StringHolder myAttribname;
598  int64 myAttribType;
599  UT_StringHolder myPrefix;
600 
601 };
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
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:347
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)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
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)
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)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
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:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
void setPrefix(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
exint getNestNumParms(TempIndex idx) const override
GLdouble s
Definition: glad.h:3009
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
**But if you need a result
Definition: thread.h:613
bool isParmColorRamp(exint idx) const override
void setGroupType(GroupType val)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
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)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, bool &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
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 getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setAttribType(AttribType val)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
SYS_FORCE_INLINE UT_StringHolder getToken(GroupType enum_value)
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
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
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)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
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:296
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void copyFrom(const OP_NodeParms *src) override
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
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void saveData(std::ostream &os, fpreal64 v)
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool operator==(const SOP_EnumerateParms &src) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
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:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
GLboolean r
Definition: glcorearb.h:1222
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
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
void setUsePieceAttrib(bool val)
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Vector4D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
PieceMode opPieceMode(const SOP_NodeVerb::CookParms &cookparms) const
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
static void saveData(std::ostream &os, int64 v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool load(UT_IStream &is)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override