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  enum class Right
33  {
34  RKEEPALL = 0,
35  RKEEPODD,
36  RKEEPEVEN,
37  RKEEPNONE
38  };
39  enum class Affect
40  {
41  LEFT = 0,
42  RIGHT,
43  BOTH
44  };
45 }
46 
47 
49 {
50 public:
51  static int version() { return 1; }
52 
54  {
55  myLeftgroup = ""_UTsh;
56  myRightgroup = ""_UTsh;
57  myXsect = true;
58  myTolerance = 0.001;
59  myLeft = 0;
60  myRight = 3;
61  myStdswitcher = 0;
62  myAffect = 0;
63  myExtractpt = true;
64  myKeeporiginal = false;
65 
66  }
67 
68  explicit SOP_CurvesectParms(const SOP_CurvesectParms &) = default;
70  SOP_CurvesectParms(SOP_CurvesectParms &&) noexcept = default;
71  SOP_CurvesectParms &operator=(SOP_CurvesectParms &&) noexcept = default;
72 
73  ~SOP_CurvesectParms() override {}
74 
75  bool operator==(const SOP_CurvesectParms &src) const
76  {
77  if (myLeftgroup != src.myLeftgroup) return false;
78  if (myRightgroup != src.myRightgroup) return false;
79  if (myXsect != src.myXsect) return false;
80  if (myTolerance != src.myTolerance) return false;
81  if (myLeft != src.myLeft) return false;
82  if (myRight != src.myRight) return false;
83  if (myStdswitcher != src.myStdswitcher) return false;
84  if (myAffect != src.myAffect) return false;
85  if (myExtractpt != src.myExtractpt) return false;
86  if (myKeeporiginal != src.myKeeporiginal) return false;
87 
88  return true;
89  }
90  bool operator!=(const SOP_CurvesectParms &src) const
91  {
92  return !operator==(src);
93  }
97 
98 
99 
100  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
101  {
102  myLeftgroup = ""_UTsh;
103  if (true)
104  graph->evalOpParm(myLeftgroup, nodeidx, "leftgroup", time, 0);
105  myRightgroup = ""_UTsh;
106  if (true)
107  graph->evalOpParm(myRightgroup, nodeidx, "rightgroup", time, 0);
108  myXsect = true;
109  if (true)
110  graph->evalOpParm(myXsect, nodeidx, "xsect", time, 0);
111  myTolerance = 0.001;
112  if (true && ( (true&&!(((getXsect()==0)))) ) )
113  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
114  myLeft = 0;
115  if (true)
116  graph->evalOpParm(myLeft, nodeidx, "left", time, 0);
117  myRight = 3;
118  if (true)
119  graph->evalOpParm(myRight, nodeidx, "right", time, 0);
120  myStdswitcher = 0;
121  if (true)
122  graph->evalOpParm(myStdswitcher, nodeidx, "stdswitcher", time, 0);
123  myAffect = 0;
124  if (true)
125  graph->evalOpParm(myAffect, nodeidx, "affect", time, 0);
126  myExtractpt = true;
127  if (true)
128  graph->evalOpParm(myExtractpt, nodeidx, "extractPt", time, 0);
129  myKeeporiginal = false;
130  if (true)
131  graph->evalOpParm(myKeeporiginal, nodeidx, "keepOriginal", time, 0);
132 
133  }
134 
135 
136  void loadFromOpSubclass(const LoadParms &loadparms) override
137  {
138  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
139  }
140 
141 
142  void copyFrom(const OP_NodeParms *src) override
143  {
144  *this = *((const SOP_CurvesectParms *)src);
145  }
146 
147  template <typename T>
148  void
149  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
150  {
151  if (idx.size() < 1)
152  return;
153  UT_ASSERT(idx.size() == instance.size()+1);
154  if (idx.size() != instance.size()+1)
155  return;
156  switch (idx[0])
157  {
158  case 0:
159  coerceValue(value, myLeftgroup);
160  break;
161  case 1:
162  coerceValue(value, myRightgroup);
163  break;
164  case 2:
165  coerceValue(value, myXsect);
166  break;
167  case 3:
168  coerceValue(value, myTolerance);
169  break;
170  case 4:
171  coerceValue(value, myLeft);
172  break;
173  case 5:
174  coerceValue(value, myRight);
175  break;
176  case 6:
177  coerceValue(value, myStdswitcher);
178  break;
179  case 7:
180  coerceValue(value, myAffect);
181  break;
182  case 8:
183  coerceValue(value, myExtractpt);
184  break;
185  case 9:
186  coerceValue(value, myKeeporiginal);
187  break;
188 
189  }
190  }
191 
192  bool isParmColorRamp(exint idx) const override
193  {
194  switch (idx)
195  {
196 
197  }
198  return false;
199  }
200 
201  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
222  { doGetParmValue(idx, instance, value); }
223 
224  template <typename T>
225  void
226  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
227  {
228  if (idx.size() < 1)
229  return;
230  UT_ASSERT(idx.size() == instance.size()+1);
231  if (idx.size() != instance.size()+1)
232  return;
233  switch (idx[0])
234  {
235  case 0:
236  coerceValue(myLeftgroup, ( ( value ) ));
237  break;
238  case 1:
239  coerceValue(myRightgroup, ( ( value ) ));
240  break;
241  case 2:
242  coerceValue(myXsect, ( ( value ) ));
243  break;
244  case 3:
245  coerceValue(myTolerance, clampMinValue(0, clampMaxValue(1, value ) ));
246  break;
247  case 4:
248  coerceValue(myLeft, clampMinValue(0, clampMaxValue(3, value ) ));
249  break;
250  case 5:
251  coerceValue(myRight, clampMinValue(0, clampMaxValue(3, value ) ));
252  break;
253  case 6:
254  coerceValue(myStdswitcher, ( ( value ) ));
255  break;
256  case 7:
257  coerceValue(myAffect, clampMinValue(0, clampMaxValue(2, value ) ));
258  break;
259  case 8:
260  coerceValue(myExtractpt, ( ( value ) ));
261  break;
262  case 9:
263  coerceValue(myKeeporiginal, ( ( value ) ));
264  break;
265 
266  }
267  }
268 
269  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
290  { doSetParmValue(idx, instance, value); }
291 
292  exint getNestNumParms(TempIndex idx) const override
293  {
294  if (idx.size() == 0)
295  return 10;
296  switch (idx[0])
297  {
298 
299  }
300  // Invalid
301  return 0;
302  }
303 
304  const char *getNestParmName(TempIndex fieldnum) const override
305  {
306  if (fieldnum.size() < 1)
307  return 0;
308  switch (fieldnum[0])
309  {
310  case 0:
311  return "leftgroup";
312  case 1:
313  return "rightgroup";
314  case 2:
315  return "xsect";
316  case 3:
317  return "tolerance";
318  case 4:
319  return "left";
320  case 5:
321  return "right";
322  case 6:
323  return "stdswitcher";
324  case 7:
325  return "affect";
326  case 8:
327  return "extractPt";
328  case 9:
329  return "keepOriginal";
330 
331  }
332  return 0;
333  }
334 
335  ParmType getNestParmType(TempIndex fieldnum) const override
336  {
337  if (fieldnum.size() < 1)
338  return PARM_UNSUPPORTED;
339  switch (fieldnum[0])
340  {
341  case 0:
342  return PARM_STRING;
343  case 1:
344  return PARM_STRING;
345  case 2:
346  return PARM_INTEGER;
347  case 3:
348  return PARM_FLOAT;
349  case 4:
350  return PARM_INTEGER;
351  case 5:
352  return PARM_INTEGER;
353  case 6:
354  return PARM_INTEGER;
355  case 7:
356  return PARM_INTEGER;
357  case 8:
358  return PARM_INTEGER;
359  case 9:
360  return PARM_INTEGER;
361 
362  }
363  return PARM_UNSUPPORTED;
364  }
365 
366  // Boiler plate to load individual types.
367  static void loadData(UT_IStream &is, int64 &v)
368  { is.bread(&v, 1); }
369  static void loadData(UT_IStream &is, bool &v)
370  { int64 iv; is.bread(&iv, 1); v = iv; }
371  static void loadData(UT_IStream &is, fpreal64 &v)
372  { is.bread<fpreal64>(&v, 1); }
373  static void loadData(UT_IStream &is, UT_Vector2D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector3D &v)
376  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
377  is.bread<fpreal64>(&v.z(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector4D &v)
379  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
380  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix2D &v)
382  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix3D &v)
384  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Matrix4D &v)
386  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
387  static void loadData(UT_IStream &is, UT_Vector2I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
389  static void loadData(UT_IStream &is, UT_Vector3I &v)
390  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
391  is.bread<int64>(&v.z(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector4I &v)
393  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
394  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
396  { is.bread(v); }
398  { UT_StringHolder rampdata;
399  loadData(is, rampdata);
400  if (rampdata.isstring())
401  {
402  v.reset(new UT_Ramp());
403  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
404  v->load(istr);
405  }
406  else v.reset();
407  }
410  loadData(is, data);
411  if (data.isstring())
412  {
413  // Find the data type.
414  const char *colon = UT_StringWrap(data).findChar(':');
415  if (colon)
416  {
417  int typelen = colon - data.buffer();
419  type.strncpy(data.buffer(), typelen);
420  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
421 
422  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
423  }
424  }
425  else v.reset();
426  }
427 
428  static void saveData(std::ostream &os, int64 v)
429  { UTwrite(os, &v); }
430  static void saveData(std::ostream &os, bool v)
431  { int64 iv = v; UTwrite(os, &iv); }
432  static void saveData(std::ostream &os, fpreal64 v)
433  { UTwrite<fpreal64>(os, &v); }
434  static void saveData(std::ostream &os, UT_Vector2D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
436  static void saveData(std::ostream &os, UT_Vector3D v)
437  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
438  UTwrite<fpreal64>(os, &v.z()); }
439  static void saveData(std::ostream &os, UT_Vector4D v)
440  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
441  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
442  static void saveData(std::ostream &os, UT_Matrix2D v)
444  static void saveData(std::ostream &os, UT_Matrix3D v)
446  static void saveData(std::ostream &os, UT_Matrix4D v)
448  static void saveData(std::ostream &os, UT_StringHolder s)
449  { UT_StringWrap(s).saveBinary(os); }
450  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
452  UT_OStringStream ostr;
453  if (s) s->save(ostr);
454  result = ostr.str();
455  saveData(os, result);
456  }
457  static void saveData(std::ostream &os, PRM_DataItemHandle s)
459  UT_OStringStream ostr;
460  if (s)
461  {
462  ostr << s->getDataTypeToken();
463  ostr << ":";
464  s->saveBinary(ostr);
465  }
466  result = ostr.str();
467  saveData(os, result);
468  }
469 
470 
471  void save(std::ostream &os) const
472  {
473  int32 v = version();
474  UTwrite(os, &v);
475  saveData(os, myLeftgroup);
476  saveData(os, myRightgroup);
477  saveData(os, myXsect);
478  saveData(os, myTolerance);
479  saveData(os, myLeft);
480  saveData(os, myRight);
481  saveData(os, myStdswitcher);
482  saveData(os, myAffect);
483  saveData(os, myExtractpt);
484  saveData(os, myKeeporiginal);
485 
486  }
487 
488  bool load(UT_IStream &is)
489  {
490  int32 v;
491  is.bread(&v, 1);
492  if (version() != v)
493  {
494  // Fail incompatible versions
495  return false;
496  }
497  loadData(is, myLeftgroup);
498  loadData(is, myRightgroup);
499  loadData(is, myXsect);
500  loadData(is, myTolerance);
501  loadData(is, myLeft);
502  loadData(is, myRight);
503  loadData(is, myStdswitcher);
504  loadData(is, myAffect);
505  loadData(is, myExtractpt);
506  loadData(is, myKeeporiginal);
507 
508  return true;
509  }
510 
511  const UT_StringHolder & getLeftgroup() const { return myLeftgroup; }
512  void setLeftgroup(const UT_StringHolder & val) { myLeftgroup = val; }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getLeftgroup();
518  OP_Utils::evalOpParm(result, thissop, "leftgroup", cookparms.getCookTime(), 0);
519  return result;
520  }
521  const UT_StringHolder & getRightgroup() const { return myRightgroup; }
522  void setRightgroup(const UT_StringHolder & val) { myRightgroup = val; }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getRightgroup();
528  OP_Utils::evalOpParm(result, thissop, "rightgroup", cookparms.getCookTime(), 0);
529  return result;
530  }
531  bool getXsect() const { return myXsect; }
532  void setXsect(bool val) { myXsect = val; }
533  bool opXsect(const SOP_NodeVerb::CookParms &cookparms) const
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getXsect();
537  bool result;
538  OP_Utils::evalOpParm(result, thissop, "xsect", cookparms.getCookTime(), 0);
539  return result;
540  }
541  fpreal64 getTolerance() const { return myTolerance; }
542  void setTolerance(fpreal64 val) { myTolerance = val; }
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getTolerance();
548  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
549  return result;
550  }
551  Left getLeft() const { return Left(myLeft); }
552  void setLeft(Left val) { myLeft = int64(val); }
553  Left opLeft(const SOP_NodeVerb::CookParms &cookparms) const
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getLeft();
557  int64 result;
558  OP_Utils::evalOpParm(result, thissop, "left", cookparms.getCookTime(), 0);
559  return Left(result);
560  }
561  Right getRight() const { return Right(myRight); }
562  void setRight(Right val) { myRight = int64(val); }
563  Right opRight(const SOP_NodeVerb::CookParms &cookparms) const
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getRight();
567  int64 result;
568  OP_Utils::evalOpParm(result, thissop, "right", cookparms.getCookTime(), 0);
569  return Right(result);
570  }
571  int64 getStdswitcher() const { return myStdswitcher; }
572  void setStdswitcher(int64 val) { myStdswitcher = val; }
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getStdswitcher();
577  int64 result;
578  OP_Utils::evalOpParm(result, thissop, "stdswitcher", cookparms.getCookTime(), 0);
579  return result;
580  }
581  Affect getAffect() const { return Affect(myAffect); }
582  void setAffect(Affect val) { myAffect = int64(val); }
583  Affect opAffect(const SOP_NodeVerb::CookParms &cookparms) const
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getAffect();
587  int64 result;
588  OP_Utils::evalOpParm(result, thissop, "affect", cookparms.getCookTime(), 0);
589  return Affect(result);
590  }
591  bool getExtractpt() const { return myExtractpt; }
592  void setExtractpt(bool val) { myExtractpt = val; }
593  bool opExtractpt(const SOP_NodeVerb::CookParms &cookparms) const
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getExtractpt();
597  bool result;
598  OP_Utils::evalOpParm(result, thissop, "extractPt", cookparms.getCookTime(), 0);
599  return result;
600  }
601  bool getKeeporiginal() const { return myKeeporiginal; }
602  void setKeeporiginal(bool val) { myKeeporiginal = val; }
603  bool opKeeporiginal(const SOP_NodeVerb::CookParms &cookparms) const
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return getKeeporiginal();
607  bool result;
608  OP_Utils::evalOpParm(result, thissop, "keepOriginal", cookparms.getCookTime(), 0);
609  return result;
610  }
611 
612 private:
613  UT_StringHolder myLeftgroup;
614  UT_StringHolder myRightgroup;
615  bool myXsect;
616  fpreal64 myTolerance;
617  int64 myLeft;
618  int64 myRight;
619  int64 myStdswitcher;
620  int64 myAffect;
621  bool myExtractpt;
622  bool myKeeporiginal;
623 
624 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
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)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Left opLeft(const SOP_NodeVerb::CookParms &cookparms) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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