HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Curve.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 <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 namespace SOP_CurveEnums
24 {
25  enum class Type
26  {
27  POLY = 0,
28  NURBS,
29  BEZIER,
30  POINTS
31  };
32  enum class Method
33  {
34  CV = 0,
35  BREAKPOINTS,
36  FREEHAND
37  };
38  enum class Param
39  {
40  UNIFORM = 0,
41  CHRDLEN,
42  CENTRIP
43  };
44 }
45 
46 
48 {
49 public:
50  static int version() { return 1; }
51 
53  {
54  myType = 0;
55  myMethod = 0;
56  myCoords = ""_sh;
57  myClose = false;
58  myReverse = false;
59  myOrder = 4;
60  myParam = 0;
61  myTolerance = 0.01;
62  mySmooth = 0;
63  myCsharp = false;
64  myKeepgeo = false;
65  myNormalize = false;
66 
67  }
68 
69  explicit SOP_CurveParms(const SOP_CurveParms &) = default;
70 
71  ~SOP_CurveParms() override {}
72 
73  bool operator==(const SOP_CurveParms &src) const
74  {
75  if (myType != src.myType) return false;
76  if (myMethod != src.myMethod) return false;
77  if (myCoords != src.myCoords) return false;
78  if (myClose != src.myClose) return false;
79  if (myReverse != src.myReverse) return false;
80  if (myOrder != src.myOrder) return false;
81  if (myParam != src.myParam) return false;
82  if (myTolerance != src.myTolerance) return false;
83  if (mySmooth != src.mySmooth) return false;
84  if (myCsharp != src.myCsharp) return false;
85  if (myKeepgeo != src.myKeepgeo) return false;
86  if (myNormalize != src.myNormalize) return false;
87 
88  return true;
89  }
90  bool operator!=(const SOP_CurveParms &src) const
91  {
92  return !operator==(src);
93  }
97 
98 
99 
100  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
101  {
102  myType = 0;
103  if (true)
104  graph->evalOpParm(myType, nodeidx, "type", time, 0);
105  myMethod = 0;
106  if (true)
107  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
108  myCoords = ""_sh;
109  if (true)
110  graph->evalOpParm(myCoords, nodeidx, "coords", time, 0);
111  myClose = false;
112  if (true && ( (!(((int64(getType())==3)))) ) )
113  graph->evalOpParm(myClose, nodeidx, "close", time, 0);
114  myReverse = false;
115  if (true)
116  graph->evalOpParm(myReverse, nodeidx, "reverse", time, 0);
117  myOrder = 4;
118  if (true && ( (!(((int64(getType())!=1)&&(int64(getType())!=2)))) ) )
119  graph->evalOpParm(myOrder, nodeidx, "order", time, 0);
120  myParam = 0;
121  if (true && ( (!(((int64(getType())!=1)&&(int64(getType())!=2))||((int64(getMethod())!=1)))) ) )
122  graph->evalOpParm(myParam, nodeidx, "param", time, 0);
123  myTolerance = 0.01;
124  if (true && ( (!(((int64(getType())!=1)&&(int64(getType())!=2))||((int64(getMethod())!=2)))) ) )
125  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
126  mySmooth = 0;
127  if (true && ( (!(((int64(getType())!=1)&&(int64(getType())!=2))||((int64(getMethod())!=2)))) ) )
128  graph->evalOpParm(mySmooth, nodeidx, "smooth", time, 0);
129  myCsharp = false;
130  if (true && ( (!(((int64(getType())!=1)&&(int64(getType())!=2))||((int64(getMethod())!=2)))) ) )
131  graph->evalOpParm(myCsharp, nodeidx, "csharp", time, 0);
132  myKeepgeo = false;
133  if (true)
134  graph->evalOpParm(myKeepgeo, nodeidx, "keepgeo", time, 0);
135  myNormalize = false;
136  if (true && ( (!(((int64(getType())!=1)&&(int64(getType())!=2))||((int64(getMethod())!=1))||((int64(getParam())!=0)))) ) )
137  graph->evalOpParm(myNormalize, nodeidx, "normalize", time, 0);
138 
139  }
140 
141 
142  void loadFromOpSubclass(const LoadParms &loadparms) override
143  {
144  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
145  }
146 
147 
148  void copyFrom(const SOP_NodeParms *src) override
149  {
150  *this = *((const SOP_CurveParms *)src);
151  }
152 
153  template <typename T>
154  void
155  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
156  {
157  if (idx.size() < 1)
158  return;
159  UT_ASSERT(idx.size() == instance.size()+1);
160  if (idx.size() != instance.size()+1)
161  return;
162  switch (idx[0])
163  {
164  case 0:
165  coerceValue(value, myType);
166  break;
167  case 1:
168  coerceValue(value, myMethod);
169  break;
170  case 2:
171  coerceValue(value, myCoords);
172  break;
173  case 3:
174  coerceValue(value, myClose);
175  break;
176  case 4:
177  coerceValue(value, myReverse);
178  break;
179  case 5:
180  coerceValue(value, myOrder);
181  break;
182  case 6:
183  coerceValue(value, myParam);
184  break;
185  case 7:
186  coerceValue(value, myTolerance);
187  break;
188  case 8:
189  coerceValue(value, mySmooth);
190  break;
191  case 9:
192  coerceValue(value, myCsharp);
193  break;
194  case 10:
195  coerceValue(value, myKeepgeo);
196  break;
197  case 11:
198  coerceValue(value, myNormalize);
199  break;
200 
201  }
202  }
203 
204  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
225  { doGetParmValue(idx, instance, value); }
226 
227  template <typename T>
228  void
229  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
230  {
231  if (idx.size() < 1)
232  return;
233  UT_ASSERT(idx.size() == instance.size()+1);
234  if (idx.size() != instance.size()+1)
235  return;
236  switch (idx[0])
237  {
238  case 0:
239  coerceValue(myType, value);
240  break;
241  case 1:
242  coerceValue(myMethod, value);
243  break;
244  case 2:
245  coerceValue(myCoords, value);
246  break;
247  case 3:
248  coerceValue(myClose, value);
249  break;
250  case 4:
251  coerceValue(myReverse, value);
252  break;
253  case 5:
254  coerceValue(myOrder, value);
255  break;
256  case 6:
257  coerceValue(myParam, value);
258  break;
259  case 7:
260  coerceValue(myTolerance, value);
261  break;
262  case 8:
263  coerceValue(mySmooth, value);
264  break;
265  case 9:
266  coerceValue(myCsharp, value);
267  break;
268  case 10:
269  coerceValue(myKeepgeo, value);
270  break;
271  case 11:
272  coerceValue(myNormalize, value);
273  break;
274 
275  }
276  }
277 
278  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
299  { doSetParmValue(idx, instance, value); }
300 
301  exint getNestNumParms(TempIndex idx) const override
302  {
303  if (idx.size() == 0)
304  return 12;
305  switch (idx[0])
306  {
307 
308  }
309  // Invalid
310  return 0;
311  }
312 
313  const char *getNestParmName(TempIndex fieldnum) const override
314  {
315  if (fieldnum.size() < 1)
316  return 0;
317  switch (fieldnum[0])
318  {
319  case 0:
320  return "type";
321  case 1:
322  return "method";
323  case 2:
324  return "coords";
325  case 3:
326  return "close";
327  case 4:
328  return "reverse";
329  case 5:
330  return "order";
331  case 6:
332  return "param";
333  case 7:
334  return "tolerance";
335  case 8:
336  return "smooth";
337  case 9:
338  return "csharp";
339  case 10:
340  return "keepgeo";
341  case 11:
342  return "normalize";
343 
344  }
345  return 0;
346  }
347 
348  ParmType getNestParmType(TempIndex fieldnum) const override
349  {
350  if (fieldnum.size() < 1)
351  return PARM_UNSUPPORTED;
352  switch (fieldnum[0])
353  {
354  case 0:
355  return PARM_INTEGER;
356  case 1:
357  return PARM_INTEGER;
358  case 2:
359  return PARM_STRING;
360  case 3:
361  return PARM_INTEGER;
362  case 4:
363  return PARM_INTEGER;
364  case 5:
365  return PARM_INTEGER;
366  case 6:
367  return PARM_INTEGER;
368  case 7:
369  return PARM_FLOAT;
370  case 8:
371  return PARM_FLOAT;
372  case 9:
373  return PARM_INTEGER;
374  case 10:
375  return PARM_INTEGER;
376  case 11:
377  return PARM_INTEGER;
378 
379  }
380  return PARM_UNSUPPORTED;
381  }
382 
383  // Boiler plate to load individual types.
384  static void loadData(UT_IStream &is, int64 &v)
385  { is.bread(&v, 1); }
386  static void loadData(UT_IStream &is, bool &v)
387  { int64 iv; is.bread(&iv, 1); v = iv; }
388  static void loadData(UT_IStream &is, fpreal64 &v)
389  { is.bread<fpreal64>(&v, 1); }
390  static void loadData(UT_IStream &is, UT_Vector2D &v)
391  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector3D &v)
393  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
394  is.bread<fpreal64>(&v.z(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector4D &v)
396  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
397  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
398  static void loadData(UT_IStream &is, UT_Matrix2D &v)
399  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
400  static void loadData(UT_IStream &is, UT_Matrix3D &v)
401  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
402  static void loadData(UT_IStream &is, UT_Matrix4D &v)
403  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
404  static void loadData(UT_IStream &is, UT_Vector2I &v)
405  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
406  static void loadData(UT_IStream &is, UT_Vector3I &v)
407  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
408  is.bread<int64>(&v.z(), 1); }
409  static void loadData(UT_IStream &is, UT_Vector4I &v)
410  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
411  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
413  { is.bread(v); }
415  { UT_StringHolder rampdata;
416  loadData(is, rampdata);
417  if (rampdata.isstring())
418  {
419  v.reset(new UT_Ramp());
420  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
421  v->load(istr);
422  }
423  else v.reset();
424  }
427  loadData(is, data);
428  if (data.isstring())
429  {
430  // Find the data type.
431  const char *colon = UT_StringWrap(data).findChar(':');
432  if (colon)
433  {
434  int typelen = colon - data.buffer();
436  type.strncpy(data.buffer(), typelen);
437  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
438 
439  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
440  }
441  }
442  else v.reset();
443  }
444 
445  static void saveData(std::ostream &os, int64 v)
446  { UTwrite(os, &v); }
447  static void saveData(std::ostream &os, bool v)
448  { int64 iv = v; UTwrite(os, &iv); }
449  static void saveData(std::ostream &os, fpreal64 v)
450  { UTwrite<fpreal64>(os, &v); }
451  static void saveData(std::ostream &os, UT_Vector2D v)
452  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
453  static void saveData(std::ostream &os, UT_Vector3D v)
454  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
455  UTwrite<fpreal64>(os, &v.z()); }
456  static void saveData(std::ostream &os, UT_Vector4D v)
457  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
458  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
459  static void saveData(std::ostream &os, UT_Matrix2D v)
461  static void saveData(std::ostream &os, UT_Matrix3D v)
463  static void saveData(std::ostream &os, UT_Matrix4D v)
465  static void saveData(std::ostream &os, UT_StringHolder s)
466  { UT_StringWrap(s).saveBinary(os); }
467  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
469  UT_OStringStream ostr;
470  if (s) s->save(ostr);
471  result = ostr.str();
472  saveData(os, result);
473  }
474  static void saveData(std::ostream &os, PRM_DataItemHandle s)
476  UT_OStringStream ostr;
477  if (s)
478  {
479  ostr << s->getDataTypeToken();
480  ostr << ":";
481  s->saveBinary(ostr);
482  }
483  result = ostr.str();
484  saveData(os, result);
485  }
486 
487 
488  void save(std::ostream &os) const
489  {
490  int32 v = version();
491  UTwrite(os, &v);
492  saveData(os, myType);
493  saveData(os, myMethod);
494  saveData(os, myCoords);
495  saveData(os, myClose);
496  saveData(os, myReverse);
497  saveData(os, myOrder);
498  saveData(os, myParam);
499  saveData(os, myTolerance);
500  saveData(os, mySmooth);
501  saveData(os, myCsharp);
502  saveData(os, myKeepgeo);
503  saveData(os, myNormalize);
504 
505  }
506 
507  bool load(UT_IStream &is)
508  {
509  int32 v;
510  is.bread(&v, 1);
511  if (version() != v)
512  {
513  // Fail incompatible versions
514  return false;
515  }
516  loadData(is, myType);
517  loadData(is, myMethod);
518  loadData(is, myCoords);
519  loadData(is, myClose);
520  loadData(is, myReverse);
521  loadData(is, myOrder);
522  loadData(is, myParam);
523  loadData(is, myTolerance);
524  loadData(is, mySmooth);
525  loadData(is, myCsharp);
526  loadData(is, myKeepgeo);
527  loadData(is, myNormalize);
528 
529  return true;
530  }
531 
532  Type getType() const { return Type(myType); }
533  void setType(Type val) { myType = int64(val); }
534  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return getType();
538  int64 result;
539  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
540  return Type(result);
541  }
542  Method getMethod() const { return Method(myMethod); }
543  void setMethod(Method val) { myMethod = int64(val); }
544  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
545  {
546  SOP_Node *thissop = cookparms.getNode();
547  if (!thissop) return getMethod();
548  int64 result;
549  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
550  return Method(result);
551  }
552  const UT_StringHolder & getCoords() const { return myCoords; }
553  void setCoords(const UT_StringHolder & val) { myCoords = val; }
555  {
556  SOP_Node *thissop = cookparms.getNode();
557  if (!thissop) return getCoords();
559  OP_Utils::evalOpParm(result, thissop, "coords", cookparms.getCookTime(), 0);
560  return result;
561  }
562  bool getClose() const { return myClose; }
563  void setClose(bool val) { myClose = val; }
564  bool opClose(const SOP_NodeVerb::CookParms &cookparms) const
565  {
566  SOP_Node *thissop = cookparms.getNode();
567  if (!thissop) return getClose();
568  bool result;
569  OP_Utils::evalOpParm(result, thissop, "close", cookparms.getCookTime(), 0);
570  return result;
571  }
572  bool getReverse() const { return myReverse; }
573  void setReverse(bool val) { myReverse = val; }
574  bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
575  {
576  SOP_Node *thissop = cookparms.getNode();
577  if (!thissop) return getReverse();
578  bool result;
579  OP_Utils::evalOpParm(result, thissop, "reverse", cookparms.getCookTime(), 0);
580  return result;
581  }
582  int64 getOrder() const { return myOrder; }
583  void setOrder(int64 val) { myOrder = val; }
584  int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
585  {
586  SOP_Node *thissop = cookparms.getNode();
587  if (!thissop) return getOrder();
588  int64 result;
589  OP_Utils::evalOpParm(result, thissop, "order", cookparms.getCookTime(), 0);
590  return result;
591  }
592  Param getParam() const { return Param(myParam); }
593  void setParam(Param val) { myParam = int64(val); }
594  Param opParam(const SOP_NodeVerb::CookParms &cookparms) const
595  {
596  SOP_Node *thissop = cookparms.getNode();
597  if (!thissop) return getParam();
598  int64 result;
599  OP_Utils::evalOpParm(result, thissop, "param", cookparms.getCookTime(), 0);
600  return Param(result);
601  }
602  fpreal64 getTolerance() const { return myTolerance; }
603  void setTolerance(fpreal64 val) { myTolerance = val; }
605  {
606  SOP_Node *thissop = cookparms.getNode();
607  if (!thissop) return getTolerance();
609  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
610  return result;
611  }
612  fpreal64 getSmooth() const { return mySmooth; }
613  void setSmooth(fpreal64 val) { mySmooth = val; }
614  fpreal64 opSmooth(const SOP_NodeVerb::CookParms &cookparms) const
615  {
616  SOP_Node *thissop = cookparms.getNode();
617  if (!thissop) return getSmooth();
619  OP_Utils::evalOpParm(result, thissop, "smooth", cookparms.getCookTime(), 0);
620  return result;
621  }
622  bool getCsharp() const { return myCsharp; }
623  void setCsharp(bool val) { myCsharp = val; }
624  bool opCsharp(const SOP_NodeVerb::CookParms &cookparms) const
625  {
626  SOP_Node *thissop = cookparms.getNode();
627  if (!thissop) return getCsharp();
628  bool result;
629  OP_Utils::evalOpParm(result, thissop, "csharp", cookparms.getCookTime(), 0);
630  return result;
631  }
632  bool getKeepgeo() const { return myKeepgeo; }
633  void setKeepgeo(bool val) { myKeepgeo = val; }
634  bool opKeepgeo(const SOP_NodeVerb::CookParms &cookparms) const
635  {
636  SOP_Node *thissop = cookparms.getNode();
637  if (!thissop) return getKeepgeo();
638  bool result;
639  OP_Utils::evalOpParm(result, thissop, "keepgeo", cookparms.getCookTime(), 0);
640  return result;
641  }
642  bool getNormalize() const { return myNormalize; }
643  void setNormalize(bool val) { myNormalize = val; }
644  bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
645  {
646  SOP_Node *thissop = cookparms.getNode();
647  if (!thissop) return getNormalize();
648  bool result;
649  OP_Utils::evalOpParm(result, thissop, "normalize", cookparms.getCookTime(), 0);
650  return result;
651  }
652 
653 private:
654  int64 myType;
655  int64 myMethod;
656  UT_StringHolder myCoords;
657  bool myClose;
658  bool myReverse;
659  int64 myOrder;
660  int64 myParam;
661  fpreal64 myTolerance;
662  fpreal64 mySmooth;
663  bool myCsharp;
664  bool myKeepgeo;
665  bool myNormalize;
666 
667 };
GLdouble s
Definition: glew.h:1390
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
int64 getOrder() const
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
~SOP_CurveParms() override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setParam(Param val)
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
int myOrder
Definition: GT_CurveEval.h:263
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool getClose() const
void setType(Type val)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
bool opKeepgeo(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getTime() const
Definition: OP_Context.h:60
static void saveData(std::ostream &os, PRM_DataItemHandle s)
GLuint const GLfloat * val
Definition: glew.h:2794
static void saveData(std::ostream &os, UT_Vector2D v)
void save(std::ostream &os) const
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, int64 v)
void setSmooth(fpreal64 val)
int64 exint
Definition: SYS_Types.h:125
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const char * getNestParmName(TempIndex fieldnum) const override
bool load(UT_IStream &is)
An output stream object that owns its own string buffer storage.
void setTolerance(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const GLdouble * v
Definition: glew.h:1391
Type getType() const
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 setReverse(bool val)
void setCsharp(bool val)
void copyFrom(const SOP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Vector3D v)
void setClose(bool val)
void setKeepgeo(bool val)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
double fpreal64
Definition: SYS_Types.h:201
void setMethod(Method val)
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 getTolerance() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void loadFromOpSubclass(const LoadParms &loadparms) override
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
fpreal64 getSmooth() const
UT_StringHolder opCoords(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, bool v)
fpreal64 opTolerance(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
const GLfloat * c
Definition: glew.h:16296
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
bool operator!=(const SOP_CurveParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_Matrix4D v)
bool opNormalize(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setCoords(const UT_StringHolder &val)
static void saveData(std::ostream &os, fpreal64 v)
exint getNestNumParms(TempIndex idx) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool getCsharp() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
bool getNormalize() const
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
ParmType getNestParmType(TempIndex fieldnum) const override
int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
void setOrder(int64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
const UT_StringHolder & getCoords() const
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool opCsharp(const SOP_NodeVerb::CookParms &cookparms) const
static int version()
#define SOP_API
Definition: SOP_API.h:10
bool opClose(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator==(const SOP_CurveParms &src) const
Param getParam() const
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
static void saveData(std::ostream &os, UT_StringHolder s)
void setNormalize(bool val)
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
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_Matrix3D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
bool getReverse() const
GLsizei const GLfloat * value
Definition: glew.h:1849
Method getMethod() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
fpreal64 opSmooth(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE bool isstring() const
Param opParam(const SOP_NodeVerb::CookParms &cookparms) const
bool getKeepgeo() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override