HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PackParms.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myViewportLOD = "full"_UTsh;
32  myCreatePath = true;
33  myPath = ""_UTsh;
34  myPackByName = false;
35  myNameAttrib = "name"_UTsh;
36  myPackedFragments = true;
37  myPivot = 1;
38  myTransferAttributes = ""_UTsh;
39  myTransferGroups = ""_UTsh;
40 
41  }
42 
43  explicit SOP_PackParms(const SOP_PackParms &) = default;
44  SOP_PackParms &operator=(const SOP_PackParms &) = default;
45  SOP_PackParms(SOP_PackParms &&) noexcept = default;
46  SOP_PackParms &operator=(SOP_PackParms &&) noexcept = default;
47 
48  ~SOP_PackParms() override {}
49 
50  bool operator==(const SOP_PackParms &src) const
51  {
52  if (myViewportLOD != src.myViewportLOD) return false;
53  if (myCreatePath != src.myCreatePath) return false;
54  if (myPath != src.myPath) return false;
55  if (myPackByName != src.myPackByName) return false;
56  if (myNameAttrib != src.myNameAttrib) return false;
57  if (myPackedFragments != src.myPackedFragments) return false;
58  if (myPivot != src.myPivot) return false;
59  if (myTransferAttributes != src.myTransferAttributes) return false;
60  if (myTransferGroups != src.myTransferGroups) return false;
61 
62  return true;
63  }
64  bool operator!=(const SOP_PackParms &src) const
65  {
66  return !operator==(src);
67  }
68 
69 
70 
71  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
72  {
73  myViewportLOD = "full"_UTsh;
74  if (true)
75  graph->evalOpParm(myViewportLOD, nodeidx, "viewportlod", time, 0);
76  myCreatePath = true;
77  if (true)
78  graph->evalOpParm(myCreatePath, nodeidx, "createpath", time, 0);
79  myPath = ""_UTsh;
80  if (true && ( (getCreatePath()) ) )
81  graph->evalOpParm(myPath, nodeidx, "path", time, 0);
82  myPackByName = false;
83  if (true)
84  graph->evalOpParm(myPackByName, nodeidx, "packbyname", time, 0);
85  myNameAttrib = "name"_UTsh;
86  if (true && ( (getPackByName()) ) )
87  graph->evalOpParm(myNameAttrib, nodeidx, "nameattribute", time, 0);
88  myPackedFragments = true;
89  if (true)
90  graph->evalOpParm(myPackedFragments, nodeidx, "packedfragments", time, 0);
91  myPivot = 1;
92  if (true)
93  graph->evalOpParm(myPivot, nodeidx, "pivot", time, 0);
94  myTransferAttributes = ""_UTsh;
95  if (true)
96  graph->evalOpParm(myTransferAttributes, nodeidx, "transfer_attributes", time, 0);
97  myTransferGroups = ""_UTsh;
98  if (true)
99  graph->evalOpParm(myTransferGroups, nodeidx, "transfer_groups", time, 0);
100 
101  }
102 
103 
104  void loadFromOpSubclass(const LoadParms &loadparms) override
105  {
106  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
107  }
108 
109 
110  void copyFrom(const OP_NodeParms *src) override
111  {
112  *this = *((const SOP_PackParms *)src);
113  }
114 
115  template <typename T>
116  void
117  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
118  {
119  if (idx.size() < 1)
120  return;
121  UT_ASSERT(idx.size() == instance.size()+1);
122  if (idx.size() != instance.size()+1)
123  return;
124  switch (idx[0])
125  {
126  case 0:
127  coerceValue(value, myViewportLOD);
128  break;
129  case 1:
130  coerceValue(value, myCreatePath);
131  break;
132  case 2:
133  coerceValue(value, myPath);
134  break;
135  case 3:
136  coerceValue(value, myPackByName);
137  break;
138  case 4:
139  coerceValue(value, myNameAttrib);
140  break;
141  case 5:
142  coerceValue(value, myPackedFragments);
143  break;
144  case 6:
145  coerceValue(value, myPivot);
146  break;
147  case 7:
148  coerceValue(value, myTransferAttributes);
149  break;
150  case 8:
151  coerceValue(value, myTransferGroups);
152  break;
153 
154  }
155  }
156 
157  bool isParmColorRamp(exint idx) const override
158  {
159  switch (idx)
160  {
161 
162  }
163  return false;
164  }
165 
166  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
187  { doGetParmValue(idx, instance, value); }
188 
189  template <typename T>
190  void
191  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
192  {
193  if (idx.size() < 1)
194  return;
195  UT_ASSERT(idx.size() == instance.size()+1);
196  if (idx.size() != instance.size()+1)
197  return;
198  switch (idx[0])
199  {
200  case 0:
201  coerceValue(myViewportLOD, ( ( value ) ));
202  break;
203  case 1:
204  coerceValue(myCreatePath, ( ( value ) ));
205  break;
206  case 2:
207  coerceValue(myPath, ( ( value ) ));
208  break;
209  case 3:
210  coerceValue(myPackByName, ( ( value ) ));
211  break;
212  case 4:
213  coerceValue(myNameAttrib, ( ( value ) ));
214  break;
215  case 5:
216  coerceValue(myPackedFragments, ( ( value ) ));
217  break;
218  case 6:
219  coerceValue(myPivot, ( ( value ) ));
220  break;
221  case 7:
222  coerceValue(myTransferAttributes, ( ( value ) ));
223  break;
224  case 8:
225  coerceValue(myTransferGroups, ( ( 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 9;
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 "viewportlod";
274  case 1:
275  return "createpath";
276  case 2:
277  return "path";
278  case 3:
279  return "packbyname";
280  case 4:
281  return "nameattribute";
282  case 5:
283  return "packedfragments";
284  case 6:
285  return "pivot";
286  case 7:
287  return "transfer_attributes";
288  case 8:
289  return "transfer_groups";
290 
291  }
292  return 0;
293  }
294 
295  ParmType getNestParmType(TempIndex fieldnum) const override
296  {
297  if (fieldnum.size() < 1)
298  return PARM_UNSUPPORTED;
299  switch (fieldnum[0])
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_INTEGER;
305  case 2:
306  return PARM_STRING;
307  case 3:
308  return PARM_INTEGER;
309  case 4:
310  return PARM_STRING;
311  case 5:
312  return PARM_INTEGER;
313  case 6:
314  return PARM_INTEGER;
315  case 7:
316  return PARM_STRING;
317  case 8:
318  return PARM_STRING;
319 
320  }
321  return PARM_UNSUPPORTED;
322  }
323 
324  // Boiler plate to load individual types.
325  static void loadData(UT_IStream &is, int64 &v)
326  { is.bread(&v, 1); }
327  static void loadData(UT_IStream &is, bool &v)
328  { int64 iv; is.bread(&iv, 1); v = iv; }
329  static void loadData(UT_IStream &is, fpreal64 &v)
330  { is.bread<fpreal64>(&v, 1); }
331  static void loadData(UT_IStream &is, UT_Vector2D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector3D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
335  is.bread<fpreal64>(&v.z(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector4D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix2D &v)
340  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix3D &v)
342  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix4D &v)
344  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Vector2I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector3I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
349  is.bread<int64>(&v.z(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector4I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
354  { is.bread(v); }
356  { UT_StringHolder rampdata;
357  loadData(is, rampdata);
358  if (rampdata.isstring())
359  {
360  v.reset(new UT_Ramp());
361  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
362  v->load(istr);
363  }
364  else v.reset();
365  }
368  loadData(is, data);
369  if (data.isstring())
370  {
371  // Find the data type.
372  const char *colon = UT_StringWrap(data).findChar(':');
373  if (colon)
374  {
375  int typelen = colon - data.buffer();
377  type.strncpy(data.buffer(), typelen);
378  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
379 
380  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
381  }
382  }
383  else v.reset();
384  }
385 
386  static void saveData(std::ostream &os, int64 v)
387  { UTwrite(os, &v); }
388  static void saveData(std::ostream &os, bool v)
389  { int64 iv = v; UTwrite(os, &iv); }
390  static void saveData(std::ostream &os, fpreal64 v)
391  { UTwrite<fpreal64>(os, &v); }
392  static void saveData(std::ostream &os, UT_Vector2D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
394  static void saveData(std::ostream &os, UT_Vector3D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
396  UTwrite<fpreal64>(os, &v.z()); }
397  static void saveData(std::ostream &os, UT_Vector4D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
400  static void saveData(std::ostream &os, UT_Matrix2D v)
402  static void saveData(std::ostream &os, UT_Matrix3D v)
404  static void saveData(std::ostream &os, UT_Matrix4D v)
406  static void saveData(std::ostream &os, UT_StringHolder s)
407  { UT_StringWrap(s).saveBinary(os); }
408  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
410  UT_OStringStream ostr;
411  if (s) s->save(ostr);
412  result = ostr.str();
413  saveData(os, result);
414  }
415  static void saveData(std::ostream &os, PRM_DataItemHandle s)
417  UT_OStringStream ostr;
418  if (s)
419  {
420  ostr << s->getDataTypeToken();
421  ostr << ":";
422  s->saveBinary(ostr);
423  }
424  result = ostr.str();
425  saveData(os, result);
426  }
427 
428 
429  void save(std::ostream &os) const
430  {
431  int32 v = version();
432  UTwrite(os, &v);
433  saveData(os, myViewportLOD);
434  saveData(os, myCreatePath);
435  saveData(os, myPath);
436  saveData(os, myPackByName);
437  saveData(os, myNameAttrib);
438  saveData(os, myPackedFragments);
439  saveData(os, myPivot);
440  saveData(os, myTransferAttributes);
441  saveData(os, myTransferGroups);
442 
443  }
444 
445  bool load(UT_IStream &is)
446  {
447  int32 v;
448  is.bread(&v, 1);
449  if (version() != v)
450  {
451  // Fail incompatible versions
452  return false;
453  }
454  loadData(is, myViewportLOD);
455  loadData(is, myCreatePath);
456  loadData(is, myPath);
457  loadData(is, myPackByName);
458  loadData(is, myNameAttrib);
459  loadData(is, myPackedFragments);
460  loadData(is, myPivot);
461  loadData(is, myTransferAttributes);
462  loadData(is, myTransferGroups);
463 
464  return true;
465  }
466 
467  const UT_StringHolder & getViewportLOD() const { return myViewportLOD; }
468  void setViewportLOD(const UT_StringHolder & val) { myViewportLOD = val; }
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getViewportLOD();
474  OP_Utils::evalOpParm(result, thissop, "viewportlod", cookparms.getCookTime(), 0);
475  return result;
476  }
477  bool getCreatePath() const { return myCreatePath; }
478  void setCreatePath(bool val) { myCreatePath = val; }
479  bool opCreatePath(const SOP_NodeVerb::CookParms &cookparms) const
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getCreatePath();
483  bool result;
484  OP_Utils::evalOpParm(result, thissop, "createpath", cookparms.getCookTime(), 0);
485  return result;
486  }
487  const UT_StringHolder & getPath() const { return myPath; }
488  void setPath(const UT_StringHolder & val) { myPath = val; }
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getPath();
494  OP_Utils::evalOpParm(result, thissop, "path", cookparms.getCookTime(), 0);
495  return result;
496  }
497  bool getPackByName() const { return myPackByName; }
498  void setPackByName(bool val) { myPackByName = val; }
499  bool opPackByName(const SOP_NodeVerb::CookParms &cookparms) const
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getPackByName();
503  bool result;
504  OP_Utils::evalOpParm(result, thissop, "packbyname", cookparms.getCookTime(), 0);
505  return result;
506  }
507  const UT_StringHolder & getNameAttrib() const { return myNameAttrib; }
508  void setNameAttrib(const UT_StringHolder & val) { myNameAttrib = val; }
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getNameAttrib();
514  OP_Utils::evalOpParm(result, thissop, "nameattribute", cookparms.getCookTime(), 0);
515  return result;
516  }
517  bool getPackedFragments() const { return myPackedFragments; }
518  void setPackedFragments(bool val) { myPackedFragments = val; }
519  bool opPackedFragments(const SOP_NodeVerb::CookParms &cookparms) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getPackedFragments();
523  bool result;
524  OP_Utils::evalOpParm(result, thissop, "packedfragments", cookparms.getCookTime(), 0);
525  return result;
526  }
527  int64 getPivot() const { return myPivot; }
528  void setPivot(int64 val) { myPivot = val; }
529  int64 opPivot(const SOP_NodeVerb::CookParms &cookparms) const
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getPivot();
533  int64 result;
534  OP_Utils::evalOpParm(result, thissop, "pivot", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getTransferAttributes() const { return myTransferAttributes; }
538  void setTransferAttributes(const UT_StringHolder & val) { myTransferAttributes = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getTransferAttributes();
544  OP_Utils::evalOpParm(result, thissop, "transfer_attributes", cookparms.getCookTime(), 0);
545  return result;
546  }
547  const UT_StringHolder & getTransferGroups() const { return myTransferGroups; }
548  void setTransferGroups(const UT_StringHolder & val) { myTransferGroups = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getTransferGroups();
554  OP_Utils::evalOpParm(result, thissop, "transfer_groups", cookparms.getCookTime(), 0);
555  return result;
556  }
557 
558 private:
559  UT_StringHolder myViewportLOD;
560  bool myCreatePath;
561  UT_StringHolder myPath;
562  bool myPackByName;
563  UT_StringHolder myNameAttrib;
564  bool myPackedFragments;
565  int64 myPivot;
566  UT_StringHolder myTransferAttributes;
567  UT_StringHolder myTransferGroups;
568 
569 };
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const UT_StringHolder & getPath() const
void copyFrom(const OP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool opPackedFragments(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool operator!=(const SOP_PackParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNameAttrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_StringHolder opNameAttrib(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
void save(std::ostream &os) const
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 setPackByName(bool val)
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setCreatePath(bool val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, UT_Matrix4D &v)
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
UT_StringHolder opViewportLOD(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opTransferGroups(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
**But if you need a result
Definition: thread.h:613
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 saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, UT_Vector4D v)
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
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
bool operator==(const SOP_PackParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, int64 v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setViewportLOD(const UT_StringHolder &val)
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setTransferAttributes(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
exint getNestNumParms(TempIndex idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
bool load(UT_IStream &is)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_StringHolder opTransferAttributes(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setPath(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GT_API const UT_StringHolder version
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getViewportLOD() const
bool opCreatePath(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getNameAttrib() const
bool getPackByName() const
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
int64 opPivot(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getTransferGroups() const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setTransferGroups(const UT_StringHolder &val)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_StringHolder s)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setPackedFragments(bool val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
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 doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool getCreatePath() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLboolean r
Definition: glcorearb.h:1222
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, int64 &v)
static int version()
type
Definition: core.h:1059
static void loadData(UT_IStream &is, UT_Vector2I &v)
bool opPackByName(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setPivot(int64 val)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
ParmType getNestParmType(TempIndex fieldnum) const override
UT_StringHolder opPath(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &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)
int64 getPivot() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
bool getPackedFragments() const
const UT_StringHolder & getTransferAttributes() const