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