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 <OP/OP_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 
118  if (baseGetSignature() != src.baseGetSignature()) return false;
119 
120  return true;
121  }
122  bool operator!=(const SOP_EnumerateParms &src) const
123  {
124  return !operator==(src);
125  }
129 
130 
131 
132  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
133  {
134  myGroup = ""_UTsh;
135  if (true)
136  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
137  myGroupType = 0;
138  if (true)
139  graph->evalOpParm(myGroupType, nodeidx, "grouptype", time, graph->isDirect()?nullptr:depnode);
140  myUsePieceAttrib = false;
141  if (true)
142  graph->evalOpParm(myUsePieceAttrib, nodeidx, "usepieceattrib", time, graph->isDirect()?nullptr:depnode);
143  myPieceAttrib = "name"_UTsh;
144  if (true && ( (true&&!(((getUsePieceAttrib()==0)))) ) )
145  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, graph->isDirect()?nullptr:depnode);
146  myPieceMode = 0;
147  if (true && ( (true&&!(((getUsePieceAttrib()==0))||((getUsePieceAttrib()==0)))) ) )
148  graph->evalOpParm(myPieceMode, nodeidx, "piecemode", time, graph->isDirect()?nullptr:depnode);
149  myAttribname = "index"_UTsh;
150  if (true)
151  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, graph->isDirect()?nullptr:depnode);
152  myAttribType = 0;
153  if (true)
154  graph->evalOpParm(myAttribType, nodeidx, "attribtype", time, graph->isDirect()?nullptr:depnode);
155  myPrefix = "piece"_UTsh;
156  if (true && ( (true&&!(((int64(getAttribType())!=1))||((int64(getAttribType())!=1)))) ) )
157  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, graph->isDirect()?nullptr:depnode);
158 
159  }
160 
161 
162  void loadFromOpSubclass(const LoadParms &loadparms) override
163  {
164  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
165  }
166 
167 
168  void copyFrom(const OP_NodeParms *src) override
169  {
170  *this = *((const SOP_EnumerateParms *)src);
171  }
172 
173  template <typename T>
174  void
175  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
176  {
177  if (idx.size() < 1)
178  return;
179  UT_ASSERT(idx.size() == instance.size()+1);
180  if (idx.size() != instance.size()+1)
181  return;
182  switch (idx[0])
183  {
184  case 0:
185  coerceValue(value, myGroup);
186  break;
187  case 1:
188  coerceValue(value, myGroupType);
189  break;
190  case 2:
191  coerceValue(value, myUsePieceAttrib);
192  break;
193  case 3:
194  coerceValue(value, myPieceAttrib);
195  break;
196  case 4:
197  coerceValue(value, myPieceMode);
198  break;
199  case 5:
200  coerceValue(value, myAttribname);
201  break;
202  case 6:
203  coerceValue(value, myAttribType);
204  break;
205  case 7:
206  coerceValue(value, myPrefix);
207  break;
208 
209  }
210  }
211 
212  bool isParmColorRamp(exint idx) const override
213  {
214  switch (idx)
215  {
216 
217  }
218  return false;
219  }
220 
221  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
224  { doGetParmValue(idx, instance, value); }
225  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
226  { doGetParmValue(idx, instance, value); }
227  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
228  { doGetParmValue(idx, instance, value); }
229  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
230  { doGetParmValue(idx, instance, value); }
231  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
232  { doGetParmValue(idx, instance, value); }
233  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
234  { doGetParmValue(idx, instance, value); }
235  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
236  { doGetParmValue(idx, instance, value); }
237  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
238  { doGetParmValue(idx, instance, value); }
239  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
240  { doGetParmValue(idx, instance, value); }
241  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
242  { doGetParmValue(idx, instance, value); }
243 
244  template <typename T>
245  void
246  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
247  {
248  if (idx.size() < 1)
249  return;
250  UT_ASSERT(idx.size() == instance.size()+1);
251  if (idx.size() != instance.size()+1)
252  return;
253  switch (idx[0])
254  {
255  case 0:
256  coerceValue(myGroup, ( ( value ) ));
257  break;
258  case 1:
259  coerceValue(myGroupType, clampMinValue(0, clampMaxValue(2, value ) ));
260  break;
261  case 2:
262  coerceValue(myUsePieceAttrib, ( ( value ) ));
263  break;
264  case 3:
265  coerceValue(myPieceAttrib, ( ( value ) ));
266  break;
267  case 4:
268  coerceValue(myPieceMode, clampMinValue(0, clampMaxValue(1, value ) ));
269  break;
270  case 5:
271  coerceValue(myAttribname, ( ( value ) ));
272  break;
273  case 6:
274  coerceValue(myAttribType, clampMinValue(0, clampMaxValue(1, value ) ));
275  break;
276  case 7:
277  coerceValue(myPrefix, ( ( value ) ));
278  break;
279 
280  }
281  }
282 
283  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
296  { doSetParmValue(idx, instance, value); }
297  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
298  { doSetParmValue(idx, instance, value); }
299  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
300  { doSetParmValue(idx, instance, value); }
301  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
302  { doSetParmValue(idx, instance, value); }
303  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
304  { doSetParmValue(idx, instance, value); }
305 
306  exint getNestNumParms(TempIndex idx) const override
307  {
308  if (idx.size() == 0)
309  return 8;
310  switch (idx[0])
311  {
312 
313  }
314  // Invalid
315  return 0;
316  }
317 
318  const char *getNestParmName(TempIndex fieldnum) const override
319  {
320  if (fieldnum.size() < 1)
321  return 0;
322  switch (fieldnum[0])
323  {
324  case 0:
325  return "group";
326  case 1:
327  return "grouptype";
328  case 2:
329  return "usepieceattrib";
330  case 3:
331  return "pieceattrib";
332  case 4:
333  return "piecemode";
334  case 5:
335  return "attribname";
336  case 6:
337  return "attribtype";
338  case 7:
339  return "prefix";
340 
341  }
342  return 0;
343  }
344 
345  ParmType getNestParmType(TempIndex fieldnum) const override
346  {
347  if (fieldnum.size() < 1)
348  return PARM_UNSUPPORTED;
349  switch (fieldnum[0])
350  {
351  case 0:
352  return PARM_STRING;
353  case 1:
354  return PARM_INTEGER;
355  case 2:
356  return PARM_INTEGER;
357  case 3:
358  return PARM_STRING;
359  case 4:
360  return PARM_INTEGER;
361  case 5:
362  return PARM_STRING;
363  case 6:
364  return PARM_INTEGER;
365  case 7:
366  return PARM_STRING;
367 
368  }
369  return PARM_UNSUPPORTED;
370  }
371 
372  // Boiler plate to load individual types.
373  static void loadData(UT_IStream &is, int64 &v)
374  { is.bread(&v, 1); }
375  static void loadData(UT_IStream &is, bool &v)
376  { int64 iv; is.bread(&iv, 1); v = iv; }
377  static void loadData(UT_IStream &is, fpreal64 &v)
378  { is.bread<fpreal64>(&v, 1); }
379  static void loadData(UT_IStream &is, UT_Vector2D &v)
380  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
381  static void loadData(UT_IStream &is, UT_Vector3D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
383  is.bread<fpreal64>(&v.z(), 1); }
384  static void loadData(UT_IStream &is, UT_Vector4D &v)
385  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
386  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
387  static void loadData(UT_IStream &is, UT_Matrix2D &v)
388  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix3D &v)
390  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix4D &v)
392  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Vector2I &v)
394  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector3I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
397  is.bread<int64>(&v.z(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector4I &v)
399  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
400  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
402  { is.bread(v); }
404  { UT_StringHolder rampdata;
405  loadData(is, rampdata);
406  if (rampdata.isstring())
407  {
408  v.reset(new UT_Ramp());
409  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
410  v->load(istr);
411  }
412  else v.reset();
413  }
416  loadData(is, data);
417  if (data.isstring())
418  {
419  // Find the data type.
420  const char *colon = UT_StringWrap(data).findChar(':');
421  if (colon)
422  {
423  int typelen = colon - data.buffer();
425  type.strncpy(data.buffer(), typelen);
426  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
427 
428  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
429  }
430  }
431  else v.reset();
432  }
433 
434  static void saveData(std::ostream &os, int64 v)
435  { UTwrite(os, &v); }
436  static void saveData(std::ostream &os, bool v)
437  { int64 iv = v; UTwrite(os, &iv); }
438  static void saveData(std::ostream &os, fpreal64 v)
439  { UTwrite<fpreal64>(os, &v); }
440  static void saveData(std::ostream &os, UT_Vector2D v)
441  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
442  static void saveData(std::ostream &os, UT_Vector3D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
444  UTwrite<fpreal64>(os, &v.z()); }
445  static void saveData(std::ostream &os, UT_Vector4D v)
446  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
447  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
448  static void saveData(std::ostream &os, UT_Matrix2D v)
450  static void saveData(std::ostream &os, UT_Matrix3D v)
452  static void saveData(std::ostream &os, UT_Matrix4D v)
454  static void saveData(std::ostream &os, UT_StringHolder s)
455  { UT_StringWrap(s).saveBinary(os); }
456  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
458  UT_OStringStream ostr;
459  if (s) s->save(ostr);
460  result = ostr.str();
461  saveData(os, result);
462  }
463  static void saveData(std::ostream &os, PRM_DataItemHandle s)
465  UT_OStringStream ostr;
466  if (s)
467  {
468  ostr << s->getDataTypeToken();
469  ostr << ":";
470  s->saveBinary(ostr);
471  }
472  result = ostr.str();
473  saveData(os, result);
474  }
475 
476 
477  void save(std::ostream &os) const
478  {
479  int32 v = version();
480  UTwrite(os, &v);
481  saveData(os, myGroup);
482  saveData(os, myGroupType);
483  saveData(os, myUsePieceAttrib);
484  saveData(os, myPieceAttrib);
485  saveData(os, myPieceMode);
486  saveData(os, myAttribname);
487  saveData(os, myAttribType);
488  saveData(os, myPrefix);
489 
490  }
491 
492  bool load(UT_IStream &is)
493  {
494  int32 v;
495  is.bread(&v, 1);
496  if (version() != v)
497  {
498  // Fail incompatible versions
499  return false;
500  }
501  loadData(is, myGroup);
502  loadData(is, myGroupType);
503  loadData(is, myUsePieceAttrib);
504  loadData(is, myPieceAttrib);
505  loadData(is, myPieceMode);
506  loadData(is, myAttribname);
507  loadData(is, myAttribType);
508  loadData(is, myPrefix);
509 
510  return true;
511  }
512 
513  const UT_StringHolder & getGroup() const { return myGroup; }
514  void setGroup(const UT_StringHolder & val) { myGroup = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getGroup();
520  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
521  return result;
522  }
523  GroupType getGroupType() const { return GroupType(myGroupType); }
524  void setGroupType(GroupType val) { myGroupType = int64(val); }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getGroupType();
529  int64 result;
530  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
531  return GroupType(result);
532  }
533  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
534  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
535  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getUsePieceAttrib();
539  bool result;
540  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
541  return result;
542  }
543  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
544  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getPieceAttrib();
550  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
551  return result;
552  }
553  PieceMode getPieceMode() const { return PieceMode(myPieceMode); }
554  void setPieceMode(PieceMode val) { myPieceMode = int64(val); }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getPieceMode();
559  int64 result;
560  OP_Utils::evalOpParm(result, thissop, "piecemode", cookparms.getCookTime(), 0);
561  return PieceMode(result);
562  }
563  const UT_StringHolder & getAttribname() const { return myAttribname; }
564  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getAttribname();
570  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
571  return result;
572  }
573  AttribType getAttribType() const { return AttribType(myAttribType); }
574  void setAttribType(AttribType val) { myAttribType = int64(val); }
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getAttribType();
579  int64 result;
580  OP_Utils::evalOpParm(result, thissop, "attribtype", cookparms.getCookTime(), 0);
581  return AttribType(result);
582  }
583  const UT_StringHolder & getPrefix() const { return myPrefix; }
584  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getPrefix();
590  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
591  return result;
592  }
593 
594 private:
595  UT_StringHolder myGroup;
596  int64 myGroupType;
597  bool myUsePieceAttrib;
598  UT_StringHolder myPieceAttrib;
599  int64 myPieceMode;
600  UT_StringHolder myAttribname;
601  int64 myAttribType;
602  UT_StringHolder myPrefix;
603 
604 };
type
Definition: core.h:556
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:63
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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)
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
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
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
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