HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Curvesect.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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_CurvesectEnums
24 {
25  enum class Left
26  {
27  LKEEPALL = 0,
28  LKEEPODD,
29  LKEEPEVEN,
30  LKEEPNONE
31  };
32 
34  getToken(Left enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Left::LKEEPALL: return "lkeepall"_sh;
39  case Left::LKEEPODD: return "lkeepodd"_sh;
40  case Left::LKEEPEVEN: return "lkeepeven"_sh;
41  case Left::LKEEPNONE: return "lkeepnone"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46  enum class Right
47  {
48  RKEEPALL = 0,
49  RKEEPODD,
50  RKEEPEVEN,
51  RKEEPNONE
52  };
53 
55  getToken(Right enum_value)
56  {
57  using namespace UT::Literal;
58  switch (enum_value) {
59  case Right::RKEEPALL: return "rkeepall"_sh;
60  case Right::RKEEPODD: return "rkeepodd"_sh;
61  case Right::RKEEPEVEN: return "rkeepeven"_sh;
62  case Right::RKEEPNONE: return "rkeepnone"_sh;
63  default: UT_ASSERT(false); return ""_sh;
64  }
65  }
66 
67  enum class Affect
68  {
69  LEFT = 0,
70  RIGHT,
71  BOTH
72  };
73 
75  getToken(Affect enum_value)
76  {
77  using namespace UT::Literal;
78  switch (enum_value) {
79  case Affect::LEFT: return "left"_sh;
80  case Affect::RIGHT: return "right"_sh;
81  case Affect::BOTH: return "both"_sh;
82  default: UT_ASSERT(false); return ""_sh;
83  }
84  }
85 
86 }
87 
88 
90 {
91 public:
92  static int version() { return 1; }
93 
95  {
96  myLeftgroup = ""_UTsh;
97  myRightgroup = ""_UTsh;
98  myXsect = true;
99  myTolerance = 0.001;
100  myLeft = 0;
101  myRight = 3;
102  myStdswitcher = 0;
103  myAffect = 0;
104  myExtractpt = true;
105  myKeeporiginal = false;
106 
107  }
108 
109  explicit SOP_CurvesectParms(const SOP_CurvesectParms &) = default;
110  SOP_CurvesectParms &operator=(const SOP_CurvesectParms &) = default;
111  SOP_CurvesectParms(SOP_CurvesectParms &&) noexcept = default;
112  SOP_CurvesectParms &operator=(SOP_CurvesectParms &&) noexcept = default;
113 
114  ~SOP_CurvesectParms() override {}
115 
116  bool operator==(const SOP_CurvesectParms &src) const
117  {
118  if (myLeftgroup != src.myLeftgroup) return false;
119  if (myRightgroup != src.myRightgroup) return false;
120  if (myXsect != src.myXsect) return false;
121  if (myTolerance != src.myTolerance) return false;
122  if (myLeft != src.myLeft) return false;
123  if (myRight != src.myRight) return false;
124  if (myStdswitcher != src.myStdswitcher) return false;
125  if (myAffect != src.myAffect) return false;
126  if (myExtractpt != src.myExtractpt) return false;
127  if (myKeeporiginal != src.myKeeporiginal) return false;
128 
129  return true;
130  }
131  bool operator!=(const SOP_CurvesectParms &src) const
132  {
133  return !operator==(src);
134  }
138 
139 
140 
141  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
142  {
143  myLeftgroup = ""_UTsh;
144  if (true)
145  graph->evalOpParm(myLeftgroup, nodeidx, "leftgroup", time, 0);
146  myRightgroup = ""_UTsh;
147  if (true)
148  graph->evalOpParm(myRightgroup, nodeidx, "rightgroup", time, 0);
149  myXsect = true;
150  if (true)
151  graph->evalOpParm(myXsect, nodeidx, "xsect", time, 0);
152  myTolerance = 0.001;
153  if (true && ( (true&&!(((getXsect()==0)))) ) )
154  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
155  myLeft = 0;
156  if (true)
157  graph->evalOpParm(myLeft, nodeidx, "left", time, 0);
158  myRight = 3;
159  if (true)
160  graph->evalOpParm(myRight, nodeidx, "right", time, 0);
161  myStdswitcher = 0;
162  if (true)
163  graph->evalOpParm(myStdswitcher, nodeidx, "stdswitcher", time, 0);
164  myAffect = 0;
165  if (true)
166  graph->evalOpParm(myAffect, nodeidx, "affect", time, 0);
167  myExtractpt = true;
168  if (true)
169  graph->evalOpParm(myExtractpt, nodeidx, "extractPt", time, 0);
170  myKeeporiginal = false;
171  if (true)
172  graph->evalOpParm(myKeeporiginal, nodeidx, "keepOriginal", time, 0);
173 
174  }
175 
176 
177  void loadFromOpSubclass(const LoadParms &loadparms) override
178  {
179  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
180  }
181 
182 
183  void copyFrom(const OP_NodeParms *src) override
184  {
185  *this = *((const SOP_CurvesectParms *)src);
186  }
187 
188  template <typename T>
189  void
190  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
191  {
192  if (idx.size() < 1)
193  return;
194  UT_ASSERT(idx.size() == instance.size()+1);
195  if (idx.size() != instance.size()+1)
196  return;
197  switch (idx[0])
198  {
199  case 0:
200  coerceValue(value, myLeftgroup);
201  break;
202  case 1:
203  coerceValue(value, myRightgroup);
204  break;
205  case 2:
206  coerceValue(value, myXsect);
207  break;
208  case 3:
209  coerceValue(value, myTolerance);
210  break;
211  case 4:
212  coerceValue(value, myLeft);
213  break;
214  case 5:
215  coerceValue(value, myRight);
216  break;
217  case 6:
218  coerceValue(value, myStdswitcher);
219  break;
220  case 7:
221  coerceValue(value, myAffect);
222  break;
223  case 8:
224  coerceValue(value, myExtractpt);
225  break;
226  case 9:
227  coerceValue(value, myKeeporiginal);
228  break;
229 
230  }
231  }
232 
233  bool isParmColorRamp(exint idx) const override
234  {
235  switch (idx)
236  {
237 
238  }
239  return false;
240  }
241 
242  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
243  { doGetParmValue(idx, instance, value); }
244  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
245  { doGetParmValue(idx, instance, value); }
246  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
247  { doGetParmValue(idx, instance, value); }
248  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
249  { doGetParmValue(idx, instance, value); }
250  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
251  { doGetParmValue(idx, instance, value); }
252  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
253  { doGetParmValue(idx, instance, value); }
254  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
255  { doGetParmValue(idx, instance, value); }
256  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
257  { doGetParmValue(idx, instance, value); }
258  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
259  { doGetParmValue(idx, instance, value); }
260  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
261  { doGetParmValue(idx, instance, value); }
262  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
263  { doGetParmValue(idx, instance, value); }
264 
265  template <typename T>
266  void
267  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
268  {
269  if (idx.size() < 1)
270  return;
271  UT_ASSERT(idx.size() == instance.size()+1);
272  if (idx.size() != instance.size()+1)
273  return;
274  switch (idx[0])
275  {
276  case 0:
277  coerceValue(myLeftgroup, ( ( value ) ));
278  break;
279  case 1:
280  coerceValue(myRightgroup, ( ( value ) ));
281  break;
282  case 2:
283  coerceValue(myXsect, ( ( value ) ));
284  break;
285  case 3:
286  coerceValue(myTolerance, clampMinValue(0, clampMaxValue(1, value ) ));
287  break;
288  case 4:
289  coerceValue(myLeft, clampMinValue(0, clampMaxValue(3, value ) ));
290  break;
291  case 5:
292  coerceValue(myRight, clampMinValue(0, clampMaxValue(3, value ) ));
293  break;
294  case 6:
295  coerceValue(myStdswitcher, ( ( value ) ));
296  break;
297  case 7:
298  coerceValue(myAffect, clampMinValue(0, clampMaxValue(2, value ) ));
299  break;
300  case 8:
301  coerceValue(myExtractpt, ( ( value ) ));
302  break;
303  case 9:
304  coerceValue(myKeeporiginal, ( ( value ) ));
305  break;
306 
307  }
308  }
309 
310  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
311  { doSetParmValue(idx, instance, value); }
312  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
313  { doSetParmValue(idx, instance, value); }
314  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
315  { doSetParmValue(idx, instance, value); }
316  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
317  { doSetParmValue(idx, instance, value); }
318  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
319  { doSetParmValue(idx, instance, value); }
320  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
321  { doSetParmValue(idx, instance, value); }
322  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
323  { doSetParmValue(idx, instance, value); }
324  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
325  { doSetParmValue(idx, instance, value); }
326  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
327  { doSetParmValue(idx, instance, value); }
328  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
329  { doSetParmValue(idx, instance, value); }
330  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
331  { doSetParmValue(idx, instance, value); }
332 
333  exint getNestNumParms(TempIndex idx) const override
334  {
335  if (idx.size() == 0)
336  return 10;
337  switch (idx[0])
338  {
339 
340  }
341  // Invalid
342  return 0;
343  }
344 
345  const char *getNestParmName(TempIndex fieldnum) const override
346  {
347  if (fieldnum.size() < 1)
348  return 0;
349  switch (fieldnum[0])
350  {
351  case 0:
352  return "leftgroup";
353  case 1:
354  return "rightgroup";
355  case 2:
356  return "xsect";
357  case 3:
358  return "tolerance";
359  case 4:
360  return "left";
361  case 5:
362  return "right";
363  case 6:
364  return "stdswitcher";
365  case 7:
366  return "affect";
367  case 8:
368  return "extractPt";
369  case 9:
370  return "keepOriginal";
371 
372  }
373  return 0;
374  }
375 
376  ParmType getNestParmType(TempIndex fieldnum) const override
377  {
378  if (fieldnum.size() < 1)
379  return PARM_UNSUPPORTED;
380  switch (fieldnum[0])
381  {
382  case 0:
383  return PARM_STRING;
384  case 1:
385  return PARM_STRING;
386  case 2:
387  return PARM_INTEGER;
388  case 3:
389  return PARM_FLOAT;
390  case 4:
391  return PARM_INTEGER;
392  case 5:
393  return PARM_INTEGER;
394  case 6:
395  return PARM_INTEGER;
396  case 7:
397  return PARM_INTEGER;
398  case 8:
399  return PARM_INTEGER;
400  case 9:
401  return PARM_INTEGER;
402 
403  }
404  return PARM_UNSUPPORTED;
405  }
406 
407  // Boiler plate to load individual types.
408  static void loadData(UT_IStream &is, int64 &v)
409  { is.bread(&v, 1); }
410  static void loadData(UT_IStream &is, bool &v)
411  { int64 iv; is.bread(&iv, 1); v = iv; }
412  static void loadData(UT_IStream &is, fpreal64 &v)
413  { is.bread<fpreal64>(&v, 1); }
414  static void loadData(UT_IStream &is, UT_Vector2D &v)
415  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
416  static void loadData(UT_IStream &is, UT_Vector3D &v)
417  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
418  is.bread<fpreal64>(&v.z(), 1); }
419  static void loadData(UT_IStream &is, UT_Vector4D &v)
420  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
421  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
422  static void loadData(UT_IStream &is, UT_Matrix2D &v)
423  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
424  static void loadData(UT_IStream &is, UT_Matrix3D &v)
425  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
426  static void loadData(UT_IStream &is, UT_Matrix4D &v)
427  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
428  static void loadData(UT_IStream &is, UT_Vector2I &v)
429  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
430  static void loadData(UT_IStream &is, UT_Vector3I &v)
431  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
432  is.bread<int64>(&v.z(), 1); }
433  static void loadData(UT_IStream &is, UT_Vector4I &v)
434  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
435  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
437  { is.bread(v); }
439  { UT_StringHolder rampdata;
440  loadData(is, rampdata);
441  if (rampdata.isstring())
442  {
443  v.reset(new UT_Ramp());
444  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
445  v->load(istr);
446  }
447  else v.reset();
448  }
451  loadData(is, data);
452  if (data.isstring())
453  {
454  // Find the data type.
455  const char *colon = UT_StringWrap(data).findChar(':');
456  if (colon)
457  {
458  int typelen = colon - data.buffer();
460  type.strncpy(data.buffer(), typelen);
461  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
462 
463  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
464  }
465  }
466  else v.reset();
467  }
468 
469  static void saveData(std::ostream &os, int64 v)
470  { UTwrite(os, &v); }
471  static void saveData(std::ostream &os, bool v)
472  { int64 iv = v; UTwrite(os, &iv); }
473  static void saveData(std::ostream &os, fpreal64 v)
474  { UTwrite<fpreal64>(os, &v); }
475  static void saveData(std::ostream &os, UT_Vector2D v)
476  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
477  static void saveData(std::ostream &os, UT_Vector3D v)
478  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
479  UTwrite<fpreal64>(os, &v.z()); }
480  static void saveData(std::ostream &os, UT_Vector4D v)
481  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
482  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
483  static void saveData(std::ostream &os, UT_Matrix2D v)
485  static void saveData(std::ostream &os, UT_Matrix3D v)
487  static void saveData(std::ostream &os, UT_Matrix4D v)
489  static void saveData(std::ostream &os, UT_StringHolder s)
490  { UT_StringWrap(s).saveBinary(os); }
491  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
493  UT_OStringStream ostr;
494  if (s) s->save(ostr);
495  result = ostr.str();
496  saveData(os, result);
497  }
498  static void saveData(std::ostream &os, PRM_DataItemHandle s)
500  UT_OStringStream ostr;
501  if (s)
502  {
503  ostr << s->getDataTypeToken();
504  ostr << ":";
505  s->saveBinary(ostr);
506  }
507  result = ostr.str();
508  saveData(os, result);
509  }
510 
511 
512  void save(std::ostream &os) const
513  {
514  int32 v = version();
515  UTwrite(os, &v);
516  saveData(os, myLeftgroup);
517  saveData(os, myRightgroup);
518  saveData(os, myXsect);
519  saveData(os, myTolerance);
520  saveData(os, myLeft);
521  saveData(os, myRight);
522  saveData(os, myStdswitcher);
523  saveData(os, myAffect);
524  saveData(os, myExtractpt);
525  saveData(os, myKeeporiginal);
526 
527  }
528 
529  bool load(UT_IStream &is)
530  {
531  int32 v;
532  is.bread(&v, 1);
533  if (version() != v)
534  {
535  // Fail incompatible versions
536  return false;
537  }
538  loadData(is, myLeftgroup);
539  loadData(is, myRightgroup);
540  loadData(is, myXsect);
541  loadData(is, myTolerance);
542  loadData(is, myLeft);
543  loadData(is, myRight);
544  loadData(is, myStdswitcher);
545  loadData(is, myAffect);
546  loadData(is, myExtractpt);
547  loadData(is, myKeeporiginal);
548 
549  return true;
550  }
551 
552  const UT_StringHolder & getLeftgroup() const { return myLeftgroup; }
553  void setLeftgroup(const UT_StringHolder & val) { myLeftgroup = val; }
555  {
556  SOP_Node *thissop = cookparms.getNode();
557  if (!thissop) return getLeftgroup();
559  OP_Utils::evalOpParm(result, thissop, "leftgroup", cookparms.getCookTime(), 0);
560  return result;
561  }
562  const UT_StringHolder & getRightgroup() const { return myRightgroup; }
563  void setRightgroup(const UT_StringHolder & val) { myRightgroup = val; }
565  {
566  SOP_Node *thissop = cookparms.getNode();
567  if (!thissop) return getRightgroup();
569  OP_Utils::evalOpParm(result, thissop, "rightgroup", cookparms.getCookTime(), 0);
570  return result;
571  }
572  bool getXsect() const { return myXsect; }
573  void setXsect(bool val) { myXsect = val; }
574  bool opXsect(const SOP_NodeVerb::CookParms &cookparms) const
575  {
576  SOP_Node *thissop = cookparms.getNode();
577  if (!thissop) return getXsect();
578  bool result;
579  OP_Utils::evalOpParm(result, thissop, "xsect", cookparms.getCookTime(), 0);
580  return result;
581  }
582  fpreal64 getTolerance() const { return myTolerance; }
583  void setTolerance(fpreal64 val) { myTolerance = val; }
585  {
586  SOP_Node *thissop = cookparms.getNode();
587  if (!thissop) return getTolerance();
589  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
590  return result;
591  }
592  Left getLeft() const { return Left(myLeft); }
593  void setLeft(Left val) { myLeft = int64(val); }
594  Left opLeft(const SOP_NodeVerb::CookParms &cookparms) const
595  {
596  SOP_Node *thissop = cookparms.getNode();
597  if (!thissop) return getLeft();
598  int64 result;
599  OP_Utils::evalOpParm(result, thissop, "left", cookparms.getCookTime(), 0);
600  return Left(result);
601  }
602  Right getRight() const { return Right(myRight); }
603  void setRight(Right val) { myRight = int64(val); }
604  Right opRight(const SOP_NodeVerb::CookParms &cookparms) const
605  {
606  SOP_Node *thissop = cookparms.getNode();
607  if (!thissop) return getRight();
608  int64 result;
609  OP_Utils::evalOpParm(result, thissop, "right", cookparms.getCookTime(), 0);
610  return Right(result);
611  }
612  int64 getStdswitcher() const { return myStdswitcher; }
613  void setStdswitcher(int64 val) { myStdswitcher = val; }
615  {
616  SOP_Node *thissop = cookparms.getNode();
617  if (!thissop) return getStdswitcher();
618  int64 result;
619  OP_Utils::evalOpParm(result, thissop, "stdswitcher", cookparms.getCookTime(), 0);
620  return result;
621  }
622  Affect getAffect() const { return Affect(myAffect); }
623  void setAffect(Affect val) { myAffect = int64(val); }
624  Affect opAffect(const SOP_NodeVerb::CookParms &cookparms) const
625  {
626  SOP_Node *thissop = cookparms.getNode();
627  if (!thissop) return getAffect();
628  int64 result;
629  OP_Utils::evalOpParm(result, thissop, "affect", cookparms.getCookTime(), 0);
630  return Affect(result);
631  }
632  bool getExtractpt() const { return myExtractpt; }
633  void setExtractpt(bool val) { myExtractpt = val; }
634  bool opExtractpt(const SOP_NodeVerb::CookParms &cookparms) const
635  {
636  SOP_Node *thissop = cookparms.getNode();
637  if (!thissop) return getExtractpt();
638  bool result;
639  OP_Utils::evalOpParm(result, thissop, "extractPt", cookparms.getCookTime(), 0);
640  return result;
641  }
642  bool getKeeporiginal() const { return myKeeporiginal; }
643  void setKeeporiginal(bool val) { myKeeporiginal = val; }
644  bool opKeeporiginal(const SOP_NodeVerb::CookParms &cookparms) const
645  {
646  SOP_Node *thissop = cookparms.getNode();
647  if (!thissop) return getKeeporiginal();
648  bool result;
649  OP_Utils::evalOpParm(result, thissop, "keepOriginal", cookparms.getCookTime(), 0);
650  return result;
651  }
652 
653 private:
654  UT_StringHolder myLeftgroup;
655  UT_StringHolder myRightgroup;
656  bool myXsect;
657  fpreal64 myTolerance;
658  int64 myLeft;
659  int64 myRight;
660  int64 myStdswitcher;
661  int64 myAffect;
662  bool myExtractpt;
663  bool myKeeporiginal;
664 
665 };
void save(std::ostream &os) const
bool operator!=(const SOP_CurvesectParms &src) const
bool operator==(const SOP_CurvesectParms &src) const
fpreal64 opTolerance(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
Affect getAffect() const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
Right opRight(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
int64 opStdswitcher(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
SYS_FORCE_INLINE UT_StringHolder getToken(Left enum_value)
fpreal getTime() const
Definition: OP_Context.h:62
static void saveData(std::ostream &os, UT_Matrix3D v)
void setKeeporiginal(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLdouble s
Definition: glad.h:3009
void setExtractpt(bool val)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, bool v)
**But if you need a result
Definition: thread.h:613
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setRightgroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void loadData(UT_IStream &is, bool &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, int64 v)
UT_StringHolder opLeftgroup(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, UT_StringHolder s)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setStdswitcher(int64 val)
void setAffect(Affect val)
exint length() const
Affect opAffect(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getRightgroup() const
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, UT_Vector4D v)
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
bool opKeeporiginal(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
void copyFrom(const OP_NodeParms *src) override
fpreal64 getTolerance() const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool getKeeporiginal() const
bool load(UT_IStream &is)
long long int64
Definition: SYS_Types.h:116
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setRight(Right val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
ParmType getNestParmType(TempIndex fieldnum) const override
bool getExtractpt() const
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
bool opExtractpt(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getLeftgroup() const
void setLeftgroup(const UT_StringHolder &val)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Left opLeft(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
bool isParmColorRamp(exint idx) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setTolerance(fpreal64 val)
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
bool opXsect(const SOP_NodeVerb::CookParms &cookparms) const
Definition: core.h:1131
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_StringHolder opRightgroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
type
Definition: core.h:1059
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
int64 getStdswitcher() const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void loadFromOpSubclass(const LoadParms &loadparms) override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663