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