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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 
23 {
24 public:
25  static int version() { return 1; }
26 
28  {
29  myGroup = ""_sh;
30  myLimitIterations = true;
31  myIterations = 1;
32  myDetailAttributes = "detail"_sh;
33  myTransferAttributes = ""_sh;
34  myTransferGroups = ""_sh;
35  myApplyStyleSheets = false;
36  mySceneStyleSheet = ""_sh;
37  myObjectStyleSheet = ""_sh;
38 
39  }
40 
41  explicit SOP_UnpackParms(const SOP_UnpackParms &) = default;
42 
43  virtual ~SOP_UnpackParms() {}
44 
45  bool operator==(const SOP_UnpackParms &src) const
46  {
47  if (myGroup != src.myGroup) return false;
48  if (myLimitIterations != src.myLimitIterations) return false;
49  if (myIterations != src.myIterations) return false;
50  if (myDetailAttributes != src.myDetailAttributes) return false;
51  if (myTransferAttributes != src.myTransferAttributes) return false;
52  if (myTransferGroups != src.myTransferGroups) return false;
53  if (myApplyStyleSheets != src.myApplyStyleSheets) return false;
54  if (mySceneStyleSheet != src.mySceneStyleSheet) return false;
55  if (myObjectStyleSheet != src.myObjectStyleSheet) return false;
56 
57  return true;
58  }
59  bool operator!=(const SOP_UnpackParms &src) const
60  {
61  return !operator==(src);
62  }
63 
64 
65 
66  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
67  {
68  if (true)
69  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
70  else myGroup = ""_sh;
71  if (true)
72  OP_Utils::evalOpParm(myLimitIterations, node, "limit_iterations", time, 0);
73  else myLimitIterations = true;
74  if (true && ( (getLimitIterations()) ) )
75  OP_Utils::evalOpParm(myIterations, node, "iterations", time, 0);
76  else myIterations = 1;
77  if (true)
78  OP_Utils::evalOpParm(myDetailAttributes, node, "detail_attributes", time, 0);
79  else myDetailAttributes = "detail"_sh;
80  if (true)
81  OP_Utils::evalOpParm(myTransferAttributes, node, "transfer_attributes", time, 0);
82  else myTransferAttributes = ""_sh;
83  if (true)
84  OP_Utils::evalOpParm(myTransferGroups, node, "transfer_groups", time, 0);
85  else myTransferGroups = ""_sh;
86  if (true)
87  OP_Utils::evalOpParm(myApplyStyleSheets, node, "apply_style_sheets", time, 0);
88  else myApplyStyleSheets = false;
89  if (true && ( (getApplyStyleSheets()) ) )
90  OP_Utils::evalOpParm(mySceneStyleSheet, node, "scene_style_sheet", time, 0);
91  else mySceneStyleSheet = ""_sh;
92  if (true && ( (getApplyStyleSheets()) ) )
93  OP_Utils::evalOpParm(myObjectStyleSheet, node, "obj_style_sheet", time, 0);
94  else myObjectStyleSheet = ""_sh;
95 
96  }
97 
98 
99  virtual void loadFromOpSubclass(const LoadParms &loadparms)
100  {
101  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
102  }
103 
104 
105  virtual void copyFrom(const SOP_NodeParms *src)
106  {
107  *this = *((const SOP_UnpackParms *)src);
108  }
109 
110  template <typename T>
111  void
112  doGetParmValue(exint idx, T &value) const
113  {
114  switch (idx)
115  {
116  case 0:
117  coerceValue(value, myGroup);
118  break;
119  case 1:
120  coerceValue(value, myLimitIterations);
121  break;
122  case 2:
123  coerceValue(value, myIterations);
124  break;
125  case 3:
126  coerceValue(value, myDetailAttributes);
127  break;
128  case 4:
129  coerceValue(value, myTransferAttributes);
130  break;
131  case 5:
132  coerceValue(value, myTransferGroups);
133  break;
134  case 6:
135  coerceValue(value, myApplyStyleSheets);
136  break;
137  case 7:
138  coerceValue(value, mySceneStyleSheet);
139  break;
140  case 8:
141  coerceValue(value, myObjectStyleSheet);
142  break;
143 
144  }
145  }
146 
147  void getParmValue(exint idx, exint &value) const
148  { doGetParmValue(idx, value); }
149  void getParmValue(exint idx, fpreal &value) const
150  { doGetParmValue(idx, value); }
152  { doGetParmValue(idx, value); }
154  { doGetParmValue(idx, value); }
156  { doGetParmValue(idx, value); }
158  { doGetParmValue(idx, value); }
160  { doGetParmValue(idx, value); }
162  { doGetParmValue(idx, value); }
164  { doGetParmValue(idx, value); }
166  { doGetParmValue(idx, value); }
168  { doGetParmValue(idx, value); }
169 
170  template <typename T>
171  void
172  doSetParmValue(exint idx, const T &value)
173  {
174  switch (idx)
175  {
176  case 0:
177  coerceValue(myGroup, value);
178  break;
179  case 1:
180  coerceValue(myLimitIterations, value);
181  break;
182  case 2:
183  coerceValue(myIterations, value);
184  break;
185  case 3:
186  coerceValue(myDetailAttributes, value);
187  break;
188  case 4:
189  coerceValue(myTransferAttributes, value);
190  break;
191  case 5:
192  coerceValue(myTransferGroups, value);
193  break;
194  case 6:
195  coerceValue(myApplyStyleSheets, value);
196  break;
197  case 7:
198  coerceValue(mySceneStyleSheet, value);
199  break;
200  case 8:
201  coerceValue(myObjectStyleSheet, value);
202  break;
203 
204  }
205  }
206 
207  void setParmValue(exint idx, const exint &value)
208  { doSetParmValue(idx, value); }
209  void setParmValue(exint idx, const fpreal &value)
210  { doSetParmValue(idx, value); }
211  void setParmValue(exint idx, const UT_Vector2D &value)
212  { doSetParmValue(idx, value); }
213  void setParmValue(exint idx, const UT_Vector3D &value)
214  { doSetParmValue(idx, value); }
215  void setParmValue(exint idx, const UT_Vector4D &value)
216  { doSetParmValue(idx, value); }
217  void setParmValue(exint idx, const UT_Matrix2D &value)
218  { doSetParmValue(idx, value); }
219  void setParmValue(exint idx, const UT_Matrix3D &value)
220  { doSetParmValue(idx, value); }
221  void setParmValue(exint idx, const UT_Matrix4D &value)
222  { doSetParmValue(idx, value); }
224  { doSetParmValue(idx, value); }
226  { doSetParmValue(idx, value); }
228  { doSetParmValue(idx, value); }
229 
230  virtual exint getNumParms() const
231  {
232  return 9;
233  }
234 
235  virtual const char *getParmName(exint fieldnum) const
236  {
237  switch (fieldnum)
238  {
239  case 0:
240  return "group";
241  case 1:
242  return "limit_iterations";
243  case 2:
244  return "iterations";
245  case 3:
246  return "detail_attributes";
247  case 4:
248  return "transfer_attributes";
249  case 5:
250  return "transfer_groups";
251  case 6:
252  return "apply_style_sheets";
253  case 7:
254  return "scene_style_sheet";
255  case 8:
256  return "obj_style_sheet";
257 
258  }
259  return 0;
260  }
261 
262  virtual ParmType getParmType(exint fieldnum) const
263  {
264  switch (fieldnum)
265  {
266  case 0:
267  return PARM_STRING;
268  case 1:
269  return PARM_INTEGER;
270  case 2:
271  return PARM_INTEGER;
272  case 3:
273  return PARM_STRING;
274  case 4:
275  return PARM_STRING;
276  case 5:
277  return PARM_STRING;
278  case 6:
279  return PARM_INTEGER;
280  case 7:
281  return PARM_STRING;
282  case 8:
283  return PARM_STRING;
284 
285  }
286  return PARM_UNSUPPORTED;
287  }
288 
289  // Boiler plate to load individual types.
290  static void loadData(UT_IStream &is, int64 &v)
291  { is.bread(&v, 1); }
292  static void loadData(UT_IStream &is, bool &v)
293  { int64 iv; is.bread(&iv, 1); v = iv; }
294  static void loadData(UT_IStream &is, fpreal64 &v)
295  { is.bread<fpreal64>(&v, 1); }
296  static void loadData(UT_IStream &is, UT_Vector2D &v)
297  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
298  static void loadData(UT_IStream &is, UT_Vector3D &v)
299  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
300  is.bread<fpreal64>(&v.z(), 1); }
301  static void loadData(UT_IStream &is, UT_Vector4D &v)
302  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
303  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
304  static void loadData(UT_IStream &is, UT_Matrix2D &v)
305  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
306  static void loadData(UT_IStream &is, UT_Matrix3D &v)
307  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
308  static void loadData(UT_IStream &is, UT_Matrix4D &v)
309  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
310  static void loadData(UT_IStream &is, UT_Vector2I &v)
311  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
312  static void loadData(UT_IStream &is, UT_Vector3I &v)
313  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
314  is.bread<int64>(&v.z(), 1); }
315  static void loadData(UT_IStream &is, UT_Vector4I &v)
316  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
317  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
319  { is.bread(v); }
321  { UT_StringHolder rampdata;
322  loadData(is, rampdata);
323  if (rampdata.isstring())
324  {
325  v.reset(new UT_Ramp());
326  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
327  v->load(istr);
328  }
329  else v.reset();
330  }
333  loadData(is, data);
334  if (data.isstring())
335  {
336  // Find the data type.
337  char *colon = UT_StringWrap(data).findChar(':');
338  if (colon)
339  {
340  int typelen = colon - data.buffer();
342  type.strncpy(data.buffer(), typelen);
343  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
344 
345  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
346  }
347  }
348  else v.reset();
349  }
350 
351  static void saveData(std::ostream &os, int64 v)
352  { UTwrite(os, &v); }
353  static void saveData(std::ostream &os, bool v)
354  { int64 iv = v; UTwrite(os, &iv); }
355  static void saveData(std::ostream &os, fpreal64 v)
356  { UTwrite<fpreal64>(os, &v); }
357  static void saveData(std::ostream &os, UT_Vector2D v)
358  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
359  static void saveData(std::ostream &os, UT_Vector3D v)
360  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
361  UTwrite<fpreal64>(os, &v.z()); }
362  static void saveData(std::ostream &os, UT_Vector4D v)
363  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
364  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
365  static void saveData(std::ostream &os, UT_Matrix2D v)
367  static void saveData(std::ostream &os, UT_Matrix3D v)
369  static void saveData(std::ostream &os, UT_Matrix4D v)
371  static void saveData(std::ostream &os, UT_StringHolder s)
372  { UT_StringWrap(s).saveBinary(os); }
373  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
374  { UT_StringHolder result;
375  UT_OStringStream ostr;
376  if (s) s->save(ostr);
377  result = ostr.str();
378  saveData(os, result);
379  }
380  static void saveData(std::ostream &os, PRM_DataItemHandle s)
381  { UT_StringHolder result;
382  UT_OStringStream ostr;
383  if (s)
384  {
385  ostr << s->getDataTypeToken();
386  ostr << ":";
387  s->saveBinary(ostr);
388  }
389  result = ostr.str();
390  saveData(os, result);
391  }
392 
393 
394  void save(std::ostream &os) const
395  {
396  int32 v = version();
397  UTwrite(os, &v);
398  saveData(os, myGroup);
399  saveData(os, myLimitIterations);
400  saveData(os, myIterations);
401  saveData(os, myDetailAttributes);
402  saveData(os, myTransferAttributes);
403  saveData(os, myTransferGroups);
404  saveData(os, myApplyStyleSheets);
405  saveData(os, mySceneStyleSheet);
406  saveData(os, myObjectStyleSheet);
407 
408  }
409 
410  bool load(UT_IStream &is)
411  {
412  int32 v;
413  is.bread(&v, 1);
414  if (version() != v)
415  {
416  // Fail incompatible versions
417  return false;
418  }
419  loadData(is, myGroup);
420  loadData(is, myLimitIterations);
421  loadData(is, myIterations);
422  loadData(is, myDetailAttributes);
423  loadData(is, myTransferAttributes);
424  loadData(is, myTransferGroups);
425  loadData(is, myApplyStyleSheets);
426  loadData(is, mySceneStyleSheet);
427  loadData(is, myObjectStyleSheet);
428 
429  return true;
430  }
431 
432  const UT_StringHolder & getGroup() const { return myGroup; }
433  void setGroup(const UT_StringHolder & val) { myGroup = val; }
435  {
436  SOP_Node *thissop = cookparms.getNode();
437  if (!thissop) return getGroup();
438  UT_StringHolder result;
439  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
440  return result;
441  }
442  bool getLimitIterations() const { return myLimitIterations; }
443  void setLimitIterations(bool val) { myLimitIterations = val; }
444  bool opLimitIterations(const SOP_NodeVerb::CookParms &cookparms) const
445  {
446  SOP_Node *thissop = cookparms.getNode();
447  if (!thissop) return getLimitIterations();
448  bool result;
449  OP_Utils::evalOpParm(result, thissop, "limit_iterations", cookparms.getCookTime(), 0);
450  return result;
451  }
452  int64 getIterations() const { return myIterations; }
453  void setIterations(int64 val) { myIterations = val; }
455  {
456  SOP_Node *thissop = cookparms.getNode();
457  if (!thissop) return getIterations();
458  int64 result;
459  OP_Utils::evalOpParm(result, thissop, "iterations", cookparms.getCookTime(), 0);
460  return result;
461  }
462  const UT_StringHolder & getDetailAttributes() const { return myDetailAttributes; }
463  void setDetailAttributes(const UT_StringHolder & val) { myDetailAttributes = val; }
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getDetailAttributes();
468  UT_StringHolder result;
469  OP_Utils::evalOpParm(result, thissop, "detail_attributes", cookparms.getCookTime(), 0);
470  return result;
471  }
472  const UT_StringHolder & getTransferAttributes() const { return myTransferAttributes; }
473  void setTransferAttributes(const UT_StringHolder & val) { myTransferAttributes = val; }
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getTransferAttributes();
478  UT_StringHolder result;
479  OP_Utils::evalOpParm(result, thissop, "transfer_attributes", cookparms.getCookTime(), 0);
480  return result;
481  }
482  const UT_StringHolder & getTransferGroups() const { return myTransferGroups; }
483  void setTransferGroups(const UT_StringHolder & val) { myTransferGroups = val; }
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getTransferGroups();
488  UT_StringHolder result;
489  OP_Utils::evalOpParm(result, thissop, "transfer_groups", cookparms.getCookTime(), 0);
490  return result;
491  }
492  bool getApplyStyleSheets() const { return myApplyStyleSheets; }
493  void setApplyStyleSheets(bool val) { myApplyStyleSheets = val; }
494  bool opApplyStyleSheets(const SOP_NodeVerb::CookParms &cookparms) const
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getApplyStyleSheets();
498  bool result;
499  OP_Utils::evalOpParm(result, thissop, "apply_style_sheets", cookparms.getCookTime(), 0);
500  return result;
501  }
502  const UT_StringHolder & getSceneStyleSheet() const { return mySceneStyleSheet; }
503  void setSceneStyleSheet(const UT_StringHolder & val) { mySceneStyleSheet = val; }
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getSceneStyleSheet();
508  UT_StringHolder result;
509  OP_Utils::evalOpParm(result, thissop, "scene_style_sheet", cookparms.getCookTime(), 0);
510  return result;
511  }
512  const UT_StringHolder & getObjectStyleSheet() const { return myObjectStyleSheet; }
513  void setObjectStyleSheet(const UT_StringHolder & val) { myObjectStyleSheet = val; }
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getObjectStyleSheet();
518  UT_StringHolder result;
519  OP_Utils::evalOpParm(result, thissop, "obj_style_sheet", cookparms.getCookTime(), 0);
520  return result;
521  }
522 
523 private:
524  UT_StringHolder myGroup;
525  bool myLimitIterations;
526  int64 myIterations;
527  UT_StringHolder myDetailAttributes;
528  UT_StringHolder myTransferAttributes;
529  UT_StringHolder myTransferGroups;
530  bool myApplyStyleSheets;
531  UT_StringHolder mySceneStyleSheet;
532  UT_StringHolder myObjectStyleSheet;
533 
534 };
void setParmValue(exint idx, const UT_StringHolder &value)
void setParmValue(exint idx, const exint &value)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setParmValue(exint idx, const fpreal &value)
void setObjectStyleSheet(const UT_StringHolder &val)
void getParmValue(exint idx, fpreal &value) const
bool load(UT_IStream &is)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
int64 getIterations() const
T & z(void)
Definition: UT_Vector4.h:379
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_Matrix2D v)
const UT_StringHolder & getTransferAttributes() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
exint bread(int32 *buffer, exint asize=1)
void setParmValue(exint idx, const UT_Matrix2D &value)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
void setParmValue(exint idx, const UT_Matrix4D &value)
const GLdouble * v
Definition: glcorearb.h:836
static void saveData(std::ostream &os, UT_Vector4D v)
void setTransferGroups(const UT_StringHolder &val)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getParmValue(exint idx, UT_Vector2D &value) const
void setParmValue(exint idx, const UT_Matrix3D &value)
An output stream object that owns its own string buffer storage.
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
UT_StringHolder opSceneStyleSheet(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
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)
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix2D &value) const
void getParmValue(exint idx, exint &value) const
UT_StringHolder opObjectStyleSheet(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
virtual ParmType getParmType(exint fieldnum) const
const UT_StringHolder & getGroup() const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
virtual exint getNumParms() const
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)
int64 exint
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, bool &v)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
bool operator==(const SOP_UnpackParms &src) const
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
void setParmValue(exint idx, const PRM_DataItemHandle &value)
double fpreal64
Definition: SYS_Types.h:192
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getParmValue(exint idx, UT_StringHolder &value) const
bool getApplyStyleSheets() const
UT_StringHolder opDetailAttributes(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
void setGroup(const UT_StringHolder &val)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
const UT_StringHolder & getTransferGroups() const
void setApplyStyleSheets(bool val)
GLboolean * data
Definition: glcorearb.h:130
void getParmValue(exint idx, UT_Vector4D &value) const
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
const UT_StringHolder & getDetailAttributes() const
bool operator!=(const SOP_UnpackParms &src) const
static void loadData(UT_IStream &is, int64 &v)
void doGetParmValue(exint idx, T &value) const
void setParmValue(exint idx, const UT_Vector4D &value)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void getParmValue(exint idx, UT_Matrix4D &value) const
const UT_StringHolder & getObjectStyleSheet() const
virtual void copyFrom(const SOP_NodeParms *src)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
bool opApplyStyleSheets(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix3D &value) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void setParmValue(exint idx, const UT_Vector3D &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
static void saveData(std::ostream &os, int64 v)
UT_StringHolder opTransferAttributes(const SOP_NodeVerb::CookParms &cookparms) const
void setTransferAttributes(const UT_StringHolder &val)
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setParmValue(exint idx, const UT_Vector2D &value)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void doSetParmValue(exint idx, const T &value)
static void loadData(UT_IStream &is, fpreal64 &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
#define SOP_API
Definition: SOP_API.h:10
virtual const char * getParmName(exint fieldnum) const
const UT_StringHolder & getSceneStyleSheet() const
void setDetailAttributes(const UT_StringHolder &val)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
void setLimitIterations(bool val)
T & y(void)
Definition: UT_Vector2.h:287
static void saveData(std::ostream &os, UT_Vector2D v)
GLboolean r
Definition: glcorearb.h:1221
static void saveData(std::ostream &os, UT_StringHolder s)
void setIterations(int64 val)
T & w(void)
Definition: UT_Vector4.h:381
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)
bool opLimitIterations(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
void getParmValue(exint idx, UT_Vector3D &value) const
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool getLimitIterations() const
GLenum src
Definition: glcorearb.h:1792