HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_Circle.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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_CircleEnums
22 {
23  enum class Type
24  {
25  PRIM = 0,
26  POLY,
27  NURBS,
28  BEZIER
29  };
30  enum class Orient
31  {
32  XY = 0,
33  YZ,
34  ZX
35  };
36  enum class Arc
37  {
38  CLOSED = 0,
39  OPENARC,
40  CLOSEDARC,
41  SLICEDARC
42  };
43 }
44 
45 
47 {
48 public:
49  static int version() { return 1; }
50 
52  {
53  myType = 0;
54  myOrient = 0;
55  myRad = UT_Vector2D(1,1);
56  myT = UT_Vector3D(0,0,0);
57  myScale = 1;
58  myOrder = 4;
59  myImperfect = false;
60  myDivs = 12;
61  myArc = 0;
62  myAngle = UT_Vector2D(0,360);
63 
64  }
65 
66  explicit SOP_CircleParms(const SOP_CircleParms &) = default;
67 
68  virtual ~SOP_CircleParms() {}
69 
70  bool operator==(const SOP_CircleParms &src) const
71  {
72  if (myType != src.myType) return false;
73  if (myOrient != src.myOrient) return false;
74  if (myRad != src.myRad) return false;
75  if (myT != src.myT) return false;
76  if (myScale != src.myScale) return false;
77  if (myOrder != src.myOrder) return false;
78  if (myImperfect != src.myImperfect) return false;
79  if (myDivs != src.myDivs) return false;
80  if (myArc != src.myArc) return false;
81  if (myAngle != src.myAngle) return false;
82 
83  return true;
84  }
88 
89 
90 
91  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
92  {
93  if (true)
94  OP_Utils::evalOpParm(myType, node, "type", time, 0);
95  else myType = 0;
96  if (true)
97  OP_Utils::evalOpParm(myOrient, node, "orient", time, 0);
98  else myOrient = 0;
99  if (true)
100  OP_Utils::evalOpParm(myRad, node, "rad", time, 0);
101  else myRad = UT_Vector2D(1,1);
102  if (true)
103  OP_Utils::evalOpParm(myT, node, "t", time, 0);
104  else myT = UT_Vector3D(0,0,0);
105  if (true)
106  OP_Utils::evalOpParm(myScale, node, "scale", time, 0);
107  else myScale = 1;
108  if (true && ( (!(((int64(getType())==0))||((int64(getType())==1)))) ) )
109  OP_Utils::evalOpParm(myOrder, node, "order", time, 0);
110  else myOrder = 4;
111  if (true && ( (!(((int64(getType())!=2)&&(int64(getType())!=3)))) ) )
112  OP_Utils::evalOpParm(myImperfect, node, "imperfect", time, 0);
113  else myImperfect = false;
114  if (true && ( (!(((int64(getType())==0))||((int64(getType())==2)&&(getImperfect()==0))||((int64(getType())==3)&&(getImperfect()==0)))) ) )
115  OP_Utils::evalOpParm(myDivs, node, "divs", time, 0);
116  else myDivs = 12;
117  if (true && ( (!(((int64(getType())==0))||((int64(getType())==2)&&(getImperfect()==0))||((int64(getType())==3)&&(getImperfect()==0)))) ) )
118  OP_Utils::evalOpParm(myArc, node, "arc", time, 0);
119  else myArc = 0;
120  if (true && ( (!(((int64(getType())==0))||((int64(getType())==2)&&(getImperfect()==0))||((int64(getType())==3)&&(getImperfect()==0)))) ) )
121  OP_Utils::evalOpParm(myAngle, node, "angle", time, 0);
122  else myAngle = UT_Vector2D(0,360);
123 
124  }
125 
126 
127  virtual void loadFromOpSubclass(const LoadParms &loadparms)
128  {
129  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
130  }
131 
132 
133  virtual void copyFrom(const SOP_NodeParms *src)
134  {
135  *this = *((const SOP_CircleParms *)src);
136  }
137 
138  template <typename T>
139  void
140  doGetParmValue(exint idx, T &value) const
141  {
142  switch (idx)
143  {
144  case 0:
145  coerceValue(value, myType);
146  break;
147  case 1:
148  coerceValue(value, myOrient);
149  break;
150  case 2:
151  coerceValue(value, myRad);
152  break;
153  case 3:
154  coerceValue(value, myT);
155  break;
156  case 4:
157  coerceValue(value, myScale);
158  break;
159  case 5:
160  coerceValue(value, myOrder);
161  break;
162  case 6:
163  coerceValue(value, myImperfect);
164  break;
165  case 7:
166  coerceValue(value, myDivs);
167  break;
168  case 8:
169  coerceValue(value, myArc);
170  break;
171  case 9:
172  coerceValue(value, myAngle);
173  break;
174 
175  }
176  }
177 
178  void getParmValue(exint idx, exint &value) const
179  { doGetParmValue(idx, value); }
180  void getParmValue(exint idx, fpreal &value) const
181  { doGetParmValue(idx, value); }
183  { doGetParmValue(idx, value); }
185  { doGetParmValue(idx, value); }
187  { doGetParmValue(idx, value); }
189  { doGetParmValue(idx, value); }
191  { doGetParmValue(idx, value); }
193  { doGetParmValue(idx, value); }
195  { doGetParmValue(idx, value); }
197  { doGetParmValue(idx, value); }
199  { doGetParmValue(idx, value); }
200 
201  template <typename T>
202  void
203  doSetParmValue(exint idx, const T &value)
204  {
205  switch (idx)
206  {
207  case 0:
208  coerceValue(myType, value);
209  break;
210  case 1:
211  coerceValue(myOrient, value);
212  break;
213  case 2:
214  coerceValue(myRad, value);
215  break;
216  case 3:
217  coerceValue(myT, value);
218  break;
219  case 4:
220  coerceValue(myScale, value);
221  break;
222  case 5:
223  coerceValue(myOrder, value);
224  break;
225  case 6:
226  coerceValue(myImperfect, value);
227  break;
228  case 7:
229  coerceValue(myDivs, value);
230  break;
231  case 8:
232  coerceValue(myArc, value);
233  break;
234  case 9:
235  coerceValue(myAngle, value);
236  break;
237 
238  }
239  }
240 
241  void setParmValue(exint idx, const exint &value)
242  { doSetParmValue(idx, value); }
243  void setParmValue(exint idx, const fpreal &value)
244  { doSetParmValue(idx, value); }
245  void setParmValue(exint idx, const UT_Vector2D &value)
246  { doSetParmValue(idx, value); }
247  void setParmValue(exint idx, const UT_Vector3D &value)
248  { doSetParmValue(idx, value); }
249  void setParmValue(exint idx, const UT_Vector4D &value)
250  { doSetParmValue(idx, value); }
251  void setParmValue(exint idx, const UT_Matrix2D &value)
252  { doSetParmValue(idx, value); }
253  void setParmValue(exint idx, const UT_Matrix3D &value)
254  { doSetParmValue(idx, value); }
255  void setParmValue(exint idx, const UT_Matrix4D &value)
256  { doSetParmValue(idx, value); }
258  { doSetParmValue(idx, value); }
260  { doSetParmValue(idx, value); }
262  { doSetParmValue(idx, value); }
263 
264  virtual exint getNumParms() const
265  {
266  return 10;
267  }
268 
269  virtual const char *getParmName(exint fieldnum) const
270  {
271  switch (fieldnum)
272  {
273  case 0:
274  return "type";
275  case 1:
276  return "orient";
277  case 2:
278  return "rad";
279  case 3:
280  return "t";
281  case 4:
282  return "scale";
283  case 5:
284  return "order";
285  case 6:
286  return "imperfect";
287  case 7:
288  return "divs";
289  case 8:
290  return "arc";
291  case 9:
292  return "angle";
293 
294  }
295  return 0;
296  }
297 
298  virtual ParmType getParmType(exint fieldnum) const
299  {
300  switch (fieldnum)
301  {
302  case 0:
303  return PARM_INTEGER;
304  case 1:
305  return PARM_INTEGER;
306  case 2:
307  return PARM_VECTOR2;
308  case 3:
309  return PARM_VECTOR3;
310  case 4:
311  return PARM_FLOAT;
312  case 5:
313  return PARM_INTEGER;
314  case 6:
315  return PARM_INTEGER;
316  case 7:
317  return PARM_INTEGER;
318  case 8:
319  return PARM_INTEGER;
320  case 9:
321  return PARM_VECTOR2;
322 
323  }
324  return PARM_UNSUPPORTED;
325  }
326 
327  // Boiler plate to load individual types.
328  static void loadData(UT_IStream &is, int64 &v)
329  { is.bread(&v, 1); }
330  static void loadData(UT_IStream &is, bool &v)
331  { int64 iv; is.bread(&iv, 1); v = iv; }
332  static void loadData(UT_IStream &is, fpreal64 &v)
333  { is.bread<fpreal64>(&v, 1); }
334  static void loadData(UT_IStream &is, UT_Vector2D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector3D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); }
339  static void loadData(UT_IStream &is, UT_Vector4D &v)
340  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
341  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix2D &v)
343  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Matrix3D &v)
345  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
346  static void loadData(UT_IStream &is, UT_Matrix4D &v)
347  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
348  static void loadData(UT_IStream &is, UT_Vector2I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector3I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector4I &v)
354  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
355  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
357  { is.bread(v); }
359  { UT_StringHolder rampdata;
360  loadData(is, rampdata);
361  if (rampdata.isstring())
362  {
363  v.reset(new UT_Ramp());
364  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
365  v->load(istr);
366  }
367  else v.reset();
368  }
371  loadData(is, data);
372  if (data.isstring())
373  {
374  // Find the data type.
375  char *colon = UT_StringWrap(data).findChar(':');
376  if (colon)
377  {
378  int typelen = colon - data.buffer();
380  type.strncpy(data.buffer(), typelen);
381  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
382 
383  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
384  }
385  }
386  else v.reset();
387  }
388 
389  static void saveData(std::ostream &os, int64 v)
390  { UTwrite(os, &v); }
391  static void saveData(std::ostream &os, bool v)
392  { int64 iv = v; UTwrite(os, &iv); }
393  static void saveData(std::ostream &os, fpreal64 v)
394  { UTwrite<fpreal64>(os, &v); }
395  static void saveData(std::ostream &os, UT_Vector2D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
397  static void saveData(std::ostream &os, UT_Vector3D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); }
400  static void saveData(std::ostream &os, UT_Vector4D v)
401  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
402  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
403  static void saveData(std::ostream &os, UT_Matrix2D v)
405  static void saveData(std::ostream &os, UT_Matrix3D v)
407  static void saveData(std::ostream &os, UT_Matrix4D v)
409  static void saveData(std::ostream &os, UT_StringHolder s)
410  { UT_StringWrap(s).saveBinary(os); }
411  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
412  { UT_StringHolder result;
413  UT_OStringStream ostr;
414  if (s) s->save(ostr);
415  result = ostr.str();
416  saveData(os, result);
417  }
418  static void saveData(std::ostream &os, PRM_DataItemHandle s)
419  { UT_StringHolder result;
420  UT_OStringStream ostr;
421  if (s)
422  {
423  ostr << s->getDataTypeToken();
424  ostr << ":";
425  s->saveBinary(ostr);
426  }
427  result = ostr.str();
428  saveData(os, result);
429  }
430 
431 
432  void save(std::ostream &os) const
433  {
434  int32 v = version();
435  UTwrite(os, &v);
436  saveData(os, myType);
437  saveData(os, myOrient);
438  saveData(os, myRad);
439  saveData(os, myT);
440  saveData(os, myScale);
441  saveData(os, myOrder);
442  saveData(os, myImperfect);
443  saveData(os, myDivs);
444  saveData(os, myArc);
445  saveData(os, myAngle);
446 
447  }
448 
449  bool load(UT_IStream &is)
450  {
451  int32 v;
452  is.bread(&v, 1);
453  if (version() != v)
454  {
455  // Fail incompatible versions
456  return false;
457  }
458  loadData(is, myType);
459  loadData(is, myOrient);
460  loadData(is, myRad);
461  loadData(is, myT);
462  loadData(is, myScale);
463  loadData(is, myOrder);
464  loadData(is, myImperfect);
465  loadData(is, myDivs);
466  loadData(is, myArc);
467  loadData(is, myAngle);
468 
469  return true;
470  }
471 
472  Type getType() const { return Type(myType); }
473  void setType(Type val) { myType = int64(val); }
474  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getType();
478  int64 result;
479  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
480  return Type(result);
481  }
482  Orient getOrient() const { return Orient(myOrient); }
483  void setOrient(Orient val) { myOrient = int64(val); }
484  Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getOrient();
488  int64 result;
489  OP_Utils::evalOpParm(result, thissop, "orient", cookparms.getCookTime(), 0);
490  return Orient(result);
491  }
492  UT_Vector2D getRad() const { return myRad; }
493  void setRad(UT_Vector2D val) { myRad = val; }
494  UT_Vector2D opRad(const SOP_NodeVerb::CookParms &cookparms) const
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getRad();
498  UT_Vector2D result;
499  OP_Utils::evalOpParm(result, thissop, "rad", cookparms.getCookTime(), 0);
500  return result;
501  }
502  UT_Vector3D getT() const { return myT; }
503  void setT(UT_Vector3D val) { myT = val; }
504  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getT();
508  UT_Vector3D result;
509  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
510  return result;
511  }
512  fpreal64 getScale() const { return myScale; }
513  void setScale(fpreal64 val) { myScale = val; }
514  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getScale();
518  fpreal64 result;
519  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
520  return result;
521  }
522  int64 getOrder() const { return myOrder; }
523  void setOrder(int64 val) { myOrder = val; }
524  int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getOrder();
528  int64 result;
529  OP_Utils::evalOpParm(result, thissop, "order", cookparms.getCookTime(), 0);
530  return result;
531  }
532  bool getImperfect() const { return myImperfect; }
533  void setImperfect(bool val) { myImperfect = val; }
534  bool opImperfect(const SOP_NodeVerb::CookParms &cookparms) const
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return getImperfect();
538  bool result;
539  OP_Utils::evalOpParm(result, thissop, "imperfect", cookparms.getCookTime(), 0);
540  return result;
541  }
542  int64 getDivs() const { return myDivs; }
543  void setDivs(int64 val) { myDivs = val; }
544  int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
545  {
546  SOP_Node *thissop = cookparms.getNode();
547  if (!thissop) return getDivs();
548  int64 result;
549  OP_Utils::evalOpParm(result, thissop, "divs", cookparms.getCookTime(), 0);
550  return result;
551  }
552  Arc getArc() const { return Arc(myArc); }
553  void setArc(Arc val) { myArc = int64(val); }
554  Arc opArc(const SOP_NodeVerb::CookParms &cookparms) const
555  {
556  SOP_Node *thissop = cookparms.getNode();
557  if (!thissop) return getArc();
558  int64 result;
559  OP_Utils::evalOpParm(result, thissop, "arc", cookparms.getCookTime(), 0);
560  return Arc(result);
561  }
562  UT_Vector2D getAngle() const { return myAngle; }
563  void setAngle(UT_Vector2D val) { myAngle = val; }
565  {
566  SOP_Node *thissop = cookparms.getNode();
567  if (!thissop) return getAngle();
568  UT_Vector2D result;
569  OP_Utils::evalOpParm(result, thissop, "angle", cookparms.getCookTime(), 0);
570  return result;
571  }
572 
573 private:
574  int64 myType;
575  int64 myOrient;
576  UT_Vector2D myRad;
577  UT_Vector3D myT;
578  fpreal64 myScale;
579  int64 myOrder;
580  bool myImperfect;
581  int64 myDivs;
582  int64 myArc;
583  UT_Vector2D myAngle;
584 
585 };
static void saveData(std::ostream &os, UT_Matrix3D v)
void setParmValue(exint idx, const UT_Vector3D &value)
UT_Vector2D opRad(const SOP_NodeVerb::CookParms &cookparms) const
Orient getOrient() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
static void loadData(UT_IStream &is, UT_Matrix4D &v)
fpreal64 getScale() const
T & z(void)
Definition: UT_Vector4.h:372
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setOrder(int64 val)
void getParmValue(exint idx, UT_Matrix4D &value) const
int myOrder
Definition: GT_CurveEval.h:263
exint bread(int32 *buffer, exint asize=1)
void setT(UT_Vector3D val)
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
UT_Vector2T< fpreal64 > UT_Vector2D
bool getImperfect() const
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
T & x(void)
Definition: UT_Vector2.h:284
Orient opOrient(const SOP_NodeVerb::CookParms &cookparms) const
virtual exint getNumParms() const
An output stream object that owns its own string buffer storage.
UT_Vector2D getRad() const
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
Arc opArc(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, UT_StringHolder s)
void setType(Type val)
void setParmValue(exint idx, const UT_Vector2D &value)
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
UT_Vector2D getAngle() const
long long int64
Definition: SYS_Types.h:106
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
virtual ParmType getParmType(exint fieldnum) const
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void doSetParmValue(exint idx, const T &value)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
UT_Vector3D getT() const
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, fpreal64 v)
int64 exint
Definition: SYS_Types.h:115
void setParmValue(exint idx, const UT_Matrix3D &value)
void setParmValue(exint idx, const exint &value)
void getParmValue(exint idx, UT_Matrix3D &value) const
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:191
void setParmValue(exint idx, const fpreal &value)
void setParmValue(exint idx, const UT_Vector4D &value)
void setAngle(UT_Vector2D val)
void getParmValue(exint idx, fpreal &value) const
static void saveData(std::ostream &os, bool v)
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
Type getType() const
void getParmValue(exint idx, exint &value) const
static void loadData(UT_IStream &is, int64 &v)
bool opImperfect(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Vector4D &value) const
virtual ~SOP_CircleParms()
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
UT_Vector3T< fpreal64 > UT_Vector3D
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLboolean * data
Definition: glcorearb.h:130
void save(std::ostream &os) const
void setRad(UT_Vector2D val)
UT_Vector2D opAngle(const SOP_NodeVerb::CookParms &cookparms) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
int int32
Definition: SYS_Types.h:34
T & y(void)
Definition: UT_Vector4.h:370
int64 getDivs() const
static void loadData(UT_IStream &is, fpreal64 &v)
int64 opOrder(const SOP_NodeVerb::CookParms &cookparms) const
virtual void copyFrom(const SOP_NodeParms *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:269
void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setParmValue(exint idx, const UT_Matrix2D &value)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void doGetParmValue(exint idx, T &value) const
static void loadData(UT_IStream &is, bool &v)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getParmValue(exint idx, UT_StringHolder &value) const
void setParmValue(exint idx, const UT_Matrix4D &value)
GLuint GLfloat * val
Definition: glcorearb.h:1607
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3x3's rows.
Definition: Mat.h:628
bool load(UT_IStream &is)
#define SOP_API
Definition: SOP_API.h:10
void setImperfect(bool val)
const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setParmValue(exint idx, const UT_StringHolder &value)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:499
T & x(void)
Definition: UT_Vector4.h:368
int64 opDivs(const SOP_NodeVerb::CookParms &cookparms) const
Arc getArc() const
int64 getOrder() const
static int version()
T & y(void)
Definition: UT_Vector2.h:286
void setScale(fpreal64 val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLboolean r
Definition: glcorearb.h:1221
void getParmValue(exint idx, UT_Matrix2D &value) const
bool operator==(const SOP_CircleParms &src) const
T & w(void)
Definition: UT_Vector4.h:374
void setArc(Arc val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setOrient(Orient val)
void getParmValue(exint idx, UT_Vector2D &value) const
virtual const char * getParmName(exint fieldnum) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void setDivs(int64 val)
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, UT_Vector4D v)
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
void getParmValue(exint idx, UT_Vector3D &value) const
GLenum src
Definition: glcorearb.h:1792