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