HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Join.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_JoinEnums
24 {
25  enum class Dir
26  {
27  UJOIN = 0,
28  VJOIN
29  };
30  enum class Joinop
31  {
32  ALL = 0,
33  GROUP,
34  SKIP
35  };
36 }
37 
38 
40 {
41 public:
42  static int version() { return 1; }
43 
45  {
46  myGroup = ""_UTsh;
47  myBlend = true;
48  myTolerance = 1;
49  myBias = 0.5;
50  myKnotmult = false;
51  myProximity = true;
52  myDir = 0;
53  myJoinop = 0;
54  myInc = 2;
55  myLoop = false;
56  myPrim = false;
57  myOnlyconnected = false;
58 
59  }
60 
61  explicit SOP_JoinParms(const SOP_JoinParms &) = default;
62  SOP_JoinParms &operator=(const SOP_JoinParms &) = default;
63  SOP_JoinParms(SOP_JoinParms &&) noexcept = default;
64  SOP_JoinParms &operator=(SOP_JoinParms &&) noexcept = default;
65 
66  ~SOP_JoinParms() override {}
67 
68  bool operator==(const SOP_JoinParms &src) const
69  {
70  if (myGroup != src.myGroup) return false;
71  if (myBlend != src.myBlend) return false;
72  if (myTolerance != src.myTolerance) return false;
73  if (myBias != src.myBias) return false;
74  if (myKnotmult != src.myKnotmult) return false;
75  if (myProximity != src.myProximity) return false;
76  if (myDir != src.myDir) return false;
77  if (myJoinop != src.myJoinop) return false;
78  if (myInc != src.myInc) return false;
79  if (myLoop != src.myLoop) return false;
80  if (myPrim != src.myPrim) return false;
81  if (myOnlyconnected != src.myOnlyconnected) return false;
82 
83  return true;
84  }
85  bool operator!=(const SOP_JoinParms &src) const
86  {
87  return !operator==(src);
88  }
91 
92 
93 
94  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
95  {
96  myGroup = ""_UTsh;
97  if (true)
98  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
99  myBlend = true;
100  if (true)
101  graph->evalOpParm(myBlend, nodeidx, "blend", time, 0);
102  myTolerance = 1;
103  if (true)
104  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
105  myBias = 0.5;
106  if (true && ( (true&&!(((getBlend()==0)))) ) )
107  graph->evalOpParm(myBias, nodeidx, "bias", time, 0);
108  myKnotmult = false;
109  if (true)
110  graph->evalOpParm(myKnotmult, nodeidx, "knotmult", time, 0);
111  myProximity = true;
112  if (true)
113  graph->evalOpParm(myProximity, nodeidx, "proximity", time, 0);
114  myDir = 0;
115  if (true)
116  graph->evalOpParm(myDir, nodeidx, "dir", time, 0);
117  myJoinop = 0;
118  if (true)
119  graph->evalOpParm(myJoinop, nodeidx, "joinop", time, 0);
120  myInc = 2;
121  if (true && ( (true&&!(((int64(getJoinop())==0)))) ) )
122  graph->evalOpParm(myInc, nodeidx, "inc", time, 0);
123  myLoop = false;
124  if (true)
125  graph->evalOpParm(myLoop, nodeidx, "loop", time, 0);
126  myPrim = false;
127  if (true)
128  graph->evalOpParm(myPrim, nodeidx, "prim", time, 0);
129  myOnlyconnected = false;
130  if (true)
131  graph->evalOpParm(myOnlyconnected, nodeidx, "onlyconnected", time, 0);
132 
133  }
134 
135 
136  void loadFromOpSubclass(const LoadParms &loadparms) override
137  {
138  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
139  }
140 
141 
142  void copyFrom(const OP_NodeParms *src) override
143  {
144  *this = *((const SOP_JoinParms *)src);
145  }
146 
147  template <typename T>
148  void
149  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
150  {
151  if (idx.size() < 1)
152  return;
153  UT_ASSERT(idx.size() == instance.size()+1);
154  if (idx.size() != instance.size()+1)
155  return;
156  switch (idx[0])
157  {
158  case 0:
159  coerceValue(value, myGroup);
160  break;
161  case 1:
162  coerceValue(value, myBlend);
163  break;
164  case 2:
165  coerceValue(value, myTolerance);
166  break;
167  case 3:
168  coerceValue(value, myBias);
169  break;
170  case 4:
171  coerceValue(value, myKnotmult);
172  break;
173  case 5:
174  coerceValue(value, myProximity);
175  break;
176  case 6:
177  coerceValue(value, myDir);
178  break;
179  case 7:
180  coerceValue(value, myJoinop);
181  break;
182  case 8:
183  coerceValue(value, myInc);
184  break;
185  case 9:
186  coerceValue(value, myLoop);
187  break;
188  case 10:
189  coerceValue(value, myPrim);
190  break;
191  case 11:
192  coerceValue(value, myOnlyconnected);
193  break;
194 
195  }
196  }
197 
198  bool isParmColorRamp(exint idx) const override
199  {
200  switch (idx)
201  {
202 
203  }
204  return false;
205  }
206 
207  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
224  { doGetParmValue(idx, instance, value); }
225  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
226  { doGetParmValue(idx, instance, value); }
227  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
228  { doGetParmValue(idx, instance, value); }
229 
230  template <typename T>
231  void
232  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
233  {
234  if (idx.size() < 1)
235  return;
236  UT_ASSERT(idx.size() == instance.size()+1);
237  if (idx.size() != instance.size()+1)
238  return;
239  switch (idx[0])
240  {
241  case 0:
242  coerceValue(myGroup, ( ( value ) ));
243  break;
244  case 1:
245  coerceValue(myBlend, ( ( value ) ));
246  break;
247  case 2:
248  coerceValue(myTolerance, clampMinValue(0, clampMaxValue(1, value ) ));
249  break;
250  case 3:
251  coerceValue(myBias, clampMinValue(0, clampMaxValue(1, value ) ));
252  break;
253  case 4:
254  coerceValue(myKnotmult, ( ( value ) ));
255  break;
256  case 5:
257  coerceValue(myProximity, ( ( value ) ));
258  break;
259  case 6:
260  coerceValue(myDir, clampMinValue(0, clampMaxValue(1, value ) ));
261  break;
262  case 7:
263  coerceValue(myJoinop, clampMinValue(0, clampMaxValue(2, value ) ));
264  break;
265  case 8:
266  coerceValue(myInc, clampMinValue(1, ( value ) ));
267  break;
268  case 9:
269  coerceValue(myLoop, ( ( value ) ));
270  break;
271  case 10:
272  coerceValue(myPrim, ( ( value ) ));
273  break;
274  case 11:
275  coerceValue(myOnlyconnected, ( ( value ) ));
276  break;
277 
278  }
279  }
280 
281  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
296  { doSetParmValue(idx, instance, value); }
297  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
298  { doSetParmValue(idx, instance, value); }
299  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
300  { doSetParmValue(idx, instance, value); }
301  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
302  { doSetParmValue(idx, instance, value); }
303 
304  exint getNestNumParms(TempIndex idx) const override
305  {
306  if (idx.size() == 0)
307  return 12;
308  switch (idx[0])
309  {
310 
311  }
312  // Invalid
313  return 0;
314  }
315 
316  const char *getNestParmName(TempIndex fieldnum) const override
317  {
318  if (fieldnum.size() < 1)
319  return 0;
320  switch (fieldnum[0])
321  {
322  case 0:
323  return "group";
324  case 1:
325  return "blend";
326  case 2:
327  return "tolerance";
328  case 3:
329  return "bias";
330  case 4:
331  return "knotmult";
332  case 5:
333  return "proximity";
334  case 6:
335  return "dir";
336  case 7:
337  return "joinop";
338  case 8:
339  return "inc";
340  case 9:
341  return "loop";
342  case 10:
343  return "prim";
344  case 11:
345  return "onlyconnected";
346 
347  }
348  return 0;
349  }
350 
351  ParmType getNestParmType(TempIndex fieldnum) const override
352  {
353  if (fieldnum.size() < 1)
354  return PARM_UNSUPPORTED;
355  switch (fieldnum[0])
356  {
357  case 0:
358  return PARM_STRING;
359  case 1:
360  return PARM_INTEGER;
361  case 2:
362  return PARM_FLOAT;
363  case 3:
364  return PARM_FLOAT;
365  case 4:
366  return PARM_INTEGER;
367  case 5:
368  return PARM_INTEGER;
369  case 6:
370  return PARM_INTEGER;
371  case 7:
372  return PARM_INTEGER;
373  case 8:
374  return PARM_INTEGER;
375  case 9:
376  return PARM_INTEGER;
377  case 10:
378  return PARM_INTEGER;
379  case 11:
380  return PARM_INTEGER;
381 
382  }
383  return PARM_UNSUPPORTED;
384  }
385 
386  // Boiler plate to load individual types.
387  static void loadData(UT_IStream &is, int64 &v)
388  { is.bread(&v, 1); }
389  static void loadData(UT_IStream &is, bool &v)
390  { int64 iv; is.bread(&iv, 1); v = iv; }
391  static void loadData(UT_IStream &is, fpreal64 &v)
392  { is.bread<fpreal64>(&v, 1); }
393  static void loadData(UT_IStream &is, UT_Vector2D &v)
394  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
395  static void loadData(UT_IStream &is, UT_Vector3D &v)
396  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
397  is.bread<fpreal64>(&v.z(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector4D &v)
399  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
400  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
401  static void loadData(UT_IStream &is, UT_Matrix2D &v)
402  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
403  static void loadData(UT_IStream &is, UT_Matrix3D &v)
404  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
405  static void loadData(UT_IStream &is, UT_Matrix4D &v)
406  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
407  static void loadData(UT_IStream &is, UT_Vector2I &v)
408  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
409  static void loadData(UT_IStream &is, UT_Vector3I &v)
410  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
411  is.bread<int64>(&v.z(), 1); }
412  static void loadData(UT_IStream &is, UT_Vector4I &v)
413  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
414  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
416  { is.bread(v); }
418  { UT_StringHolder rampdata;
419  loadData(is, rampdata);
420  if (rampdata.isstring())
421  {
422  v.reset(new UT_Ramp());
423  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
424  v->load(istr);
425  }
426  else v.reset();
427  }
430  loadData(is, data);
431  if (data.isstring())
432  {
433  // Find the data type.
434  const char *colon = UT_StringWrap(data).findChar(':');
435  if (colon)
436  {
437  int typelen = colon - data.buffer();
439  type.strncpy(data.buffer(), typelen);
440  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
441 
442  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
443  }
444  }
445  else v.reset();
446  }
447 
448  static void saveData(std::ostream &os, int64 v)
449  { UTwrite(os, &v); }
450  static void saveData(std::ostream &os, bool v)
451  { int64 iv = v; UTwrite(os, &iv); }
452  static void saveData(std::ostream &os, fpreal64 v)
453  { UTwrite<fpreal64>(os, &v); }
454  static void saveData(std::ostream &os, UT_Vector2D v)
455  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
456  static void saveData(std::ostream &os, UT_Vector3D v)
457  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
458  UTwrite<fpreal64>(os, &v.z()); }
459  static void saveData(std::ostream &os, UT_Vector4D v)
460  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
461  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
462  static void saveData(std::ostream &os, UT_Matrix2D v)
464  static void saveData(std::ostream &os, UT_Matrix3D v)
466  static void saveData(std::ostream &os, UT_Matrix4D v)
468  static void saveData(std::ostream &os, UT_StringHolder s)
469  { UT_StringWrap(s).saveBinary(os); }
470  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
472  UT_OStringStream ostr;
473  if (s) s->save(ostr);
474  result = ostr.str();
475  saveData(os, result);
476  }
477  static void saveData(std::ostream &os, PRM_DataItemHandle s)
479  UT_OStringStream ostr;
480  if (s)
481  {
482  ostr << s->getDataTypeToken();
483  ostr << ":";
484  s->saveBinary(ostr);
485  }
486  result = ostr.str();
487  saveData(os, result);
488  }
489 
490 
491  void save(std::ostream &os) const
492  {
493  int32 v = version();
494  UTwrite(os, &v);
495  saveData(os, myGroup);
496  saveData(os, myBlend);
497  saveData(os, myTolerance);
498  saveData(os, myBias);
499  saveData(os, myKnotmult);
500  saveData(os, myProximity);
501  saveData(os, myDir);
502  saveData(os, myJoinop);
503  saveData(os, myInc);
504  saveData(os, myLoop);
505  saveData(os, myPrim);
506  saveData(os, myOnlyconnected);
507 
508  }
509 
510  bool load(UT_IStream &is)
511  {
512  int32 v;
513  is.bread(&v, 1);
514  if (version() != v)
515  {
516  // Fail incompatible versions
517  return false;
518  }
519  loadData(is, myGroup);
520  loadData(is, myBlend);
521  loadData(is, myTolerance);
522  loadData(is, myBias);
523  loadData(is, myKnotmult);
524  loadData(is, myProximity);
525  loadData(is, myDir);
526  loadData(is, myJoinop);
527  loadData(is, myInc);
528  loadData(is, myLoop);
529  loadData(is, myPrim);
530  loadData(is, myOnlyconnected);
531 
532  return true;
533  }
534 
535  const UT_StringHolder & getGroup() const { return myGroup; }
536  void setGroup(const UT_StringHolder & val) { myGroup = val; }
538  {
539  SOP_Node *thissop = cookparms.getNode();
540  if (!thissop) return getGroup();
542  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
543  return result;
544  }
545  bool getBlend() const { return myBlend; }
546  void setBlend(bool val) { myBlend = val; }
547  bool opBlend(const SOP_NodeVerb::CookParms &cookparms) const
548  {
549  SOP_Node *thissop = cookparms.getNode();
550  if (!thissop) return getBlend();
551  bool result;
552  OP_Utils::evalOpParm(result, thissop, "blend", cookparms.getCookTime(), 0);
553  return result;
554  }
555  fpreal64 getTolerance() const { return myTolerance; }
556  void setTolerance(fpreal64 val) { myTolerance = val; }
558  {
559  SOP_Node *thissop = cookparms.getNode();
560  if (!thissop) return getTolerance();
562  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
563  return result;
564  }
565  fpreal64 getBias() const { return myBias; }
566  void setBias(fpreal64 val) { myBias = val; }
567  fpreal64 opBias(const SOP_NodeVerb::CookParms &cookparms) const
568  {
569  SOP_Node *thissop = cookparms.getNode();
570  if (!thissop) return getBias();
572  OP_Utils::evalOpParm(result, thissop, "bias", cookparms.getCookTime(), 0);
573  return result;
574  }
575  bool getKnotmult() const { return myKnotmult; }
576  void setKnotmult(bool val) { myKnotmult = val; }
577  bool opKnotmult(const SOP_NodeVerb::CookParms &cookparms) const
578  {
579  SOP_Node *thissop = cookparms.getNode();
580  if (!thissop) return getKnotmult();
581  bool result;
582  OP_Utils::evalOpParm(result, thissop, "knotmult", cookparms.getCookTime(), 0);
583  return result;
584  }
585  bool getProximity() const { return myProximity; }
586  void setProximity(bool val) { myProximity = val; }
587  bool opProximity(const SOP_NodeVerb::CookParms &cookparms) const
588  {
589  SOP_Node *thissop = cookparms.getNode();
590  if (!thissop) return getProximity();
591  bool result;
592  OP_Utils::evalOpParm(result, thissop, "proximity", cookparms.getCookTime(), 0);
593  return result;
594  }
595  Dir getDir() const { return Dir(myDir); }
596  void setDir(Dir val) { myDir = int64(val); }
597  Dir opDir(const SOP_NodeVerb::CookParms &cookparms) const
598  {
599  SOP_Node *thissop = cookparms.getNode();
600  if (!thissop) return getDir();
601  int64 result;
602  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
603  return Dir(result);
604  }
605  Joinop getJoinop() const { return Joinop(myJoinop); }
606  void setJoinop(Joinop val) { myJoinop = int64(val); }
607  Joinop opJoinop(const SOP_NodeVerb::CookParms &cookparms) const
608  {
609  SOP_Node *thissop = cookparms.getNode();
610  if (!thissop) return getJoinop();
611  int64 result;
612  OP_Utils::evalOpParm(result, thissop, "joinop", cookparms.getCookTime(), 0);
613  return Joinop(result);
614  }
615  int64 getInc() const { return myInc; }
616  void setInc(int64 val) { myInc = val; }
617  int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
618  {
619  SOP_Node *thissop = cookparms.getNode();
620  if (!thissop) return getInc();
621  int64 result;
622  OP_Utils::evalOpParm(result, thissop, "inc", cookparms.getCookTime(), 0);
623  return result;
624  }
625  bool getLoop() const { return myLoop; }
626  void setLoop(bool val) { myLoop = val; }
627  bool opLoop(const SOP_NodeVerb::CookParms &cookparms) const
628  {
629  SOP_Node *thissop = cookparms.getNode();
630  if (!thissop) return getLoop();
631  bool result;
632  OP_Utils::evalOpParm(result, thissop, "loop", cookparms.getCookTime(), 0);
633  return result;
634  }
635  bool getPrim() const { return myPrim; }
636  void setPrim(bool val) { myPrim = val; }
637  bool opPrim(const SOP_NodeVerb::CookParms &cookparms) const
638  {
639  SOP_Node *thissop = cookparms.getNode();
640  if (!thissop) return getPrim();
641  bool result;
642  OP_Utils::evalOpParm(result, thissop, "prim", cookparms.getCookTime(), 0);
643  return result;
644  }
645  bool getOnlyconnected() const { return myOnlyconnected; }
646  void setOnlyconnected(bool val) { myOnlyconnected = val; }
647  bool opOnlyconnected(const SOP_NodeVerb::CookParms &cookparms) const
648  {
649  SOP_Node *thissop = cookparms.getNode();
650  if (!thissop) return getOnlyconnected();
651  bool result;
652  OP_Utils::evalOpParm(result, thissop, "onlyconnected", cookparms.getCookTime(), 0);
653  return result;
654  }
655 
656 private:
657  UT_StringHolder myGroup;
658  bool myBlend;
659  fpreal64 myTolerance;
660  fpreal64 myBias;
661  bool myKnotmult;
662  bool myProximity;
663  int64 myDir;
664  int64 myJoinop;
665  int64 myInc;
666  bool myLoop;
667  bool myPrim;
668  bool myOnlyconnected;
669 
670 };
Dir opDir(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool operator==(const SOP_JoinParms &src) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setProximity(bool val)
bool getPrim() const
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void setBlend(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setKnotmult(bool val)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static int version()
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setLoop(bool val)
void save(std::ostream &os) const
SYS_FORCE_INLINE const char * buffer() const
bool getProximity() const
bool load(UT_IStream &is)
GLdouble s
Definition: glad.h:3009
static void saveData(std::ostream &os, bool v)
fpreal64 getTolerance() const
An output stream object that owns its own string buffer storage.
void setTolerance(fpreal64 val)
static void saveData(std::ostream &os, int64 v)
void copyFrom(const OP_NodeParms *src) override
**But if you need a result
Definition: thread.h:613
void setJoinop(Joinop val)
bool getOnlyconnected() const
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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.
void setInc(int64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool opPrim(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Vector3D v)
double fpreal64
Definition: SYS_Types.h:201
bool operator!=(const SOP_JoinParms &src) const
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
fpreal64 getBias() const
bool getKnotmult() const
bool opBlend(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setOnlyconnected(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
bool opLoop(const SOP_NodeVerb::CookParms &cookparms) const
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
exint length() const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector3D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
Joinop getJoinop() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
long long int64
Definition: SYS_Types.h:116
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, fpreal64 v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
Dir getDir() const
bool opKnotmult(const SOP_NodeVerb::CookParms &cookparms) const
bool opProximity(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_StringHolder s)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setBias(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
Joinop opJoinop(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, bool &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
fpreal64 opTolerance(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
fpreal64 opBias(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
int64 opInc(const SOP_NodeVerb::CookParms &cookparms) const
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 setPrim(bool val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
bool opOnlyconnected(const SOP_NodeVerb::CookParms &cookparms) const
void setDir(Dir val)
static void loadData(UT_IStream &is, fpreal64 &v)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
ParmType getNestParmType(TempIndex fieldnum) const override
const UT_StringHolder & getGroup() const
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
Definition: core.h:1131
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void setGroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
GLboolean r
Definition: glcorearb.h:1222
bool getBlend() const
bool getLoop() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
type
Definition: core.h:1059
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
int64 getInc() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
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)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
static void saveData(std::ostream &os, UT_Matrix4D v)