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