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