HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_CurveNetwork.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_CurveNetworkEnums
22 {
23  enum class Surftype
24  {
25  ROWS = 0,
26  COLS,
27  ROWCOL,
28  TRIANGLES,
29  QUADS,
32  };
33  enum class Closev
34  {
35  NONEWV = 0,
36  WV,
37  IFPRIMWV
38  };
39  enum class Skinops
40  {
41  ALL = 0,
42  GROUP,
43  SKIP
44  };
45 }
46 
47 
49 {
50 public:
51  static int version() { return 1; }
52 
54  {
55  myUprims = ""_sh;
56  myVprims = ""_sh;
57  mySurftype = 4;
58  myKeepshape = false;
59  myClosev = 0;
60  myForce = false;
61  myOrderv = 4;
62  mySkinops = 0;
63  myInc = 2;
64  myPrim = false;
65  myPolys = true;
66 
67  }
68 
69  explicit SOP_CurveNetworkParms(const SOP_CurveNetworkParms &) = default;
70 
72 
74  {
75  if (myUprims != src.myUprims) return false;
76  if (myVprims != src.myVprims) return false;
77  if (mySurftype != src.mySurftype) return false;
78  if (myKeepshape != src.myKeepshape) return false;
79  if (myClosev != src.myClosev) return false;
80  if (myForce != src.myForce) return false;
81  if (myOrderv != src.myOrderv) return false;
82  if (mySkinops != src.mySkinops) return false;
83  if (myInc != src.myInc) return false;
84  if (myPrim != src.myPrim) return false;
85  if (myPolys != src.myPolys) return false;
86 
87  return true;
88  }
90  {
91  return !operator==(src);
92  }
96 
97 
98 
99  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
100  {
101  if (true)
102  OP_Utils::evalOpParm(myUprims, node, "uprims", time, 0);
103  else myUprims = ""_sh;
104  if (true)
105  OP_Utils::evalOpParm(myVprims, node, "vprims", time, 0);
106  else myVprims = ""_sh;
107  if (true)
108  OP_Utils::evalOpParm(mySurftype, node, "surftype", time, 0);
109  else mySurftype = 4;
110  if (true)
111  OP_Utils::evalOpParm(myKeepshape, node, "keepshape", time, 0);
112  else myKeepshape = false;
113  if (true && ( (!((((node->getInput(1)!=0)==1))||((getVprims()!="")))) ) )
114  OP_Utils::evalOpParm(myClosev, node, "closev", time, 0);
115  else myClosev = 0;
116  if (true && ( (!((((node->getInput(1)!=0)==1))||((getVprims()!="")))) ) )
117  OP_Utils::evalOpParm(myForce, node, "force", time, 0);
118  else myForce = false;
119  if (true && ( (!((((node->getInput(1)!=0)==1))||((getVprims()!=""))||((getForce()==0)))) ) )
120  OP_Utils::evalOpParm(myOrderv, node, "orderv", time, 0);
121  else myOrderv = 4;
122  if (true && ( (!((((node->getInput(1)!=0)==1))||((getVprims()!="")))) ) )
123  OP_Utils::evalOpParm(mySkinops, node, "skinops", time, 0);
124  else mySkinops = 0;
125  if (true && ( (!((((node->getInput(1)!=0)==1))||((getVprims()!=""))||((int64(getSkinops())==0)))) ) )
126  OP_Utils::evalOpParm(myInc, node, "inc", time, 0);
127  else myInc = 2;
128  if (true)
129  OP_Utils::evalOpParm(myPrim, node, "prim", time, 0);
130  else myPrim = false;
131  if (true)
132  OP_Utils::evalOpParm(myPolys, node, "polys", time, 0);
133  else myPolys = true;
134 
135  }
136 
137 
138  virtual void loadFromOpSubclass(const LoadParms &loadparms)
139  {
140  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
141  }
142 
143 
144  virtual void copyFrom(const SOP_NodeParms *src)
145  {
146  *this = *((const SOP_CurveNetworkParms *)src);
147  }
148 
149  template <typename T>
150  void
151  doGetParmValue(exint idx, T &value) const
152  {
153  switch (idx)
154  {
155  case 0:
156  coerceValue(value, myUprims);
157  break;
158  case 1:
159  coerceValue(value, myVprims);
160  break;
161  case 2:
162  coerceValue(value, mySurftype);
163  break;
164  case 3:
165  coerceValue(value, myKeepshape);
166  break;
167  case 4:
168  coerceValue(value, myClosev);
169  break;
170  case 5:
171  coerceValue(value, myForce);
172  break;
173  case 6:
174  coerceValue(value, myOrderv);
175  break;
176  case 7:
177  coerceValue(value, mySkinops);
178  break;
179  case 8:
180  coerceValue(value, myInc);
181  break;
182  case 9:
183  coerceValue(value, myPrim);
184  break;
185  case 10:
186  coerceValue(value, myPolys);
187  break;
188 
189  }
190  }
191 
192  void getParmValue(exint idx, exint &value) const
193  { doGetParmValue(idx, value); }
194  void getParmValue(exint idx, fpreal &value) const
195  { doGetParmValue(idx, value); }
197  { doGetParmValue(idx, value); }
199  { doGetParmValue(idx, value); }
201  { doGetParmValue(idx, value); }
203  { doGetParmValue(idx, value); }
205  { doGetParmValue(idx, value); }
207  { doGetParmValue(idx, value); }
209  { doGetParmValue(idx, value); }
211  { doGetParmValue(idx, value); }
213  { doGetParmValue(idx, value); }
214 
215  template <typename T>
216  void
217  doSetParmValue(exint idx, const T &value)
218  {
219  switch (idx)
220  {
221  case 0:
222  coerceValue(myUprims, value);
223  break;
224  case 1:
225  coerceValue(myVprims, value);
226  break;
227  case 2:
228  coerceValue(mySurftype, value);
229  break;
230  case 3:
231  coerceValue(myKeepshape, value);
232  break;
233  case 4:
234  coerceValue(myClosev, value);
235  break;
236  case 5:
237  coerceValue(myForce, value);
238  break;
239  case 6:
240  coerceValue(myOrderv, value);
241  break;
242  case 7:
243  coerceValue(mySkinops, value);
244  break;
245  case 8:
246  coerceValue(myInc, value);
247  break;
248  case 9:
249  coerceValue(myPrim, value);
250  break;
251  case 10:
252  coerceValue(myPolys, value);
253  break;
254 
255  }
256  }
257 
258  void setParmValue(exint idx, const exint &value)
259  { doSetParmValue(idx, value); }
260  void setParmValue(exint idx, const fpreal &value)
261  { doSetParmValue(idx, value); }
262  void setParmValue(exint idx, const UT_Vector2D &value)
263  { doSetParmValue(idx, value); }
264  void setParmValue(exint idx, const UT_Vector3D &value)
265  { doSetParmValue(idx, value); }
266  void setParmValue(exint idx, const UT_Vector4D &value)
267  { doSetParmValue(idx, value); }
268  void setParmValue(exint idx, const UT_Matrix2D &value)
269  { doSetParmValue(idx, value); }
270  void setParmValue(exint idx, const UT_Matrix3D &value)
271  { doSetParmValue(idx, value); }
272  void setParmValue(exint idx, const UT_Matrix4D &value)
273  { doSetParmValue(idx, value); }
275  { doSetParmValue(idx, value); }
277  { doSetParmValue(idx, value); }
279  { doSetParmValue(idx, value); }
280 
281  virtual exint getNumParms() const
282  {
283  return 11;
284  }
285 
286  virtual const char *getParmName(exint fieldnum) const
287  {
288  switch (fieldnum)
289  {
290  case 0:
291  return "uprims";
292  case 1:
293  return "vprims";
294  case 2:
295  return "surftype";
296  case 3:
297  return "keepshape";
298  case 4:
299  return "closev";
300  case 5:
301  return "force";
302  case 6:
303  return "orderv";
304  case 7:
305  return "skinops";
306  case 8:
307  return "inc";
308  case 9:
309  return "prim";
310  case 10:
311  return "polys";
312 
313  }
314  return 0;
315  }
316 
317  virtual ParmType getParmType(exint fieldnum) const
318  {
319  switch (fieldnum)
320  {
321  case 0:
322  return PARM_STRING;
323  case 1:
324  return PARM_STRING;
325  case 2:
326  return PARM_INTEGER;
327  case 3:
328  return PARM_INTEGER;
329  case 4:
330  return PARM_INTEGER;
331  case 5:
332  return PARM_INTEGER;
333  case 6:
334  return PARM_INTEGER;
335  case 7:
336  return PARM_INTEGER;
337  case 8:
338  return PARM_INTEGER;
339  case 9:
340  return PARM_INTEGER;
341  case 10:
342  return PARM_INTEGER;
343 
344  }
345  return PARM_UNSUPPORTED;
346  }
347 
348  // Boiler plate to load individual types.
349  static void loadData(UT_IStream &is, int64 &v)
350  { is.bread(&v, 1); }
351  static void loadData(UT_IStream &is, bool &v)
352  { int64 iv; is.bread(&iv, 1); v = iv; }
353  static void loadData(UT_IStream &is, fpreal64 &v)
354  { is.bread<fpreal64>(&v, 1); }
355  static void loadData(UT_IStream &is, UT_Vector2D &v)
356  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
357  static void loadData(UT_IStream &is, UT_Vector3D &v)
358  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
359  is.bread<fpreal64>(&v.z(), 1); }
360  static void loadData(UT_IStream &is, UT_Vector4D &v)
361  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
362  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
363  static void loadData(UT_IStream &is, UT_Matrix2D &v)
364  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
365  static void loadData(UT_IStream &is, UT_Matrix3D &v)
366  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
367  static void loadData(UT_IStream &is, UT_Matrix4D &v)
368  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
369  static void loadData(UT_IStream &is, UT_Vector2I &v)
370  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
371  static void loadData(UT_IStream &is, UT_Vector3I &v)
372  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
373  is.bread<int64>(&v.z(), 1); }
374  static void loadData(UT_IStream &is, UT_Vector4I &v)
375  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
376  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
378  { is.bread(v); }
380  { UT_StringHolder rampdata;
381  loadData(is, rampdata);
382  if (rampdata.isstring())
383  {
384  v.reset(new UT_Ramp());
385  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
386  v->load(istr);
387  }
388  else v.reset();
389  }
392  loadData(is, data);
393  if (data.isstring())
394  {
395  // Find the data type.
396  char *colon = UT_StringWrap(data).findChar(':');
397  if (colon)
398  {
399  int typelen = colon - data.buffer();
401  type.strncpy(data.buffer(), typelen);
402  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
403 
404  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
405  }
406  }
407  else v.reset();
408  }
409 
410  static void saveData(std::ostream &os, int64 v)
411  { UTwrite(os, &v); }
412  static void saveData(std::ostream &os, bool v)
413  { int64 iv = v; UTwrite(os, &iv); }
414  static void saveData(std::ostream &os, fpreal64 v)
415  { UTwrite<fpreal64>(os, &v); }
416  static void saveData(std::ostream &os, UT_Vector2D v)
417  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
418  static void saveData(std::ostream &os, UT_Vector3D v)
419  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
420  UTwrite<fpreal64>(os, &v.z()); }
421  static void saveData(std::ostream &os, UT_Vector4D v)
422  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
423  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
424  static void saveData(std::ostream &os, UT_Matrix2D v)
426  static void saveData(std::ostream &os, UT_Matrix3D v)
428  static void saveData(std::ostream &os, UT_Matrix4D v)
430  static void saveData(std::ostream &os, UT_StringHolder s)
431  { UT_StringWrap(s).saveBinary(os); }
432  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
433  { UT_StringHolder result;
434  UT_OStringStream ostr;
435  if (s) s->save(ostr);
436  result = ostr.str();
437  saveData(os, result);
438  }
439  static void saveData(std::ostream &os, PRM_DataItemHandle s)
440  { UT_StringHolder result;
441  UT_OStringStream ostr;
442  if (s)
443  {
444  ostr << s->getDataTypeToken();
445  ostr << ":";
446  s->saveBinary(ostr);
447  }
448  result = ostr.str();
449  saveData(os, result);
450  }
451 
452 
453  void save(std::ostream &os) const
454  {
455  int32 v = version();
456  UTwrite(os, &v);
457  saveData(os, myUprims);
458  saveData(os, myVprims);
459  saveData(os, mySurftype);
460  saveData(os, myKeepshape);
461  saveData(os, myClosev);
462  saveData(os, myForce);
463  saveData(os, myOrderv);
464  saveData(os, mySkinops);
465  saveData(os, myInc);
466  saveData(os, myPrim);
467  saveData(os, myPolys);
468 
469  }
470 
471  bool load(UT_IStream &is)
472  {
473  int32 v;
474  is.bread(&v, 1);
475  if (version() != v)
476  {
477  // Fail incompatible versions
478  return false;
479  }
480  loadData(is, myUprims);
481  loadData(is, myVprims);
482  loadData(is, mySurftype);
483  loadData(is, myKeepshape);
484  loadData(is, myClosev);
485  loadData(is, myForce);
486  loadData(is, myOrderv);
487  loadData(is, mySkinops);
488  loadData(is, myInc);
489  loadData(is, myPrim);
490  loadData(is, myPolys);
491 
492  return true;
493  }
494 
495  const UT_StringHolder & getUprims() const { return myUprims; }
496  void setUprims(const UT_StringHolder & val) { myUprims = val; }
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getUprims();
501  UT_StringHolder result;
502  OP_Utils::evalOpParm(result, thissop, "uprims", cookparms.getCookTime(), 0);
503  return result;
504  }
505  const UT_StringHolder & getVprims() const { return myVprims; }
506  void setVprims(const UT_StringHolder & val) { myVprims = val; }
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getVprims();
511  UT_StringHolder result;
512  OP_Utils::evalOpParm(result, thissop, "vprims", cookparms.getCookTime(), 0);
513  return result;
514  }
515  Surftype getSurftype() const { return Surftype(mySurftype); }
516  void setSurftype(Surftype val) { mySurftype = int64(val); }
518  {
519  SOP_Node *thissop = cookparms.getNode();
520  if (!thissop) return getSurftype();
521  int64 result;
522  OP_Utils::evalOpParm(result, thissop, "surftype", cookparms.getCookTime(), 0);
523  return Surftype(result);
524  }
525  bool getKeepshape() const { return myKeepshape; }
526  void setKeepshape(bool val) { myKeepshape = val; }
527  bool opKeepshape(const SOP_NodeVerb::CookParms &cookparms) const
528  {
529  SOP_Node *thissop = cookparms.getNode();
530  if (!thissop) return getKeepshape();
531  bool result;
532  OP_Utils::evalOpParm(result, thissop, "keepshape", cookparms.getCookTime(), 0);
533  return result;
534  }
535  Closev getClosev() const { return Closev(myClosev); }
536  void setClosev(Closev val) { myClosev = int64(val); }
537  Closev opClosev(const SOP_NodeVerb::CookParms &cookparms) const
538  {
539  SOP_Node *thissop = cookparms.getNode();
540  if (!thissop) return getClosev();
541  int64 result;
542  OP_Utils::evalOpParm(result, thissop, "closev", cookparms.getCookTime(), 0);
543  return Closev(result);
544  }
545  bool getForce() const { return myForce; }
546  void setForce(bool val) { myForce = val; }
547  bool opForce(const SOP_NodeVerb::CookParms &cookparms) const
548  {
549  SOP_Node *thissop = cookparms.getNode();
550  if (!thissop) return getForce();
551  bool result;
552  OP_Utils::evalOpParm(result, thissop, "force", cookparms.getCookTime(), 0);
553  return result;
554  }
555  int64 getOrderv() const { return myOrderv; }
556  void setOrderv(int64 val) { myOrderv = val; }
557  int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
558  {
559  SOP_Node *thissop = cookparms.getNode();
560  if (!thissop) return getOrderv();
561  int64 result;
562  OP_Utils::evalOpParm(result, thissop, "orderv", cookparms.getCookTime(), 0);
563  return result;
564  }
565  Skinops getSkinops() const { return Skinops(mySkinops); }
566  void setSkinops(Skinops val) { mySkinops = int64(val); }
567  Skinops opSkinops(const SOP_NodeVerb::CookParms &cookparms) const
568  {
569  SOP_Node *thissop = cookparms.getNode();
570  if (!thissop) return getSkinops();
571  int64 result;
572  OP_Utils::evalOpParm(result, thissop, "skinops", cookparms.getCookTime(), 0);
573  return Skinops(result);
574  }
575  int64 getInc() const { return myInc; }
576  void setInc(int64 val) { myInc = val; }
577  int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
578  {
579  SOP_Node *thissop = cookparms.getNode();
580  if (!thissop) return getInc();
581  int64 result;
582  OP_Utils::evalOpParm(result, thissop, "inc", cookparms.getCookTime(), 0);
583  return result;
584  }
585  bool getPrim() const { return myPrim; }
586  void setPrim(bool val) { myPrim = val; }
587  bool opPrim(const SOP_NodeVerb::CookParms &cookparms) const
588  {
589  SOP_Node *thissop = cookparms.getNode();
590  if (!thissop) return getPrim();
591  bool result;
592  OP_Utils::evalOpParm(result, thissop, "prim", cookparms.getCookTime(), 0);
593  return result;
594  }
595  bool getPolys() const { return myPolys; }
596  void setPolys(bool val) { myPolys = val; }
597  bool opPolys(const SOP_NodeVerb::CookParms &cookparms) const
598  {
599  SOP_Node *thissop = cookparms.getNode();
600  if (!thissop) return getPolys();
601  bool result;
602  OP_Utils::evalOpParm(result, thissop, "polys", cookparms.getCookTime(), 0);
603  return result;
604  }
605 
606 private:
607  UT_StringHolder myUprims;
608  UT_StringHolder myVprims;
609  int64 mySurftype;
610  bool myKeepshape;
611  int64 myClosev;
612  bool myForce;
613  int64 myOrderv;
614  int64 mySkinops;
615  int64 myInc;
616  bool myPrim;
617  bool myPolys;
618 
619 };
static void saveData(std::ostream &os, UT_Vector4D v)
void setParmValue(exint idx, const UT_Matrix2D &value)
void setParmValue(exint idx, const UT_Vector2D &value)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setParmValue(exint idx, const UT_StringHolder &value)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
Skinops opSkinops(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_CurveNetworkParms &src) const
T & z(void)
Definition: UT_Vector4.h:379
void getParmValue(exint idx, PRM_DataItemHandle &value) const
void doSetParmValue(exint idx, const T &value)
virtual ParmType getParmType(exint fieldnum) const
static void loadData(UT_IStream &is, fpreal64 &v)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
void doGetParmValue(exint idx, T &value) const
void getParmValue(exint idx, UT_Vector4D &value) const
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
static void loadData(UT_IStream &is, UT_Vector3D &v)
virtual exint getNumParms() const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, bool &v)
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
T & x(void)
Definition: UT_Vector2.h:285
virtual void copyFrom(const SOP_NodeParms *src)
An output stream object that owns its own string buffer storage.
void getParmValue(exint idx, UT_Matrix2D &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
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:498
void setUprims(const UT_StringHolder &val)
void getParmValue(exint idx, UT_Matrix4D &value) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
Closev opClosev(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool opPrim(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector4D &value)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, fpreal64 v)
long long int64
Definition: SYS_Types.h:107
static void saveData(std::ostream &os, int64 v)
void getParmValue(exint idx, fpreal &value) const
exint length() const
bool opPolys(const SOP_NodeVerb::CookParms &cookparms) const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool operator==(const SOP_CurveNetworkParms &src) const
Surftype opSurftype(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const exint &value)
int64 exint
Definition: SYS_Types.h:116
UT_StringHolder opUprims(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
const UT_StringHolder & getVprims() const
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Matrix3D v)
OP_Node * getInput(unsigned idx, bool mark_used=false) const
Returns the node connected to a particular input (may be null).
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void getParmValue(exint idx, UT_Vector2D &value) const
void getParmValue(exint idx, UT_Vector3D &value) const
UT_StringHolder opVprims(const SOP_NodeVerb::CookParms &cookparms) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
static void loadData(UT_IStream &is, UT_Matrix3D &v)
int64 opOrderv(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
const UT_StringHolder & getUprims() const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void loadData(UT_IStream &is, int64 &v)
void setParmValue(exint idx, const fpreal &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
void setParmValue(exint idx, const UT_Matrix3D &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
GLuint GLfloat * val
Definition: glcorearb.h:1607
void setVprims(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix2D v)
#define SOP_API
Definition: SOP_API.h:10
void setParmValue(exint idx, const UT_Matrix4D &value)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
static void saveData(std::ostream &os, UT_StringHolder s)
T & x(void)
Definition: UT_Vector4.h:375
void getParmValue(exint idx, exint &value) const
static void saveData(std::ostream &os, bool v)
T & y(void)
Definition: UT_Vector2.h:287
GLboolean r
Definition: glcorearb.h:1221
bool opForce(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
virtual const char * getParmName(exint fieldnum) const
T & w(void)
Definition: UT_Vector4.h:381
void getParmValue(exint idx, UT_StringHolder &value) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
bool opKeepshape(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void setParmValue(exint idx, const UT_Vector3D &value)
void setSurftype(Surftype val)
static void loadData(UT_IStream &is, UT_Vector2I &v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
void getParmValue(exint idx, UT_Matrix3D &value) const
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1792