HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_IntersectionStitch.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myAgroup = ""_UTsh;
32  myBgroup = ""_UTsh;
33  myUseproxtol = true;
34  myProxtol = 0.01;
35  mySplitcurves = true;
36  myInputnumattrib = "sourceinput"_UTsh;
37  myPrimnumattrib = "sourceprim"_UTsh;
38  myPrimuvwattrib = "sourceprimuv"_UTsh;
39  myKeeppointattribs = true;
40 
41  }
42 
43  explicit SOP_IntersectionStitchParms(const SOP_IntersectionStitchParms &) = default;
46  SOP_IntersectionStitchParms &operator=(SOP_IntersectionStitchParms &&) noexcept = default;
47 
49 
51  {
52  if (myAgroup != src.myAgroup) return false;
53  if (myBgroup != src.myBgroup) return false;
54  if (myUseproxtol != src.myUseproxtol) return false;
55  if (myProxtol != src.myProxtol) return false;
56  if (mySplitcurves != src.mySplitcurves) return false;
57  if (myInputnumattrib != src.myInputnumattrib) return false;
58  if (myPrimnumattrib != src.myPrimnumattrib) return false;
59  if (myPrimuvwattrib != src.myPrimuvwattrib) return false;
60  if (myKeeppointattribs != src.myKeeppointattribs) return false;
61 
62  return true;
63  }
65  {
66  return !operator==(src);
67  }
68 
69 
70 
71  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
72  {
73  myAgroup = ""_UTsh;
74  if (true)
75  graph->evalOpParm(myAgroup, nodeidx, "agroup", time, 0);
76  myBgroup = ""_UTsh;
77  if (true)
78  graph->evalOpParm(myBgroup, nodeidx, "bgroup", time, 0);
79  myUseproxtol = true;
80  if (true)
81  graph->evalOpParm(myUseproxtol, nodeidx, "useproxtol", time, 0);
82  myProxtol = 0.01;
83  if (true && ( (true&&!(((getUseproxtol()==0)))) ) )
84  graph->evalOpParm(myProxtol, nodeidx, "proxtol", time, 0);
85  mySplitcurves = true;
86  if (true)
87  graph->evalOpParm(mySplitcurves, nodeidx, "splitcurves", time, 0);
88  myInputnumattrib = "sourceinput"_UTsh;
89  if (true && ( (true&&!((((graph->getInput(nodeidx,2)>=0)==0)))) ) )
90  graph->evalOpParm(myInputnumattrib, nodeidx, "inputnumattrib", time, 0);
91  myPrimnumattrib = "sourceprim"_UTsh;
92  if (true && ( (true&&!((((graph->getInput(nodeidx,2)>=0)==0)))) ) )
93  graph->evalOpParm(myPrimnumattrib, nodeidx, "primnumattrib", time, 0);
94  myPrimuvwattrib = "sourceprimuv"_UTsh;
95  if (true && ( (true&&!((((graph->getInput(nodeidx,2)>=0)==0)))) ) )
96  graph->evalOpParm(myPrimuvwattrib, nodeidx, "primuvwattrib", time, 0);
97  myKeeppointattribs = true;
98  if (true && ( (true&&!((((graph->getInput(nodeidx,2)>=0)==0)))) ) )
99  graph->evalOpParm(myKeeppointattribs, nodeidx, "keeppointattribs", time, 0);
100 
101  }
102 
103 
104  void loadFromOpSubclass(const LoadParms &loadparms) override
105  {
106  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
107  }
108 
109 
110  void copyFrom(const OP_NodeParms *src) override
111  {
112  *this = *((const SOP_IntersectionStitchParms *)src);
113  }
114 
115  template <typename T>
116  void
117  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
118  {
119  if (idx.size() < 1)
120  return;
121  UT_ASSERT(idx.size() == instance.size()+1);
122  if (idx.size() != instance.size()+1)
123  return;
124  switch (idx[0])
125  {
126  case 0:
127  coerceValue(value, myAgroup);
128  break;
129  case 1:
130  coerceValue(value, myBgroup);
131  break;
132  case 2:
133  coerceValue(value, myUseproxtol);
134  break;
135  case 3:
136  coerceValue(value, myProxtol);
137  break;
138  case 4:
139  coerceValue(value, mySplitcurves);
140  break;
141  case 5:
142  coerceValue(value, myInputnumattrib);
143  break;
144  case 6:
145  coerceValue(value, myPrimnumattrib);
146  break;
147  case 7:
148  coerceValue(value, myPrimuvwattrib);
149  break;
150  case 8:
151  coerceValue(value, myKeeppointattribs);
152  break;
153 
154  }
155  }
156 
157  bool isParmColorRamp(exint idx) const override
158  {
159  switch (idx)
160  {
161 
162  }
163  return false;
164  }
165 
166  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
187  { doGetParmValue(idx, instance, value); }
188 
189  template <typename T>
190  void
191  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
192  {
193  if (idx.size() < 1)
194  return;
195  UT_ASSERT(idx.size() == instance.size()+1);
196  if (idx.size() != instance.size()+1)
197  return;
198  switch (idx[0])
199  {
200  case 0:
201  coerceValue(myAgroup, ( ( value ) ));
202  break;
203  case 1:
204  coerceValue(myBgroup, ( ( value ) ));
205  break;
206  case 2:
207  coerceValue(myUseproxtol, ( ( value ) ));
208  break;
209  case 3:
210  coerceValue(myProxtol, ( ( value ) ));
211  break;
212  case 4:
213  coerceValue(mySplitcurves, ( ( value ) ));
214  break;
215  case 5:
216  coerceValue(myInputnumattrib, ( ( value ) ));
217  break;
218  case 6:
219  coerceValue(myPrimnumattrib, ( ( value ) ));
220  break;
221  case 7:
222  coerceValue(myPrimuvwattrib, ( ( value ) ));
223  break;
224  case 8:
225  coerceValue(myKeeppointattribs, ( ( value ) ));
226  break;
227 
228  }
229  }
230 
231  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
252  { doSetParmValue(idx, instance, value); }
253 
254  exint getNestNumParms(TempIndex idx) const override
255  {
256  if (idx.size() == 0)
257  return 9;
258  switch (idx[0])
259  {
260 
261  }
262  // Invalid
263  return 0;
264  }
265 
266  const char *getNestParmName(TempIndex fieldnum) const override
267  {
268  if (fieldnum.size() < 1)
269  return 0;
270  switch (fieldnum[0])
271  {
272  case 0:
273  return "agroup";
274  case 1:
275  return "bgroup";
276  case 2:
277  return "useproxtol";
278  case 3:
279  return "proxtol";
280  case 4:
281  return "splitcurves";
282  case 5:
283  return "inputnumattrib";
284  case 6:
285  return "primnumattrib";
286  case 7:
287  return "primuvwattrib";
288  case 8:
289  return "keeppointattribs";
290 
291  }
292  return 0;
293  }
294 
295  ParmType getNestParmType(TempIndex fieldnum) const override
296  {
297  if (fieldnum.size() < 1)
298  return PARM_UNSUPPORTED;
299  switch (fieldnum[0])
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_STRING;
305  case 2:
306  return PARM_INTEGER;
307  case 3:
308  return PARM_FLOAT;
309  case 4:
310  return PARM_INTEGER;
311  case 5:
312  return PARM_STRING;
313  case 6:
314  return PARM_STRING;
315  case 7:
316  return PARM_STRING;
317  case 8:
318  return PARM_INTEGER;
319 
320  }
321  return PARM_UNSUPPORTED;
322  }
323 
324  // Boiler plate to load individual types.
325  static void loadData(UT_IStream &is, int64 &v)
326  { is.bread(&v, 1); }
327  static void loadData(UT_IStream &is, bool &v)
328  { int64 iv; is.bread(&iv, 1); v = iv; }
329  static void loadData(UT_IStream &is, fpreal64 &v)
330  { is.bread<fpreal64>(&v, 1); }
331  static void loadData(UT_IStream &is, UT_Vector2D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector3D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
335  is.bread<fpreal64>(&v.z(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector4D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix2D &v)
340  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix3D &v)
342  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix4D &v)
344  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Vector2I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector3I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
349  is.bread<int64>(&v.z(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector4I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
354  { is.bread(v); }
356  { UT_StringHolder rampdata;
357  loadData(is, rampdata);
358  if (rampdata.isstring())
359  {
360  v.reset(new UT_Ramp());
361  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
362  v->load(istr);
363  }
364  else v.reset();
365  }
368  loadData(is, data);
369  if (data.isstring())
370  {
371  // Find the data type.
372  const char *colon = UT_StringWrap(data).findChar(':');
373  if (colon)
374  {
375  int typelen = colon - data.buffer();
377  type.strncpy(data.buffer(), typelen);
378  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
379 
380  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
381  }
382  }
383  else v.reset();
384  }
385 
386  static void saveData(std::ostream &os, int64 v)
387  { UTwrite(os, &v); }
388  static void saveData(std::ostream &os, bool v)
389  { int64 iv = v; UTwrite(os, &iv); }
390  static void saveData(std::ostream &os, fpreal64 v)
391  { UTwrite<fpreal64>(os, &v); }
392  static void saveData(std::ostream &os, UT_Vector2D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
394  static void saveData(std::ostream &os, UT_Vector3D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
396  UTwrite<fpreal64>(os, &v.z()); }
397  static void saveData(std::ostream &os, UT_Vector4D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
400  static void saveData(std::ostream &os, UT_Matrix2D v)
402  static void saveData(std::ostream &os, UT_Matrix3D v)
404  static void saveData(std::ostream &os, UT_Matrix4D v)
406  static void saveData(std::ostream &os, UT_StringHolder s)
407  { UT_StringWrap(s).saveBinary(os); }
408  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
410  UT_OStringStream ostr;
411  if (s) s->save(ostr);
412  result = ostr.str();
413  saveData(os, result);
414  }
415  static void saveData(std::ostream &os, PRM_DataItemHandle s)
417  UT_OStringStream ostr;
418  if (s)
419  {
420  ostr << s->getDataTypeToken();
421  ostr << ":";
422  s->saveBinary(ostr);
423  }
424  result = ostr.str();
425  saveData(os, result);
426  }
427 
428 
429  void save(std::ostream &os) const
430  {
431  int32 v = version();
432  UTwrite(os, &v);
433  saveData(os, myAgroup);
434  saveData(os, myBgroup);
435  saveData(os, myUseproxtol);
436  saveData(os, myProxtol);
437  saveData(os, mySplitcurves);
438  saveData(os, myInputnumattrib);
439  saveData(os, myPrimnumattrib);
440  saveData(os, myPrimuvwattrib);
441  saveData(os, myKeeppointattribs);
442 
443  }
444 
445  bool load(UT_IStream &is)
446  {
447  int32 v;
448  is.bread(&v, 1);
449  if (version() != v)
450  {
451  // Fail incompatible versions
452  return false;
453  }
454  loadData(is, myAgroup);
455  loadData(is, myBgroup);
456  loadData(is, myUseproxtol);
457  loadData(is, myProxtol);
458  loadData(is, mySplitcurves);
459  loadData(is, myInputnumattrib);
460  loadData(is, myPrimnumattrib);
461  loadData(is, myPrimuvwattrib);
462  loadData(is, myKeeppointattribs);
463 
464  return true;
465  }
466 
467  const UT_StringHolder & getAgroup() const { return myAgroup; }
468  void setAgroup(const UT_StringHolder & val) { myAgroup = val; }
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getAgroup();
474  OP_Utils::evalOpParm(result, thissop, "agroup", cookparms.getCookTime(), 0);
475  return result;
476  }
477  const UT_StringHolder & getBgroup() const { return myBgroup; }
478  void setBgroup(const UT_StringHolder & val) { myBgroup = val; }
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getBgroup();
484  OP_Utils::evalOpParm(result, thissop, "bgroup", cookparms.getCookTime(), 0);
485  return result;
486  }
487  bool getUseproxtol() const { return myUseproxtol; }
488  void setUseproxtol(bool val) { myUseproxtol = val; }
489  bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getUseproxtol();
493  bool result;
494  OP_Utils::evalOpParm(result, thissop, "useproxtol", cookparms.getCookTime(), 0);
495  return result;
496  }
497  fpreal64 getProxtol() const { return myProxtol; }
498  void setProxtol(fpreal64 val) { myProxtol = val; }
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getProxtol();
504  OP_Utils::evalOpParm(result, thissop, "proxtol", cookparms.getCookTime(), 0);
505  return result;
506  }
507  bool getSplitcurves() const { return mySplitcurves; }
508  void setSplitcurves(bool val) { mySplitcurves = val; }
509  bool opSplitcurves(const SOP_NodeVerb::CookParms &cookparms) const
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getSplitcurves();
513  bool result;
514  OP_Utils::evalOpParm(result, thissop, "splitcurves", cookparms.getCookTime(), 0);
515  return result;
516  }
517  const UT_StringHolder & getInputnumattrib() const { return myInputnumattrib; }
518  void setInputnumattrib(const UT_StringHolder & val) { myInputnumattrib = val; }
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getInputnumattrib();
524  OP_Utils::evalOpParm(result, thissop, "inputnumattrib", cookparms.getCookTime(), 0);
525  return result;
526  }
527  const UT_StringHolder & getPrimnumattrib() const { return myPrimnumattrib; }
528  void setPrimnumattrib(const UT_StringHolder & val) { myPrimnumattrib = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getPrimnumattrib();
534  OP_Utils::evalOpParm(result, thissop, "primnumattrib", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getPrimuvwattrib() const { return myPrimuvwattrib; }
538  void setPrimuvwattrib(const UT_StringHolder & val) { myPrimuvwattrib = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getPrimuvwattrib();
544  OP_Utils::evalOpParm(result, thissop, "primuvwattrib", cookparms.getCookTime(), 0);
545  return result;
546  }
547  bool getKeeppointattribs() const { return myKeeppointattribs; }
548  void setKeeppointattribs(bool val) { myKeeppointattribs = val; }
549  bool opKeeppointattribs(const SOP_NodeVerb::CookParms &cookparms) const
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getKeeppointattribs();
553  bool result;
554  OP_Utils::evalOpParm(result, thissop, "keeppointattribs", cookparms.getCookTime(), 0);
555  return result;
556  }
557 
558 private:
559  UT_StringHolder myAgroup;
560  UT_StringHolder myBgroup;
561  bool myUseproxtol;
562  fpreal64 myProxtol;
563  bool mySplitcurves;
564  UT_StringHolder myInputnumattrib;
565  UT_StringHolder myPrimnumattrib;
566  UT_StringHolder myPrimuvwattrib;
567  bool myKeeppointattribs;
568 
569 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setPrimuvwattrib(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
UT_StringHolder opAgroup(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Vector2D v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
const UT_StringHolder & getPrimnumattrib() const
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
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_Vector4D &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
const UT_StringHolder & getInputnumattrib() const
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
An output stream object that owns its own string buffer storage.
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
**But if you need a result
Definition: thread.h:613
bool opSplitcurves(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, int64 &v)
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 getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
bool operator!=(const SOP_IntersectionStitchParms &src) const
void setBgroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const UT_StringHolder & getBgroup() const
exint length() const
static void saveData(std::ostream &os, fpreal64 v)
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, UT_StringHolder s)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setPrimnumattrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_StringHolder opBgroup(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, bool v)
void setInputnumattrib(const UT_StringHolder &val)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
fpreal64 opProxtol(const SOP_NodeVerb::CookParms &cookparms) const
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
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
UT_StringHolder opInputnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GT_API const UT_StringHolder version
bool operator==(const SOP_IntersectionStitchParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
UT_StringHolder opPrimuvwattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
const UT_StringHolder & getPrimuvwattrib() const
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool opUseproxtol(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, fpreal64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, UT_Vector3D &v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
#define SOP_API
Definition: SOP_API.h:10
exint getNestNumParms(TempIndex idx) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool opKeeppointattribs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &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
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
type
Definition: core.h:1059
static void loadData(UT_IStream &is, bool &v)
const UT_StringHolder & getAgroup() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void copyFrom(const OP_NodeParms *src) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
void save(std::ostream &os) const
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setAgroup(const UT_StringHolder &val)
UT_StringHolder opPrimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663