HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupTransfer.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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 
23 {
24 public:
25  static int version() { return 1; }
26 
28  {
29  myPrimitives = true;
30  myPrimgroups = ""_sh;
31  myPrimnameprefix = ""_sh;
32  myPoints = true;
33  myPointgroups = ""_sh;
34  myPointnameprefix = ""_sh;
35  myEdges = true;
36  myEdgegroups = ""_sh;
37  myEdgenameprefix = ""_sh;
38  myGroupnameconflict = "skipgroup"_sh;
39  myThreshold = true;
40  myThresholddist = 10;
41  myKeepifempty = true;
42 
43  }
44 
45  explicit SOP_GroupTransferParms(const SOP_GroupTransferParms &) = default;
46 
48 
50  {
51  if (myPrimitives != src.myPrimitives) return false;
52  if (myPrimgroups != src.myPrimgroups) return false;
53  if (myPrimnameprefix != src.myPrimnameprefix) return false;
54  if (myPoints != src.myPoints) return false;
55  if (myPointgroups != src.myPointgroups) return false;
56  if (myPointnameprefix != src.myPointnameprefix) return false;
57  if (myEdges != src.myEdges) return false;
58  if (myEdgegroups != src.myEdgegroups) return false;
59  if (myEdgenameprefix != src.myEdgenameprefix) return false;
60  if (myGroupnameconflict != src.myGroupnameconflict) return false;
61  if (myThreshold != src.myThreshold) return false;
62  if (myThresholddist != src.myThresholddist) return false;
63  if (myKeepifempty != src.myKeepifempty) return false;
64 
65  return true;
66  }
68  {
69  return !operator==(src);
70  }
71 
72 
73 
74  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
75  {
76  if (true)
77  OP_Utils::evalOpParm(myPrimitives, node, "primitives", time, 0);
78  else myPrimitives = true;
79  if (true && ( (!(((getPrimitives()==0)))) ) )
80  OP_Utils::evalOpParm(myPrimgroups, node, "primgroups", time, 0);
81  else myPrimgroups = ""_sh;
82  if (true && ( (!(((getPrimitives()==0)))) ) )
83  OP_Utils::evalOpParm(myPrimnameprefix, node, "primnameprefix", time, 0);
84  else myPrimnameprefix = ""_sh;
85  if (true)
86  OP_Utils::evalOpParm(myPoints, node, "points", time, 0);
87  else myPoints = true;
88  if (true && ( (!(((getPoints()==0)))) ) )
89  OP_Utils::evalOpParm(myPointgroups, node, "pointgroups", time, 0);
90  else myPointgroups = ""_sh;
91  if (true && ( (!(((getPoints()==0)))) ) )
92  OP_Utils::evalOpParm(myPointnameprefix, node, "pointnameprefix", time, 0);
93  else myPointnameprefix = ""_sh;
94  if (true)
95  OP_Utils::evalOpParm(myEdges, node, "edges", time, 0);
96  else myEdges = true;
97  if (true && ( (!(((getEdges()==0)))) ) )
98  OP_Utils::evalOpParm(myEdgegroups, node, "edgegroups", time, 0);
99  else myEdgegroups = ""_sh;
100  if (true && ( (!(((getEdges()==0)))) ) )
101  OP_Utils::evalOpParm(myEdgenameprefix, node, "edgenameprefix", time, 0);
102  else myEdgenameprefix = ""_sh;
103  if (true)
104  OP_Utils::evalOpParm(myGroupnameconflict, node, "groupnameconflict", time, 0);
105  else myGroupnameconflict = "skipgroup"_sh;
106  if (true)
107  OP_Utils::evalOpParm(myThreshold, node, "threshold", time, 0);
108  else myThreshold = true;
109  if (true && ( (!(((getThreshold()==0)))) ) )
110  OP_Utils::evalOpParm(myThresholddist, node, "thresholddist", time, 0);
111  else myThresholddist = 10;
112  if (true)
113  OP_Utils::evalOpParm(myKeepifempty, node, "keepifempty", time, 0);
114  else myKeepifempty = true;
115 
116  }
117 
118 
119  virtual void loadFromOpSubclass(const LoadParms &loadparms)
120  {
121  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
122  }
123 
124 
125  virtual void copyFrom(const SOP_NodeParms *src)
126  {
127  *this = *((const SOP_GroupTransferParms *)src);
128  }
129 
130  template <typename T>
131  void
132  doGetParmValue(exint idx, T &value) const
133  {
134  switch (idx)
135  {
136  case 0:
137  coerceValue(value, myPrimitives);
138  break;
139  case 1:
140  coerceValue(value, myPrimgroups);
141  break;
142  case 2:
143  coerceValue(value, myPrimnameprefix);
144  break;
145  case 3:
146  coerceValue(value, myPoints);
147  break;
148  case 4:
149  coerceValue(value, myPointgroups);
150  break;
151  case 5:
152  coerceValue(value, myPointnameprefix);
153  break;
154  case 6:
155  coerceValue(value, myEdges);
156  break;
157  case 7:
158  coerceValue(value, myEdgegroups);
159  break;
160  case 8:
161  coerceValue(value, myEdgenameprefix);
162  break;
163  case 9:
164  coerceValue(value, myGroupnameconflict);
165  break;
166  case 10:
167  coerceValue(value, myThreshold);
168  break;
169  case 11:
170  coerceValue(value, myThresholddist);
171  break;
172  case 12:
173  coerceValue(value, myKeepifempty);
174  break;
175 
176  }
177  }
178 
179  void getParmValue(exint idx, exint &value) const
180  { doGetParmValue(idx, value); }
181  void getParmValue(exint idx, fpreal &value) const
182  { doGetParmValue(idx, value); }
184  { doGetParmValue(idx, value); }
186  { doGetParmValue(idx, value); }
188  { doGetParmValue(idx, value); }
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
200  { doGetParmValue(idx, value); }
201 
202  template <typename T>
203  void
204  doSetParmValue(exint idx, const T &value)
205  {
206  switch (idx)
207  {
208  case 0:
209  coerceValue(myPrimitives, value);
210  break;
211  case 1:
212  coerceValue(myPrimgroups, value);
213  break;
214  case 2:
215  coerceValue(myPrimnameprefix, value);
216  break;
217  case 3:
218  coerceValue(myPoints, value);
219  break;
220  case 4:
221  coerceValue(myPointgroups, value);
222  break;
223  case 5:
224  coerceValue(myPointnameprefix, value);
225  break;
226  case 6:
227  coerceValue(myEdges, value);
228  break;
229  case 7:
230  coerceValue(myEdgegroups, value);
231  break;
232  case 8:
233  coerceValue(myEdgenameprefix, value);
234  break;
235  case 9:
236  coerceValue(myGroupnameconflict, value);
237  break;
238  case 10:
239  coerceValue(myThreshold, value);
240  break;
241  case 11:
242  coerceValue(myThresholddist, value);
243  break;
244  case 12:
245  coerceValue(myKeepifempty, value);
246  break;
247 
248  }
249  }
250 
251  void setParmValue(exint idx, const exint &value)
252  { doSetParmValue(idx, value); }
253  void setParmValue(exint idx, const fpreal &value)
254  { doSetParmValue(idx, value); }
255  void setParmValue(exint idx, const UT_Vector2D &value)
256  { doSetParmValue(idx, value); }
257  void setParmValue(exint idx, const UT_Vector3D &value)
258  { doSetParmValue(idx, value); }
259  void setParmValue(exint idx, const UT_Vector4D &value)
260  { doSetParmValue(idx, value); }
261  void setParmValue(exint idx, const UT_Matrix2D &value)
262  { doSetParmValue(idx, value); }
263  void setParmValue(exint idx, const UT_Matrix3D &value)
264  { doSetParmValue(idx, value); }
265  void setParmValue(exint idx, const UT_Matrix4D &value)
266  { doSetParmValue(idx, value); }
268  { doSetParmValue(idx, value); }
270  { doSetParmValue(idx, value); }
272  { doSetParmValue(idx, value); }
273 
274  virtual exint getNumParms() const
275  {
276  return 13;
277  }
278 
279  virtual const char *getParmName(exint fieldnum) const
280  {
281  switch (fieldnum)
282  {
283  case 0:
284  return "primitives";
285  case 1:
286  return "primgroups";
287  case 2:
288  return "primnameprefix";
289  case 3:
290  return "points";
291  case 4:
292  return "pointgroups";
293  case 5:
294  return "pointnameprefix";
295  case 6:
296  return "edges";
297  case 7:
298  return "edgegroups";
299  case 8:
300  return "edgenameprefix";
301  case 9:
302  return "groupnameconflict";
303  case 10:
304  return "threshold";
305  case 11:
306  return "thresholddist";
307  case 12:
308  return "keepifempty";
309 
310  }
311  return 0;
312  }
313 
314  virtual ParmType getParmType(exint fieldnum) const
315  {
316  switch (fieldnum)
317  {
318  case 0:
319  return PARM_INTEGER;
320  case 1:
321  return PARM_STRING;
322  case 2:
323  return PARM_STRING;
324  case 3:
325  return PARM_INTEGER;
326  case 4:
327  return PARM_STRING;
328  case 5:
329  return PARM_STRING;
330  case 6:
331  return PARM_INTEGER;
332  case 7:
333  return PARM_STRING;
334  case 8:
335  return PARM_STRING;
336  case 9:
337  return PARM_STRING;
338  case 10:
339  return PARM_INTEGER;
340  case 11:
341  return PARM_FLOAT;
342  case 12:
343  return PARM_INTEGER;
344 
345  }
346  return PARM_UNSUPPORTED;
347  }
348 
349  // Boiler plate to load individual types.
350  static void loadData(UT_IStream &is, int64 &v)
351  { is.bread(&v, 1); }
352  static void loadData(UT_IStream &is, bool &v)
353  { int64 iv; is.bread(&iv, 1); v = iv; }
354  static void loadData(UT_IStream &is, fpreal64 &v)
355  { is.bread<fpreal64>(&v, 1); }
356  static void loadData(UT_IStream &is, UT_Vector2D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
358  static void loadData(UT_IStream &is, UT_Vector3D &v)
359  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
360  is.bread<fpreal64>(&v.z(), 1); }
361  static void loadData(UT_IStream &is, UT_Vector4D &v)
362  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
363  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
364  static void loadData(UT_IStream &is, UT_Matrix2D &v)
365  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
366  static void loadData(UT_IStream &is, UT_Matrix3D &v)
367  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
368  static void loadData(UT_IStream &is, UT_Matrix4D &v)
369  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
370  static void loadData(UT_IStream &is, UT_Vector2I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
372  static void loadData(UT_IStream &is, UT_Vector3I &v)
373  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
374  is.bread<int64>(&v.z(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector4I &v)
376  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
377  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
379  { is.bread(v); }
381  { UT_StringHolder rampdata;
382  loadData(is, rampdata);
383  if (rampdata.isstring())
384  {
385  v.reset(new UT_Ramp());
386  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
387  v->load(istr);
388  }
389  else v.reset();
390  }
393  loadData(is, data);
394  if (data.isstring())
395  {
396  // Find the data type.
397  char *colon = UT_StringWrap(data).findChar(':');
398  if (colon)
399  {
400  int typelen = colon - data.buffer();
402  type.strncpy(data.buffer(), typelen);
403  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
404 
405  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
406  }
407  }
408  else v.reset();
409  }
410 
411  static void saveData(std::ostream &os, int64 v)
412  { UTwrite(os, &v); }
413  static void saveData(std::ostream &os, bool v)
414  { int64 iv = v; UTwrite(os, &iv); }
415  static void saveData(std::ostream &os, fpreal64 v)
416  { UTwrite<fpreal64>(os, &v); }
417  static void saveData(std::ostream &os, UT_Vector2D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
419  static void saveData(std::ostream &os, UT_Vector3D v)
420  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
421  UTwrite<fpreal64>(os, &v.z()); }
422  static void saveData(std::ostream &os, UT_Vector4D v)
423  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
424  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
425  static void saveData(std::ostream &os, UT_Matrix2D v)
427  static void saveData(std::ostream &os, UT_Matrix3D v)
429  static void saveData(std::ostream &os, UT_Matrix4D v)
431  static void saveData(std::ostream &os, UT_StringHolder s)
432  { UT_StringWrap(s).saveBinary(os); }
433  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
434  { UT_StringHolder result;
435  UT_OStringStream ostr;
436  if (s) s->save(ostr);
437  result = ostr.str();
438  saveData(os, result);
439  }
440  static void saveData(std::ostream &os, PRM_DataItemHandle s)
441  { UT_StringHolder result;
442  UT_OStringStream ostr;
443  if (s)
444  {
445  ostr << s->getDataTypeToken();
446  ostr << ":";
447  s->saveBinary(ostr);
448  }
449  result = ostr.str();
450  saveData(os, result);
451  }
452 
453 
454  void save(std::ostream &os) const
455  {
456  int32 v = version();
457  UTwrite(os, &v);
458  saveData(os, myPrimitives);
459  saveData(os, myPrimgroups);
460  saveData(os, myPrimnameprefix);
461  saveData(os, myPoints);
462  saveData(os, myPointgroups);
463  saveData(os, myPointnameprefix);
464  saveData(os, myEdges);
465  saveData(os, myEdgegroups);
466  saveData(os, myEdgenameprefix);
467  saveData(os, myGroupnameconflict);
468  saveData(os, myThreshold);
469  saveData(os, myThresholddist);
470  saveData(os, myKeepifempty);
471 
472  }
473 
474  bool load(UT_IStream &is)
475  {
476  int32 v;
477  is.bread(&v, 1);
478  if (version() != v)
479  {
480  // Fail incompatible versions
481  return false;
482  }
483  loadData(is, myPrimitives);
484  loadData(is, myPrimgroups);
485  loadData(is, myPrimnameprefix);
486  loadData(is, myPoints);
487  loadData(is, myPointgroups);
488  loadData(is, myPointnameprefix);
489  loadData(is, myEdges);
490  loadData(is, myEdgegroups);
491  loadData(is, myEdgenameprefix);
492  loadData(is, myGroupnameconflict);
493  loadData(is, myThreshold);
494  loadData(is, myThresholddist);
495  loadData(is, myKeepifempty);
496 
497  return true;
498  }
499 
500  bool getPrimitives() const { return myPrimitives; }
501  void setPrimitives(bool val) { myPrimitives = val; }
502  bool opPrimitives(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getPrimitives();
506  bool result;
507  OP_Utils::evalOpParm(result, thissop, "primitives", cookparms.getCookTime(), 0);
508  return result;
509  }
510  const UT_StringHolder & getPrimgroups() const { return myPrimgroups; }
511  void setPrimgroups(const UT_StringHolder & val) { myPrimgroups = val; }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getPrimgroups();
516  UT_StringHolder result;
517  OP_Utils::evalOpParm(result, thissop, "primgroups", cookparms.getCookTime(), 0);
518  return result;
519  }
520  const UT_StringHolder & getPrimnameprefix() const { return myPrimnameprefix; }
521  void setPrimnameprefix(const UT_StringHolder & val) { myPrimnameprefix = val; }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getPrimnameprefix();
526  UT_StringHolder result;
527  OP_Utils::evalOpParm(result, thissop, "primnameprefix", cookparms.getCookTime(), 0);
528  return result;
529  }
530  bool getPoints() const { return myPoints; }
531  void setPoints(bool val) { myPoints = val; }
532  bool opPoints(const SOP_NodeVerb::CookParms &cookparms) const
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getPoints();
536  bool result;
537  OP_Utils::evalOpParm(result, thissop, "points", cookparms.getCookTime(), 0);
538  return result;
539  }
540  const UT_StringHolder & getPointgroups() const { return myPointgroups; }
541  void setPointgroups(const UT_StringHolder & val) { myPointgroups = val; }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getPointgroups();
546  UT_StringHolder result;
547  OP_Utils::evalOpParm(result, thissop, "pointgroups", cookparms.getCookTime(), 0);
548  return result;
549  }
550  const UT_StringHolder & getPointnameprefix() const { return myPointnameprefix; }
551  void setPointnameprefix(const UT_StringHolder & val) { myPointnameprefix = val; }
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getPointnameprefix();
556  UT_StringHolder result;
557  OP_Utils::evalOpParm(result, thissop, "pointnameprefix", cookparms.getCookTime(), 0);
558  return result;
559  }
560  bool getEdges() const { return myEdges; }
561  void setEdges(bool val) { myEdges = val; }
562  bool opEdges(const SOP_NodeVerb::CookParms &cookparms) const
563  {
564  SOP_Node *thissop = cookparms.getNode();
565  if (!thissop) return getEdges();
566  bool result;
567  OP_Utils::evalOpParm(result, thissop, "edges", cookparms.getCookTime(), 0);
568  return result;
569  }
570  const UT_StringHolder & getEdgegroups() const { return myEdgegroups; }
571  void setEdgegroups(const UT_StringHolder & val) { myEdgegroups = val; }
573  {
574  SOP_Node *thissop = cookparms.getNode();
575  if (!thissop) return getEdgegroups();
576  UT_StringHolder result;
577  OP_Utils::evalOpParm(result, thissop, "edgegroups", cookparms.getCookTime(), 0);
578  return result;
579  }
580  const UT_StringHolder & getEdgenameprefix() const { return myEdgenameprefix; }
581  void setEdgenameprefix(const UT_StringHolder & val) { myEdgenameprefix = val; }
583  {
584  SOP_Node *thissop = cookparms.getNode();
585  if (!thissop) return getEdgenameprefix();
586  UT_StringHolder result;
587  OP_Utils::evalOpParm(result, thissop, "edgenameprefix", cookparms.getCookTime(), 0);
588  return result;
589  }
590  const UT_StringHolder & getGroupnameconflict() const { return myGroupnameconflict; }
591  void setGroupnameconflict(const UT_StringHolder & val) { myGroupnameconflict = val; }
593  {
594  SOP_Node *thissop = cookparms.getNode();
595  if (!thissop) return getGroupnameconflict();
596  UT_StringHolder result;
597  OP_Utils::evalOpParm(result, thissop, "groupnameconflict", cookparms.getCookTime(), 0);
598  return result;
599  }
600  bool getThreshold() const { return myThreshold; }
601  void setThreshold(bool val) { myThreshold = val; }
602  bool opThreshold(const SOP_NodeVerb::CookParms &cookparms) const
603  {
604  SOP_Node *thissop = cookparms.getNode();
605  if (!thissop) return getThreshold();
606  bool result;
607  OP_Utils::evalOpParm(result, thissop, "threshold", cookparms.getCookTime(), 0);
608  return result;
609  }
610  fpreal64 getThresholddist() const { return myThresholddist; }
611  void setThresholddist(fpreal64 val) { myThresholddist = val; }
613  {
614  SOP_Node *thissop = cookparms.getNode();
615  if (!thissop) return getThresholddist();
616  fpreal64 result;
617  OP_Utils::evalOpParm(result, thissop, "thresholddist", cookparms.getCookTime(), 0);
618  return result;
619  }
620  bool getKeepifempty() const { return myKeepifempty; }
621  void setKeepifempty(bool val) { myKeepifempty = val; }
622  bool opKeepifempty(const SOP_NodeVerb::CookParms &cookparms) const
623  {
624  SOP_Node *thissop = cookparms.getNode();
625  if (!thissop) return getKeepifempty();
626  bool result;
627  OP_Utils::evalOpParm(result, thissop, "keepifempty", cookparms.getCookTime(), 0);
628  return result;
629  }
630 
631 private:
632  bool myPrimitives;
633  UT_StringHolder myPrimgroups;
634  UT_StringHolder myPrimnameprefix;
635  bool myPoints;
636  UT_StringHolder myPointgroups;
637  UT_StringHolder myPointnameprefix;
638  bool myEdges;
639  UT_StringHolder myEdgegroups;
640  UT_StringHolder myEdgenameprefix;
641  UT_StringHolder myGroupnameconflict;
642  bool myThreshold;
643  fpreal64 myThresholddist;
644  bool myKeepifempty;
645 
646 };
void setParmValue(exint idx, const UT_StringHolder &value)
void save(std::ostream &os) const
void setParmValue(exint idx, const UT_Vector2D &value)
void getParmValue(exint idx, UT_Vector4D &value) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
static void loadData(UT_IStream &is, UT_Vector4I &v)
virtual void copyFrom(const SOP_NodeParms *src)
static void saveData(std::ostream &os, UT_StringHolder s)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
const UT_StringHolder & getGroupnameconflict() const
UT_StringHolder opPointgroups(const SOP_NodeVerb::CookParms &cookparms) const
T & z(void)
Definition: UT_Vector4.h:379
void getParmValue(exint idx, PRM_DataItemHandle &value) const
void setGroupnameconflict(const UT_StringHolder &val)
void setParmValue(exint idx, const UT_Matrix3D &value)
void getParmValue(exint idx, UT_Matrix3D &value) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
bool opPoints(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void saveData(std::ostream &os, UT_Vector4D v)
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
bool opEdges(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Matrix2D &value)
virtual ParmType getParmType(exint fieldnum) const
static void loadData(UT_IStream &is, int64 &v)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
UT_StringHolder opGroupnameconflict(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
UT_StringHolder opPointnameprefix(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
fpreal64 getThresholddist() const
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
UT_StringHolder opPrimnameprefix(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
const UT_StringHolder & getPrimgroups() const
void setEdgegroups(const UT_StringHolder &val)
UT_StringHolder opEdgenameprefix(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
const UT_StringHolder & getPointnameprefix() const
void setEdgenameprefix(const UT_StringHolder &val)
fpreal64 opThresholddist(const SOP_NodeVerb::CookParms &cookparms) const
bool opKeepifempty(const SOP_NodeVerb::CookParms &cookparms) const
bool opThreshold(const SOP_NodeVerb::CookParms &cookparms) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
static void loadData(UT_IStream &is, UT_Matrix2D &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
const UT_StringHolder & getPrimnameprefix() const
int64 exint
Definition: SYS_Types.h:116
void setParmValue(exint idx, const UT_Vector4D &value)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
static void saveData(std::ostream &os, UT_Matrix3D v)
double fpreal64
Definition: SYS_Types.h:192
void getParmValue(exint idx, UT_Matrix4D &value) const
void doGetParmValue(exint idx, T &value) const
void doSetParmValue(exint idx, const T &value)
void setPrimgroups(const UT_StringHolder &val)
void getParmValue(exint idx, UT_Vector3D &value) const
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
void getParmValue(exint idx, UT_Matrix2D &value) const
T & y(void)
Definition: UT_Vector4.h:377
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator==(const SOP_GroupTransferParms &src) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
const UT_StringHolder & getEdgenameprefix() const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
UT_StringHolder opPrimgroups(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector3D &value)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setPointgroups(const UT_StringHolder &val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void getParmValue(exint idx, UT_StringHolder &value) const
virtual const char * getParmName(exint fieldnum) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
static void saveData(std::ostream &os, UT_Matrix4D v)
void getParmValue(exint idx, UT_Vector2D &value) const
GLuint GLfloat * val
Definition: glcorearb.h:1607
const UT_StringHolder & getPointgroups() const
void setThresholddist(fpreal64 val)
#define SOP_API
Definition: SOP_API.h:10
bool operator!=(const SOP_GroupTransferParms &src) const
void getParmValue(exint idx, fpreal &value) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Matrix2D v)
T & y(void)
Definition: UT_Vector2.h:287
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setParmValue(exint idx, const fpreal &value)
GLboolean r
Definition: glcorearb.h:1221
virtual exint getNumParms() const
UT_StringHolder opEdgegroups(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
void setParmValue(exint idx, const UT_Matrix4D &value)
T & w(void)
Definition: UT_Vector4.h:381
const UT_StringHolder & getEdgegroups() const
bool opPrimitives(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void getParmValue(exint idx, exint &value) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setParmValue(exint idx, const exint &value)
void setPointnameprefix(const UT_StringHolder &val)
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setPrimnameprefix(const UT_StringHolder &val)
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void saveData(std::ostream &os, UT_Vector3D v)
GLenum src
Definition: glcorearb.h:1792
static void loadData(UT_IStream &is, bool &v)