HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_UnpackParms.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  myGroup = ""_UTsh;
32  myLimitIterations = true;
33  myIterations = 1;
34  myDetailAttributes = "detail"_UTsh;
35  myTransferAttributes = ""_UTsh;
36  myTransferGroups = ""_UTsh;
37  myApplyStyleSheets = false;
38  mySceneStyleSheet = ""_UTsh;
39  myObjectStyleSheet = ""_UTsh;
40  myApplyTransform = true;
41  myConvertPolysoup = false;
42 
43  }
44 
45  explicit SOP_UnpackParms(const SOP_UnpackParms &) = default;
46  SOP_UnpackParms &operator=(const SOP_UnpackParms &) = default;
47  SOP_UnpackParms(SOP_UnpackParms &&) noexcept = default;
48  SOP_UnpackParms &operator=(SOP_UnpackParms &&) noexcept = default;
49 
50  ~SOP_UnpackParms() override {}
51 
52  bool operator==(const SOP_UnpackParms &src) const
53  {
54  if (myGroup != src.myGroup) return false;
55  if (myLimitIterations != src.myLimitIterations) return false;
56  if (myIterations != src.myIterations) return false;
57  if (myDetailAttributes != src.myDetailAttributes) return false;
58  if (myTransferAttributes != src.myTransferAttributes) return false;
59  if (myTransferGroups != src.myTransferGroups) return false;
60  if (myApplyStyleSheets != src.myApplyStyleSheets) return false;
61  if (mySceneStyleSheet != src.mySceneStyleSheet) return false;
62  if (myObjectStyleSheet != src.myObjectStyleSheet) return false;
63  if (myApplyTransform != src.myApplyTransform) return false;
64  if (myConvertPolysoup != src.myConvertPolysoup) return false;
65 
66  return true;
67  }
68  bool operator!=(const SOP_UnpackParms &src) const
69  {
70  return !operator==(src);
71  }
72 
73 
74 
75  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
76  {
77  myGroup = ""_UTsh;
78  if (true)
79  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
80  myLimitIterations = true;
81  if (true)
82  graph->evalOpParm(myLimitIterations, nodeidx, "limit_iterations", time, 0);
83  myIterations = 1;
84  if (true && ( (getLimitIterations()) ) )
85  graph->evalOpParm(myIterations, nodeidx, "iterations", time, 0);
86  myDetailAttributes = "detail"_UTsh;
87  if (true)
88  graph->evalOpParm(myDetailAttributes, nodeidx, "detail_attributes", time, 0);
89  myTransferAttributes = ""_UTsh;
90  if (true)
91  graph->evalOpParm(myTransferAttributes, nodeidx, "transfer_attributes", time, 0);
92  myTransferGroups = ""_UTsh;
93  if (true)
94  graph->evalOpParm(myTransferGroups, nodeidx, "transfer_groups", time, 0);
95  myApplyStyleSheets = false;
96  if (true)
97  graph->evalOpParm(myApplyStyleSheets, nodeidx, "apply_style_sheets", time, 0);
98  mySceneStyleSheet = ""_UTsh;
99  if (true && ( (getApplyStyleSheets()) ) )
100  graph->evalOpParm(mySceneStyleSheet, nodeidx, "scene_style_sheet", time, 0);
101  myObjectStyleSheet = ""_UTsh;
102  if (true && ( (getApplyStyleSheets()) ) )
103  graph->evalOpParm(myObjectStyleSheet, nodeidx, "obj_style_sheet", time, 0);
104  myApplyTransform = true;
105  if (true)
106  graph->evalOpParm(myApplyTransform, nodeidx, "dotransform", time, 0);
107  myConvertPolysoup = false;
108  if (true)
109  graph->evalOpParm(myConvertPolysoup, nodeidx, "convertpolysoup", time, 0);
110 
111  }
112 
113 
114  void loadFromOpSubclass(const LoadParms &loadparms) override
115  {
116  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
117  }
118 
119 
120  void copyFrom(const OP_NodeParms *src) override
121  {
122  *this = *((const SOP_UnpackParms *)src);
123  }
124 
125  template <typename T>
126  void
127  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
128  {
129  if (idx.size() < 1)
130  return;
131  UT_ASSERT(idx.size() == instance.size()+1);
132  if (idx.size() != instance.size()+1)
133  return;
134  switch (idx[0])
135  {
136  case 0:
137  coerceValue(value, myGroup);
138  break;
139  case 1:
140  coerceValue(value, myLimitIterations);
141  break;
142  case 2:
143  coerceValue(value, myIterations);
144  break;
145  case 3:
146  coerceValue(value, myDetailAttributes);
147  break;
148  case 4:
149  coerceValue(value, myTransferAttributes);
150  break;
151  case 5:
152  coerceValue(value, myTransferGroups);
153  break;
154  case 6:
155  coerceValue(value, myApplyStyleSheets);
156  break;
157  case 7:
158  coerceValue(value, mySceneStyleSheet);
159  break;
160  case 8:
161  coerceValue(value, myObjectStyleSheet);
162  break;
163  case 9:
164  coerceValue(value, myApplyTransform);
165  break;
166  case 10:
167  coerceValue(value, myConvertPolysoup);
168  break;
169 
170  }
171  }
172 
173  bool isParmColorRamp(exint idx) const override
174  {
175  switch (idx)
176  {
177 
178  }
179  return false;
180  }
181 
182  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
203  { doGetParmValue(idx, instance, value); }
204 
205  template <typename T>
206  void
207  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
208  {
209  if (idx.size() < 1)
210  return;
211  UT_ASSERT(idx.size() == instance.size()+1);
212  if (idx.size() != instance.size()+1)
213  return;
214  switch (idx[0])
215  {
216  case 0:
217  coerceValue(myGroup, ( ( value ) ));
218  break;
219  case 1:
220  coerceValue(myLimitIterations, ( ( value ) ));
221  break;
222  case 2:
223  coerceValue(myIterations, ( ( value ) ));
224  break;
225  case 3:
226  coerceValue(myDetailAttributes, ( ( value ) ));
227  break;
228  case 4:
229  coerceValue(myTransferAttributes, ( ( value ) ));
230  break;
231  case 5:
232  coerceValue(myTransferGroups, ( ( value ) ));
233  break;
234  case 6:
235  coerceValue(myApplyStyleSheets, ( ( value ) ));
236  break;
237  case 7:
238  coerceValue(mySceneStyleSheet, ( ( value ) ));
239  break;
240  case 8:
241  coerceValue(myObjectStyleSheet, ( ( value ) ));
242  break;
243  case 9:
244  coerceValue(myApplyTransform, ( ( value ) ));
245  break;
246  case 10:
247  coerceValue(myConvertPolysoup, ( ( value ) ));
248  break;
249 
250  }
251  }
252 
253  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
274  { doSetParmValue(idx, instance, value); }
275 
276  exint getNestNumParms(TempIndex idx) const override
277  {
278  if (idx.size() == 0)
279  return 11;
280  switch (idx[0])
281  {
282 
283  }
284  // Invalid
285  return 0;
286  }
287 
288  const char *getNestParmName(TempIndex fieldnum) const override
289  {
290  if (fieldnum.size() < 1)
291  return 0;
292  switch (fieldnum[0])
293  {
294  case 0:
295  return "group";
296  case 1:
297  return "limit_iterations";
298  case 2:
299  return "iterations";
300  case 3:
301  return "detail_attributes";
302  case 4:
303  return "transfer_attributes";
304  case 5:
305  return "transfer_groups";
306  case 6:
307  return "apply_style_sheets";
308  case 7:
309  return "scene_style_sheet";
310  case 8:
311  return "obj_style_sheet";
312  case 9:
313  return "dotransform";
314  case 10:
315  return "convertpolysoup";
316 
317  }
318  return 0;
319  }
320 
321  ParmType getNestParmType(TempIndex fieldnum) const override
322  {
323  if (fieldnum.size() < 1)
324  return PARM_UNSUPPORTED;
325  switch (fieldnum[0])
326  {
327  case 0:
328  return PARM_STRING;
329  case 1:
330  return PARM_INTEGER;
331  case 2:
332  return PARM_INTEGER;
333  case 3:
334  return PARM_STRING;
335  case 4:
336  return PARM_STRING;
337  case 5:
338  return PARM_STRING;
339  case 6:
340  return PARM_INTEGER;
341  case 7:
342  return PARM_STRING;
343  case 8:
344  return PARM_STRING;
345  case 9:
346  return PARM_INTEGER;
347  case 10:
348  return PARM_INTEGER;
349 
350  }
351  return PARM_UNSUPPORTED;
352  }
353 
354  // Boiler plate to load individual types.
355  static void loadData(UT_IStream &is, int64 &v)
356  { is.bread(&v, 1); }
357  static void loadData(UT_IStream &is, bool &v)
358  { int64 iv; is.bread(&iv, 1); v = iv; }
359  static void loadData(UT_IStream &is, fpreal64 &v)
360  { is.bread<fpreal64>(&v, 1); }
361  static void loadData(UT_IStream &is, UT_Vector2D &v)
362  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
363  static void loadData(UT_IStream &is, UT_Vector3D &v)
364  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
365  is.bread<fpreal64>(&v.z(), 1); }
366  static void loadData(UT_IStream &is, UT_Vector4D &v)
367  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
368  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
369  static void loadData(UT_IStream &is, UT_Matrix2D &v)
370  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
371  static void loadData(UT_IStream &is, UT_Matrix3D &v)
372  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
373  static void loadData(UT_IStream &is, UT_Matrix4D &v)
374  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
375  static void loadData(UT_IStream &is, UT_Vector2I &v)
376  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
377  static void loadData(UT_IStream &is, UT_Vector3I &v)
378  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
379  is.bread<int64>(&v.z(), 1); }
380  static void loadData(UT_IStream &is, UT_Vector4I &v)
381  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
382  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
384  { is.bread(v); }
386  { UT_StringHolder rampdata;
387  loadData(is, rampdata);
388  if (rampdata.isstring())
389  {
390  v.reset(new UT_Ramp());
391  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
392  v->load(istr);
393  }
394  else v.reset();
395  }
398  loadData(is, data);
399  if (data.isstring())
400  {
401  // Find the data type.
402  const char *colon = UT_StringWrap(data).findChar(':');
403  if (colon)
404  {
405  int typelen = colon - data.buffer();
407  type.strncpy(data.buffer(), typelen);
408  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
409 
410  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
411  }
412  }
413  else v.reset();
414  }
415 
416  static void saveData(std::ostream &os, int64 v)
417  { UTwrite(os, &v); }
418  static void saveData(std::ostream &os, bool v)
419  { int64 iv = v; UTwrite(os, &iv); }
420  static void saveData(std::ostream &os, fpreal64 v)
421  { UTwrite<fpreal64>(os, &v); }
422  static void saveData(std::ostream &os, UT_Vector2D v)
423  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
424  static void saveData(std::ostream &os, UT_Vector3D v)
425  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
426  UTwrite<fpreal64>(os, &v.z()); }
427  static void saveData(std::ostream &os, UT_Vector4D v)
428  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
429  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
430  static void saveData(std::ostream &os, UT_Matrix2D v)
432  static void saveData(std::ostream &os, UT_Matrix3D v)
434  static void saveData(std::ostream &os, UT_Matrix4D v)
436  static void saveData(std::ostream &os, UT_StringHolder s)
437  { UT_StringWrap(s).saveBinary(os); }
438  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
440  UT_OStringStream ostr;
441  if (s) s->save(ostr);
442  result = ostr.str();
443  saveData(os, result);
444  }
445  static void saveData(std::ostream &os, PRM_DataItemHandle s)
447  UT_OStringStream ostr;
448  if (s)
449  {
450  ostr << s->getDataTypeToken();
451  ostr << ":";
452  s->saveBinary(ostr);
453  }
454  result = ostr.str();
455  saveData(os, result);
456  }
457 
458 
459  void save(std::ostream &os) const
460  {
461  int32 v = version();
462  UTwrite(os, &v);
463  saveData(os, myGroup);
464  saveData(os, myLimitIterations);
465  saveData(os, myIterations);
466  saveData(os, myDetailAttributes);
467  saveData(os, myTransferAttributes);
468  saveData(os, myTransferGroups);
469  saveData(os, myApplyStyleSheets);
470  saveData(os, mySceneStyleSheet);
471  saveData(os, myObjectStyleSheet);
472  saveData(os, myApplyTransform);
473  saveData(os, myConvertPolysoup);
474 
475  }
476 
477  bool load(UT_IStream &is)
478  {
479  int32 v;
480  is.bread(&v, 1);
481  if (version() != v)
482  {
483  // Fail incompatible versions
484  return false;
485  }
486  loadData(is, myGroup);
487  loadData(is, myLimitIterations);
488  loadData(is, myIterations);
489  loadData(is, myDetailAttributes);
490  loadData(is, myTransferAttributes);
491  loadData(is, myTransferGroups);
492  loadData(is, myApplyStyleSheets);
493  loadData(is, mySceneStyleSheet);
494  loadData(is, myObjectStyleSheet);
495  loadData(is, myApplyTransform);
496  loadData(is, myConvertPolysoup);
497 
498  return true;
499  }
500 
501  const UT_StringHolder & getGroup() const { return myGroup; }
502  void setGroup(const UT_StringHolder & val) { myGroup = val; }
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getGroup();
508  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
509  return result;
510  }
511  bool getLimitIterations() const { return myLimitIterations; }
512  void setLimitIterations(bool val) { myLimitIterations = val; }
513  bool opLimitIterations(const SOP_NodeVerb::CookParms &cookparms) const
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getLimitIterations();
517  bool result;
518  OP_Utils::evalOpParm(result, thissop, "limit_iterations", cookparms.getCookTime(), 0);
519  return result;
520  }
521  int64 getIterations() const { return myIterations; }
522  void setIterations(int64 val) { myIterations = val; }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getIterations();
527  int64 result;
528  OP_Utils::evalOpParm(result, thissop, "iterations", cookparms.getCookTime(), 0);
529  return result;
530  }
531  const UT_StringHolder & getDetailAttributes() const { return myDetailAttributes; }
532  void setDetailAttributes(const UT_StringHolder & val) { myDetailAttributes = val; }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getDetailAttributes();
538  OP_Utils::evalOpParm(result, thissop, "detail_attributes", cookparms.getCookTime(), 0);
539  return result;
540  }
541  const UT_StringHolder & getTransferAttributes() const { return myTransferAttributes; }
542  void setTransferAttributes(const UT_StringHolder & val) { myTransferAttributes = val; }
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getTransferAttributes();
548  OP_Utils::evalOpParm(result, thissop, "transfer_attributes", cookparms.getCookTime(), 0);
549  return result;
550  }
551  const UT_StringHolder & getTransferGroups() const { return myTransferGroups; }
552  void setTransferGroups(const UT_StringHolder & val) { myTransferGroups = val; }
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getTransferGroups();
558  OP_Utils::evalOpParm(result, thissop, "transfer_groups", cookparms.getCookTime(), 0);
559  return result;
560  }
561  bool getApplyStyleSheets() const { return myApplyStyleSheets; }
562  void setApplyStyleSheets(bool val) { myApplyStyleSheets = val; }
563  bool opApplyStyleSheets(const SOP_NodeVerb::CookParms &cookparms) const
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getApplyStyleSheets();
567  bool result;
568  OP_Utils::evalOpParm(result, thissop, "apply_style_sheets", cookparms.getCookTime(), 0);
569  return result;
570  }
571  const UT_StringHolder & getSceneStyleSheet() const { return mySceneStyleSheet; }
572  void setSceneStyleSheet(const UT_StringHolder & val) { mySceneStyleSheet = val; }
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getSceneStyleSheet();
578  OP_Utils::evalOpParm(result, thissop, "scene_style_sheet", cookparms.getCookTime(), 0);
579  return result;
580  }
581  const UT_StringHolder & getObjectStyleSheet() const { return myObjectStyleSheet; }
582  void setObjectStyleSheet(const UT_StringHolder & val) { myObjectStyleSheet = val; }
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getObjectStyleSheet();
588  OP_Utils::evalOpParm(result, thissop, "obj_style_sheet", cookparms.getCookTime(), 0);
589  return result;
590  }
591  bool getApplyTransform() const { return myApplyTransform; }
592  void setApplyTransform(bool val) { myApplyTransform = val; }
593  bool opApplyTransform(const SOP_NodeVerb::CookParms &cookparms) const
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getApplyTransform();
597  bool result;
598  OP_Utils::evalOpParm(result, thissop, "dotransform", cookparms.getCookTime(), 0);
599  return result;
600  }
601  bool getConvertPolysoup() const { return myConvertPolysoup; }
602  void setConvertPolysoup(bool val) { myConvertPolysoup = val; }
603  bool opConvertPolysoup(const SOP_NodeVerb::CookParms &cookparms) const
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return getConvertPolysoup();
607  bool result;
608  OP_Utils::evalOpParm(result, thissop, "convertpolysoup", cookparms.getCookTime(), 0);
609  return result;
610  }
611 
612 private:
613  UT_StringHolder myGroup;
614  bool myLimitIterations;
615  int64 myIterations;
616  UT_StringHolder myDetailAttributes;
617  UT_StringHolder myTransferAttributes;
618  UT_StringHolder myTransferGroups;
619  bool myApplyStyleSheets;
620  UT_StringHolder mySceneStyleSheet;
621  UT_StringHolder myObjectStyleSheet;
622  bool myApplyTransform;
623  bool myConvertPolysoup;
624 
625 };
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setApplyTransform(bool val)
void setObjectStyleSheet(const UT_StringHolder &val)
bool load(UT_IStream &is)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
int64 getIterations() const
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_Matrix2D v)
const UT_StringHolder & getTransferAttributes() const
void loadFromOpSubclass(const LoadParms &loadparms) override
bool opApplyTransform(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void copyFrom(const OP_NodeParms *src) override
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
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, UT_Vector4D v)
void setTransferGroups(const UT_StringHolder &val)
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
GLdouble s
Definition: glad.h:3009
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool opConvertPolysoup(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opSceneStyleSheet(const SOP_NodeVerb::CookParms &cookparms) const
**But if you need a result
Definition: thread.h:613
void setConvertPolysoup(bool val)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, bool v)
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.
const char * getNestParmName(TempIndex fieldnum) const override
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
UT_StringHolder opObjectStyleSheet(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
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_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
exint length() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector3D &v)
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool operator==(const SOP_UnpackParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool getApplyStyleSheets() const
UT_StringHolder opDetailAttributes(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
long long int64
Definition: SYS_Types.h:116
void setGroup(const UT_StringHolder &val)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
const UT_StringHolder & getTransferGroups() const
exint getNestNumParms(TempIndex idx) const override
void setApplyStyleSheets(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const UT_StringHolder & getDetailAttributes() const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator!=(const SOP_UnpackParms &src) const
static void loadData(UT_IStream &is, int64 &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
const UT_StringHolder & getObjectStyleSheet() const
GT_API const UT_StringHolder version
bool opApplyStyleSheets(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
bool getApplyTransform() const
UT_StringHolder opTransferAttributes(const SOP_NodeVerb::CookParms &cookparms) const
void setTransferAttributes(const UT_StringHolder &val)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setSceneStyleSheet(const UT_StringHolder &val)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
bool getConvertPolysoup() const
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, fpreal64 &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
#define SOP_API
Definition: SOP_API.h:10
const UT_StringHolder & getSceneStyleSheet() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setDetailAttributes(const UT_StringHolder &val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setLimitIterations(bool val)
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
static void saveData(std::ostream &os, UT_Vector2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
GLboolean r
Definition: glcorearb.h:1222
static void saveData(std::ostream &os, UT_StringHolder s)
void setIterations(int64 val)
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
UT_StringHolder opTransferGroups(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
bool opLimitIterations(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
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 getLimitIterations() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override