HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupCopy.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  myCopyemptygroups = true;
40 
41  }
42 
43  explicit SOP_GroupCopyParms(const SOP_GroupCopyParms &) = default;
44 
45  virtual ~SOP_GroupCopyParms() {}
46 
47  bool operator==(const SOP_GroupCopyParms &src) const
48  {
49  if (myPrimitives != src.myPrimitives) return false;
50  if (myPrimgroups != src.myPrimgroups) return false;
51  if (myPrimnameprefix != src.myPrimnameprefix) return false;
52  if (myPoints != src.myPoints) return false;
53  if (myPointgroups != src.myPointgroups) return false;
54  if (myPointnameprefix != src.myPointnameprefix) return false;
55  if (myEdges != src.myEdges) return false;
56  if (myEdgegroups != src.myEdgegroups) return false;
57  if (myEdgenameprefix != src.myEdgenameprefix) return false;
58  if (myGroupnameconflict != src.myGroupnameconflict) return false;
59  if (myCopyemptygroups != src.myCopyemptygroups) return false;
60 
61  return true;
62  }
63  bool operator!=(const SOP_GroupCopyParms &src) const
64  {
65  return !operator==(src);
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(myCopyemptygroups, node, "copyemptygroups", time, 0);
104  else myCopyemptygroups = true;
105 
106  }
107 
108 
109  virtual void loadFromOpSubclass(const LoadParms &loadparms)
110  {
111  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
112  }
113 
114 
115  virtual void copyFrom(const SOP_NodeParms *src)
116  {
117  *this = *((const SOP_GroupCopyParms *)src);
118  }
119 
120  template <typename T>
121  void
122  doGetParmValue(exint idx, T &value) const
123  {
124  switch (idx)
125  {
126  case 0:
127  coerceValue(value, myPrimitives);
128  break;
129  case 1:
130  coerceValue(value, myPrimgroups);
131  break;
132  case 2:
133  coerceValue(value, myPrimnameprefix);
134  break;
135  case 3:
136  coerceValue(value, myPoints);
137  break;
138  case 4:
139  coerceValue(value, myPointgroups);
140  break;
141  case 5:
142  coerceValue(value, myPointnameprefix);
143  break;
144  case 6:
145  coerceValue(value, myEdges);
146  break;
147  case 7:
148  coerceValue(value, myEdgegroups);
149  break;
150  case 8:
151  coerceValue(value, myEdgenameprefix);
152  break;
153  case 9:
154  coerceValue(value, myGroupnameconflict);
155  break;
156  case 10:
157  coerceValue(value, myCopyemptygroups);
158  break;
159 
160  }
161  }
162 
163  void getParmValue(exint idx, exint &value) const
164  { doGetParmValue(idx, value); }
165  void getParmValue(exint idx, fpreal &value) const
166  { doGetParmValue(idx, value); }
168  { doGetParmValue(idx, value); }
170  { doGetParmValue(idx, value); }
172  { doGetParmValue(idx, value); }
174  { doGetParmValue(idx, value); }
176  { doGetParmValue(idx, value); }
178  { doGetParmValue(idx, value); }
180  { doGetParmValue(idx, value); }
182  { doGetParmValue(idx, value); }
184  { doGetParmValue(idx, value); }
185 
186  template <typename T>
187  void
188  doSetParmValue(exint idx, const T &value)
189  {
190  switch (idx)
191  {
192  case 0:
193  coerceValue(myPrimitives, value);
194  break;
195  case 1:
196  coerceValue(myPrimgroups, value);
197  break;
198  case 2:
199  coerceValue(myPrimnameprefix, value);
200  break;
201  case 3:
202  coerceValue(myPoints, value);
203  break;
204  case 4:
205  coerceValue(myPointgroups, value);
206  break;
207  case 5:
208  coerceValue(myPointnameprefix, value);
209  break;
210  case 6:
211  coerceValue(myEdges, value);
212  break;
213  case 7:
214  coerceValue(myEdgegroups, value);
215  break;
216  case 8:
217  coerceValue(myEdgenameprefix, value);
218  break;
219  case 9:
220  coerceValue(myGroupnameconflict, value);
221  break;
222  case 10:
223  coerceValue(myCopyemptygroups, value);
224  break;
225 
226  }
227  }
228 
229  void setParmValue(exint idx, const exint &value)
230  { doSetParmValue(idx, value); }
231  void setParmValue(exint idx, const fpreal &value)
232  { doSetParmValue(idx, value); }
233  void setParmValue(exint idx, const UT_Vector2D &value)
234  { doSetParmValue(idx, value); }
235  void setParmValue(exint idx, const UT_Vector3D &value)
236  { doSetParmValue(idx, value); }
237  void setParmValue(exint idx, const UT_Vector4D &value)
238  { doSetParmValue(idx, value); }
239  void setParmValue(exint idx, const UT_Matrix2D &value)
240  { doSetParmValue(idx, value); }
241  void setParmValue(exint idx, const UT_Matrix3D &value)
242  { doSetParmValue(idx, value); }
243  void setParmValue(exint idx, const UT_Matrix4D &value)
244  { doSetParmValue(idx, value); }
246  { doSetParmValue(idx, value); }
248  { doSetParmValue(idx, value); }
250  { doSetParmValue(idx, value); }
251 
252  virtual exint getNumParms() const
253  {
254  return 11;
255  }
256 
257  virtual const char *getParmName(exint fieldnum) const
258  {
259  switch (fieldnum)
260  {
261  case 0:
262  return "primitives";
263  case 1:
264  return "primgroups";
265  case 2:
266  return "primnameprefix";
267  case 3:
268  return "points";
269  case 4:
270  return "pointgroups";
271  case 5:
272  return "pointnameprefix";
273  case 6:
274  return "edges";
275  case 7:
276  return "edgegroups";
277  case 8:
278  return "edgenameprefix";
279  case 9:
280  return "groupnameconflict";
281  case 10:
282  return "copyemptygroups";
283 
284  }
285  return 0;
286  }
287 
288  virtual ParmType getParmType(exint fieldnum) const
289  {
290  switch (fieldnum)
291  {
292  case 0:
293  return PARM_INTEGER;
294  case 1:
295  return PARM_STRING;
296  case 2:
297  return PARM_STRING;
298  case 3:
299  return PARM_INTEGER;
300  case 4:
301  return PARM_STRING;
302  case 5:
303  return PARM_STRING;
304  case 6:
305  return PARM_INTEGER;
306  case 7:
307  return PARM_STRING;
308  case 8:
309  return PARM_STRING;
310  case 9:
311  return PARM_STRING;
312  case 10:
313  return PARM_INTEGER;
314 
315  }
316  return PARM_UNSUPPORTED;
317  }
318 
319  // Boiler plate to load individual types.
320  static void loadData(UT_IStream &is, int64 &v)
321  { is.bread(&v, 1); }
322  static void loadData(UT_IStream &is, bool &v)
323  { int64 iv; is.bread(&iv, 1); v = iv; }
324  static void loadData(UT_IStream &is, fpreal64 &v)
325  { is.bread<fpreal64>(&v, 1); }
326  static void loadData(UT_IStream &is, UT_Vector2D &v)
327  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
328  static void loadData(UT_IStream &is, UT_Vector3D &v)
329  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
330  is.bread<fpreal64>(&v.z(), 1); }
331  static void loadData(UT_IStream &is, UT_Vector4D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
333  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
334  static void loadData(UT_IStream &is, UT_Matrix2D &v)
335  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
336  static void loadData(UT_IStream &is, UT_Matrix3D &v)
337  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
338  static void loadData(UT_IStream &is, UT_Matrix4D &v)
339  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
340  static void loadData(UT_IStream &is, UT_Vector2I &v)
341  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
342  static void loadData(UT_IStream &is, UT_Vector3I &v)
343  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
344  is.bread<int64>(&v.z(), 1); }
345  static void loadData(UT_IStream &is, UT_Vector4I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
347  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
349  { is.bread(v); }
351  { UT_StringHolder rampdata;
352  loadData(is, rampdata);
353  if (rampdata.isstring())
354  {
355  v.reset(new UT_Ramp());
356  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
357  v->load(istr);
358  }
359  else v.reset();
360  }
363  loadData(is, data);
364  if (data.isstring())
365  {
366  // Find the data type.
367  char *colon = UT_StringWrap(data).findChar(':');
368  if (colon)
369  {
370  int typelen = colon - data.buffer();
372  type.strncpy(data.buffer(), typelen);
373  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
374 
375  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
376  }
377  }
378  else v.reset();
379  }
380 
381  static void saveData(std::ostream &os, int64 v)
382  { UTwrite(os, &v); }
383  static void saveData(std::ostream &os, bool v)
384  { int64 iv = v; UTwrite(os, &iv); }
385  static void saveData(std::ostream &os, fpreal64 v)
386  { UTwrite<fpreal64>(os, &v); }
387  static void saveData(std::ostream &os, UT_Vector2D v)
388  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
389  static void saveData(std::ostream &os, UT_Vector3D v)
390  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
391  UTwrite<fpreal64>(os, &v.z()); }
392  static void saveData(std::ostream &os, UT_Vector4D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
394  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
395  static void saveData(std::ostream &os, UT_Matrix2D v)
397  static void saveData(std::ostream &os, UT_Matrix3D v)
399  static void saveData(std::ostream &os, UT_Matrix4D v)
401  static void saveData(std::ostream &os, UT_StringHolder s)
402  { UT_StringWrap(s).saveBinary(os); }
403  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
404  { UT_StringHolder result;
405  UT_OStringStream ostr;
406  if (s) s->save(ostr);
407  result = ostr.str();
408  saveData(os, result);
409  }
410  static void saveData(std::ostream &os, PRM_DataItemHandle s)
411  { UT_StringHolder result;
412  UT_OStringStream ostr;
413  if (s)
414  {
415  ostr << s->getDataTypeToken();
416  ostr << ":";
417  s->saveBinary(ostr);
418  }
419  result = ostr.str();
420  saveData(os, result);
421  }
422 
423 
424  void save(std::ostream &os) const
425  {
426  int32 v = version();
427  UTwrite(os, &v);
428  saveData(os, myPrimitives);
429  saveData(os, myPrimgroups);
430  saveData(os, myPrimnameprefix);
431  saveData(os, myPoints);
432  saveData(os, myPointgroups);
433  saveData(os, myPointnameprefix);
434  saveData(os, myEdges);
435  saveData(os, myEdgegroups);
436  saveData(os, myEdgenameprefix);
437  saveData(os, myGroupnameconflict);
438  saveData(os, myCopyemptygroups);
439 
440  }
441 
442  bool load(UT_IStream &is)
443  {
444  int32 v;
445  is.bread(&v, 1);
446  if (version() != v)
447  {
448  // Fail incompatible versions
449  return false;
450  }
451  loadData(is, myPrimitives);
452  loadData(is, myPrimgroups);
453  loadData(is, myPrimnameprefix);
454  loadData(is, myPoints);
455  loadData(is, myPointgroups);
456  loadData(is, myPointnameprefix);
457  loadData(is, myEdges);
458  loadData(is, myEdgegroups);
459  loadData(is, myEdgenameprefix);
460  loadData(is, myGroupnameconflict);
461  loadData(is, myCopyemptygroups);
462 
463  return true;
464  }
465 
466  bool getPrimitives() const { return myPrimitives; }
467  void setPrimitives(bool val) { myPrimitives = val; }
468  bool opPrimitives(const SOP_NodeVerb::CookParms &cookparms) const
469  {
470  SOP_Node *thissop = cookparms.getNode();
471  if (!thissop) return getPrimitives();
472  bool result;
473  OP_Utils::evalOpParm(result, thissop, "primitives", cookparms.getCookTime(), 0);
474  return result;
475  }
476  const UT_StringHolder & getPrimgroups() const { return myPrimgroups; }
477  void setPrimgroups(const UT_StringHolder & val) { myPrimgroups = val; }
479  {
480  SOP_Node *thissop = cookparms.getNode();
481  if (!thissop) return getPrimgroups();
482  UT_StringHolder result;
483  OP_Utils::evalOpParm(result, thissop, "primgroups", cookparms.getCookTime(), 0);
484  return result;
485  }
486  const UT_StringHolder & getPrimnameprefix() const { return myPrimnameprefix; }
487  void setPrimnameprefix(const UT_StringHolder & val) { myPrimnameprefix = val; }
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getPrimnameprefix();
492  UT_StringHolder result;
493  OP_Utils::evalOpParm(result, thissop, "primnameprefix", cookparms.getCookTime(), 0);
494  return result;
495  }
496  bool getPoints() const { return myPoints; }
497  void setPoints(bool val) { myPoints = val; }
498  bool opPoints(const SOP_NodeVerb::CookParms &cookparms) const
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getPoints();
502  bool result;
503  OP_Utils::evalOpParm(result, thissop, "points", cookparms.getCookTime(), 0);
504  return result;
505  }
506  const UT_StringHolder & getPointgroups() const { return myPointgroups; }
507  void setPointgroups(const UT_StringHolder & val) { myPointgroups = val; }
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getPointgroups();
512  UT_StringHolder result;
513  OP_Utils::evalOpParm(result, thissop, "pointgroups", cookparms.getCookTime(), 0);
514  return result;
515  }
516  const UT_StringHolder & getPointnameprefix() const { return myPointnameprefix; }
517  void setPointnameprefix(const UT_StringHolder & val) { myPointnameprefix = val; }
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return getPointnameprefix();
522  UT_StringHolder result;
523  OP_Utils::evalOpParm(result, thissop, "pointnameprefix", cookparms.getCookTime(), 0);
524  return result;
525  }
526  bool getEdges() const { return myEdges; }
527  void setEdges(bool val) { myEdges = val; }
528  bool opEdges(const SOP_NodeVerb::CookParms &cookparms) const
529  {
530  SOP_Node *thissop = cookparms.getNode();
531  if (!thissop) return getEdges();
532  bool result;
533  OP_Utils::evalOpParm(result, thissop, "edges", cookparms.getCookTime(), 0);
534  return result;
535  }
536  const UT_StringHolder & getEdgegroups() const { return myEdgegroups; }
537  void setEdgegroups(const UT_StringHolder & val) { myEdgegroups = val; }
539  {
540  SOP_Node *thissop = cookparms.getNode();
541  if (!thissop) return getEdgegroups();
542  UT_StringHolder result;
543  OP_Utils::evalOpParm(result, thissop, "edgegroups", cookparms.getCookTime(), 0);
544  return result;
545  }
546  const UT_StringHolder & getEdgenameprefix() const { return myEdgenameprefix; }
547  void setEdgenameprefix(const UT_StringHolder & val) { myEdgenameprefix = val; }
549  {
550  SOP_Node *thissop = cookparms.getNode();
551  if (!thissop) return getEdgenameprefix();
552  UT_StringHolder result;
553  OP_Utils::evalOpParm(result, thissop, "edgenameprefix", cookparms.getCookTime(), 0);
554  return result;
555  }
556  const UT_StringHolder & getGroupnameconflict() const { return myGroupnameconflict; }
557  void setGroupnameconflict(const UT_StringHolder & val) { myGroupnameconflict = val; }
559  {
560  SOP_Node *thissop = cookparms.getNode();
561  if (!thissop) return getGroupnameconflict();
562  UT_StringHolder result;
563  OP_Utils::evalOpParm(result, thissop, "groupnameconflict", cookparms.getCookTime(), 0);
564  return result;
565  }
566  bool getCopyemptygroups() const { return myCopyemptygroups; }
567  void setCopyemptygroups(bool val) { myCopyemptygroups = val; }
568  bool opCopyemptygroups(const SOP_NodeVerb::CookParms &cookparms) const
569  {
570  SOP_Node *thissop = cookparms.getNode();
571  if (!thissop) return getCopyemptygroups();
572  bool result;
573  OP_Utils::evalOpParm(result, thissop, "copyemptygroups", cookparms.getCookTime(), 0);
574  return result;
575  }
576 
577 private:
578  bool myPrimitives;
579  UT_StringHolder myPrimgroups;
580  UT_StringHolder myPrimnameprefix;
581  bool myPoints;
582  UT_StringHolder myPointgroups;
583  UT_StringHolder myPointnameprefix;
584  bool myEdges;
585  UT_StringHolder myEdgegroups;
586  UT_StringHolder myEdgenameprefix;
587  UT_StringHolder myGroupnameconflict;
588  bool myCopyemptygroups;
589 
590 };
void setParmValue(exint idx, const UT_Matrix2D &value)
void setEdgegroups(const UT_StringHolder &val)
void setParmValue(exint idx, const UT_StringHolder &value)
UT_StringHolder opEdgenameprefix(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const SOP_GroupCopyParms &src) const
void getParmValue(exint idx, UT_Matrix4D &value) const
void getParmValue(exint idx, UT_Matrix3D &value) const
static void saveData(std::ostream &os, UT_Vector2D v)
void setPoints(bool val)
static void loadData(UT_IStream &is, fpreal64 &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
const UT_StringHolder & getEdgenameprefix() const
static void saveData(std::ostream &os, int64 v)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
const UT_StringHolder & getPrimgroups() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void setPrimnameprefix(const UT_StringHolder &val)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
UT_StringHolder opPointnameprefix(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix4D v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, bool v)
const UT_StringHolder & getPointnameprefix() const
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setParmValue(exint idx, const exint &value)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
void setEdgenameprefix(const UT_StringHolder &val)
bool opCopyemptygroups(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
bool load(UT_IStream &is)
void setParmValue(exint idx, const fpreal &value)
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_StringHolder opEdgegroups(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, exint &value) const
bool getPrimitives() const
bool getCopyemptygroups() const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool opEdges(const SOP_NodeVerb::CookParms &cookparms) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
long long int64
Definition: SYS_Types.h:107
static void saveData(std::ostream &os, UT_Vector3D v)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
const UT_StringHolder & getGroupnameconflict() const
UT_StringHolder opPrimnameprefix(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_Vector4D v)
bool operator!=(const SOP_GroupCopyParms &src) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:192
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
virtual void copyFrom(const SOP_NodeParms *src)
bool opPrimitives(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, fpreal &value) const
void getParmValue(exint idx, UT_Vector3D &value) const
UT_StringHolder opGroupnameconflict(const SOP_NodeVerb::CookParms &cookparms) const
void setGroupnameconflict(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
virtual ParmType getParmType(exint fieldnum) const
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
void save(std::ostream &os) const
void doGetParmValue(exint idx, T &value) const
void setParmValue(exint idx, const UT_Matrix4D &value)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void setParmValue(exint idx, const PRM_DataItemHandle &value)
void setPointnameprefix(const UT_StringHolder &val)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void getParmValue(exint idx, UT_StringHolder &value) const
void setParmValue(exint idx, const UT_Vector3D &value)
static void loadData(UT_IStream &is, int64 &v)
void setPrimgroups(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setPointgroups(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
static void loadData(UT_IStream &is, bool &v)
double fpreal
Definition: SYS_Types.h:270
void doSetParmValue(exint idx, const T &value)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setParmValue(exint idx, const UT_Vector4D &value)
static void loadData(UT_IStream &is, UT_Vector2D &v)
virtual void loadFromOpSubclass(const LoadParms &loadparms)
virtual const char * getParmName(exint fieldnum) const
const UT_StringHolder & getEdgegroups() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setPrimitives(bool val)
UT_StringHolder opPointgroups(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Vector4D &value) const
GLuint GLfloat * val
Definition: glcorearb.h:1607
virtual exint getNumParms() const
#define SOP_API
Definition: SOP_API.h:10
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
void setParmValue(exint idx, const UT_Vector2D &value)
T & x(void)
Definition: UT_Vector4.h:375
T & y(void)
Definition: UT_Vector2.h:287
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLboolean r
Definition: glcorearb.h:1221
bool opPoints(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getPointgroups() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setCopyemptygroups(bool val)
T & w(void)
Definition: UT_Vector4.h:381
UT_StringHolder opPrimgroups(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix2D &value) const
void setParmValue(exint idx, const UT_Matrix3D &value)
static void saveData(std::ostream &os, UT_StringHolder s)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void getParmValue(exint idx, UT_Vector2D &value) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Vector3I &v)
const UT_StringHolder & getPrimnameprefix() const
GLenum src
Definition: glcorearb.h:1792
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)