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