HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Revolve.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_RevolveEnums
24 {
25  enum class Surftype
26  {
27  ROWS = 0,
28  COLS,
29  ROWCOL,
30  TRIANGLES,
31  QUADS,
34  };
35  enum class Type
36  {
37  CLOSED = 0,
38  OPENARC,
39  CLOSEDARC
40  };
41 }
42 
43 
45 {
46 public:
47  static int version() { return 1; }
48 
50  {
51  myGroup = ""_UTsh;
52  mySurftype = 4;
53  myOrigin = UT_Vector3D(0,0,0);
54  myDir = UT_Vector3D(0,1,0);
55  myPolys = true;
56  myImperfect = true;
57  myType = 0;
58  myAngle = UT_Vector2D(0,360);
59  myDivs = 10;
60  myOrder = 4;
61  myCap = false;
62 
63  }
64 
65  explicit SOP_RevolveParms(const SOP_RevolveParms &) = default;
66  SOP_RevolveParms &operator=(const SOP_RevolveParms &) = default;
67  SOP_RevolveParms(SOP_RevolveParms &&) noexcept = default;
68  SOP_RevolveParms &operator=(SOP_RevolveParms &&) noexcept = default;
69 
70  ~SOP_RevolveParms() override {}
71 
72  bool operator==(const SOP_RevolveParms &src) const
73  {
74  if (myGroup != src.myGroup) return false;
75  if (mySurftype != src.mySurftype) return false;
76  if (myOrigin != src.myOrigin) return false;
77  if (myDir != src.myDir) return false;
78  if (myPolys != src.myPolys) return false;
79  if (myImperfect != src.myImperfect) return false;
80  if (myType != src.myType) return false;
81  if (myAngle != src.myAngle) return false;
82  if (myDivs != src.myDivs) return false;
83  if (myOrder != src.myOrder) return false;
84  if (myCap != src.myCap) return false;
85 
86  return true;
87  }
88  bool operator!=(const SOP_RevolveParms &src) const
89  {
90  return !operator==(src);
91  }
94 
95 
96 
97  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
98  {
99  myGroup = ""_UTsh;
100  if (true)
101  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
102  mySurftype = 4;
103  if (true)
104  graph->evalOpParm(mySurftype, nodeidx, "surftype", time, 0);
105  myOrigin = UT_Vector3D(0,0,0);
106  if (true)
107  graph->evalOpParm(myOrigin, nodeidx, "origin", time, 0);
108  myDir = UT_Vector3D(0,1,0);
109  if (true)
110  graph->evalOpParm(myDir, nodeidx, "dir", time, 0);
111  myPolys = true;
112  if (true)
113  graph->evalOpParm(myPolys, nodeidx, "polys", time, 0);
114  myImperfect = true;
115  if (true)
116  graph->evalOpParm(myImperfect, nodeidx, "imperfect", time, 0);
117  myType = 0;
118  if (true)
119  graph->evalOpParm(myType, nodeidx, "type", time, 0);
120  myAngle = UT_Vector2D(0,360);
121  if (true)
122  graph->evalOpParm(myAngle, nodeidx, "angle", time, 0);
123  myDivs = 10;
124  if (true)
125  graph->evalOpParm(myDivs, nodeidx, "divs", time, 0);
126  myOrder = 4;
127  if (true)
128  graph->evalOpParm(myOrder, nodeidx, "order", time, 0);
129  myCap = false;
130  if (true)
131  graph->evalOpParm(myCap, nodeidx, "cap", 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_RevolveParms *)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, myGroup);
160  break;
161  case 1:
162  coerceValue(value, mySurftype);
163  break;
164  case 2:
165  coerceValue(value, myOrigin);
166  break;
167  case 3:
168  coerceValue(value, myDir);
169  break;
170  case 4:
171  coerceValue(value, myPolys);
172  break;
173  case 5:
174  coerceValue(value, myImperfect);
175  break;
176  case 6:
177  coerceValue(value, myType);
178  break;
179  case 7:
180  coerceValue(value, myAngle);
181  break;
182  case 8:
183  coerceValue(value, myDivs);
184  break;
185  case 9:
186  coerceValue(value, myOrder);
187  break;
188  case 10:
189  coerceValue(value, myCap);
190  break;
191 
192  }
193  }
194 
195  bool isParmColorRamp(exint idx) const override
196  {
197  switch (idx)
198  {
199 
200  }
201  return false;
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(myGroup, ( ( value ) ));
240  break;
241  case 1:
242  coerceValue(mySurftype, clampMinValue(0, clampMaxValue(6, value ) ));
243  break;
244  case 2:
245  coerceValue(myOrigin, ( ( value ) ));
246  break;
247  case 3:
248  coerceValue(myDir, ( ( value ) ));
249  break;
250  case 4:
251  coerceValue(myPolys, ( ( value ) ));
252  break;
253  case 5:
254  coerceValue(myImperfect, ( ( value ) ));
255  break;
256  case 6:
257  coerceValue(myType, clampMinValue(0, clampMaxValue(2, value ) ));
258  break;
259  case 7:
260  coerceValue(myAngle, ( ( value ) ));
261  break;
262  case 8:
263  coerceValue(myDivs, clampMinValue(1, ( value ) ));
264  break;
265  case 9:
266  coerceValue(myOrder, clampMinValue(2, clampMaxValue(11, value ) ));
267  break;
268  case 10:
269  coerceValue(myCap, ( ( value ) ));
270  break;
271 
272  }
273  }
274 
275  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
296  { doSetParmValue(idx, instance, value); }
297 
298  exint getNestNumParms(TempIndex idx) const override
299  {
300  if (idx.size() == 0)
301  return 11;
302  switch (idx[0])
303  {
304 
305  }
306  // Invalid
307  return 0;
308  }
309 
310  const char *getNestParmName(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return 0;
314  switch (fieldnum[0])
315  {
316  case 0:
317  return "group";
318  case 1:
319  return "surftype";
320  case 2:
321  return "origin";
322  case 3:
323  return "dir";
324  case 4:
325  return "polys";
326  case 5:
327  return "imperfect";
328  case 6:
329  return "type";
330  case 7:
331  return "angle";
332  case 8:
333  return "divs";
334  case 9:
335  return "order";
336  case 10:
337  return "cap";
338 
339  }
340  return 0;
341  }
342 
343  ParmType getNestParmType(TempIndex fieldnum) const override
344  {
345  if (fieldnum.size() < 1)
346  return PARM_UNSUPPORTED;
347  switch (fieldnum[0])
348  {
349  case 0:
350  return PARM_STRING;
351  case 1:
352  return PARM_INTEGER;
353  case 2:
354  return PARM_VECTOR3;
355  case 3:
356  return PARM_VECTOR3;
357  case 4:
358  return PARM_INTEGER;
359  case 5:
360  return PARM_INTEGER;
361  case 6:
362  return PARM_INTEGER;
363  case 7:
364  return PARM_VECTOR2;
365  case 8:
366  return PARM_INTEGER;
367  case 9:
368  return PARM_INTEGER;
369  case 10:
370  return PARM_INTEGER;
371 
372  }
373  return PARM_UNSUPPORTED;
374  }
375 
376  // Boiler plate to load individual types.
377  static void loadData(UT_IStream &is, int64 &v)
378  { is.bread(&v, 1); }
379  static void loadData(UT_IStream &is, bool &v)
380  { int64 iv; is.bread(&iv, 1); v = iv; }
381  static void loadData(UT_IStream &is, fpreal64 &v)
382  { is.bread<fpreal64>(&v, 1); }
383  static void loadData(UT_IStream &is, UT_Vector2D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
385  static void loadData(UT_IStream &is, UT_Vector3D &v)
386  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
387  is.bread<fpreal64>(&v.z(), 1); }
388  static void loadData(UT_IStream &is, UT_Vector4D &v)
389  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
390  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix2D &v)
392  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Matrix3D &v)
394  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
395  static void loadData(UT_IStream &is, UT_Matrix4D &v)
396  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
397  static void loadData(UT_IStream &is, UT_Vector2I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
399  static void loadData(UT_IStream &is, UT_Vector3I &v)
400  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
401  is.bread<int64>(&v.z(), 1); }
402  static void loadData(UT_IStream &is, UT_Vector4I &v)
403  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
404  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
406  { is.bread(v); }
408  { UT_StringHolder rampdata;
409  loadData(is, rampdata);
410  if (rampdata.isstring())
411  {
412  v.reset(new UT_Ramp());
413  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
414  v->load(istr);
415  }
416  else v.reset();
417  }
420  loadData(is, data);
421  if (data.isstring())
422  {
423  // Find the data type.
424  const char *colon = UT_StringWrap(data).findChar(':');
425  if (colon)
426  {
427  int typelen = colon - data.buffer();
429  type.strncpy(data.buffer(), typelen);
430  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
431 
432  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
433  }
434  }
435  else v.reset();
436  }
437 
438  static void saveData(std::ostream &os, int64 v)
439  { UTwrite(os, &v); }
440  static void saveData(std::ostream &os, bool v)
441  { int64 iv = v; UTwrite(os, &iv); }
442  static void saveData(std::ostream &os, fpreal64 v)
443  { UTwrite<fpreal64>(os, &v); }
444  static void saveData(std::ostream &os, UT_Vector2D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
446  static void saveData(std::ostream &os, UT_Vector3D v)
447  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
448  UTwrite<fpreal64>(os, &v.z()); }
449  static void saveData(std::ostream &os, UT_Vector4D v)
450  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
451  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
452  static void saveData(std::ostream &os, UT_Matrix2D v)
454  static void saveData(std::ostream &os, UT_Matrix3D v)
456  static void saveData(std::ostream &os, UT_Matrix4D v)
458  static void saveData(std::ostream &os, UT_StringHolder s)
459  { UT_StringWrap(s).saveBinary(os); }
460  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
462  UT_OStringStream ostr;
463  if (s) s->save(ostr);
464  result = ostr.str();
465  saveData(os, result);
466  }
467  static void saveData(std::ostream &os, PRM_DataItemHandle s)
469  UT_OStringStream ostr;
470  if (s)
471  {
472  ostr << s->getDataTypeToken();
473  ostr << ":";
474  s->saveBinary(ostr);
475  }
476  result = ostr.str();
477  saveData(os, result);
478  }
479 
480 
481  void save(std::ostream &os) const
482  {
483  int32 v = version();
484  UTwrite(os, &v);
485  saveData(os, myGroup);
486  saveData(os, mySurftype);
487  saveData(os, myOrigin);
488  saveData(os, myDir);
489  saveData(os, myPolys);
490  saveData(os, myImperfect);
491  saveData(os, myType);
492  saveData(os, myAngle);
493  saveData(os, myDivs);
494  saveData(os, myOrder);
495  saveData(os, myCap);
496 
497  }
498 
499  bool load(UT_IStream &is)
500  {
501  int32 v;
502  is.bread(&v, 1);
503  if (version() != v)
504  {
505  // Fail incompatible versions
506  return false;
507  }
508  loadData(is, myGroup);
509  loadData(is, mySurftype);
510  loadData(is, myOrigin);
511  loadData(is, myDir);
512  loadData(is, myPolys);
513  loadData(is, myImperfect);
514  loadData(is, myType);
515  loadData(is, myAngle);
516  loadData(is, myDivs);
517  loadData(is, myOrder);
518  loadData(is, myCap);
519 
520  return true;
521  }
522 
523  const UT_StringHolder & getGroup() const { return myGroup; }
524  void setGroup(const UT_StringHolder & val) { myGroup = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getGroup();
530  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
531  return result;
532  }
533  Surftype getSurftype() const { return Surftype(mySurftype); }
534  void setSurftype(Surftype val) { mySurftype = int64(val); }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getSurftype();
539  int64 result;
540  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
541  return Surftype(result);
542  }
543  UT_Vector3D getOrigin() const { return myOrigin; }
544  void setOrigin(UT_Vector3D val) { myOrigin = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getOrigin();
550  OP_Utils::evalOpParm(result, thissop, "origin", cookparms.getCookTime(), 0);
551  return result;
552  }
553  UT_Vector3D getDir() const { return myDir; }
554  void setDir(UT_Vector3D val) { myDir = val; }
555  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getDir();
560  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
561  return result;
562  }
563  bool getPolys() const { return myPolys; }
564  void setPolys(bool val) { myPolys = val; }
565  bool opPolys(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getPolys();
569  bool result;
570  OP_Utils::evalOpParm(result, thissop, "polys", cookparms.getCookTime(), 0);
571  return result;
572  }
573  bool getImperfect() const { return myImperfect; }
574  void setImperfect(bool val) { myImperfect = val; }
575  bool opImperfect(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getImperfect();
579  bool result;
580  OP_Utils::evalOpParm(result, thissop, "imperfect", cookparms.getCookTime(), 0);
581  return result;
582  }
583  Type getType() const { return Type(myType); }
584  void setType(Type val) { myType = int64(val); }
585  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getType();
589  int64 result;
590  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
591  return Type(result);
592  }
593  UT_Vector2D getAngle() const { return myAngle; }
594  void setAngle(UT_Vector2D val) { myAngle = val; }
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getAngle();
600  OP_Utils::evalOpParm(result, thissop, "angle", cookparms.getCookTime(), 0);
601  return result;
602  }
603  int64 getDivs() const { return myDivs; }
604  void setDivs(int64 val) { myDivs = val; }
605  int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getDivs();
609  int64 result;
610  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
611  return result;
612  }
613  int64 getOrder() const { return myOrder; }
614  void setOrder(int64 val) { myOrder = val; }
615  int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getOrder();
619  int64 result;
620  OP_Utils::evalOpParm(result, thissop, "order", cookparms.getCookTime(), 0);
621  return result;
622  }
623  bool getCap() const { return myCap; }
624  void setCap(bool val) { myCap = val; }
625  bool opCap(const SOP_NodeVerb::CookParms &cookparms) const
626  {
627  SOP_Node *thissop = cookparms.getNode();
628  if (!thissop) return getCap();
629  bool result;
630  OP_Utils::evalOpParm(result, thissop, "cap", cookparms.getCookTime(), 0);
631  return result;
632  }
633 
634 private:
635  UT_StringHolder myGroup;
636  int64 mySurftype;
637  UT_Vector3D myOrigin;
638  UT_Vector3D myDir;
639  bool myPolys;
640  bool myImperfect;
641  int64 myType;
642  UT_Vector2D myAngle;
643  int64 myDivs;
644  int64 myOrder;
645  bool myCap;
646 
647 };
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
bool operator!=(const SOP_RevolveParms &src) const
bool load(UT_IStream &is)
UT_Vector3D getOrigin() const
bool opPolys(const SOP_NodeVerb::CookParms &cookparms) const
int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, fpreal64 &v)
void setAngle(UT_Vector2D val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
int myOrder
Definition: GT_CurveEval.h:263
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
bool opCap(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getTime() const
Definition: OP_Context.h:62
UT_Vector2D opAngle(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
UT_Vector2T< fpreal64 > UT_Vector2D
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) 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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GLdouble s
Definition: glad.h:3009
bool operator==(const SOP_RevolveParms &src) const
An output stream object that owns its own string buffer storage.
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
**But if you need a result
Definition: thread.h:613
void setDir(UT_Vector3D val)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
UT_Vector3D opOrigin(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
Type getType() const
bool getImperfect() const
void setDivs(int64 val)
static void loadData(UT_IStream &is, bool &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
exint length() const
SYS_FORCE_INLINE const char * buffer() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
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
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static int version()
static void loadData(UT_IStream &is, UT_Vector3I &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setOrder(int64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setPolys(bool val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Matrix4D v)
Surftype opSurftype(const SOP_NodeVerb::CookParms &cookparms) const
int64 getDivs() const
long long int64
Definition: SYS_Types.h:116
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
UT_Vector3T< fpreal64 > UT_Vector3D
UT_Vector3D getDir() const
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
exint getNestNumParms(TempIndex idx) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
int64 getOrder() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool getPolys() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setOrigin(UT_Vector3D val)
fpreal64 fpreal
Definition: SYS_Types.h:277
static void loadData(UT_IStream &is, UT_Vector3D &v)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, bool v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
void setSurftype(Surftype val)
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setType(Type val)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool getCap() const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
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
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
Definition: core.h:1131
void setGroup(const UT_StringHolder &val)
Surftype getSurftype() const
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
bool opImperfect(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setImperfect(bool val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
UT_Vector2D getAngle() const
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
type
Definition: core.h:1059
void save(std::ostream &os) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
const UT_StringHolder & getGroup() const
void setCap(bool val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
static void saveData(std::ostream &os, UT_Matrix2D v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663