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