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