HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_BoxParms.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  myType = 0;
30  mySurfType = 4;
31  mySize = 1;
32  myScale = 1;
33  myCenter = 0;
34  myRotate = 0;
35  myDivRate = 4;
36  myOrder = 4;
37  myDoDivs = false;
38  myDivs = 3;
39  myRebar = false;
40  myConsolidatePoints = true;
41  myOrientedBoundingBox = false;
42  myVertexNormals = false;
43 
44  }
45 
46  explicit SOP_BoxParms(const SOP_BoxParms &) = default;
47 
48  virtual ~SOP_BoxParms() {}
49 
50  bool operator==(const SOP_BoxParms &src) const
51  {
52  if (myType != src.myType) return false;
53  if (mySurfType != src.mySurfType) return false;
54  if (mySize != src.mySize) return false;
55  if (myScale != src.myScale) return false;
56  if (myCenter != src.myCenter) return false;
57  if (myRotate != src.myRotate) return false;
58  if (myDivRate != src.myDivRate) return false;
59  if (myOrder != src.myOrder) return false;
60  if (myDoDivs != src.myDoDivs) return false;
61  if (myDivs != src.myDivs) return false;
62  if (myRebar != src.myRebar) return false;
63  if (myConsolidatePoints != src.myConsolidatePoints) return false;
64  if (myOrientedBoundingBox != src.myOrientedBoundingBox) return false;
65  if (myVertexNormals != src.myVertexNormals) return false;
66 
67  return true;
68  }
69  bool operator!=(const SOP_BoxParms &src) const
70  {
71  return !operator==(src);
72  }
73 
74 
75 
76  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
77  {
78  if (true)
79  OP_Utils::evalOpParm(myType, node, "type", time, 0);
80  else myType = 0;
81  if (true)
82  OP_Utils::evalOpParm(mySurfType, node, "surftype", time, 0);
83  else mySurfType = 4;
84  if (true)
85  OP_Utils::evalOpParm(mySize, node, "size", time, 0);
86  else mySize = 1;
87  if (true)
88  OP_Utils::evalOpParm(myScale, node, "scale", time, 0);
89  else myScale = 1;
90  if (true)
91  OP_Utils::evalOpParm(myCenter, node, "t", time, 0);
92  else myCenter = 0;
93  if (true)
94  OP_Utils::evalOpParm(myRotate, node, "r", time, 0);
95  else myRotate = 0;
96  if (true)
97  OP_Utils::evalOpParm(myDivRate, node, "divrate", time, 0);
98  else myDivRate = 4;
99  if (true)
100  OP_Utils::evalOpParm(myOrder, node, "orderrate", time, 0);
101  else myOrder = 4;
102  if (true)
103  OP_Utils::evalOpParm(myDoDivs, node, "dodivs", time, 0);
104  else myDoDivs = false;
105  if (true)
106  OP_Utils::evalOpParm(myDivs, node, "divs", time, 0);
107  else myDivs = 3;
108  if (true)
109  OP_Utils::evalOpParm(myRebar, node, "rebar", time, 0);
110  else myRebar = false;
111  if (true)
112  OP_Utils::evalOpParm(myConsolidatePoints, node, "consolidatepts", time, 0);
113  else myConsolidatePoints = true;
114  if (true)
115  OP_Utils::evalOpParm(myOrientedBoundingBox, node, "orientedbbox", time, 0);
116  else myOrientedBoundingBox = false;
117  if (true)
118  OP_Utils::evalOpParm(myVertexNormals, node, "vertexnormals", time, 0);
119  else myVertexNormals = false;
120 
121  }
122 
123 
124  virtual void loadFromOpSubclass(const LoadParms &loadparms)
125  {
126  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
127  }
128 
129 
130  virtual void copyFrom(const SOP_NodeParms *src)
131  {
132  *this = *((const SOP_BoxParms *)src);
133  }
134 
135  template <typename T>
136  void
137  doGetParmValue(exint idx, T &value) const
138  {
139  switch (idx)
140  {
141  case 0:
142  coerceValue(value, myType);
143  break;
144  case 1:
145  coerceValue(value, mySurfType);
146  break;
147  case 2:
148  coerceValue(value, mySize);
149  break;
150  case 3:
151  coerceValue(value, myScale);
152  break;
153  case 4:
154  coerceValue(value, myCenter);
155  break;
156  case 5:
157  coerceValue(value, myRotate);
158  break;
159  case 6:
160  coerceValue(value, myDivRate);
161  break;
162  case 7:
163  coerceValue(value, myOrder);
164  break;
165  case 8:
166  coerceValue(value, myDoDivs);
167  break;
168  case 9:
169  coerceValue(value, myDivs);
170  break;
171  case 10:
172  coerceValue(value, myRebar);
173  break;
174  case 11:
175  coerceValue(value, myConsolidatePoints);
176  break;
177  case 12:
178  coerceValue(value, myOrientedBoundingBox);
179  break;
180  case 13:
181  coerceValue(value, myVertexNormals);
182  break;
183 
184  }
185  }
186 
187  void getParmValue(exint idx, exint &value) const
188  { doGetParmValue(idx, value); }
189  void getParmValue(exint idx, fpreal &value) const
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
204  { doGetParmValue(idx, value); }
206  { doGetParmValue(idx, value); }
208  { doGetParmValue(idx, value); }
209 
210  template <typename T>
211  void
212  doSetParmValue(exint idx, const T &value)
213  {
214  switch (idx)
215  {
216  case 0:
217  coerceValue(myType, value);
218  break;
219  case 1:
220  coerceValue(mySurfType, value);
221  break;
222  case 2:
223  coerceValue(mySize, value);
224  break;
225  case 3:
226  coerceValue(myScale, value);
227  break;
228  case 4:
229  coerceValue(myCenter, value);
230  break;
231  case 5:
232  coerceValue(myRotate, value);
233  break;
234  case 6:
235  coerceValue(myDivRate, value);
236  break;
237  case 7:
238  coerceValue(myOrder, value);
239  break;
240  case 8:
241  coerceValue(myDoDivs, value);
242  break;
243  case 9:
244  coerceValue(myDivs, value);
245  break;
246  case 10:
247  coerceValue(myRebar, value);
248  break;
249  case 11:
250  coerceValue(myConsolidatePoints, value);
251  break;
252  case 12:
253  coerceValue(myOrientedBoundingBox, value);
254  break;
255  case 13:
256  coerceValue(myVertexNormals, value);
257  break;
258 
259  }
260  }
261 
262  void setParmValue(exint idx, const exint &value)
263  { doSetParmValue(idx, value); }
264  void setParmValue(exint idx, const fpreal &value)
265  { doSetParmValue(idx, value); }
266  void setParmValue(exint idx, const UT_Vector2D &value)
267  { doSetParmValue(idx, value); }
268  void setParmValue(exint idx, const UT_Vector3D &value)
269  { doSetParmValue(idx, value); }
270  void setParmValue(exint idx, const UT_Vector4D &value)
271  { doSetParmValue(idx, value); }
272  void setParmValue(exint idx, const UT_Matrix2D &value)
273  { doSetParmValue(idx, value); }
274  void setParmValue(exint idx, const UT_Matrix3D &value)
275  { doSetParmValue(idx, value); }
276  void setParmValue(exint idx, const UT_Matrix4D &value)
277  { doSetParmValue(idx, value); }
279  { doSetParmValue(idx, value); }
281  { doSetParmValue(idx, value); }
283  { doSetParmValue(idx, value); }
284 
285  virtual exint getNumParms() const
286  {
287  return 14;
288  }
289 
290  virtual const char *getParmName(exint fieldnum) const
291  {
292  switch (fieldnum)
293  {
294  case 0:
295  return "type";
296  case 1:
297  return "surftype";
298  case 2:
299  return "size";
300  case 3:
301  return "scale";
302  case 4:
303  return "t";
304  case 5:
305  return "r";
306  case 6:
307  return "divrate";
308  case 7:
309  return "orderrate";
310  case 8:
311  return "dodivs";
312  case 9:
313  return "divs";
314  case 10:
315  return "rebar";
316  case 11:
317  return "consolidatepts";
318  case 12:
319  return "orientedbbox";
320  case 13:
321  return "vertexnormals";
322 
323  }
324  return 0;
325  }
326 
327  virtual ParmType getParmType(exint fieldnum) const
328  {
329  switch (fieldnum)
330  {
331  case 0:
332  return PARM_INTEGER;
333  case 1:
334  return PARM_INTEGER;
335  case 2:
336  return PARM_VECTOR3;
337  case 3:
338  return PARM_FLOAT;
339  case 4:
340  return PARM_VECTOR3;
341  case 5:
342  return PARM_VECTOR3;
343  case 6:
344  return PARM_VECTOR3;
345  case 7:
346  return PARM_VECTOR3;
347  case 8:
348  return PARM_INTEGER;
349  case 9:
350  return PARM_VECTOR3;
351  case 10:
352  return PARM_INTEGER;
353  case 11:
354  return PARM_INTEGER;
355  case 12:
356  return PARM_INTEGER;
357  case 13:
358  return PARM_INTEGER;
359 
360  }
361  return PARM_UNSUPPORTED;
362  }
363 
364  // Boiler plate to load individual types.
365  static void loadData(UT_IStream &is, int64 &v)
366  { is.bread(&v, 1); }
367  static void loadData(UT_IStream &is, bool &v)
368  { int64 iv; is.bread(&iv, 1); v = iv; }
369  static void loadData(UT_IStream &is, fpreal64 &v)
370  { is.bread<fpreal64>(&v, 1); }
371  static void loadData(UT_IStream &is, UT_Vector2D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix2D &v)
380  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix3D &v)
382  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix4D &v)
384  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Vector2I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector3I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector4I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
394  { is.bread(v); }
396  { UT_StringHolder rampdata;
397  loadData(is, rampdata);
398  if (rampdata.isstring())
399  {
400  v.reset(new UT_Ramp());
401  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
402  v->load(istr);
403  }
404  else v.reset();
405  }
408  loadData(is, data);
409  if (data.isstring())
410  {
411  // Find the data type.
412  char *colon = UT_StringWrap(data).findChar(':');
413  if (colon)
414  {
415  int typelen = colon - data.buffer();
417  type.strncpy(data.buffer(), typelen);
418  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
419 
420  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
421  }
422  }
423  else v.reset();
424  }
425 
426  static void saveData(std::ostream &os, int64 v)
427  { UTwrite(os, &v); }
428  static void saveData(std::ostream &os, bool v)
429  { int64 iv = v; UTwrite(os, &iv); }
430  static void saveData(std::ostream &os, fpreal64 v)
431  { UTwrite<fpreal64>(os, &v); }
432  static void saveData(std::ostream &os, UT_Vector2D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
434  static void saveData(std::ostream &os, UT_Vector3D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); }
437  static void saveData(std::ostream &os, UT_Vector4D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
440  static void saveData(std::ostream &os, UT_Matrix2D v)
442  static void saveData(std::ostream &os, UT_Matrix3D v)
444  static void saveData(std::ostream &os, UT_Matrix4D v)
446  static void saveData(std::ostream &os, UT_StringHolder s)
447  { UT_StringWrap(s).saveBinary(os); }
448  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
449  { UT_StringHolder result;
450  UT_OStringStream ostr;
451  if (s) s->save(ostr);
452  result = ostr.str();
453  saveData(os, result);
454  }
455  static void saveData(std::ostream &os, PRM_DataItemHandle s)
456  { UT_StringHolder result;
457  UT_OStringStream ostr;
458  if (s)
459  {
460  ostr << s->getDataTypeToken();
461  ostr << ":";
462  s->saveBinary(ostr);
463  }
464  result = ostr.str();
465  saveData(os, result);
466  }
467 
468 
469  void save(std::ostream &os) const
470  {
471  int32 v = version();
472  UTwrite(os, &v);
473  saveData(os, myType);
474  saveData(os, mySurfType);
475  saveData(os, mySize);
476  saveData(os, myScale);
477  saveData(os, myCenter);
478  saveData(os, myRotate);
479  saveData(os, myDivRate);
480  saveData(os, myOrder);
481  saveData(os, myDoDivs);
482  saveData(os, myDivs);
483  saveData(os, myRebar);
484  saveData(os, myConsolidatePoints);
485  saveData(os, myOrientedBoundingBox);
486  saveData(os, myVertexNormals);
487 
488  }
489 
490  bool load(UT_IStream &is)
491  {
492  int32 v;
493  is.bread(&v, 1);
494  if (version() != v)
495  {
496  // Fail incompatible versions
497  return false;
498  }
499  loadData(is, myType);
500  loadData(is, mySurfType);
501  loadData(is, mySize);
502  loadData(is, myScale);
503  loadData(is, myCenter);
504  loadData(is, myRotate);
505  loadData(is, myDivRate);
506  loadData(is, myOrder);
507  loadData(is, myDoDivs);
508  loadData(is, myDivs);
509  loadData(is, myRebar);
510  loadData(is, myConsolidatePoints);
511  loadData(is, myOrientedBoundingBox);
512  loadData(is, myVertexNormals);
513 
514  return true;
515  }
516 
517  int64 getType() const { return myType; }
518  void setType(int64 val) { myType = val; }
519  int64 opType(const SOP_NodeVerb::CookParms &cookparms) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getType();
523  int64 result;
524  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
525  return result;
526  }
527  int64 getSurfType() const { return mySurfType; }
528  void setSurfType(int64 val) { mySurfType = val; }
529  int64 opSurfType(const SOP_NodeVerb::CookParms &cookparms) const
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getSurfType();
533  int64 result;
534  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
535  return result;
536  }
537  UT_Vector3D getSize() const { return mySize; }
538  void setSize(UT_Vector3D val) { mySize = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getSize();
543  UT_Vector3D result;
544  OP_Utils::evalOpParm(result, thissop, "size", cookparms.getCookTime(), 0);
545  return result;
546  }
547  fpreal64 getScale() const { return myScale; }
548  void setScale(fpreal64 val) { myScale = val; }
549  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getScale();
553  fpreal64 result;
554  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
555  return result;
556  }
557  UT_Vector3D getCenter() const { return myCenter; }
558  void setCenter(UT_Vector3D val) { myCenter = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getCenter();
563  UT_Vector3D result;
564  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
565  return result;
566  }
567  UT_Vector3D getRotate() const { return myRotate; }
568  void setRotate(UT_Vector3D val) { myRotate = val; }
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getRotate();
573  UT_Vector3D result;
574  OP_Utils::evalOpParm(result, thissop, "r", cookparms.getCookTime(), 0);
575  return result;
576  }
577  UT_Vector3I getDivRate() const { return myDivRate; }
578  void setDivRate(UT_Vector3I val) { myDivRate = val; }
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getDivRate();
583  UT_Vector3I result;
584  OP_Utils::evalOpParm(result, thissop, "divrate", cookparms.getCookTime(), 0);
585  return result;
586  }
587  UT_Vector3I getOrder() const { return myOrder; }
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getOrder();
593  UT_Vector3I result;
594  OP_Utils::evalOpParm(result, thissop, "orderrate", cookparms.getCookTime(), 0);
595  return result;
596  }
597  bool getDoDivs() const { return myDoDivs; }
598  void setDoDivs(bool val) { myDoDivs = val; }
599  bool opDoDivs(const SOP_NodeVerb::CookParms &cookparms) const
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getDoDivs();
603  bool result;
604  OP_Utils::evalOpParm(result, thissop, "dodivs", cookparms.getCookTime(), 0);
605  return result;
606  }
607  UT_Vector3I getDivs() const { return myDivs; }
608  void setDivs(UT_Vector3I val) { myDivs = val; }
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getDivs();
613  UT_Vector3I result;
614  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
615  return result;
616  }
617  bool getRebar() const { return myRebar; }
618  void setRebar(bool val) { myRebar = val; }
619  bool opRebar(const SOP_NodeVerb::CookParms &cookparms) const
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getRebar();
623  bool result;
624  OP_Utils::evalOpParm(result, thissop, "rebar", cookparms.getCookTime(), 0);
625  return result;
626  }
627  bool getConsolidatePoints() const { return myConsolidatePoints; }
628  void setConsolidatePoints(bool val) { myConsolidatePoints = val; }
629  bool opConsolidatePoints(const SOP_NodeVerb::CookParms &cookparms) const
630  {
631  SOP_Node *thissop = cookparms.getNode();
632  if (!thissop) return getConsolidatePoints();
633  bool result;
634  OP_Utils::evalOpParm(result, thissop, "consolidatepts", cookparms.getCookTime(), 0);
635  return result;
636  }
637  bool getOrientedBoundingBox() const { return myOrientedBoundingBox; }
638  void setOrientedBoundingBox(bool val) { myOrientedBoundingBox = val; }
639  bool opOrientedBoundingBox(const SOP_NodeVerb::CookParms &cookparms) const
640  {
641  SOP_Node *thissop = cookparms.getNode();
642  if (!thissop) return getOrientedBoundingBox();
643  bool result;
644  OP_Utils::evalOpParm(result, thissop, "orientedbbox", cookparms.getCookTime(), 0);
645  return result;
646  }
647  bool getVertexNormals() const { return myVertexNormals; }
648  void setVertexNormals(bool val) { myVertexNormals = val; }
649  bool opVertexNormals(const SOP_NodeVerb::CookParms &cookparms) const
650  {
651  SOP_Node *thissop = cookparms.getNode();
652  if (!thissop) return getVertexNormals();
653  bool result;
654  OP_Utils::evalOpParm(result, thissop, "vertexnormals", cookparms.getCookTime(), 0);
655  return result;
656  }
657 
658 private:
659  int64 myType;
660  int64 mySurfType;
661  UT_Vector3D mySize;
662  fpreal64 myScale;
663  UT_Vector3D myCenter;
664  UT_Vector3D myRotate;
665  UT_Vector3I myDivRate;
667  bool myDoDivs;
668  UT_Vector3I myDivs;
669  bool myRebar;
670  bool myConsolidatePoints;
671  bool myOrientedBoundingBox;
672  bool myVertexNormals;
673 
674 };
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_StringHolder s)
void setCenter(UT_Vector3D val)
bool opRebar(const SOP_NodeVerb::CookParms &cookparms) const
bool opVertexNormals(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3I getDivRate() const
static void saveData(std::ostream &os, UT_Vector4D v)
void setParmValue(exint idx, const UT_Matrix3D &value)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
virtual ParmType getParmType(exint fieldnum) const
UT_Vector3D getSize() const
void save(std::ostream &os) const
fpreal64 getScale() const
bool getOrientedBoundingBox() const
int64 getSurfType() const
void setSurfType(int64 val)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
int myOrder
Definition: GT_CurveEval.h:263
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
bool operator==(const SOP_BoxParms &src) const
const GLdouble * v
Definition: glcorearb.h:836
void doSetParmValue(exint idx, const T &value)
UT_Vector3D opRotate(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix3D v)
bool operator!=(const SOP_BoxParms &src) const
void getParmValue(exint idx, PRM_DataItemHandle &value) const
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
bool getDoDivs() const
UT_Vector3D getCenter() const
An output stream object that owns its own string buffer storage.
void setType(int64 val)
static void saveData(std::ostream &os, int64 v)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
static void loadData(UT_IStream &is, UT_Vector2I &v)
int64 opSurfType(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setSize(UT_Vector3D val)
static void loadData(UT_IStream &is, int64 &v)
bool load(UT_IStream &is)
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 exint getNumParms() const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
void getParmValue(exint idx, UT_Vector3D &value) const
void setParmValue(exint idx, const exint &value)
static void saveData(std::ostream &os, fpreal64 v)
bool getVertexNormals() const
void setParmValue(exint idx, const UT_Vector3D &value)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
bool getConsolidatePoints() 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 saveData(std::ostream &os, bool v)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
int64 exint
Definition: SYS_Types.h:116
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
void setRebar(bool val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getParmValue(exint idx, UT_StringHolder &value) const
void setParmValue(exint idx, const fpreal &value)
static int version()
void doGetParmValue(exint idx, T &value) const
int64 getType() const
virtual void copyFrom(const SOP_NodeParms *src)
void getParmValue(exint idx, UT_Vector4D &value) const
GLboolean * data
Definition: glcorearb.h:130
void setParmValue(exint idx, const UT_Vector2D &value)
void setParmValue(exint idx, const UT_Vector4D &value)
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
void setDoDivs(bool val)
void setParmValue(exint idx, const UT_Matrix2D &value)
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D opSize(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void setScale(fpreal64 val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setVertexNormals(bool val)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void getParmValue(exint idx, exint &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool opOrientedBoundingBox(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
void getParmValue(exint idx, UT_Vector2D &value) const
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
bool getRebar() const
void setConsolidatePoints(bool val)
bool opConsolidatePoints(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D getRotate() const
virtual const char * getParmName(exint fieldnum) const
void getParmValue(exint idx, UT_Matrix4D &value) const
void getParmValue(exint idx, UT_Matrix2D &value) const
void setOrientedBoundingBox(bool val)
UT_Vector3D opCenter(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
GLuint GLfloat * val
Definition: glcorearb.h:1607
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3×3's rows.
Definition: Mat.h:665
void setDivRate(UT_Vector3I val)
#define SOP_API
Definition: SOP_API.h:10
UT_Vector3I getOrder() const
void setParmValue(exint idx, const UT_Matrix4D &value)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
void setOrder(UT_Vector3I val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
void setDivs(UT_Vector3I val)
T & y(void)
Definition: UT_Vector2.h:287
UT_Vector3I getDivs() const
GLboolean r
Definition: glcorearb.h:1221
bool opDoDivs(const SOP_NodeVerb::CookParms &cookparms) const
void setRotate(UT_Vector3D val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
T & w(void)
Definition: UT_Vector4.h:381
int64 opType(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, fpreal &value) const
UT_Vector3I opDivRate(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_StringHolder &value)
UT_Vector3I opDivs(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix3D &value) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
virtual ~SOP_BoxParms()
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1792
static void saveData(std::ostream &os, UT_Vector3D v)
UT_Vector3I opOrder(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)