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