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_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_RevolveEnums
24 {
25  enum class Surftype
26  {
27  ROWS = 0,
28  COLS,
29  ROWCOL,
30  TRIANGLES,
31  QUADS,
32  ALTTRIANGLES,
33  REVTRIANGLES
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 = ""_sh;
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 
67  ~SOP_RevolveParms() override {}
68 
69  bool operator==(const SOP_RevolveParms &src) const
70  {
71  if (myGroup != src.myGroup) return false;
72  if (mySurftype != src.mySurftype) return false;
73  if (myOrigin != src.myOrigin) return false;
74  if (myDir != src.myDir) return false;
75  if (myPolys != src.myPolys) return false;
76  if (myImperfect != src.myImperfect) return false;
77  if (myType != src.myType) return false;
78  if (myAngle != src.myAngle) return false;
79  if (myDivs != src.myDivs) return false;
80  if (myOrder != src.myOrder) return false;
81  if (myCap != src.myCap) return false;
82 
83  return true;
84  }
85  bool operator!=(const SOP_RevolveParms &src) const
86  {
87  return !operator==(src);
88  }
91 
92 
93 
94  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
95  {
96  myGroup = ""_sh;
97  if (true)
98  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
99  mySurftype = 4;
100  if (true)
101  graph->evalOpParm(mySurftype, nodeidx, "surftype", time, 0);
102  myOrigin = UT_Vector3D(0,0,0);
103  if (true)
104  graph->evalOpParm(myOrigin, nodeidx, "origin", time, 0);
105  myDir = UT_Vector3D(0,1,0);
106  if (true)
107  graph->evalOpParm(myDir, nodeidx, "dir", time, 0);
108  myPolys = true;
109  if (true)
110  graph->evalOpParm(myPolys, nodeidx, "polys", time, 0);
111  myImperfect = true;
112  if (true)
113  graph->evalOpParm(myImperfect, nodeidx, "imperfect", time, 0);
114  myType = 0;
115  if (true)
116  graph->evalOpParm(myType, nodeidx, "type", time, 0);
117  myAngle = UT_Vector2D(0,360);
118  if (true)
119  graph->evalOpParm(myAngle, nodeidx, "angle", time, 0);
120  myDivs = 10;
121  if (true)
122  graph->evalOpParm(myDivs, nodeidx, "divs", time, 0);
123  myOrder = 4;
124  if (true)
125  graph->evalOpParm(myOrder, nodeidx, "order", time, 0);
126  myCap = false;
127  if (true)
128  graph->evalOpParm(myCap, nodeidx, "cap", time, 0);
129 
130  }
131 
132 
133  void loadFromOpSubclass(const LoadParms &loadparms) override
134  {
135  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
136  }
137 
138 
139  void copyFrom(const SOP_NodeParms *src) override
140  {
141  *this = *((const SOP_RevolveParms *)src);
142  }
143 
144  template <typename T>
145  void
146  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
147  {
148  if (idx.size() < 1)
149  return;
150  UT_ASSERT(idx.size() == instance.size()+1);
151  if (idx.size() != instance.size()+1)
152  return;
153  switch (idx[0])
154  {
155  case 0:
156  coerceValue(value, myGroup);
157  break;
158  case 1:
159  coerceValue(value, mySurftype);
160  break;
161  case 2:
162  coerceValue(value, myOrigin);
163  break;
164  case 3:
165  coerceValue(value, myDir);
166  break;
167  case 4:
168  coerceValue(value, myPolys);
169  break;
170  case 5:
171  coerceValue(value, myImperfect);
172  break;
173  case 6:
174  coerceValue(value, myType);
175  break;
176  case 7:
177  coerceValue(value, myAngle);
178  break;
179  case 8:
180  coerceValue(value, myDivs);
181  break;
182  case 9:
183  coerceValue(value, myOrder);
184  break;
185  case 10:
186  coerceValue(value, myCap);
187  break;
188 
189  }
190  }
191 
192  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
213  { doGetParmValue(idx, instance, value); }
214 
215  template <typename T>
216  void
217  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
218  {
219  if (idx.size() < 1)
220  return;
221  UT_ASSERT(idx.size() == instance.size()+1);
222  if (idx.size() != instance.size()+1)
223  return;
224  switch (idx[0])
225  {
226  case 0:
227  coerceValue(myGroup, value);
228  break;
229  case 1:
230  coerceValue(mySurftype, value);
231  break;
232  case 2:
233  coerceValue(myOrigin, value);
234  break;
235  case 3:
236  coerceValue(myDir, value);
237  break;
238  case 4:
239  coerceValue(myPolys, value);
240  break;
241  case 5:
242  coerceValue(myImperfect, value);
243  break;
244  case 6:
245  coerceValue(myType, value);
246  break;
247  case 7:
248  coerceValue(myAngle, value);
249  break;
250  case 8:
251  coerceValue(myDivs, value);
252  break;
253  case 9:
254  coerceValue(myOrder, value);
255  break;
256  case 10:
257  coerceValue(myCap, value);
258  break;
259 
260  }
261  }
262 
263  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
284  { doSetParmValue(idx, instance, value); }
285 
286  exint getNestNumParms(TempIndex idx) const override
287  {
288  if (idx.size() == 0)
289  return 11;
290  switch (idx[0])
291  {
292 
293  }
294  // Invalid
295  return 0;
296  }
297 
298  const char *getNestParmName(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return 0;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return "group";
306  case 1:
307  return "surftype";
308  case 2:
309  return "origin";
310  case 3:
311  return "dir";
312  case 4:
313  return "polys";
314  case 5:
315  return "imperfect";
316  case 6:
317  return "type";
318  case 7:
319  return "angle";
320  case 8:
321  return "divs";
322  case 9:
323  return "order";
324  case 10:
325  return "cap";
326 
327  }
328  return 0;
329  }
330 
331  ParmType getNestParmType(TempIndex fieldnum) const override
332  {
333  if (fieldnum.size() < 1)
334  return PARM_UNSUPPORTED;
335  switch (fieldnum[0])
336  {
337  case 0:
338  return PARM_STRING;
339  case 1:
340  return PARM_INTEGER;
341  case 2:
342  return PARM_VECTOR3;
343  case 3:
344  return PARM_VECTOR3;
345  case 4:
346  return PARM_INTEGER;
347  case 5:
348  return PARM_INTEGER;
349  case 6:
350  return PARM_INTEGER;
351  case 7:
352  return PARM_VECTOR2;
353  case 8:
354  return PARM_INTEGER;
355  case 9:
356  return PARM_INTEGER;
357  case 10:
358  return PARM_INTEGER;
359 
360  }
361  return PARM_UNSUPPORTED;
362  }
363 
364  // Boiler plate to load individual types.
365  static void loadData(UT_IStream &is, int64 &v)
366  { is.bread(&v, 1); }
367  static void loadData(UT_IStream &is, bool &v)
368  { int64 iv; is.bread(&iv, 1); v = iv; }
369  static void loadData(UT_IStream &is, fpreal64 &v)
370  { is.bread<fpreal64>(&v, 1); }
371  static void loadData(UT_IStream &is, UT_Vector2D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix2D &v)
380  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix3D &v)
382  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix4D &v)
384  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Vector2I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector3I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector4I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
394  { is.bread(v); }
396  { UT_StringHolder rampdata;
397  loadData(is, rampdata);
398  if (rampdata.isstring())
399  {
400  v.reset(new UT_Ramp());
401  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
402  v->load(istr);
403  }
404  else v.reset();
405  }
408  loadData(is, data);
409  if (data.isstring())
410  {
411  // Find the data type.
412  const char *colon = UT_StringWrap(data).findChar(':');
413  if (colon)
414  {
415  int typelen = colon - data.buffer();
417  type.strncpy(data.buffer(), typelen);
418  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
419 
420  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
421  }
422  }
423  else v.reset();
424  }
425 
426  static void saveData(std::ostream &os, int64 v)
427  { UTwrite(os, &v); }
428  static void saveData(std::ostream &os, bool v)
429  { int64 iv = v; UTwrite(os, &iv); }
430  static void saveData(std::ostream &os, fpreal64 v)
431  { UTwrite<fpreal64>(os, &v); }
432  static void saveData(std::ostream &os, UT_Vector2D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
434  static void saveData(std::ostream &os, UT_Vector3D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); }
437  static void saveData(std::ostream &os, UT_Vector4D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
440  static void saveData(std::ostream &os, UT_Matrix2D v)
442  static void saveData(std::ostream &os, UT_Matrix3D v)
444  static void saveData(std::ostream &os, UT_Matrix4D v)
446  static void saveData(std::ostream &os, UT_StringHolder s)
447  { UT_StringWrap(s).saveBinary(os); }
448  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
450  UT_OStringStream ostr;
451  if (s) s->save(ostr);
452  result = ostr.str();
453  saveData(os, result);
454  }
455  static void saveData(std::ostream &os, PRM_DataItemHandle s)
457  UT_OStringStream ostr;
458  if (s)
459  {
460  ostr << s->getDataTypeToken();
461  ostr << ":";
462  s->saveBinary(ostr);
463  }
464  result = ostr.str();
465  saveData(os, result);
466  }
467 
468 
469  void save(std::ostream &os) const
470  {
471  int32 v = version();
472  UTwrite(os, &v);
473  saveData(os, myGroup);
474  saveData(os, mySurftype);
475  saveData(os, myOrigin);
476  saveData(os, myDir);
477  saveData(os, myPolys);
478  saveData(os, myImperfect);
479  saveData(os, myType);
480  saveData(os, myAngle);
481  saveData(os, myDivs);
482  saveData(os, myOrder);
483  saveData(os, myCap);
484 
485  }
486 
487  bool load(UT_IStream &is)
488  {
489  int32 v;
490  is.bread(&v, 1);
491  if (version() != v)
492  {
493  // Fail incompatible versions
494  return false;
495  }
496  loadData(is, myGroup);
497  loadData(is, mySurftype);
498  loadData(is, myOrigin);
499  loadData(is, myDir);
500  loadData(is, myPolys);
501  loadData(is, myImperfect);
502  loadData(is, myType);
503  loadData(is, myAngle);
504  loadData(is, myDivs);
505  loadData(is, myOrder);
506  loadData(is, myCap);
507 
508  return true;
509  }
510 
511  const UT_StringHolder & getGroup() const { return myGroup; }
512  void setGroup(const UT_StringHolder & val) { myGroup = val; }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getGroup();
518  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
519  return result;
520  }
521  Surftype getSurftype() const { return Surftype(mySurftype); }
522  void setSurftype(Surftype val) { mySurftype = int64(val); }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getSurftype();
527  int64 result;
528  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
529  return Surftype(result);
530  }
531  UT_Vector3D getOrigin() const { return myOrigin; }
532  void setOrigin(UT_Vector3D val) { myOrigin = val; }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getOrigin();
538  OP_Utils::evalOpParm(result, thissop, "origin", cookparms.getCookTime(), 0);
539  return result;
540  }
541  UT_Vector3D getDir() const { return myDir; }
542  void setDir(UT_Vector3D val) { myDir = val; }
543  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getDir();
548  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
549  return result;
550  }
551  bool getPolys() const { return myPolys; }
552  void setPolys(bool val) { myPolys = val; }
553  bool opPolys(const SOP_NodeVerb::CookParms &cookparms) const
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getPolys();
557  bool result;
558  OP_Utils::evalOpParm(result, thissop, "polys", cookparms.getCookTime(), 0);
559  return result;
560  }
561  bool getImperfect() const { return myImperfect; }
562  void setImperfect(bool val) { myImperfect = val; }
563  bool opImperfect(const SOP_NodeVerb::CookParms &cookparms) const
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getImperfect();
567  bool result;
568  OP_Utils::evalOpParm(result, thissop, "imperfect", cookparms.getCookTime(), 0);
569  return result;
570  }
571  Type getType() const { return Type(myType); }
572  void setType(Type val) { myType = int64(val); }
573  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
574  {
575  SOP_Node *thissop = cookparms.getNode();
576  if (!thissop) return getType();
577  int64 result;
578  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
579  return Type(result);
580  }
581  UT_Vector2D getAngle() const { return myAngle; }
582  void setAngle(UT_Vector2D val) { myAngle = val; }
584  {
585  SOP_Node *thissop = cookparms.getNode();
586  if (!thissop) return getAngle();
588  OP_Utils::evalOpParm(result, thissop, "angle", cookparms.getCookTime(), 0);
589  return result;
590  }
591  int64 getDivs() const { return myDivs; }
592  void setDivs(int64 val) { myDivs = val; }
593  int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
594  {
595  SOP_Node *thissop = cookparms.getNode();
596  if (!thissop) return getDivs();
597  int64 result;
598  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
599  return result;
600  }
601  int64 getOrder() const { return myOrder; }
602  void setOrder(int64 val) { myOrder = val; }
603  int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return getOrder();
607  int64 result;
608  OP_Utils::evalOpParm(result, thissop, "order", cookparms.getCookTime(), 0);
609  return result;
610  }
611  bool getCap() const { return myCap; }
612  void setCap(bool val) { myCap = val; }
613  bool opCap(const SOP_NodeVerb::CookParms &cookparms) const
614  {
615  SOP_Node *thissop = cookparms.getNode();
616  if (!thissop) return getCap();
617  bool result;
618  OP_Utils::evalOpParm(result, thissop, "cap", cookparms.getCookTime(), 0);
619  return result;
620  }
621 
622 private:
623  UT_StringHolder myGroup;
624  int64 mySurftype;
625  UT_Vector3D myOrigin;
626  UT_Vector3D myDir;
627  bool myPolys;
628  bool myImperfect;
629  int64 myType;
630  UT_Vector2D myAngle;
631  int64 myDivs;
632  int64 myOrder;
633  bool myCap;
634 
635 };
GLdouble s
Definition: glew.h:1390
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
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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
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)
GT_API const UT_StringHolder time
bool opCap(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getTime() const
Definition: OP_Context.h:60
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
GLuint const GLfloat * val
Definition: glew.h:2794
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
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)
const GLdouble * v
Definition: glew.h:1391
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setDir(UT_Vector3D val)
UT_Vector3D opOrigin(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
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)
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
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
~SOP_RevolveParms() override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static int version()
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setOrder(int64 val)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
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 SOP_NodeParms *src) override
const GLfloat * c
Definition: glew.h:16296
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
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)
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:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
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 setOrigin(UT_Vector3D val)
fpreal64 fpreal
Definition: SYS_Types.h:277
static void loadData(UT_IStream &is, UT_Vector3D &v)
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:84
void setSurftype(Surftype val)
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
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
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
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 setGroup(const UT_StringHolder &val)
Surftype getSurftype() const
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
bool opImperfect(const SOP_NodeVerb::CookParms &cookparms) const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Vector2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setImperfect(bool val)
UT_Vector2D getAngle() const
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void save(std::ostream &os) const
GLsizei const GLfloat * value
Definition: glew.h:1849
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
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)
static void saveData(std::ostream &os, UT_Matrix2D v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override