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