HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_CopyToPoints.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 namespace SOP_CopyToPointsEnums
22 {
23  enum class Pivot
24  {
25  ORIGIN = 0,
26  CENTROID
27  };
28  enum class Viewportlod
29  {
30  FULL = 0,
31  POINTS,
32  BOX,
33  CENTROID,
34  HIDDEN
35  };
36 }
37 
38 
40 {
41 public:
42  static int version() { return 1; }
43 
45  {
46  mySourceGroup = ""_sh;
47  myTargetGroup = ""_sh;
48  myShowguide = true;
49  myPack = false;
50  myPivot = 1;
51  myViewportlod = 0;
52  myTransform = true;
53  myDoAttr = true;
54  mySetpt = "*,^v,^Alpha"_sh;
55  myMulpt = "Alpha"_sh;
56  myAddpt = "v"_sh;
57  mySubpt = ""_sh;
58  mySetprim = ""_sh;
59  myMulprim = ""_sh;
60  myAddprim = ""_sh;
61  mySubprim = ""_sh;
62  mySetvtx = ""_sh;
63  myMulvtx = ""_sh;
64  myAddvtx = ""_sh;
65  mySubvtx = ""_sh;
66 
67  }
68 
69  explicit SOP_CopyToPointsParms(const SOP_CopyToPointsParms &) = default;
70 
72 
74  {
75  if (mySourceGroup != src.mySourceGroup) return false;
76  if (myTargetGroup != src.myTargetGroup) return false;
77  if (myShowguide != src.myShowguide) return false;
78  if (myPack != src.myPack) return false;
79  if (myPivot != src.myPivot) return false;
80  if (myViewportlod != src.myViewportlod) return false;
81  if (myTransform != src.myTransform) return false;
82  if (myDoAttr != src.myDoAttr) return false;
83  if (mySetpt != src.mySetpt) return false;
84  if (myMulpt != src.myMulpt) return false;
85  if (myAddpt != src.myAddpt) return false;
86  if (mySubpt != src.mySubpt) return false;
87  if (mySetprim != src.mySetprim) return false;
88  if (myMulprim != src.myMulprim) return false;
89  if (myAddprim != src.myAddprim) return false;
90  if (mySubprim != src.mySubprim) return false;
91  if (mySetvtx != src.mySetvtx) return false;
92  if (myMulvtx != src.myMulvtx) return false;
93  if (myAddvtx != src.myAddvtx) return false;
94  if (mySubvtx != src.mySubvtx) return false;
95 
96  return true;
97  }
99  {
100  return !operator==(src);
101  }
104 
105 
106 
107  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
108  {
109  if (true)
110  OP_Utils::evalOpParm(mySourceGroup, node, "sourcegroup", time, 0);
111  else mySourceGroup = ""_sh;
112  if (true)
113  OP_Utils::evalOpParm(myTargetGroup, node, "targetgroup", time, 0);
114  else myTargetGroup = ""_sh;
115  if (true)
116  OP_Utils::evalOpParm(myShowguide, node, "showguide", time, 0);
117  else myShowguide = true;
118  if (true)
119  OP_Utils::evalOpParm(myPack, node, "pack", time, 0);
120  else myPack = false;
121  if (true && ( (!(((getPack()==0)))) ) )
122  OP_Utils::evalOpParm(myPivot, node, "pivot", time, 0);
123  else myPivot = 1;
124  if (true && ( (!(((getPack()==0)))) ) )
125  OP_Utils::evalOpParm(myViewportlod, node, "viewportlod", time, 0);
126  else myViewportlod = 0;
127  if (true)
128  OP_Utils::evalOpParm(myTransform, node, "transform", time, 0);
129  else myTransform = true;
130  if (true)
131  OP_Utils::evalOpParm(myDoAttr, node, "doattr", time, 0);
132  else myDoAttr = true;
133  if (true && ( (!(((getDoAttr()==0)))) ) )
134  OP_Utils::evalOpParm(mySetpt, node, "setpt", time, 0);
135  else mySetpt = "*,^v,^Alpha"_sh;
136  if (true && ( (!(((getDoAttr()==0)))) ) )
137  OP_Utils::evalOpParm(myMulpt, node, "mulpt", time, 0);
138  else myMulpt = "Alpha"_sh;
139  if (true && ( (!(((getDoAttr()==0)))) ) )
140  OP_Utils::evalOpParm(myAddpt, node, "addpt", time, 0);
141  else myAddpt = "v"_sh;
142  if (true && ( (!(((getDoAttr()==0)))) ) )
143  OP_Utils::evalOpParm(mySubpt, node, "subpt", time, 0);
144  else mySubpt = ""_sh;
145  if (true && ( (!(((getDoAttr()==0)))) ) )
146  OP_Utils::evalOpParm(mySetprim, node, "setprim", time, 0);
147  else mySetprim = ""_sh;
148  if (true && ( (!(((getDoAttr()==0)))) ) )
149  OP_Utils::evalOpParm(myMulprim, node, "mulprim", time, 0);
150  else myMulprim = ""_sh;
151  if (true && ( (!(((getDoAttr()==0)))) ) )
152  OP_Utils::evalOpParm(myAddprim, node, "addprim", time, 0);
153  else myAddprim = ""_sh;
154  if (true && ( (!(((getDoAttr()==0)))) ) )
155  OP_Utils::evalOpParm(mySubprim, node, "subprim", time, 0);
156  else mySubprim = ""_sh;
157  if (true && ( (!(((getDoAttr()==0)))) ) )
158  OP_Utils::evalOpParm(mySetvtx, node, "setvtx", time, 0);
159  else mySetvtx = ""_sh;
160  if (true && ( (!(((getDoAttr()==0)))) ) )
161  OP_Utils::evalOpParm(myMulvtx, node, "mulvtx", time, 0);
162  else myMulvtx = ""_sh;
163  if (true && ( (!(((getDoAttr()==0)))) ) )
164  OP_Utils::evalOpParm(myAddvtx, node, "addvtx", time, 0);
165  else myAddvtx = ""_sh;
166  if (true && ( (!(((getDoAttr()==0)))) ) )
167  OP_Utils::evalOpParm(mySubvtx, node, "subvtx", time, 0);
168  else mySubvtx = ""_sh;
169 
170  }
171 
172 
173  virtual void loadFromOpSubclass(const LoadParms &loadparms)
174  {
175  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
176  }
177 
178 
179  virtual void copyFrom(const SOP_NodeParms *src)
180  {
181  *this = *((const SOP_CopyToPointsParms *)src);
182  }
183 
184  template <typename T>
185  void
186  doGetParmValue(exint idx, T &value) const
187  {
188  switch (idx)
189  {
190  case 0:
191  coerceValue(value, mySourceGroup);
192  break;
193  case 1:
194  coerceValue(value, myTargetGroup);
195  break;
196  case 2:
197  coerceValue(value, myShowguide);
198  break;
199  case 3:
200  coerceValue(value, myPack);
201  break;
202  case 4:
203  coerceValue(value, myPivot);
204  break;
205  case 5:
206  coerceValue(value, myViewportlod);
207  break;
208  case 6:
209  coerceValue(value, myTransform);
210  break;
211  case 7:
212  coerceValue(value, myDoAttr);
213  break;
214  case 8:
215  coerceValue(value, mySetpt);
216  break;
217  case 9:
218  coerceValue(value, myMulpt);
219  break;
220  case 10:
221  coerceValue(value, myAddpt);
222  break;
223  case 11:
224  coerceValue(value, mySubpt);
225  break;
226  case 12:
227  coerceValue(value, mySetprim);
228  break;
229  case 13:
230  coerceValue(value, myMulprim);
231  break;
232  case 14:
233  coerceValue(value, myAddprim);
234  break;
235  case 15:
236  coerceValue(value, mySubprim);
237  break;
238  case 16:
239  coerceValue(value, mySetvtx);
240  break;
241  case 17:
242  coerceValue(value, myMulvtx);
243  break;
244  case 18:
245  coerceValue(value, myAddvtx);
246  break;
247  case 19:
248  coerceValue(value, mySubvtx);
249  break;
250 
251  }
252  }
253 
254  void getParmValue(exint idx, exint &value) const
255  { doGetParmValue(idx, value); }
256  void getParmValue(exint idx, fpreal &value) const
257  { doGetParmValue(idx, value); }
259  { doGetParmValue(idx, value); }
261  { doGetParmValue(idx, value); }
263  { doGetParmValue(idx, value); }
265  { doGetParmValue(idx, value); }
267  { doGetParmValue(idx, value); }
269  { doGetParmValue(idx, value); }
271  { doGetParmValue(idx, value); }
273  { doGetParmValue(idx, value); }
275  { doGetParmValue(idx, value); }
276 
277  template <typename T>
278  void
279  doSetParmValue(exint idx, const T &value)
280  {
281  switch (idx)
282  {
283  case 0:
284  coerceValue(mySourceGroup, value);
285  break;
286  case 1:
287  coerceValue(myTargetGroup, value);
288  break;
289  case 2:
290  coerceValue(myShowguide, value);
291  break;
292  case 3:
293  coerceValue(myPack, value);
294  break;
295  case 4:
296  coerceValue(myPivot, value);
297  break;
298  case 5:
299  coerceValue(myViewportlod, value);
300  break;
301  case 6:
302  coerceValue(myTransform, value);
303  break;
304  case 7:
305  coerceValue(myDoAttr, value);
306  break;
307  case 8:
308  coerceValue(mySetpt, value);
309  break;
310  case 9:
311  coerceValue(myMulpt, value);
312  break;
313  case 10:
314  coerceValue(myAddpt, value);
315  break;
316  case 11:
317  coerceValue(mySubpt, value);
318  break;
319  case 12:
320  coerceValue(mySetprim, value);
321  break;
322  case 13:
323  coerceValue(myMulprim, value);
324  break;
325  case 14:
326  coerceValue(myAddprim, value);
327  break;
328  case 15:
329  coerceValue(mySubprim, value);
330  break;
331  case 16:
332  coerceValue(mySetvtx, value);
333  break;
334  case 17:
335  coerceValue(myMulvtx, value);
336  break;
337  case 18:
338  coerceValue(myAddvtx, value);
339  break;
340  case 19:
341  coerceValue(mySubvtx, value);
342  break;
343 
344  }
345  }
346 
347  void setParmValue(exint idx, const exint &value)
348  { doSetParmValue(idx, value); }
349  void setParmValue(exint idx, const fpreal &value)
350  { doSetParmValue(idx, value); }
351  void setParmValue(exint idx, const UT_Vector2D &value)
352  { doSetParmValue(idx, value); }
353  void setParmValue(exint idx, const UT_Vector3D &value)
354  { doSetParmValue(idx, value); }
355  void setParmValue(exint idx, const UT_Vector4D &value)
356  { doSetParmValue(idx, value); }
357  void setParmValue(exint idx, const UT_Matrix2D &value)
358  { doSetParmValue(idx, value); }
359  void setParmValue(exint idx, const UT_Matrix3D &value)
360  { doSetParmValue(idx, value); }
361  void setParmValue(exint idx, const UT_Matrix4D &value)
362  { doSetParmValue(idx, value); }
364  { doSetParmValue(idx, value); }
366  { doSetParmValue(idx, value); }
368  { doSetParmValue(idx, value); }
369 
370  virtual exint getNumParms() const
371  {
372  return 20;
373  }
374 
375  virtual const char *getParmName(exint fieldnum) const
376  {
377  switch (fieldnum)
378  {
379  case 0:
380  return "sourcegroup";
381  case 1:
382  return "targetgroup";
383  case 2:
384  return "showguide";
385  case 3:
386  return "pack";
387  case 4:
388  return "pivot";
389  case 5:
390  return "viewportlod";
391  case 6:
392  return "transform";
393  case 7:
394  return "doattr";
395  case 8:
396  return "setpt";
397  case 9:
398  return "mulpt";
399  case 10:
400  return "addpt";
401  case 11:
402  return "subpt";
403  case 12:
404  return "setprim";
405  case 13:
406  return "mulprim";
407  case 14:
408  return "addprim";
409  case 15:
410  return "subprim";
411  case 16:
412  return "setvtx";
413  case 17:
414  return "mulvtx";
415  case 18:
416  return "addvtx";
417  case 19:
418  return "subvtx";
419 
420  }
421  return 0;
422  }
423 
424  virtual ParmType getParmType(exint fieldnum) const
425  {
426  switch (fieldnum)
427  {
428  case 0:
429  return PARM_STRING;
430  case 1:
431  return PARM_STRING;
432  case 2:
433  return PARM_INTEGER;
434  case 3:
435  return PARM_INTEGER;
436  case 4:
437  return PARM_INTEGER;
438  case 5:
439  return PARM_INTEGER;
440  case 6:
441  return PARM_INTEGER;
442  case 7:
443  return PARM_INTEGER;
444  case 8:
445  return PARM_STRING;
446  case 9:
447  return PARM_STRING;
448  case 10:
449  return PARM_STRING;
450  case 11:
451  return PARM_STRING;
452  case 12:
453  return PARM_STRING;
454  case 13:
455  return PARM_STRING;
456  case 14:
457  return PARM_STRING;
458  case 15:
459  return PARM_STRING;
460  case 16:
461  return PARM_STRING;
462  case 17:
463  return PARM_STRING;
464  case 18:
465  return PARM_STRING;
466  case 19:
467  return PARM_STRING;
468 
469  }
470  return PARM_UNSUPPORTED;
471  }
472 
473  // Boiler plate to load individual types.
474  static void loadData(UT_IStream &is, int64 &v)
475  { is.bread(&v, 1); }
476  static void loadData(UT_IStream &is, bool &v)
477  { int64 iv; is.bread(&iv, 1); v = iv; }
478  static void loadData(UT_IStream &is, fpreal64 &v)
479  { is.bread<fpreal64>(&v, 1); }
480  static void loadData(UT_IStream &is, UT_Vector2D &v)
481  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
482  static void loadData(UT_IStream &is, UT_Vector3D &v)
483  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
484  is.bread<fpreal64>(&v.z(), 1); }
485  static void loadData(UT_IStream &is, UT_Vector4D &v)
486  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
487  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
488  static void loadData(UT_IStream &is, UT_Matrix2D &v)
489  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
490  static void loadData(UT_IStream &is, UT_Matrix3D &v)
491  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
492  static void loadData(UT_IStream &is, UT_Matrix4D &v)
493  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
494  static void loadData(UT_IStream &is, UT_Vector2I &v)
495  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
496  static void loadData(UT_IStream &is, UT_Vector3I &v)
497  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
498  is.bread<int64>(&v.z(), 1); }
499  static void loadData(UT_IStream &is, UT_Vector4I &v)
500  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
501  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
503  { is.bread(v); }
505  { UT_StringHolder rampdata;
506  loadData(is, rampdata);
507  if (rampdata.isstring())
508  {
509  v.reset(new UT_Ramp());
510  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
511  v->load(istr);
512  }
513  else v.reset();
514  }
517  loadData(is, data);
518  if (data.isstring())
519  {
520  // Find the data type.
521  char *colon = UT_StringWrap(data).findChar(':');
522  if (colon)
523  {
524  int typelen = colon - data.buffer();
526  type.strncpy(data.buffer(), typelen);
527  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
528 
529  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
530  }
531  }
532  else v.reset();
533  }
534 
535  static void saveData(std::ostream &os, int64 v)
536  { UTwrite(os, &v); }
537  static void saveData(std::ostream &os, bool v)
538  { int64 iv = v; UTwrite(os, &iv); }
539  static void saveData(std::ostream &os, fpreal64 v)
540  { UTwrite<fpreal64>(os, &v); }
541  static void saveData(std::ostream &os, UT_Vector2D v)
542  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
543  static void saveData(std::ostream &os, UT_Vector3D v)
544  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
545  UTwrite<fpreal64>(os, &v.z()); }
546  static void saveData(std::ostream &os, UT_Vector4D v)
547  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
548  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
549  static void saveData(std::ostream &os, UT_Matrix2D v)
551  static void saveData(std::ostream &os, UT_Matrix3D v)
553  static void saveData(std::ostream &os, UT_Matrix4D v)
555  static void saveData(std::ostream &os, UT_StringHolder s)
556  { UT_StringWrap(s).saveBinary(os); }
557  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
558  { UT_StringHolder result;
559  UT_OStringStream ostr;
560  if (s) s->save(ostr);
561  result = ostr.str();
562  saveData(os, result);
563  }
564  static void saveData(std::ostream &os, PRM_DataItemHandle s)
565  { UT_StringHolder result;
566  UT_OStringStream ostr;
567  if (s)
568  {
569  ostr << s->getDataTypeToken();
570  ostr << ":";
571  s->saveBinary(ostr);
572  }
573  result = ostr.str();
574  saveData(os, result);
575  }
576 
577 
578  void save(std::ostream &os) const
579  {
580  int32 v = version();
581  UTwrite(os, &v);
582  saveData(os, mySourceGroup);
583  saveData(os, myTargetGroup);
584  saveData(os, myShowguide);
585  saveData(os, myPack);
586  saveData(os, myPivot);
587  saveData(os, myViewportlod);
588  saveData(os, myTransform);
589  saveData(os, myDoAttr);
590  saveData(os, mySetpt);
591  saveData(os, myMulpt);
592  saveData(os, myAddpt);
593  saveData(os, mySubpt);
594  saveData(os, mySetprim);
595  saveData(os, myMulprim);
596  saveData(os, myAddprim);
597  saveData(os, mySubprim);
598  saveData(os, mySetvtx);
599  saveData(os, myMulvtx);
600  saveData(os, myAddvtx);
601  saveData(os, mySubvtx);
602 
603  }
604 
605  bool load(UT_IStream &is)
606  {
607  int32 v;
608  is.bread(&v, 1);
609  if (version() != v)
610  {
611  // Fail incompatible versions
612  return false;
613  }
614  loadData(is, mySourceGroup);
615  loadData(is, myTargetGroup);
616  loadData(is, myShowguide);
617  loadData(is, myPack);
618  loadData(is, myPivot);
619  loadData(is, myViewportlod);
620  loadData(is, myTransform);
621  loadData(is, myDoAttr);
622  loadData(is, mySetpt);
623  loadData(is, myMulpt);
624  loadData(is, myAddpt);
625  loadData(is, mySubpt);
626  loadData(is, mySetprim);
627  loadData(is, myMulprim);
628  loadData(is, myAddprim);
629  loadData(is, mySubprim);
630  loadData(is, mySetvtx);
631  loadData(is, myMulvtx);
632  loadData(is, myAddvtx);
633  loadData(is, mySubvtx);
634 
635  return true;
636  }
637 
638  const UT_StringHolder & getSourceGroup() const { return mySourceGroup; }
639  void setSourceGroup(const UT_StringHolder & val) { mySourceGroup = val; }
641  {
642  SOP_Node *thissop = cookparms.getNode();
643  if (!thissop) return getSourceGroup();
644  UT_StringHolder result;
645  OP_Utils::evalOpParm(result, thissop, "sourcegroup", cookparms.getCookTime(), 0);
646  return result;
647  }
648  const UT_StringHolder & getTargetGroup() const { return myTargetGroup; }
649  void setTargetGroup(const UT_StringHolder & val) { myTargetGroup = val; }
651  {
652  SOP_Node *thissop = cookparms.getNode();
653  if (!thissop) return getTargetGroup();
654  UT_StringHolder result;
655  OP_Utils::evalOpParm(result, thissop, "targetgroup", cookparms.getCookTime(), 0);
656  return result;
657  }
658  bool getShowguide() const { return myShowguide; }
659  void setShowguide(bool val) { myShowguide = val; }
660  bool opShowguide(const SOP_NodeVerb::CookParms &cookparms) const
661  {
662  SOP_Node *thissop = cookparms.getNode();
663  if (!thissop) return getShowguide();
664  bool result;
665  OP_Utils::evalOpParm(result, thissop, "showguide", cookparms.getCookTime(), 0);
666  return result;
667  }
668  bool getPack() const { return myPack; }
669  void setPack(bool val) { myPack = val; }
670  bool opPack(const SOP_NodeVerb::CookParms &cookparms) const
671  {
672  SOP_Node *thissop = cookparms.getNode();
673  if (!thissop) return getPack();
674  bool result;
675  OP_Utils::evalOpParm(result, thissop, "pack", cookparms.getCookTime(), 0);
676  return result;
677  }
678  Pivot getPivot() const { return Pivot(myPivot); }
679  void setPivot(Pivot val) { myPivot = int64(val); }
680  Pivot opPivot(const SOP_NodeVerb::CookParms &cookparms) const
681  {
682  SOP_Node *thissop = cookparms.getNode();
683  if (!thissop) return getPivot();
684  int64 result;
685  OP_Utils::evalOpParm(result, thissop, "pivot", cookparms.getCookTime(), 0);
686  return Pivot(result);
687  }
688  Viewportlod getViewportlod() const { return Viewportlod(myViewportlod); }
689  void setViewportlod(Viewportlod val) { myViewportlod = int64(val); }
691  {
692  SOP_Node *thissop = cookparms.getNode();
693  if (!thissop) return getViewportlod();
694  int64 result;
695  OP_Utils::evalOpParm(result, thissop, "viewportlod", cookparms.getCookTime(), 0);
696  return Viewportlod(result);
697  }
698  bool getTransform() const { return myTransform; }
699  void setTransform(bool val) { myTransform = val; }
700  bool opTransform(const SOP_NodeVerb::CookParms &cookparms) const
701  {
702  SOP_Node *thissop = cookparms.getNode();
703  if (!thissop) return getTransform();
704  bool result;
705  OP_Utils::evalOpParm(result, thissop, "transform", cookparms.getCookTime(), 0);
706  return result;
707  }
708  bool getDoAttr() const { return myDoAttr; }
709  void setDoAttr(bool val) { myDoAttr = val; }
710  bool opDoAttr(const SOP_NodeVerb::CookParms &cookparms) const
711  {
712  SOP_Node *thissop = cookparms.getNode();
713  if (!thissop) return getDoAttr();
714  bool result;
715  OP_Utils::evalOpParm(result, thissop, "doattr", cookparms.getCookTime(), 0);
716  return result;
717  }
718  const UT_StringHolder & getSetpt() const { return mySetpt; }
719  void setSetpt(const UT_StringHolder & val) { mySetpt = val; }
721  {
722  SOP_Node *thissop = cookparms.getNode();
723  if (!thissop) return getSetpt();
724  UT_StringHolder result;
725  OP_Utils::evalOpParm(result, thissop, "setpt", cookparms.getCookTime(), 0);
726  return result;
727  }
728  const UT_StringHolder & getMulpt() const { return myMulpt; }
729  void setMulpt(const UT_StringHolder & val) { myMulpt = val; }
731  {
732  SOP_Node *thissop = cookparms.getNode();
733  if (!thissop) return getMulpt();
734  UT_StringHolder result;
735  OP_Utils::evalOpParm(result, thissop, "mulpt", cookparms.getCookTime(), 0);
736  return result;
737  }
738  const UT_StringHolder & getAddpt() const { return myAddpt; }
739  void setAddpt(const UT_StringHolder & val) { myAddpt = val; }
741  {
742  SOP_Node *thissop = cookparms.getNode();
743  if (!thissop) return getAddpt();
744  UT_StringHolder result;
745  OP_Utils::evalOpParm(result, thissop, "addpt", cookparms.getCookTime(), 0);
746  return result;
747  }
748  const UT_StringHolder & getSubpt() const { return mySubpt; }
749  void setSubpt(const UT_StringHolder & val) { mySubpt = val; }
751  {
752  SOP_Node *thissop = cookparms.getNode();
753  if (!thissop) return getSubpt();
754  UT_StringHolder result;
755  OP_Utils::evalOpParm(result, thissop, "subpt", cookparms.getCookTime(), 0);
756  return result;
757  }
758  const UT_StringHolder & getSetprim() const { return mySetprim; }
759  void setSetprim(const UT_StringHolder & val) { mySetprim = val; }
761  {
762  SOP_Node *thissop = cookparms.getNode();
763  if (!thissop) return getSetprim();
764  UT_StringHolder result;
765  OP_Utils::evalOpParm(result, thissop, "setprim", cookparms.getCookTime(), 0);
766  return result;
767  }
768  const UT_StringHolder & getMulprim() const { return myMulprim; }
769  void setMulprim(const UT_StringHolder & val) { myMulprim = val; }
771  {
772  SOP_Node *thissop = cookparms.getNode();
773  if (!thissop) return getMulprim();
774  UT_StringHolder result;
775  OP_Utils::evalOpParm(result, thissop, "mulprim", cookparms.getCookTime(), 0);
776  return result;
777  }
778  const UT_StringHolder & getAddprim() const { return myAddprim; }
779  void setAddprim(const UT_StringHolder & val) { myAddprim = val; }
781  {
782  SOP_Node *thissop = cookparms.getNode();
783  if (!thissop) return getAddprim();
784  UT_StringHolder result;
785  OP_Utils::evalOpParm(result, thissop, "addprim", cookparms.getCookTime(), 0);
786  return result;
787  }
788  const UT_StringHolder & getSubprim() const { return mySubprim; }
789  void setSubprim(const UT_StringHolder & val) { mySubprim = val; }
791  {
792  SOP_Node *thissop = cookparms.getNode();
793  if (!thissop) return getSubprim();
794  UT_StringHolder result;
795  OP_Utils::evalOpParm(result, thissop, "subprim", cookparms.getCookTime(), 0);
796  return result;
797  }
798  const UT_StringHolder & getSetvtx() const { return mySetvtx; }
799  void setSetvtx(const UT_StringHolder & val) { mySetvtx = val; }
801  {
802  SOP_Node *thissop = cookparms.getNode();
803  if (!thissop) return getSetvtx();
804  UT_StringHolder result;
805  OP_Utils::evalOpParm(result, thissop, "setvtx", cookparms.getCookTime(), 0);
806  return result;
807  }
808  const UT_StringHolder & getMulvtx() const { return myMulvtx; }
809  void setMulvtx(const UT_StringHolder & val) { myMulvtx = val; }
811  {
812  SOP_Node *thissop = cookparms.getNode();
813  if (!thissop) return getMulvtx();
814  UT_StringHolder result;
815  OP_Utils::evalOpParm(result, thissop, "mulvtx", cookparms.getCookTime(), 0);
816  return result;
817  }
818  const UT_StringHolder & getAddvtx() const { return myAddvtx; }
819  void setAddvtx(const UT_StringHolder & val) { myAddvtx = val; }
821  {
822  SOP_Node *thissop = cookparms.getNode();
823  if (!thissop) return getAddvtx();
824  UT_StringHolder result;
825  OP_Utils::evalOpParm(result, thissop, "addvtx", cookparms.getCookTime(), 0);
826  return result;
827  }
828  const UT_StringHolder & getSubvtx() const { return mySubvtx; }
829  void setSubvtx(const UT_StringHolder & val) { mySubvtx = val; }
831  {
832  SOP_Node *thissop = cookparms.getNode();
833  if (!thissop) return getSubvtx();
834  UT_StringHolder result;
835  OP_Utils::evalOpParm(result, thissop, "subvtx", cookparms.getCookTime(), 0);
836  return result;
837  }
838 
839 private:
840  UT_StringHolder mySourceGroup;
841  UT_StringHolder myTargetGroup;
842  bool myShowguide;
843  bool myPack;
844  int64 myPivot;
845  int64 myViewportlod;
846  bool myTransform;
847  bool myDoAttr;
848  UT_StringHolder mySetpt;
849  UT_StringHolder myMulpt;
850  UT_StringHolder myAddpt;
851  UT_StringHolder mySubpt;
852  UT_StringHolder mySetprim;
853  UT_StringHolder myMulprim;
854  UT_StringHolder myAddprim;
855  UT_StringHolder mySubprim;
856  UT_StringHolder mySetvtx;
857  UT_StringHolder myMulvtx;
858  UT_StringHolder myAddvtx;
859  UT_StringHolder mySubvtx;
860 
861 };
bool opDoAttr(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opSubprim(const SOP_NodeVerb::CookParms &cookparms) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
void setParmValue(exint idx, const UT_Matrix3D &value)
T & z(void)
Definition: UT_Vector4.h:379
void setParmValue(exint idx, const UT_Matrix4D &value)
static void saveData(std::ostream &os, UT_Matrix3D v)
bool operator==(const SOP_CopyToPointsParms &src) const
void setParmValue(exint idx, const UT_Matrix2D &value)
void setSubprim(const UT_StringHolder &val)
void getParmValue(exint idx, UT_Matrix4D &value) const
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
exint bread(int32 *buffer, exint asize=1)
const UT_StringHolder & getSubprim() const
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
const UT_StringHolder & getAddprim() const
void setSubpt(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getParmValue(exint idx, UT_Matrix2D &value) const
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
virtual exint getNumParms() const
An output stream object that owns its own string buffer storage.
UT_StringHolder opSetvtx(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector2D &value)
const UT_StringHolder & getAddvtx() const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
void setParmValue(exint idx, const exint &value)
const UT_StringHolder & getAddpt() const
UT_StringHolder opMulvtx(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
void getParmValue(exint idx, exint &value) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, int64 v)
void setViewportlod(Viewportlod val)
static void saveData(std::ostream &os, UT_Vector3D v)
const UT_StringHolder & getMulvtx() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
Viewportlod getViewportlod() const
static void saveData(std::ostream &os, fpreal64 v)
UT_StringHolder opTargetGroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
void setSourceGroup(const UT_StringHolder &val)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
const UT_StringHolder & getMulpt() const
void setAddpt(const UT_StringHolder &val)
UT_StringHolder opAddvtx(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_CopyToPointsParms &src) const
UT_StringHolder opSubvtx(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
Pivot opPivot(const SOP_NodeVerb::CookParms &cookparms) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
const UT_StringHolder & getSetpt() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
const UT_StringHolder & getSubvtx() const
int64 exint
Definition: SYS_Types.h:116
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
UT_StringHolder opSetprim(const SOP_NodeVerb::CookParms &cookparms) const
void setSetprim(const UT_StringHolder &val)
const UT_StringHolder & getTargetGroup() const
void setMulprim(const UT_StringHolder &val)
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, bool v)
UT_StringHolder opSourceGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, fpreal &value) const
void doGetParmValue(exint idx, T &value) const
static void saveData(std::ostream &os, UT_Vector2D v)
const UT_StringHolder & getSetprim() const
bool opPack(const SOP_NodeVerb::CookParms &cookparms) const
void setMulvtx(const UT_StringHolder &val)
virtual void copyFrom(const SOP_NodeParms *src)
GLboolean * data
Definition: glcorearb.h:130
void setSetvtx(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
void setSubvtx(const UT_StringHolder &val)
virtual ParmType getParmType(exint fieldnum) const
bool opShowguide(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void getParmValue(exint idx, UT_Matrix3D &value) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setMulpt(const UT_StringHolder &val)
void setAddprim(const UT_StringHolder &val)
virtual const char * getParmName(exint fieldnum) const
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
UT_StringHolder opSubpt(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal
Definition: SYS_Types.h:270
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_StringHolder opAddpt(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Vector2D &value) const
void setParmValue(exint idx, const UT_Vector3D &value)
Viewportlod opViewportlod(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opMulprim(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getSetvtx() const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
GLuint GLfloat * val
Definition: glcorearb.h:1607
bool opTransform(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setSetpt(const UT_StringHolder &val)
#define SOP_API
Definition: SOP_API.h:10
UT_StringHolder opMulpt(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
const UT_StringHolder & getMulprim() const
static void loadData(UT_IStream &is, UT_StringHolder &v)
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 getParmValue(exint idx, UT_Vector3D &value) const
void getParmValue(exint idx, UT_StringHolder &value) const
UT_StringHolder opAddprim(const SOP_NodeVerb::CookParms &cookparms) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
void setParmValue(exint idx, const UT_StringHolder &value)
T & y(void)
Definition: UT_Vector2.h:287
void setParmValue(exint idx, const UT_Vector4D &value)
static void saveData(std::ostream &os, UT_StringHolder s)
GLboolean r
Definition: glcorearb.h:1221
void doSetParmValue(exint idx, const T &value)
T & w(void)
Definition: UT_Vector4.h:381
static void saveData(std::ostream &os, UT_Matrix2D v)
const UT_StringHolder & getSubpt() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setTargetGroup(const UT_StringHolder &val)
void getParmValue(exint idx, UT_Vector4D &value) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void getParmValue(exint idx, PRM_DataItemHandle &value) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
static void saveData(std::ostream &os, UT_Matrix4D v)
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const fpreal &value)
UT_StringHolder opSetpt(const SOP_NodeVerb::CookParms &cookparms) const
void setAddvtx(const UT_StringHolder &val)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
const UT_StringHolder & getSourceGroup() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
GLenum src
Definition: glcorearb.h:1792