HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupFindPath.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_GroupFindPathEnums
24 {
25  enum class Grouptype
26  {
27  AUTO = 0,
28  EDGES,
29  POINTS,
30  PRIMS,
31  VERTICES
32  };
33  enum class Pathcontroltype
34  {
35  CONTROLS = 0,
36  STARTS,
37  STARTEND
38  };
39  enum class Operation
40  {
41  PATH = 0,
44  };
45  enum class Edgestyle
46  {
47  AUTO = 0,
48  LOOP,
49  RING
50  };
51  enum class Colgrouptype
52  {
53  AUTO = 0,
54  EDGES,
55  POINTS,
56  PRIMS,
57  VERTICES
58  };
59 }
60 
61 
63 {
64 public:
65  static int version() { return 1; }
66 
68  {
69  myOutgroup = ""_UTsh;
70  myGroup = ""_UTsh;
71  myGrouptype = 0;
72  myPathcontroltype = 0;
73  myOperation = 0;
74  myAvoidprevious = true;
75  myEdgestyle = 0;
76  myUseuvattrib = false;
77  myUvattrib = "uv"_UTsh;
78  myUsecolgroup = false;
79  myColgroup = ""_UTsh;
80  myColgrouptype = 0;
81  myColgroupinvert = false;
82  myColgrouponbnd = false;
83 
84  }
85 
86  explicit SOP_GroupFindPathParms(const SOP_GroupFindPathParms &) = default;
88  SOP_GroupFindPathParms(SOP_GroupFindPathParms &&) noexcept = default;
89  SOP_GroupFindPathParms &operator=(SOP_GroupFindPathParms &&) noexcept = default;
90 
91  ~SOP_GroupFindPathParms() override {}
92 
94  {
95  if (myOutgroup != src.myOutgroup) return false;
96  if (myGroup != src.myGroup) return false;
97  if (myGrouptype != src.myGrouptype) return false;
98  if (myPathcontroltype != src.myPathcontroltype) return false;
99  if (myOperation != src.myOperation) return false;
100  if (myAvoidprevious != src.myAvoidprevious) return false;
101  if (myEdgestyle != src.myEdgestyle) return false;
102  if (myUseuvattrib != src.myUseuvattrib) return false;
103  if (myUvattrib != src.myUvattrib) return false;
104  if (myUsecolgroup != src.myUsecolgroup) return false;
105  if (myColgroup != src.myColgroup) return false;
106  if (myColgrouptype != src.myColgrouptype) return false;
107  if (myColgroupinvert != src.myColgroupinvert) return false;
108  if (myColgrouponbnd != src.myColgrouponbnd) return false;
109 
110  return true;
111  }
113  {
114  return !operator==(src);
115  }
121 
122 
123 
124  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
125  {
126  myOutgroup = ""_UTsh;
127  if (true)
128  graph->evalOpParm(myOutgroup, nodeidx, "outgroup", time, 0);
129  myGroup = ""_UTsh;
130  if (true)
131  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
132  myGrouptype = 0;
133  if (true)
134  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
135  myPathcontroltype = 0;
136  if (true)
137  graph->evalOpParm(myPathcontroltype, nodeidx, "pathcontroltype", time, 0);
138  myOperation = 0;
139  if (true)
140  graph->evalOpParm(myOperation, nodeidx, "operation", time, 0);
141  myAvoidprevious = true;
142  if (true)
143  graph->evalOpParm(myAvoidprevious, nodeidx, "avoidprevious", time, 0);
144  myEdgestyle = 0;
145  if (true && ( (true&&!(((int64(getGrouptype())==2))||((int64(getGrouptype())==3))||((int64(getGrouptype())==4)))) ) )
146  graph->evalOpParm(myEdgestyle, nodeidx, "edgestyle", time, 0);
147  myUseuvattrib = false;
148  if (true)
149  graph->evalOpParm(myUseuvattrib, nodeidx, "useuvattrib", time, 0);
150  myUvattrib = "uv"_UTsh;
151  if (true && ( (true&&!(((getUseuvattrib()==0)))) ) )
152  graph->evalOpParm(myUvattrib, nodeidx, "uvattrib", time, 0);
153  myUsecolgroup = false;
154  if (true)
155  graph->evalOpParm(myUsecolgroup, nodeidx, "usecolgroup", time, 0);
156  myColgroup = ""_UTsh;
157  if (true && ( (true&&!(((getUsecolgroup()==0)))) ) )
158  graph->evalOpParm(myColgroup, nodeidx, "colgroup", time, 0);
159  myColgrouptype = 0;
160  if (true && ( (true&&!(((getUsecolgroup()==0)))) ) )
161  graph->evalOpParm(myColgrouptype, nodeidx, "colgrouptype", time, 0);
162  myColgroupinvert = false;
163  if (true && ( (true&&!(((getUsecolgroup()==0)))) ) )
164  graph->evalOpParm(myColgroupinvert, nodeidx, "colgroupinvert", time, 0);
165  myColgrouponbnd = false;
166  if (true && ( (true&&!(((getUsecolgroup()==0))||((getColgroupinvert()==1)))) ) )
167  graph->evalOpParm(myColgrouponbnd, nodeidx, "colgrouponbnd", time, 0);
168 
169  }
170 
171 
172  void loadFromOpSubclass(const LoadParms &loadparms) override
173  {
174  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
175  }
176 
177 
178  void copyFrom(const OP_NodeParms *src) override
179  {
180  *this = *((const SOP_GroupFindPathParms *)src);
181  }
182 
183  template <typename T>
184  void
185  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
186  {
187  if (idx.size() < 1)
188  return;
189  UT_ASSERT(idx.size() == instance.size()+1);
190  if (idx.size() != instance.size()+1)
191  return;
192  switch (idx[0])
193  {
194  case 0:
195  coerceValue(value, myOutgroup);
196  break;
197  case 1:
198  coerceValue(value, myGroup);
199  break;
200  case 2:
201  coerceValue(value, myGrouptype);
202  break;
203  case 3:
204  coerceValue(value, myPathcontroltype);
205  break;
206  case 4:
207  coerceValue(value, myOperation);
208  break;
209  case 5:
210  coerceValue(value, myAvoidprevious);
211  break;
212  case 6:
213  coerceValue(value, myEdgestyle);
214  break;
215  case 7:
216  coerceValue(value, myUseuvattrib);
217  break;
218  case 8:
219  coerceValue(value, myUvattrib);
220  break;
221  case 9:
222  coerceValue(value, myUsecolgroup);
223  break;
224  case 10:
225  coerceValue(value, myColgroup);
226  break;
227  case 11:
228  coerceValue(value, myColgrouptype);
229  break;
230  case 12:
231  coerceValue(value, myColgroupinvert);
232  break;
233  case 13:
234  coerceValue(value, myColgrouponbnd);
235  break;
236 
237  }
238  }
239 
240  bool isParmColorRamp(exint idx) const override
241  {
242  switch (idx)
243  {
244 
245  }
246  return false;
247  }
248 
249  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
250  { doGetParmValue(idx, instance, value); }
251  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
252  { doGetParmValue(idx, instance, value); }
253  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
254  { doGetParmValue(idx, instance, value); }
255  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
256  { doGetParmValue(idx, instance, value); }
257  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
258  { doGetParmValue(idx, instance, value); }
259  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
260  { doGetParmValue(idx, instance, value); }
261  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
262  { doGetParmValue(idx, instance, value); }
263  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
264  { doGetParmValue(idx, instance, value); }
265  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
266  { doGetParmValue(idx, instance, value); }
267  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
268  { doGetParmValue(idx, instance, value); }
269  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
270  { doGetParmValue(idx, instance, value); }
271 
272  template <typename T>
273  void
274  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
275  {
276  if (idx.size() < 1)
277  return;
278  UT_ASSERT(idx.size() == instance.size()+1);
279  if (idx.size() != instance.size()+1)
280  return;
281  switch (idx[0])
282  {
283  case 0:
284  coerceValue(myOutgroup, ( ( value ) ));
285  break;
286  case 1:
287  coerceValue(myGroup, ( ( value ) ));
288  break;
289  case 2:
290  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
291  break;
292  case 3:
293  coerceValue(myPathcontroltype, clampMinValue(0, clampMaxValue(2, value ) ));
294  break;
295  case 4:
296  coerceValue(myOperation, clampMinValue(0, clampMaxValue(2, value ) ));
297  break;
298  case 5:
299  coerceValue(myAvoidprevious, ( ( value ) ));
300  break;
301  case 6:
302  coerceValue(myEdgestyle, clampMinValue(0, clampMaxValue(2, value ) ));
303  break;
304  case 7:
305  coerceValue(myUseuvattrib, ( ( value ) ));
306  break;
307  case 8:
308  coerceValue(myUvattrib, ( ( value ) ));
309  break;
310  case 9:
311  coerceValue(myUsecolgroup, ( ( value ) ));
312  break;
313  case 10:
314  coerceValue(myColgroup, ( ( value ) ));
315  break;
316  case 11:
317  coerceValue(myColgrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
318  break;
319  case 12:
320  coerceValue(myColgroupinvert, ( ( value ) ));
321  break;
322  case 13:
323  coerceValue(myColgrouponbnd, ( ( value ) ));
324  break;
325 
326  }
327  }
328 
329  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
330  { doSetParmValue(idx, instance, value); }
331  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
332  { doSetParmValue(idx, instance, value); }
333  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
334  { doSetParmValue(idx, instance, value); }
335  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
336  { doSetParmValue(idx, instance, value); }
337  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
338  { doSetParmValue(idx, instance, value); }
339  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
340  { doSetParmValue(idx, instance, value); }
341  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
342  { doSetParmValue(idx, instance, value); }
343  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
344  { doSetParmValue(idx, instance, value); }
345  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
346  { doSetParmValue(idx, instance, value); }
347  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
348  { doSetParmValue(idx, instance, value); }
349  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
350  { doSetParmValue(idx, instance, value); }
351 
352  exint getNestNumParms(TempIndex idx) const override
353  {
354  if (idx.size() == 0)
355  return 14;
356  switch (idx[0])
357  {
358 
359  }
360  // Invalid
361  return 0;
362  }
363 
364  const char *getNestParmName(TempIndex fieldnum) const override
365  {
366  if (fieldnum.size() < 1)
367  return 0;
368  switch (fieldnum[0])
369  {
370  case 0:
371  return "outgroup";
372  case 1:
373  return "group";
374  case 2:
375  return "grouptype";
376  case 3:
377  return "pathcontroltype";
378  case 4:
379  return "operation";
380  case 5:
381  return "avoidprevious";
382  case 6:
383  return "edgestyle";
384  case 7:
385  return "useuvattrib";
386  case 8:
387  return "uvattrib";
388  case 9:
389  return "usecolgroup";
390  case 10:
391  return "colgroup";
392  case 11:
393  return "colgrouptype";
394  case 12:
395  return "colgroupinvert";
396  case 13:
397  return "colgrouponbnd";
398 
399  }
400  return 0;
401  }
402 
403  ParmType getNestParmType(TempIndex fieldnum) const override
404  {
405  if (fieldnum.size() < 1)
406  return PARM_UNSUPPORTED;
407  switch (fieldnum[0])
408  {
409  case 0:
410  return PARM_STRING;
411  case 1:
412  return PARM_STRING;
413  case 2:
414  return PARM_INTEGER;
415  case 3:
416  return PARM_INTEGER;
417  case 4:
418  return PARM_INTEGER;
419  case 5:
420  return PARM_INTEGER;
421  case 6:
422  return PARM_INTEGER;
423  case 7:
424  return PARM_INTEGER;
425  case 8:
426  return PARM_STRING;
427  case 9:
428  return PARM_INTEGER;
429  case 10:
430  return PARM_STRING;
431  case 11:
432  return PARM_INTEGER;
433  case 12:
434  return PARM_INTEGER;
435  case 13:
436  return PARM_INTEGER;
437 
438  }
439  return PARM_UNSUPPORTED;
440  }
441 
442  // Boiler plate to load individual types.
443  static void loadData(UT_IStream &is, int64 &v)
444  { is.bread(&v, 1); }
445  static void loadData(UT_IStream &is, bool &v)
446  { int64 iv; is.bread(&iv, 1); v = iv; }
447  static void loadData(UT_IStream &is, fpreal64 &v)
448  { is.bread<fpreal64>(&v, 1); }
449  static void loadData(UT_IStream &is, UT_Vector2D &v)
450  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
451  static void loadData(UT_IStream &is, UT_Vector3D &v)
452  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
453  is.bread<fpreal64>(&v.z(), 1); }
454  static void loadData(UT_IStream &is, UT_Vector4D &v)
455  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
456  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
457  static void loadData(UT_IStream &is, UT_Matrix2D &v)
458  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
459  static void loadData(UT_IStream &is, UT_Matrix3D &v)
460  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
461  static void loadData(UT_IStream &is, UT_Matrix4D &v)
462  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
463  static void loadData(UT_IStream &is, UT_Vector2I &v)
464  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
465  static void loadData(UT_IStream &is, UT_Vector3I &v)
466  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
467  is.bread<int64>(&v.z(), 1); }
468  static void loadData(UT_IStream &is, UT_Vector4I &v)
469  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
470  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
472  { is.bread(v); }
474  { UT_StringHolder rampdata;
475  loadData(is, rampdata);
476  if (rampdata.isstring())
477  {
478  v.reset(new UT_Ramp());
479  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
480  v->load(istr);
481  }
482  else v.reset();
483  }
486  loadData(is, data);
487  if (data.isstring())
488  {
489  // Find the data type.
490  const char *colon = UT_StringWrap(data).findChar(':');
491  if (colon)
492  {
493  int typelen = colon - data.buffer();
495  type.strncpy(data.buffer(), typelen);
496  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
497 
498  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
499  }
500  }
501  else v.reset();
502  }
503 
504  static void saveData(std::ostream &os, int64 v)
505  { UTwrite(os, &v); }
506  static void saveData(std::ostream &os, bool v)
507  { int64 iv = v; UTwrite(os, &iv); }
508  static void saveData(std::ostream &os, fpreal64 v)
509  { UTwrite<fpreal64>(os, &v); }
510  static void saveData(std::ostream &os, UT_Vector2D v)
511  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
512  static void saveData(std::ostream &os, UT_Vector3D v)
513  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
514  UTwrite<fpreal64>(os, &v.z()); }
515  static void saveData(std::ostream &os, UT_Vector4D v)
516  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
517  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
518  static void saveData(std::ostream &os, UT_Matrix2D v)
520  static void saveData(std::ostream &os, UT_Matrix3D v)
522  static void saveData(std::ostream &os, UT_Matrix4D v)
524  static void saveData(std::ostream &os, UT_StringHolder s)
525  { UT_StringWrap(s).saveBinary(os); }
526  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
528  UT_OStringStream ostr;
529  if (s) s->save(ostr);
530  result = ostr.str();
531  saveData(os, result);
532  }
533  static void saveData(std::ostream &os, PRM_DataItemHandle s)
535  UT_OStringStream ostr;
536  if (s)
537  {
538  ostr << s->getDataTypeToken();
539  ostr << ":";
540  s->saveBinary(ostr);
541  }
542  result = ostr.str();
543  saveData(os, result);
544  }
545 
546 
547  void save(std::ostream &os) const
548  {
549  int32 v = version();
550  UTwrite(os, &v);
551  saveData(os, myOutgroup);
552  saveData(os, myGroup);
553  saveData(os, myGrouptype);
554  saveData(os, myPathcontroltype);
555  saveData(os, myOperation);
556  saveData(os, myAvoidprevious);
557  saveData(os, myEdgestyle);
558  saveData(os, myUseuvattrib);
559  saveData(os, myUvattrib);
560  saveData(os, myUsecolgroup);
561  saveData(os, myColgroup);
562  saveData(os, myColgrouptype);
563  saveData(os, myColgroupinvert);
564  saveData(os, myColgrouponbnd);
565 
566  }
567 
568  bool load(UT_IStream &is)
569  {
570  int32 v;
571  is.bread(&v, 1);
572  if (version() != v)
573  {
574  // Fail incompatible versions
575  return false;
576  }
577  loadData(is, myOutgroup);
578  loadData(is, myGroup);
579  loadData(is, myGrouptype);
580  loadData(is, myPathcontroltype);
581  loadData(is, myOperation);
582  loadData(is, myAvoidprevious);
583  loadData(is, myEdgestyle);
584  loadData(is, myUseuvattrib);
585  loadData(is, myUvattrib);
586  loadData(is, myUsecolgroup);
587  loadData(is, myColgroup);
588  loadData(is, myColgrouptype);
589  loadData(is, myColgroupinvert);
590  loadData(is, myColgrouponbnd);
591 
592  return true;
593  }
594 
595  const UT_StringHolder & getOutgroup() const { return myOutgroup; }
596  void setOutgroup(const UT_StringHolder & val) { myOutgroup = val; }
598  {
599  SOP_Node *thissop = cookparms.getNode();
600  if (!thissop) return getOutgroup();
602  OP_Utils::evalOpParm(result, thissop, "outgroup", cookparms.getCookTime(), 0);
603  return result;
604  }
605  const UT_StringHolder & getGroup() const { return myGroup; }
606  void setGroup(const UT_StringHolder & val) { myGroup = val; }
608  {
609  SOP_Node *thissop = cookparms.getNode();
610  if (!thissop) return getGroup();
612  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
613  return result;
614  }
615  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
616  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
618  {
619  SOP_Node *thissop = cookparms.getNode();
620  if (!thissop) return getGrouptype();
621  int64 result;
622  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
623  return Grouptype(result);
624  }
625  Pathcontroltype getPathcontroltype() const { return Pathcontroltype(myPathcontroltype); }
626  void setPathcontroltype(Pathcontroltype val) { myPathcontroltype = int64(val); }
628  {
629  SOP_Node *thissop = cookparms.getNode();
630  if (!thissop) return getPathcontroltype();
631  int64 result;
632  OP_Utils::evalOpParm(result, thissop, "pathcontroltype", cookparms.getCookTime(), 0);
633  return Pathcontroltype(result);
634  }
635  Operation getOperation() const { return Operation(myOperation); }
636  void setOperation(Operation val) { myOperation = int64(val); }
638  {
639  SOP_Node *thissop = cookparms.getNode();
640  if (!thissop) return getOperation();
641  int64 result;
642  OP_Utils::evalOpParm(result, thissop, "operation", cookparms.getCookTime(), 0);
643  return Operation(result);
644  }
645  bool getAvoidprevious() const { return myAvoidprevious; }
646  void setAvoidprevious(bool val) { myAvoidprevious = val; }
647  bool opAvoidprevious(const SOP_NodeVerb::CookParms &cookparms) const
648  {
649  SOP_Node *thissop = cookparms.getNode();
650  if (!thissop) return getAvoidprevious();
651  bool result;
652  OP_Utils::evalOpParm(result, thissop, "avoidprevious", cookparms.getCookTime(), 0);
653  return result;
654  }
655  Edgestyle getEdgestyle() const { return Edgestyle(myEdgestyle); }
656  void setEdgestyle(Edgestyle val) { myEdgestyle = int64(val); }
658  {
659  SOP_Node *thissop = cookparms.getNode();
660  if (!thissop) return getEdgestyle();
661  int64 result;
662  OP_Utils::evalOpParm(result, thissop, "edgestyle", cookparms.getCookTime(), 0);
663  return Edgestyle(result);
664  }
665  bool getUseuvattrib() const { return myUseuvattrib; }
666  void setUseuvattrib(bool val) { myUseuvattrib = val; }
667  bool opUseuvattrib(const SOP_NodeVerb::CookParms &cookparms) const
668  {
669  SOP_Node *thissop = cookparms.getNode();
670  if (!thissop) return getUseuvattrib();
671  bool result;
672  OP_Utils::evalOpParm(result, thissop, "useuvattrib", cookparms.getCookTime(), 0);
673  return result;
674  }
675  const UT_StringHolder & getUvattrib() const { return myUvattrib; }
676  void setUvattrib(const UT_StringHolder & val) { myUvattrib = val; }
678  {
679  SOP_Node *thissop = cookparms.getNode();
680  if (!thissop) return getUvattrib();
682  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
683  return result;
684  }
685  bool getUsecolgroup() const { return myUsecolgroup; }
686  void setUsecolgroup(bool val) { myUsecolgroup = val; }
687  bool opUsecolgroup(const SOP_NodeVerb::CookParms &cookparms) const
688  {
689  SOP_Node *thissop = cookparms.getNode();
690  if (!thissop) return getUsecolgroup();
691  bool result;
692  OP_Utils::evalOpParm(result, thissop, "usecolgroup", cookparms.getCookTime(), 0);
693  return result;
694  }
695  const UT_StringHolder & getColgroup() const { return myColgroup; }
696  void setColgroup(const UT_StringHolder & val) { myColgroup = val; }
698  {
699  SOP_Node *thissop = cookparms.getNode();
700  if (!thissop) return getColgroup();
702  OP_Utils::evalOpParm(result, thissop, "colgroup", cookparms.getCookTime(), 0);
703  return result;
704  }
705  Colgrouptype getColgrouptype() const { return Colgrouptype(myColgrouptype); }
706  void setColgrouptype(Colgrouptype val) { myColgrouptype = int64(val); }
708  {
709  SOP_Node *thissop = cookparms.getNode();
710  if (!thissop) return getColgrouptype();
711  int64 result;
712  OP_Utils::evalOpParm(result, thissop, "colgrouptype", cookparms.getCookTime(), 0);
713  return Colgrouptype(result);
714  }
715  bool getColgroupinvert() const { return myColgroupinvert; }
716  void setColgroupinvert(bool val) { myColgroupinvert = val; }
717  bool opColgroupinvert(const SOP_NodeVerb::CookParms &cookparms) const
718  {
719  SOP_Node *thissop = cookparms.getNode();
720  if (!thissop) return getColgroupinvert();
721  bool result;
722  OP_Utils::evalOpParm(result, thissop, "colgroupinvert", cookparms.getCookTime(), 0);
723  return result;
724  }
725  bool getColgrouponbnd() const { return myColgrouponbnd; }
726  void setColgrouponbnd(bool val) { myColgrouponbnd = val; }
727  bool opColgrouponbnd(const SOP_NodeVerb::CookParms &cookparms) const
728  {
729  SOP_Node *thissop = cookparms.getNode();
730  if (!thissop) return getColgrouponbnd();
731  bool result;
732  OP_Utils::evalOpParm(result, thissop, "colgrouponbnd", cookparms.getCookTime(), 0);
733  return result;
734  }
735 
736 private:
737  UT_StringHolder myOutgroup;
738  UT_StringHolder myGroup;
739  int64 myGrouptype;
740  int64 myPathcontroltype;
741  int64 myOperation;
742  bool myAvoidprevious;
743  int64 myEdgestyle;
744  bool myUseuvattrib;
745  UT_StringHolder myUvattrib;
746  bool myUsecolgroup;
747  UT_StringHolder myColgroup;
748  int64 myColgrouptype;
749  bool myColgroupinvert;
750  bool myColgrouponbnd;
751 
752 };
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void copyFrom(const OP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, UT_Vector2D v)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
Pathcontroltype getPathcontroltype() 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 buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool opAvoidprevious(const SOP_NodeVerb::CookParms &cookparms) const
void setColgroup(const UT_StringHolder &val)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void loadData(UT_IStream &is, int64 &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
Operation opOperation(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
static void saveData(std::ostream &os, bool v)
void setPathcontroltype(Pathcontroltype val)
An output stream object that owns its own string buffer storage.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setEdgestyle(Edgestyle val)
void setOperation(Operation val)
**But if you need a result
Definition: thread.h:613
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
const UT_StringHolder & getUvattrib() const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool opColgrouponbnd(const SOP_NodeVerb::CookParms &cookparms) const
Colgrouptype opColgrouptype(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, fpreal64 v)
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const SOP_GroupFindPathParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setGroup(const UT_StringHolder &val)
void setGrouptype(Grouptype val)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector2I &v)
ParmType getNestParmType(TempIndex fieldnum) const override
bool isParmColorRamp(exint idx) const override
const UT_StringHolder & getColgroup() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
exint length() const
UT_StringHolder opOutgroup(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
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
bool opUsecolgroup(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
exint getNestNumParms(TempIndex idx) const override
UT_StringHolder opColgroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_Matrix2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool operator!=(const SOP_GroupFindPathParms &src) const
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_Matrix2D &value) const override
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, int64 v)
UT_StringHolder opUvattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setOutgroup(const UT_StringHolder &val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
Colgrouptype getColgrouptype() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void loadFromOpSubclass(const LoadParms &loadparms) override
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Vector3I &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setUvattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &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
static void loadData(UT_IStream &is, UT_StringHolder &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, fpreal64 &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 getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
Edgestyle opEdgestyle(const SOP_NodeVerb::CookParms &cookparms) const
bool opUseuvattrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_Vector4D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
type
Definition: core.h:1059
const UT_StringHolder & getOutgroup() const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3D &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void saveData(std::ostream &os, UT_Matrix3D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void setColgrouptype(Colgrouptype val)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
Pathcontroltype opPathcontroltype(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glcorearb.h:1793
bool opColgroupinvert(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663