HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PolyFrame.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_PolyFrameEnums
22 {
23  enum class Entity
24  {
25  PRIMITIVE = 0,
26  POINT
27  };
28 }
29 
30 
32 {
33 public:
34  static int version() { return 1; }
35 
37  {
38  myGroup = ""_sh;
39  myEntity = 0;
40  myStyle = "edge2"_sh;
41  myAttribname = ""_sh;
42  myNon = false;
43  myN = "N"_sh;
44  myTangentuon = false;
45  myTangentu = "tangentu"_sh;
46  myTangentvon = false;
47  myTangentv = "tangentv"_sh;
48  myOrtho = false;
49  myLeftHanded = false;
50 
51  }
52 
53  explicit SOP_PolyFrameParms(const SOP_PolyFrameParms &) = default;
54 
55  virtual ~SOP_PolyFrameParms() {}
56 
57  bool operator==(const SOP_PolyFrameParms &src) const
58  {
59  if (myGroup != src.myGroup) return false;
60  if (myEntity != src.myEntity) return false;
61  if (myStyle != src.myStyle) return false;
62  if (myAttribname != src.myAttribname) return false;
63  if (myNon != src.myNon) return false;
64  if (myN != src.myN) return false;
65  if (myTangentuon != src.myTangentuon) return false;
66  if (myTangentu != src.myTangentu) return false;
67  if (myTangentvon != src.myTangentvon) return false;
68  if (myTangentv != src.myTangentv) return false;
69  if (myOrtho != src.myOrtho) return false;
70  if (myLeftHanded != src.myLeftHanded) return false;
71 
72  return true;
73  }
74  bool operator!=(const SOP_PolyFrameParms &src) const
75  {
76  return !operator==(src);
77  }
79 
80 
81 
82  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
83  {
84  if (true)
85  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
86  else myGroup = ""_sh;
87  if (true)
88  OP_Utils::evalOpParm(myEntity, node, "entity", time, 0);
89  else myEntity = 0;
90  if (true)
91  OP_Utils::evalOpParm(myStyle, node, "style", time, 0);
92  else myStyle = "edge2"_sh;
93  if (true && ( (!(((getStyle()!="attrib")&&(getStyle()!="texuv")))) ) )
94  OP_Utils::evalOpParm(myAttribname, node, "attribname", time, 0);
95  else myAttribname = ""_sh;
96  if (true)
97  OP_Utils::evalOpParm(myNon, node, "Non", time, 0);
98  else myNon = false;
99  if (true && ( (!(((getNon()==0)))) ) )
100  OP_Utils::evalOpParm(myN, node, "N", time, 0);
101  else myN = "N"_sh;
102  if (true)
103  OP_Utils::evalOpParm(myTangentuon, node, "tangentuon", time, 0);
104  else myTangentuon = false;
105  if (true && ( (!(((getTangentuon()==0)))) ) )
106  OP_Utils::evalOpParm(myTangentu, node, "tangentu", time, 0);
107  else myTangentu = "tangentu"_sh;
108  if (true)
109  OP_Utils::evalOpParm(myTangentvon, node, "tangentvon", time, 0);
110  else myTangentvon = false;
111  if (true && ( (!(((getTangentvon()==0)))) ) )
112  OP_Utils::evalOpParm(myTangentv, node, "tangentv", time, 0);
113  else myTangentv = "tangentv"_sh;
114  if (true)
115  OP_Utils::evalOpParm(myOrtho, node, "ortho", time, 0);
116  else myOrtho = false;
117  if (true && ( (!(((getOrtho()==0)))) ) )
118  OP_Utils::evalOpParm(myLeftHanded, node, "lefthanded", time, 0);
119  else myLeftHanded = false;
120 
121  }
122 
123 
124  virtual void loadFromOpSubclass(const LoadParms &loadparms)
125  {
126  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
127  }
128 
129 
130  virtual void copyFrom(const SOP_NodeParms *src)
131  {
132  *this = *((const SOP_PolyFrameParms *)src);
133  }
134 
135  template <typename T>
136  void
137  doGetParmValue(exint idx, T &value) const
138  {
139  switch (idx)
140  {
141  case 0:
142  coerceValue(value, myGroup);
143  break;
144  case 1:
145  coerceValue(value, myEntity);
146  break;
147  case 2:
148  coerceValue(value, myStyle);
149  break;
150  case 3:
151  coerceValue(value, myAttribname);
152  break;
153  case 4:
154  coerceValue(value, myNon);
155  break;
156  case 5:
157  coerceValue(value, myN);
158  break;
159  case 6:
160  coerceValue(value, myTangentuon);
161  break;
162  case 7:
163  coerceValue(value, myTangentu);
164  break;
165  case 8:
166  coerceValue(value, myTangentvon);
167  break;
168  case 9:
169  coerceValue(value, myTangentv);
170  break;
171  case 10:
172  coerceValue(value, myOrtho);
173  break;
174  case 11:
175  coerceValue(value, myLeftHanded);
176  break;
177 
178  }
179  }
180 
181  void getParmValue(exint idx, exint &value) const
182  { doGetParmValue(idx, value); }
183  void getParmValue(exint idx, fpreal &value) const
184  { doGetParmValue(idx, value); }
186  { doGetParmValue(idx, value); }
188  { doGetParmValue(idx, value); }
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
203 
204  template <typename T>
205  void
206  doSetParmValue(exint idx, const T &value)
207  {
208  switch (idx)
209  {
210  case 0:
211  coerceValue(myGroup, value);
212  break;
213  case 1:
214  coerceValue(myEntity, value);
215  break;
216  case 2:
217  coerceValue(myStyle, value);
218  break;
219  case 3:
220  coerceValue(myAttribname, value);
221  break;
222  case 4:
223  coerceValue(myNon, value);
224  break;
225  case 5:
226  coerceValue(myN, value);
227  break;
228  case 6:
229  coerceValue(myTangentuon, value);
230  break;
231  case 7:
232  coerceValue(myTangentu, value);
233  break;
234  case 8:
235  coerceValue(myTangentvon, value);
236  break;
237  case 9:
238  coerceValue(myTangentv, value);
239  break;
240  case 10:
241  coerceValue(myOrtho, value);
242  break;
243  case 11:
244  coerceValue(myLeftHanded, value);
245  break;
246 
247  }
248  }
249 
250  void setParmValue(exint idx, const exint &value)
251  { doSetParmValue(idx, value); }
252  void setParmValue(exint idx, const fpreal &value)
253  { doSetParmValue(idx, value); }
254  void setParmValue(exint idx, const UT_Vector2D &value)
255  { doSetParmValue(idx, value); }
256  void setParmValue(exint idx, const UT_Vector3D &value)
257  { doSetParmValue(idx, value); }
258  void setParmValue(exint idx, const UT_Vector4D &value)
259  { doSetParmValue(idx, value); }
260  void setParmValue(exint idx, const UT_Matrix2D &value)
261  { doSetParmValue(idx, value); }
262  void setParmValue(exint idx, const UT_Matrix3D &value)
263  { doSetParmValue(idx, value); }
264  void setParmValue(exint idx, const UT_Matrix4D &value)
265  { doSetParmValue(idx, value); }
267  { doSetParmValue(idx, value); }
269  { doSetParmValue(idx, value); }
271  { doSetParmValue(idx, value); }
272 
273  virtual exint getNumParms() const
274  {
275  return 12;
276  }
277 
278  virtual const char *getParmName(exint fieldnum) const
279  {
280  switch (fieldnum)
281  {
282  case 0:
283  return "group";
284  case 1:
285  return "entity";
286  case 2:
287  return "style";
288  case 3:
289  return "attribname";
290  case 4:
291  return "Non";
292  case 5:
293  return "N";
294  case 6:
295  return "tangentuon";
296  case 7:
297  return "tangentu";
298  case 8:
299  return "tangentvon";
300  case 9:
301  return "tangentv";
302  case 10:
303  return "ortho";
304  case 11:
305  return "lefthanded";
306 
307  }
308  return 0;
309  }
310 
311  virtual ParmType getParmType(exint fieldnum) const
312  {
313  switch (fieldnum)
314  {
315  case 0:
316  return PARM_STRING;
317  case 1:
318  return PARM_INTEGER;
319  case 2:
320  return PARM_STRING;
321  case 3:
322  return PARM_STRING;
323  case 4:
324  return PARM_INTEGER;
325  case 5:
326  return PARM_STRING;
327  case 6:
328  return PARM_INTEGER;
329  case 7:
330  return PARM_STRING;
331  case 8:
332  return PARM_INTEGER;
333  case 9:
334  return PARM_STRING;
335  case 10:
336  return PARM_INTEGER;
337  case 11:
338  return PARM_INTEGER;
339 
340  }
341  return PARM_UNSUPPORTED;
342  }
343 
344  // Boiler plate to load individual types.
345  static void loadData(UT_IStream &is, int64 &v)
346  { is.bread(&v, 1); }
347  static void loadData(UT_IStream &is, bool &v)
348  { int64 iv; is.bread(&iv, 1); v = iv; }
349  static void loadData(UT_IStream &is, fpreal64 &v)
350  { is.bread<fpreal64>(&v, 1); }
351  static void loadData(UT_IStream &is, UT_Vector2D &v)
352  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector3D &v)
354  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
355  is.bread<fpreal64>(&v.z(), 1); }
356  static void loadData(UT_IStream &is, UT_Vector4D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
358  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
359  static void loadData(UT_IStream &is, UT_Matrix2D &v)
360  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
361  static void loadData(UT_IStream &is, UT_Matrix3D &v)
362  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
363  static void loadData(UT_IStream &is, UT_Matrix4D &v)
364  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
365  static void loadData(UT_IStream &is, UT_Vector2I &v)
366  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
367  static void loadData(UT_IStream &is, UT_Vector3I &v)
368  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
369  is.bread<int64>(&v.z(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector4I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
372  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
374  { is.bread(v); }
376  { UT_StringHolder rampdata;
377  loadData(is, rampdata);
378  if (rampdata.isstring())
379  {
380  v.reset(new UT_Ramp());
381  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
382  v->load(istr);
383  }
384  else v.reset();
385  }
388  loadData(is, data);
389  if (data.isstring())
390  {
391  // Find the data type.
392  char *colon = UT_StringWrap(data).findChar(':');
393  if (colon)
394  {
395  int typelen = colon - data.buffer();
397  type.strncpy(data.buffer(), typelen);
398  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
399 
400  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
401  }
402  }
403  else v.reset();
404  }
405 
406  static void saveData(std::ostream &os, int64 v)
407  { UTwrite(os, &v); }
408  static void saveData(std::ostream &os, bool v)
409  { int64 iv = v; UTwrite(os, &iv); }
410  static void saveData(std::ostream &os, fpreal64 v)
411  { UTwrite<fpreal64>(os, &v); }
412  static void saveData(std::ostream &os, UT_Vector2D v)
413  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
414  static void saveData(std::ostream &os, UT_Vector3D v)
415  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
416  UTwrite<fpreal64>(os, &v.z()); }
417  static void saveData(std::ostream &os, UT_Vector4D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
419  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
420  static void saveData(std::ostream &os, UT_Matrix2D v)
422  static void saveData(std::ostream &os, UT_Matrix3D v)
424  static void saveData(std::ostream &os, UT_Matrix4D v)
426  static void saveData(std::ostream &os, UT_StringHolder s)
427  { UT_StringWrap(s).saveBinary(os); }
428  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
429  { UT_StringHolder result;
430  UT_OStringStream ostr;
431  if (s) s->save(ostr);
432  result = ostr.str();
433  saveData(os, result);
434  }
435  static void saveData(std::ostream &os, PRM_DataItemHandle s)
436  { UT_StringHolder result;
437  UT_OStringStream ostr;
438  if (s)
439  {
440  ostr << s->getDataTypeToken();
441  ostr << ":";
442  s->saveBinary(ostr);
443  }
444  result = ostr.str();
445  saveData(os, result);
446  }
447 
448 
449  void save(std::ostream &os) const
450  {
451  int32 v = version();
452  UTwrite(os, &v);
453  saveData(os, myGroup);
454  saveData(os, myEntity);
455  saveData(os, myStyle);
456  saveData(os, myAttribname);
457  saveData(os, myNon);
458  saveData(os, myN);
459  saveData(os, myTangentuon);
460  saveData(os, myTangentu);
461  saveData(os, myTangentvon);
462  saveData(os, myTangentv);
463  saveData(os, myOrtho);
464  saveData(os, myLeftHanded);
465 
466  }
467 
468  bool load(UT_IStream &is)
469  {
470  int32 v;
471  is.bread(&v, 1);
472  if (version() != v)
473  {
474  // Fail incompatible versions
475  return false;
476  }
477  loadData(is, myGroup);
478  loadData(is, myEntity);
479  loadData(is, myStyle);
480  loadData(is, myAttribname);
481  loadData(is, myNon);
482  loadData(is, myN);
483  loadData(is, myTangentuon);
484  loadData(is, myTangentu);
485  loadData(is, myTangentvon);
486  loadData(is, myTangentv);
487  loadData(is, myOrtho);
488  loadData(is, myLeftHanded);
489 
490  return true;
491  }
492 
493  const UT_StringHolder & getGroup() const { return myGroup; }
494  void setGroup(const UT_StringHolder & val) { myGroup = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getGroup();
499  UT_StringHolder result;
500  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
501  return result;
502  }
503  Entity getEntity() const { return Entity(myEntity); }
504  void setEntity(Entity val) { myEntity = int64(val); }
505  Entity opEntity(const SOP_NodeVerb::CookParms &cookparms) const
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getEntity();
509  int64 result;
510  OP_Utils::evalOpParm(result, thissop, "entity", cookparms.getCookTime(), 0);
511  return Entity(result);
512  }
513  const UT_StringHolder & getStyle() const { return myStyle; }
514  void setStyle(const UT_StringHolder & val) { myStyle = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getStyle();
519  UT_StringHolder result;
520  OP_Utils::evalOpParm(result, thissop, "style", cookparms.getCookTime(), 0);
521  return result;
522  }
523  const UT_StringHolder & getAttribname() const { return myAttribname; }
524  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getAttribname();
529  UT_StringHolder result;
530  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
531  return result;
532  }
533  bool getNon() const { return myNon; }
534  void setNon(bool val) { myNon = val; }
535  bool opNon(const SOP_NodeVerb::CookParms &cookparms) const
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getNon();
539  bool result;
540  OP_Utils::evalOpParm(result, thissop, "Non", cookparms.getCookTime(), 0);
541  return result;
542  }
543  const UT_StringHolder & getN() const { return myN; }
544  void setN(const UT_StringHolder & val) { myN = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getN();
549  UT_StringHolder result;
550  OP_Utils::evalOpParm(result, thissop, "N", cookparms.getCookTime(), 0);
551  return result;
552  }
553  bool getTangentuon() const { return myTangentuon; }
554  void setTangentuon(bool val) { myTangentuon = val; }
555  bool opTangentuon(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getTangentuon();
559  bool result;
560  OP_Utils::evalOpParm(result, thissop, "tangentuon", cookparms.getCookTime(), 0);
561  return result;
562  }
563  const UT_StringHolder & getTangentu() const { return myTangentu; }
564  void setTangentu(const UT_StringHolder & val) { myTangentu = val; }
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getTangentu();
569  UT_StringHolder result;
570  OP_Utils::evalOpParm(result, thissop, "tangentu", cookparms.getCookTime(), 0);
571  return result;
572  }
573  bool getTangentvon() const { return myTangentvon; }
574  void setTangentvon(bool val) { myTangentvon = val; }
575  bool opTangentvon(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getTangentvon();
579  bool result;
580  OP_Utils::evalOpParm(result, thissop, "tangentvon", cookparms.getCookTime(), 0);
581  return result;
582  }
583  const UT_StringHolder & getTangentv() const { return myTangentv; }
584  void setTangentv(const UT_StringHolder & val) { myTangentv = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getTangentv();
589  UT_StringHolder result;
590  OP_Utils::evalOpParm(result, thissop, "tangentv", cookparms.getCookTime(), 0);
591  return result;
592  }
593  bool getOrtho() const { return myOrtho; }
594  void setOrtho(bool val) { myOrtho = val; }
595  bool opOrtho(const SOP_NodeVerb::CookParms &cookparms) const
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getOrtho();
599  bool result;
600  OP_Utils::evalOpParm(result, thissop, "ortho", cookparms.getCookTime(), 0);
601  return result;
602  }
603  bool getLeftHanded() const { return myLeftHanded; }
604  void setLeftHanded(bool val) { myLeftHanded = val; }
605  bool opLeftHanded(const SOP_NodeVerb::CookParms &cookparms) const
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getLeftHanded();
609  bool result;
610  OP_Utils::evalOpParm(result, thissop, "lefthanded", cookparms.getCookTime(), 0);
611  return result;
612  }
613 
614 private:
615  UT_StringHolder myGroup;
616  int64 myEntity;
617  UT_StringHolder myStyle;
618  UT_StringHolder myAttribname;
619  bool myNon;
620  UT_StringHolder myN;
621  bool myTangentuon;
622  UT_StringHolder myTangentu;
623  bool myTangentvon;
624  UT_StringHolder myTangentv;
625  bool myOrtho;
626  bool myLeftHanded;
627 
628 };
UT_StringHolder opTangentv(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
bool operator==(const SOP_PolyFrameParms &src) const
void setTangentuon(bool val)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
static void saveData(std::ostream &os, UT_StringHolder s)
T & z(void)
Definition: UT_Vector4.h:379
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_Vector4D v)
bool operator!=(const SOP_PolyFrameParms &src) const
void getParmValue(exint idx, fpreal &value) const
void doSetParmValue(exint idx, const T &value)
void setN(const UT_StringHolder &val)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void setGroup(const UT_StringHolder &val)
void doGetParmValue(exint idx, T &value) const
const UT_StringHolder & getN() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setParmValue(exint idx, const fpreal &value)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
static void loadData(UT_IStream &is, UT_Matrix3D &v)
An output stream object that owns its own string buffer storage.
void setParmValue(exint idx, const UT_StringHolder &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_Matrix2D v)
void getParmValue(exint idx, exint &value) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setAttribname(const UT_StringHolder &val)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
void getParmValue(exint idx, UT_Vector2D &value) const
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
UT_StringHolder opTangentu(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_StringHolder &value) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool getLeftHanded() const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
void getParmValue(exint idx, UT_Vector4D &value) const
bool opTangentvon(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool opNon(const SOP_NodeVerb::CookParms &cookparms) const
bool getTangentvon() const
virtual void copyFrom(const SOP_NodeParms *src)
void setTangentvon(bool val)
void setTangentv(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void setTangentu(const UT_StringHolder &val)
void getParmValue(exint idx, UT_Matrix2D &value) const
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, UT_Vector3D v)
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
static void loadData(UT_IStream &is, UT_Vector3D &v)
virtual const char * getParmName(exint fieldnum) const
int64 exint
Definition: SYS_Types.h:116
void setStyle(const UT_StringHolder &val)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
static void loadData(UT_IStream &is, int64 &v)
virtual exint getNumParms() const
static void loadData(UT_IStream &is, fpreal64 &v)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
bool opLeftHanded(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
Entity opEntity(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector4D &value)
bool opOrtho(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean * data
Definition: glcorearb.h:130
UT_StringHolder opStyle(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:35
const UT_StringHolder & getTangentv() const
T & y(void)
Definition: UT_Vector4.h:377
static void saveData(std::ostream &os, UT_Vector2D v)
void getParmValue(exint idx, UT_Vector3D &value) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
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:111
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
void getParmValue(exint idx, UT_Matrix4D &value) const
virtual ParmType getParmType(exint fieldnum) const
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
const UT_StringHolder & getGroup() const
double fpreal
Definition: SYS_Types.h:270
UT_StringHolder opN(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector3D &value)
void save(std::ostream &os) const
const UT_StringHolder & getTangentu() const
void setParmValue(exint idx, const UT_Vector2D &value)
static void saveData(std::ostream &os, fpreal64 v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
#define SOP_API
Definition: SOP_API.h:10
bool getTangentuon() const
bool load(UT_IStream &is)
Entity getEntity() const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void setParmValue(exint idx, const UT_Matrix3D &value)
T & x(void)
Definition: UT_Vector4.h:375
static void loadData(UT_IStream &is, UT_Matrix4D &v)
T & y(void)
Definition: UT_Vector2.h:287
GLboolean r
Definition: glcorearb.h:1221
const UT_StringHolder & getAttribname() const
const UT_StringHolder & getStyle() const
bool opTangentuon(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix3D &value) const
T & w(void)
Definition: UT_Vector4.h:381
void setEntity(Entity val)
void setLeftHanded(bool val)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void setParmValue(exint idx, const exint &value)
static void loadData(UT_IStream &is, UT_Vector2D &v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void setParmValue(exint idx, const UT_Matrix2D &value)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
static void loadData(UT_IStream &is, UT_Matrix2D &v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setParmValue(exint idx, const UT_Matrix4D &value)
static void saveData(std::ostream &os, bool v)
GLenum src
Definition: glcorearb.h:1792