HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_VolumeMerge.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 namespace SOP_VolumeMergeEnums
22 {
23  enum class Mergemethod
24  {
25  COPY = 0,
26  ADD,
27  MUL,
28  MAX,
29  MIN,
30  AVERAGE
31  };
32 }
33 
34 
36 {
37 public:
38  static int version() { return 1; }
39 
41  {
42  myGroup = ""_sh;
43  myMergegrp = ""_sh;
44  myMergemethod = 1;
45  myClampvolume = false;
46  myDstpreadd = 0;
47  myDstpremul = 1;
48  mySrcpreadd = 0;
49  mySrcpremul = 1;
50  myPostadd = 0;
51  myPostmul = 1;
52  myDoclampmin = false;
53  myClampmin = 0;
54  myDoclampmax = false;
55  myClampmax = 1;
56 
57  }
58 
59  explicit SOP_VolumeMergeParms(const SOP_VolumeMergeParms &) = default;
60 
61  virtual ~SOP_VolumeMergeParms() {}
62 
63  bool operator==(const SOP_VolumeMergeParms &src) const
64  {
65  if (myGroup != src.myGroup) return false;
66  if (myMergegrp != src.myMergegrp) return false;
67  if (myMergemethod != src.myMergemethod) return false;
68  if (myClampvolume != src.myClampvolume) return false;
69  if (myDstpreadd != src.myDstpreadd) return false;
70  if (myDstpremul != src.myDstpremul) return false;
71  if (mySrcpreadd != src.mySrcpreadd) return false;
72  if (mySrcpremul != src.mySrcpremul) return false;
73  if (myPostadd != src.myPostadd) return false;
74  if (myPostmul != src.myPostmul) return false;
75  if (myDoclampmin != src.myDoclampmin) return false;
76  if (myClampmin != src.myClampmin) return false;
77  if (myDoclampmax != src.myDoclampmax) return false;
78  if (myClampmax != src.myClampmax) return false;
79 
80  return true;
81  }
83 
84 
85 
86  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
87  {
88  if (true)
89  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
90  else myGroup = ""_sh;
91  if (true)
92  OP_Utils::evalOpParm(myMergegrp, node, "mergegrp", time, 0);
93  else myMergegrp = ""_sh;
94  if (true)
95  OP_Utils::evalOpParm(myMergemethod, node, "mergemethod", time, 0);
96  else myMergemethod = 1;
97  if (true)
98  OP_Utils::evalOpParm(myClampvolume, node, "clampvolume", time, 0);
99  else myClampvolume = false;
100  if (true)
101  OP_Utils::evalOpParm(myDstpreadd, node, "dstpreadd", time, 0);
102  else myDstpreadd = 0;
103  if (true)
104  OP_Utils::evalOpParm(myDstpremul, node, "dstpremul", time, 0);
105  else myDstpremul = 1;
106  if (true)
107  OP_Utils::evalOpParm(mySrcpreadd, node, "srcpreadd", time, 0);
108  else mySrcpreadd = 0;
109  if (true)
110  OP_Utils::evalOpParm(mySrcpremul, node, "srcpremul", time, 0);
111  else mySrcpremul = 1;
112  if (true)
113  OP_Utils::evalOpParm(myPostadd, node, "postadd", time, 0);
114  else myPostadd = 0;
115  if (true)
116  OP_Utils::evalOpParm(myPostmul, node, "postmul", time, 0);
117  else myPostmul = 1;
118  if (true)
119  OP_Utils::evalOpParm(myDoclampmin, node, "doclampmin", time, 0);
120  else myDoclampmin = false;
121  if (true && ( (!(((getDoclampmin()==0)))) ) )
122  OP_Utils::evalOpParm(myClampmin, node, "clampmin", time, 0);
123  else myClampmin = 0;
124  if (true)
125  OP_Utils::evalOpParm(myDoclampmax, node, "doclampmax", time, 0);
126  else myDoclampmax = false;
127  if (true && ( (!(((getDoclampmax()==0)))) ) )
128  OP_Utils::evalOpParm(myClampmax, node, "clampmax", time, 0);
129  else myClampmax = 1;
130 
131  }
132 
133 
134  virtual void loadFromOpSubclass(const LoadParms &loadparms)
135  {
136  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
137  }
138 
139 
140  virtual void copyFrom(const SOP_NodeParms *src)
141  {
142  *this = *((const SOP_VolumeMergeParms *)src);
143  }
144 
145  template <typename T>
146  void
147  doGetParmValue(exint idx, T &value) const
148  {
149  switch (idx)
150  {
151  case 0:
152  coerceValue(value, myGroup);
153  break;
154  case 1:
155  coerceValue(value, myMergegrp);
156  break;
157  case 2:
158  coerceValue(value, myMergemethod);
159  break;
160  case 3:
161  coerceValue(value, myClampvolume);
162  break;
163  case 4:
164  coerceValue(value, myDstpreadd);
165  break;
166  case 5:
167  coerceValue(value, myDstpremul);
168  break;
169  case 6:
170  coerceValue(value, mySrcpreadd);
171  break;
172  case 7:
173  coerceValue(value, mySrcpremul);
174  break;
175  case 8:
176  coerceValue(value, myPostadd);
177  break;
178  case 9:
179  coerceValue(value, myPostmul);
180  break;
181  case 10:
182  coerceValue(value, myDoclampmin);
183  break;
184  case 11:
185  coerceValue(value, myClampmin);
186  break;
187  case 12:
188  coerceValue(value, myDoclampmax);
189  break;
190  case 13:
191  coerceValue(value, myClampmax);
192  break;
193 
194  }
195  }
196 
197  void getParmValue(exint idx, exint &value) const
198  { doGetParmValue(idx, value); }
199  void getParmValue(exint idx, fpreal &value) const
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
204  { doGetParmValue(idx, value); }
206  { doGetParmValue(idx, value); }
208  { doGetParmValue(idx, value); }
210  { doGetParmValue(idx, value); }
212  { doGetParmValue(idx, value); }
214  { doGetParmValue(idx, value); }
216  { doGetParmValue(idx, value); }
218  { doGetParmValue(idx, value); }
219 
220  template <typename T>
221  void
222  doSetParmValue(exint idx, const T &value)
223  {
224  switch (idx)
225  {
226  case 0:
227  coerceValue(myGroup, value);
228  break;
229  case 1:
230  coerceValue(myMergegrp, value);
231  break;
232  case 2:
233  coerceValue(myMergemethod, value);
234  break;
235  case 3:
236  coerceValue(myClampvolume, value);
237  break;
238  case 4:
239  coerceValue(myDstpreadd, value);
240  break;
241  case 5:
242  coerceValue(myDstpremul, value);
243  break;
244  case 6:
245  coerceValue(mySrcpreadd, value);
246  break;
247  case 7:
248  coerceValue(mySrcpremul, value);
249  break;
250  case 8:
251  coerceValue(myPostadd, value);
252  break;
253  case 9:
254  coerceValue(myPostmul, value);
255  break;
256  case 10:
257  coerceValue(myDoclampmin, value);
258  break;
259  case 11:
260  coerceValue(myClampmin, value);
261  break;
262  case 12:
263  coerceValue(myDoclampmax, value);
264  break;
265  case 13:
266  coerceValue(myClampmax, value);
267  break;
268 
269  }
270  }
271 
272  void setParmValue(exint idx, const exint &value)
273  { doSetParmValue(idx, value); }
274  void setParmValue(exint idx, const fpreal &value)
275  { doSetParmValue(idx, value); }
276  void setParmValue(exint idx, const UT_Vector2D &value)
277  { doSetParmValue(idx, value); }
278  void setParmValue(exint idx, const UT_Vector3D &value)
279  { doSetParmValue(idx, value); }
280  void setParmValue(exint idx, const UT_Vector4D &value)
281  { doSetParmValue(idx, value); }
282  void setParmValue(exint idx, const UT_Matrix2D &value)
283  { doSetParmValue(idx, value); }
284  void setParmValue(exint idx, const UT_Matrix3D &value)
285  { doSetParmValue(idx, value); }
286  void setParmValue(exint idx, const UT_Matrix4D &value)
287  { doSetParmValue(idx, value); }
289  { doSetParmValue(idx, value); }
291  { doSetParmValue(idx, value); }
293  { doSetParmValue(idx, value); }
294 
295  virtual exint getNumParms() const
296  {
297  return 14;
298  }
299 
300  virtual const char *getParmName(exint fieldnum) const
301  {
302  switch (fieldnum)
303  {
304  case 0:
305  return "group";
306  case 1:
307  return "mergegrp";
308  case 2:
309  return "mergemethod";
310  case 3:
311  return "clampvolume";
312  case 4:
313  return "dstpreadd";
314  case 5:
315  return "dstpremul";
316  case 6:
317  return "srcpreadd";
318  case 7:
319  return "srcpremul";
320  case 8:
321  return "postadd";
322  case 9:
323  return "postmul";
324  case 10:
325  return "doclampmin";
326  case 11:
327  return "clampmin";
328  case 12:
329  return "doclampmax";
330  case 13:
331  return "clampmax";
332 
333  }
334  return 0;
335  }
336 
337  virtual ParmType getParmType(exint fieldnum) const
338  {
339  switch (fieldnum)
340  {
341  case 0:
342  return PARM_STRING;
343  case 1:
344  return PARM_STRING;
345  case 2:
346  return PARM_INTEGER;
347  case 3:
348  return PARM_INTEGER;
349  case 4:
350  return PARM_FLOAT;
351  case 5:
352  return PARM_FLOAT;
353  case 6:
354  return PARM_FLOAT;
355  case 7:
356  return PARM_FLOAT;
357  case 8:
358  return PARM_FLOAT;
359  case 9:
360  return PARM_FLOAT;
361  case 10:
362  return PARM_INTEGER;
363  case 11:
364  return PARM_FLOAT;
365  case 12:
366  return PARM_INTEGER;
367  case 13:
368  return PARM_FLOAT;
369 
370  }
371  return PARM_UNSUPPORTED;
372  }
373 
374  // Boiler plate to load individual types.
375  static void loadData(UT_IStream &is, int64 &v)
376  { is.bread(&v, 1); }
377  static void loadData(UT_IStream &is, bool &v)
378  { int64 iv; is.bread(&iv, 1); v = iv; }
379  static void loadData(UT_IStream &is, fpreal64 &v)
380  { is.bread<fpreal64>(&v, 1); }
381  static void loadData(UT_IStream &is, UT_Vector2D &v)
382  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
383  static void loadData(UT_IStream &is, UT_Vector3D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
385  is.bread<fpreal64>(&v.z(), 1); }
386  static void loadData(UT_IStream &is, UT_Vector4D &v)
387  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
388  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix2D &v)
390  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix3D &v)
392  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Matrix4D &v)
394  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
395  static void loadData(UT_IStream &is, UT_Vector2I &v)
396  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
397  static void loadData(UT_IStream &is, UT_Vector3I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
399  is.bread<int64>(&v.z(), 1); }
400  static void loadData(UT_IStream &is, UT_Vector4I &v)
401  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
402  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
404  { is.bread(v); }
406  { UT_StringHolder rampdata;
407  loadData(is, rampdata);
408  if (rampdata.isstring())
409  {
410  v.reset(new UT_Ramp());
411  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
412  v->load(istr);
413  }
414  else v.reset();
415  }
418  loadData(is, data);
419  if (data.isstring())
420  {
421  // Find the data type.
422  char *colon = UT_StringWrap(data).findChar(':');
423  if (colon)
424  {
425  int typelen = colon - data.buffer();
427  type.strncpy(data.buffer(), typelen);
428  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
429 
430  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
431  }
432  }
433  else v.reset();
434  }
435 
436  static void saveData(std::ostream &os, int64 v)
437  { UTwrite(os, &v); }
438  static void saveData(std::ostream &os, bool v)
439  { int64 iv = v; UTwrite(os, &iv); }
440  static void saveData(std::ostream &os, fpreal64 v)
441  { UTwrite<fpreal64>(os, &v); }
442  static void saveData(std::ostream &os, UT_Vector2D v)
443  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
444  static void saveData(std::ostream &os, UT_Vector3D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
446  UTwrite<fpreal64>(os, &v.z()); }
447  static void saveData(std::ostream &os, UT_Vector4D v)
448  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
449  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
450  static void saveData(std::ostream &os, UT_Matrix2D v)
452  static void saveData(std::ostream &os, UT_Matrix3D v)
454  static void saveData(std::ostream &os, UT_Matrix4D v)
456  static void saveData(std::ostream &os, UT_StringHolder s)
457  { UT_StringWrap(s).saveBinary(os); }
458  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
459  { UT_StringHolder result;
460  UT_OStringStream ostr;
461  if (s) s->save(ostr);
462  result = ostr.str();
463  saveData(os, result);
464  }
465  static void saveData(std::ostream &os, PRM_DataItemHandle s)
466  { UT_StringHolder result;
467  UT_OStringStream ostr;
468  if (s)
469  {
470  ostr << s->getDataTypeToken();
471  ostr << ":";
472  s->saveBinary(ostr);
473  }
474  result = ostr.str();
475  saveData(os, result);
476  }
477 
478 
479  void save(std::ostream &os) const
480  {
481  int32 v = version();
482  UTwrite(os, &v);
483  saveData(os, myGroup);
484  saveData(os, myMergegrp);
485  saveData(os, myMergemethod);
486  saveData(os, myClampvolume);
487  saveData(os, myDstpreadd);
488  saveData(os, myDstpremul);
489  saveData(os, mySrcpreadd);
490  saveData(os, mySrcpremul);
491  saveData(os, myPostadd);
492  saveData(os, myPostmul);
493  saveData(os, myDoclampmin);
494  saveData(os, myClampmin);
495  saveData(os, myDoclampmax);
496  saveData(os, myClampmax);
497 
498  }
499 
500  bool load(UT_IStream &is)
501  {
502  int32 v;
503  is.bread(&v, 1);
504  if (version() != v)
505  {
506  // Fail incompatible versions
507  return false;
508  }
509  loadData(is, myGroup);
510  loadData(is, myMergegrp);
511  loadData(is, myMergemethod);
512  loadData(is, myClampvolume);
513  loadData(is, myDstpreadd);
514  loadData(is, myDstpremul);
515  loadData(is, mySrcpreadd);
516  loadData(is, mySrcpremul);
517  loadData(is, myPostadd);
518  loadData(is, myPostmul);
519  loadData(is, myDoclampmin);
520  loadData(is, myClampmin);
521  loadData(is, myDoclampmax);
522  loadData(is, myClampmax);
523 
524  return true;
525  }
526 
527  const UT_StringHolder & getGroup() const { return myGroup; }
528  void setGroup(const UT_StringHolder & val) { myGroup = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getGroup();
533  UT_StringHolder result;
534  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getMergegrp() const { return myMergegrp; }
538  void setMergegrp(const UT_StringHolder & val) { myMergegrp = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getMergegrp();
543  UT_StringHolder result;
544  OP_Utils::evalOpParm(result, thissop, "mergegrp", cookparms.getCookTime(), 0);
545  return result;
546  }
547  Mergemethod getMergemethod() const { return Mergemethod(myMergemethod); }
548  void setMergemethod(Mergemethod val) { myMergemethod = int64(val); }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getMergemethod();
553  int64 result;
554  OP_Utils::evalOpParm(result, thissop, "mergemethod", cookparms.getCookTime(), 0);
555  return Mergemethod(result);
556  }
557  bool getClampvolume() const { return myClampvolume; }
558  void setClampvolume(bool val) { myClampvolume = val; }
559  bool opClampvolume(const SOP_NodeVerb::CookParms &cookparms) const
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getClampvolume();
563  bool result;
564  OP_Utils::evalOpParm(result, thissop, "clampvolume", cookparms.getCookTime(), 0);
565  return result;
566  }
567  fpreal64 getDstpreadd() const { return myDstpreadd; }
568  void setDstpreadd(fpreal64 val) { myDstpreadd = val; }
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getDstpreadd();
573  fpreal64 result;
574  OP_Utils::evalOpParm(result, thissop, "dstpreadd", cookparms.getCookTime(), 0);
575  return result;
576  }
577  fpreal64 getDstpremul() const { return myDstpremul; }
578  void setDstpremul(fpreal64 val) { myDstpremul = val; }
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getDstpremul();
583  fpreal64 result;
584  OP_Utils::evalOpParm(result, thissop, "dstpremul", cookparms.getCookTime(), 0);
585  return result;
586  }
587  fpreal64 getSrcpreadd() const { return mySrcpreadd; }
588  void setSrcpreadd(fpreal64 val) { mySrcpreadd = val; }
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getSrcpreadd();
593  fpreal64 result;
594  OP_Utils::evalOpParm(result, thissop, "srcpreadd", cookparms.getCookTime(), 0);
595  return result;
596  }
597  fpreal64 getSrcpremul() const { return mySrcpremul; }
598  void setSrcpremul(fpreal64 val) { mySrcpremul = val; }
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getSrcpremul();
603  fpreal64 result;
604  OP_Utils::evalOpParm(result, thissop, "srcpremul", cookparms.getCookTime(), 0);
605  return result;
606  }
607  fpreal64 getPostadd() const { return myPostadd; }
608  void setPostadd(fpreal64 val) { myPostadd = val; }
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getPostadd();
613  fpreal64 result;
614  OP_Utils::evalOpParm(result, thissop, "postadd", cookparms.getCookTime(), 0);
615  return result;
616  }
617  fpreal64 getPostmul() const { return myPostmul; }
618  void setPostmul(fpreal64 val) { myPostmul = val; }
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getPostmul();
623  fpreal64 result;
624  OP_Utils::evalOpParm(result, thissop, "postmul", cookparms.getCookTime(), 0);
625  return result;
626  }
627  bool getDoclampmin() const { return myDoclampmin; }
628  void setDoclampmin(bool val) { myDoclampmin = val; }
629  bool opDoclampmin(const SOP_NodeVerb::CookParms &cookparms) const
630  {
631  SOP_Node *thissop = cookparms.getNode();
632  if (!thissop) return getDoclampmin();
633  bool result;
634  OP_Utils::evalOpParm(result, thissop, "doclampmin", cookparms.getCookTime(), 0);
635  return result;
636  }
637  fpreal64 getClampmin() const { return myClampmin; }
638  void setClampmin(fpreal64 val) { myClampmin = val; }
640  {
641  SOP_Node *thissop = cookparms.getNode();
642  if (!thissop) return getClampmin();
643  fpreal64 result;
644  OP_Utils::evalOpParm(result, thissop, "clampmin", cookparms.getCookTime(), 0);
645  return result;
646  }
647  bool getDoclampmax() const { return myDoclampmax; }
648  void setDoclampmax(bool val) { myDoclampmax = val; }
649  bool opDoclampmax(const SOP_NodeVerb::CookParms &cookparms) const
650  {
651  SOP_Node *thissop = cookparms.getNode();
652  if (!thissop) return getDoclampmax();
653  bool result;
654  OP_Utils::evalOpParm(result, thissop, "doclampmax", cookparms.getCookTime(), 0);
655  return result;
656  }
657  fpreal64 getClampmax() const { return myClampmax; }
658  void setClampmax(fpreal64 val) { myClampmax = val; }
660  {
661  SOP_Node *thissop = cookparms.getNode();
662  if (!thissop) return getClampmax();
663  fpreal64 result;
664  OP_Utils::evalOpParm(result, thissop, "clampmax", cookparms.getCookTime(), 0);
665  return result;
666  }
667 
668 private:
669  UT_StringHolder myGroup;
670  UT_StringHolder myMergegrp;
671  int64 myMergemethod;
672  bool myClampvolume;
673  fpreal64 myDstpreadd;
674  fpreal64 myDstpremul;
675  fpreal64 mySrcpreadd;
676  fpreal64 mySrcpremul;
677  fpreal64 myPostadd;
678  fpreal64 myPostmul;
679  bool myDoclampmin;
680  fpreal64 myClampmin;
681  bool myDoclampmax;
682  fpreal64 myClampmax;
683 
684 };
fpreal64 getClampmax() const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
void getParmValue(exint idx, UT_Matrix4D &value) const
fpreal64 opSrcpremul(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
void setParmValue(exint idx, const UT_Vector4D &value)
bool opClampvolume(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
virtual ParmType getParmType(exint fieldnum) const
void doSetParmValue(exint idx, const T &value)
void setPostadd(fpreal64 val)
fpreal64 getClampmin() const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
T & z(void)
Definition: UT_Vector4.h:372
bool opDoclampmin(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
fpreal64 opSrcpreadd(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
virtual const char * getParmName(exint fieldnum) const
Mergemethod getMergemethod() const
void setParmValue(exint idx, const UT_Vector2D &value)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void getParmValue(exint idx, exint &value) const
exint bread(int32 *buffer, exint asize=1)
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
void doGetParmValue(exint idx, T &value) const
void getParmValue(exint idx, UT_Vector2D &value) const
void setParmValue(exint idx, const fpreal &value)
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void save(std::ostream &os) const
static void saveData(std::ostream &os, UT_Vector4D v)
T & x(void)
Definition: UT_Vector2.h:284
void setParmValue(exint idx, const UT_Vector3D &value)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, UT_StringHolder s)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
void setSrcpreadd(fpreal64 val)
const UT_StringHolder & getMergegrp() const
void getParmValue(exint idx, UT_Vector4D &value) const
void setDstpremul(fpreal64 val)
bool operator==(const SOP_VolumeMergeParms &src) const
fpreal64 getPostadd() const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
UT_StringHolder opMergegrp(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getSrcpremul() const
const UT_StringHolder & getGroup() const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setDstpreadd(fpreal64 val)
fpreal64 getPostmul() const
fpreal64 opClampmax(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix3D &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
Mergemethod opMergemethod(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
void setPostmul(fpreal64 val)
long long int64
Definition: SYS_Types.h:100
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setParmValue(exint idx, const exint &value)
void setMergemethod(Mergemethod val)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void setParmValue(exint idx, const UT_Matrix3D &value)
SYS_FORCE_INLINE const char * buffer() const
int64 exint
Definition: SYS_Types.h:109
static void saveData(std::ostream &os, int64 v)
void getParmValue(exint idx, UT_StringHolder &value) const
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:185
fpreal64 getDstpreadd() const
fpreal64 getDstpremul() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool opDoclampmax(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_StringHolder &value)
fpreal64 opDstpremul(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean * data
Definition: glcorearb.h:130
void getParmValue(exint idx, PRM_DataItemHandle &value) const
int int32
Definition: SYS_Types.h:28
T & y(void)
Definition: UT_Vector4.h:370
virtual void loadFromOpSubclass(const LoadParms &loadparms)
void setClampmin(fpreal64 val)
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, int64 &v)
void setParmValue(exint idx, const UT_Matrix4D &value)
fpreal64 getSrcpreadd() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
fpreal64 opPostadd(const SOP_NodeVerb::CookParms &cookparms) const
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
void setClampmax(fpreal64 val)
double fpreal
Definition: SYS_Types.h:263
virtual void copyFrom(const SOP_NodeParms *src)
void strncpy(const char *src, exint maxlen)
static void saveData(std::ostream &os, UT_Matrix4D v)
virtual exint getNumParms() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void getParmValue(exint idx, UT_Matrix2D &value) const
void setGroup(const UT_StringHolder &val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void loadData(UT_IStream &is, fpreal64 &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
#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
T & x(void)
Definition: UT_Vector4.h:368
void getParmValue(exint idx, UT_Vector3D &value) const
T & y(void)
Definition: UT_Vector2.h:286
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool load(UT_IStream &is)
GLboolean r
Definition: glcorearb.h:1221
void setSrcpremul(fpreal64 val)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
T & w(void)
Definition: UT_Vector4.h:374
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, bool &v)
void setMergegrp(const UT_StringHolder &val)
fpreal64 opDstpreadd(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
fpreal64 opClampmin(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Matrix2D &value)
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, UT_Vector2D v)
GLenum src
Definition: glcorearb.h:1792
void getParmValue(exint idx, fpreal &value) const
fpreal64 opPostmul(const SOP_NodeVerb::CookParms &cookparms) const