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