HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeBlur.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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_VolumeBlurEnums
24 {
25  enum class Reduction
26  {
27  MAX = 0,
28  MIN,
29  MAXABS,
30  MINABS,
31  AVERAGE,
32  MEDIAN,
33  SUM,
34  SUMABS,
35  SUMSQUARE,
36  RMS
37  };
38  enum class Bordertype
39  {
40  NONE = 0,
41  CONSTANT,
42  REPEAT,
43  STREAK
44  };
45 }
46 
47 
49 {
50 public:
51  static int version() { return 1; }
52 
54  {
55  myGroup = ""_UTsh;
56  myUsevoxelradius = false;
57  myRadius = 1;
58  myVoxelradius = UT_Vector3D(1,1,1);
59  myUseopencl = false;
60  myReduction = 4;
61  myPasses = 1;
62  myBordertype = 0;
63  myBorderval = 0;
64  myEnableblending = false;
65  myBlurblend = 1;
66  myOriginalblend = 0;
67 
68  }
69 
70  explicit SOP_VolumeBlurParms(const SOP_VolumeBlurParms &) = default;
72  SOP_VolumeBlurParms(SOP_VolumeBlurParms &&) noexcept = default;
73  SOP_VolumeBlurParms &operator=(SOP_VolumeBlurParms &&) noexcept = default;
74 
75  ~SOP_VolumeBlurParms() override {}
76 
77  bool operator==(const SOP_VolumeBlurParms &src) const
78  {
79  if (myGroup != src.myGroup) return false;
80  if (myUsevoxelradius != src.myUsevoxelradius) return false;
81  if (myRadius != src.myRadius) return false;
82  if (myVoxelradius != src.myVoxelradius) return false;
83  if (myUseopencl != src.myUseopencl) return false;
84  if (myReduction != src.myReduction) return false;
85  if (myPasses != src.myPasses) return false;
86  if (myBordertype != src.myBordertype) return false;
87  if (myBorderval != src.myBorderval) return false;
88  if (myEnableblending != src.myEnableblending) return false;
89  if (myBlurblend != src.myBlurblend) return false;
90  if (myOriginalblend != src.myOriginalblend) return false;
91 
92  return true;
93  }
94  bool operator!=(const SOP_VolumeBlurParms &src) const
95  {
96  return !operator==(src);
97  }
100 
101 
102 
103  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
104  {
105  myGroup = ""_UTsh;
106  if (true)
107  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
108  myUsevoxelradius = false;
109  if (true)
110  graph->evalOpParm(myUsevoxelradius, nodeidx, "usevoxelradius", time, 0);
111  myRadius = 1;
112  if (true && ( (true&&!(((getUsevoxelradius()==1)))) ) )
113  graph->evalOpParm(myRadius, nodeidx, "radius", time, 0);
114  myVoxelradius = UT_Vector3D(1,1,1);
115  if (true && ( (true&&!(((getUsevoxelradius()==0)))) ) )
116  graph->evalOpParm(myVoxelradius, nodeidx, "voxelradius", time, 0);
117  myUseopencl = false;
118  if (true)
119  graph->evalOpParm(myUseopencl, nodeidx, "useopencl", time, 0);
120  myReduction = 4;
121  if (true)
122  graph->evalOpParm(myReduction, nodeidx, "reduction", time, 0);
123  myPasses = 1;
124  if (true)
125  graph->evalOpParm(myPasses, nodeidx, "passes", time, 0);
126  myBordertype = 0;
127  if (true)
128  graph->evalOpParm(myBordertype, nodeidx, "bordertype", time, 0);
129  myBorderval = 0;
130  if (true && ( (true&&!(((int64(getBordertype())==0)))) ) )
131  graph->evalOpParm(myBorderval, nodeidx, "borderval", time, 0);
132  myEnableblending = false;
133  if (true)
134  graph->evalOpParm(myEnableblending, nodeidx, "enableblending", time, 0);
135  myBlurblend = 1;
136  if (true && ( (true&&!(((getEnableblending()==0)))) ) )
137  graph->evalOpParm(myBlurblend, nodeidx, "blurblend", time, 0);
138  myOriginalblend = 0;
139  if (true && ( (true&&!(((getEnableblending()==0)))) ) )
140  graph->evalOpParm(myOriginalblend, nodeidx, "originalblend", time, 0);
141 
142  }
143 
144 
145  void loadFromOpSubclass(const LoadParms &loadparms) override
146  {
147  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
148  }
149 
150 
151  void copyFrom(const OP_NodeParms *src) override
152  {
153  *this = *((const SOP_VolumeBlurParms *)src);
154  }
155 
156  template <typename T>
157  void
158  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
159  {
160  if (idx.size() < 1)
161  return;
162  UT_ASSERT(idx.size() == instance.size()+1);
163  if (idx.size() != instance.size()+1)
164  return;
165  switch (idx[0])
166  {
167  case 0:
168  coerceValue(value, myGroup);
169  break;
170  case 1:
171  coerceValue(value, myUsevoxelradius);
172  break;
173  case 2:
174  coerceValue(value, myRadius);
175  break;
176  case 3:
177  coerceValue(value, myVoxelradius);
178  break;
179  case 4:
180  coerceValue(value, myUseopencl);
181  break;
182  case 5:
183  coerceValue(value, myReduction);
184  break;
185  case 6:
186  coerceValue(value, myPasses);
187  break;
188  case 7:
189  coerceValue(value, myBordertype);
190  break;
191  case 8:
192  coerceValue(value, myBorderval);
193  break;
194  case 9:
195  coerceValue(value, myEnableblending);
196  break;
197  case 10:
198  coerceValue(value, myBlurblend);
199  break;
200  case 11:
201  coerceValue(value, myOriginalblend);
202  break;
203 
204  }
205  }
206 
207  bool isParmColorRamp(exint idx) const override
208  {
209  switch (idx)
210  {
211 
212  }
213  return false;
214  }
215 
216  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
233  { doGetParmValue(idx, instance, value); }
234  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
235  { doGetParmValue(idx, instance, value); }
236  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
237  { doGetParmValue(idx, instance, value); }
238 
239  template <typename T>
240  void
241  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
242  {
243  if (idx.size() < 1)
244  return;
245  UT_ASSERT(idx.size() == instance.size()+1);
246  if (idx.size() != instance.size()+1)
247  return;
248  switch (idx[0])
249  {
250  case 0:
251  coerceValue(myGroup, ( ( value ) ));
252  break;
253  case 1:
254  coerceValue(myUsevoxelradius, ( ( value ) ));
255  break;
256  case 2:
257  coerceValue(myRadius, clampMinValue(0, ( value ) ));
258  break;
259  case 3:
260  coerceValue(myVoxelradius, clampMinValue(0, ( value ) ));
261  break;
262  case 4:
263  coerceValue(myUseopencl, ( ( value ) ));
264  break;
265  case 5:
266  coerceValue(myReduction, clampMinValue(0, clampMaxValue(9, value ) ));
267  break;
268  case 6:
269  coerceValue(myPasses, clampMinValue(1, ( value ) ));
270  break;
271  case 7:
272  coerceValue(myBordertype, clampMinValue(0, clampMaxValue(3, value ) ));
273  break;
274  case 8:
275  coerceValue(myBorderval, ( ( value ) ));
276  break;
277  case 9:
278  coerceValue(myEnableblending, ( ( value ) ));
279  break;
280  case 10:
281  coerceValue(myBlurblend, ( ( value ) ));
282  break;
283  case 11:
284  coerceValue(myOriginalblend, ( ( value ) ));
285  break;
286 
287  }
288  }
289 
290  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
299  { doSetParmValue(idx, instance, value); }
300  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
301  { doSetParmValue(idx, instance, value); }
302  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
303  { doSetParmValue(idx, instance, value); }
304  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
305  { doSetParmValue(idx, instance, value); }
306  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
307  { doSetParmValue(idx, instance, value); }
308  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
309  { doSetParmValue(idx, instance, value); }
310  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
311  { doSetParmValue(idx, instance, value); }
312 
313  exint getNestNumParms(TempIndex idx) const override
314  {
315  if (idx.size() == 0)
316  return 12;
317  switch (idx[0])
318  {
319 
320  }
321  // Invalid
322  return 0;
323  }
324 
325  const char *getNestParmName(TempIndex fieldnum) const override
326  {
327  if (fieldnum.size() < 1)
328  return 0;
329  switch (fieldnum[0])
330  {
331  case 0:
332  return "group";
333  case 1:
334  return "usevoxelradius";
335  case 2:
336  return "radius";
337  case 3:
338  return "voxelradius";
339  case 4:
340  return "useopencl";
341  case 5:
342  return "reduction";
343  case 6:
344  return "passes";
345  case 7:
346  return "bordertype";
347  case 8:
348  return "borderval";
349  case 9:
350  return "enableblending";
351  case 10:
352  return "blurblend";
353  case 11:
354  return "originalblend";
355 
356  }
357  return 0;
358  }
359 
360  ParmType getNestParmType(TempIndex fieldnum) const override
361  {
362  if (fieldnum.size() < 1)
363  return PARM_UNSUPPORTED;
364  switch (fieldnum[0])
365  {
366  case 0:
367  return PARM_STRING;
368  case 1:
369  return PARM_INTEGER;
370  case 2:
371  return PARM_FLOAT;
372  case 3:
373  return PARM_VECTOR3;
374  case 4:
375  return PARM_INTEGER;
376  case 5:
377  return PARM_INTEGER;
378  case 6:
379  return PARM_INTEGER;
380  case 7:
381  return PARM_INTEGER;
382  case 8:
383  return PARM_FLOAT;
384  case 9:
385  return PARM_INTEGER;
386  case 10:
387  return PARM_FLOAT;
388  case 11:
389  return PARM_FLOAT;
390 
391  }
392  return PARM_UNSUPPORTED;
393  }
394 
395  // Boiler plate to load individual types.
396  static void loadData(UT_IStream &is, int64 &v)
397  { is.bread(&v, 1); }
398  static void loadData(UT_IStream &is, bool &v)
399  { int64 iv; is.bread(&iv, 1); v = iv; }
400  static void loadData(UT_IStream &is, fpreal64 &v)
401  { is.bread<fpreal64>(&v, 1); }
402  static void loadData(UT_IStream &is, UT_Vector2D &v)
403  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
404  static void loadData(UT_IStream &is, UT_Vector3D &v)
405  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
406  is.bread<fpreal64>(&v.z(), 1); }
407  static void loadData(UT_IStream &is, UT_Vector4D &v)
408  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
409  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
410  static void loadData(UT_IStream &is, UT_Matrix2D &v)
411  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
412  static void loadData(UT_IStream &is, UT_Matrix3D &v)
413  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
414  static void loadData(UT_IStream &is, UT_Matrix4D &v)
415  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
416  static void loadData(UT_IStream &is, UT_Vector2I &v)
417  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
418  static void loadData(UT_IStream &is, UT_Vector3I &v)
419  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
420  is.bread<int64>(&v.z(), 1); }
421  static void loadData(UT_IStream &is, UT_Vector4I &v)
422  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
423  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
425  { is.bread(v); }
427  { UT_StringHolder rampdata;
428  loadData(is, rampdata);
429  if (rampdata.isstring())
430  {
431  v.reset(new UT_Ramp());
432  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
433  v->load(istr);
434  }
435  else v.reset();
436  }
439  loadData(is, data);
440  if (data.isstring())
441  {
442  // Find the data type.
443  const char *colon = UT_StringWrap(data).findChar(':');
444  if (colon)
445  {
446  int typelen = colon - data.buffer();
448  type.strncpy(data.buffer(), typelen);
449  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
450 
451  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
452  }
453  }
454  else v.reset();
455  }
456 
457  static void saveData(std::ostream &os, int64 v)
458  { UTwrite(os, &v); }
459  static void saveData(std::ostream &os, bool v)
460  { int64 iv = v; UTwrite(os, &iv); }
461  static void saveData(std::ostream &os, fpreal64 v)
462  { UTwrite<fpreal64>(os, &v); }
463  static void saveData(std::ostream &os, UT_Vector2D v)
464  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
465  static void saveData(std::ostream &os, UT_Vector3D v)
466  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
467  UTwrite<fpreal64>(os, &v.z()); }
468  static void saveData(std::ostream &os, UT_Vector4D v)
469  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
470  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
471  static void saveData(std::ostream &os, UT_Matrix2D v)
473  static void saveData(std::ostream &os, UT_Matrix3D v)
475  static void saveData(std::ostream &os, UT_Matrix4D v)
477  static void saveData(std::ostream &os, UT_StringHolder s)
478  { UT_StringWrap(s).saveBinary(os); }
479  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
481  UT_OStringStream ostr;
482  if (s) s->save(ostr);
483  result = ostr.str();
484  saveData(os, result);
485  }
486  static void saveData(std::ostream &os, PRM_DataItemHandle s)
488  UT_OStringStream ostr;
489  if (s)
490  {
491  ostr << s->getDataTypeToken();
492  ostr << ":";
493  s->saveBinary(ostr);
494  }
495  result = ostr.str();
496  saveData(os, result);
497  }
498 
499 
500  void save(std::ostream &os) const
501  {
502  int32 v = version();
503  UTwrite(os, &v);
504  saveData(os, myGroup);
505  saveData(os, myUsevoxelradius);
506  saveData(os, myRadius);
507  saveData(os, myVoxelradius);
508  saveData(os, myUseopencl);
509  saveData(os, myReduction);
510  saveData(os, myPasses);
511  saveData(os, myBordertype);
512  saveData(os, myBorderval);
513  saveData(os, myEnableblending);
514  saveData(os, myBlurblend);
515  saveData(os, myOriginalblend);
516 
517  }
518 
519  bool load(UT_IStream &is)
520  {
521  int32 v;
522  is.bread(&v, 1);
523  if (version() != v)
524  {
525  // Fail incompatible versions
526  return false;
527  }
528  loadData(is, myGroup);
529  loadData(is, myUsevoxelradius);
530  loadData(is, myRadius);
531  loadData(is, myVoxelradius);
532  loadData(is, myUseopencl);
533  loadData(is, myReduction);
534  loadData(is, myPasses);
535  loadData(is, myBordertype);
536  loadData(is, myBorderval);
537  loadData(is, myEnableblending);
538  loadData(is, myBlurblend);
539  loadData(is, myOriginalblend);
540 
541  return true;
542  }
543 
544  const UT_StringHolder & getGroup() const { return myGroup; }
545  void setGroup(const UT_StringHolder & val) { myGroup = val; }
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getGroup();
551  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
552  return result;
553  }
554  bool getUsevoxelradius() const { return myUsevoxelradius; }
555  void setUsevoxelradius(bool val) { myUsevoxelradius = val; }
556  bool opUsevoxelradius(const SOP_NodeVerb::CookParms &cookparms) const
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getUsevoxelradius();
560  bool result;
561  OP_Utils::evalOpParm(result, thissop, "usevoxelradius", cookparms.getCookTime(), 0);
562  return result;
563  }
564  fpreal64 getRadius() const { return myRadius; }
565  void setRadius(fpreal64 val) { myRadius = val; }
566  fpreal64 opRadius(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getRadius();
571  OP_Utils::evalOpParm(result, thissop, "radius", cookparms.getCookTime(), 0);
572  return result;
573  }
574  UT_Vector3D getVoxelradius() const { return myVoxelradius; }
575  void setVoxelradius(UT_Vector3D val) { myVoxelradius = val; }
577  {
578  SOP_Node *thissop = cookparms.getNode();
579  if (!thissop) return getVoxelradius();
581  OP_Utils::evalOpParm(result, thissop, "voxelradius", cookparms.getCookTime(), 0);
582  return result;
583  }
584  bool getUseopencl() const { return myUseopencl; }
585  void setUseopencl(bool val) { myUseopencl = val; }
586  bool opUseopencl(const SOP_NodeVerb::CookParms &cookparms) const
587  {
588  SOP_Node *thissop = cookparms.getNode();
589  if (!thissop) return getUseopencl();
590  bool result;
591  OP_Utils::evalOpParm(result, thissop, "useopencl", cookparms.getCookTime(), 0);
592  return result;
593  }
594  Reduction getReduction() const { return Reduction(myReduction); }
595  void setReduction(Reduction val) { myReduction = int64(val); }
597  {
598  SOP_Node *thissop = cookparms.getNode();
599  if (!thissop) return getReduction();
600  int64 result;
601  OP_Utils::evalOpParm(result, thissop, "reduction", cookparms.getCookTime(), 0);
602  return Reduction(result);
603  }
604  int64 getPasses() const { return myPasses; }
605  void setPasses(int64 val) { myPasses = val; }
606  int64 opPasses(const SOP_NodeVerb::CookParms &cookparms) const
607  {
608  SOP_Node *thissop = cookparms.getNode();
609  if (!thissop) return getPasses();
610  int64 result;
611  OP_Utils::evalOpParm(result, thissop, "passes", cookparms.getCookTime(), 0);
612  return result;
613  }
614  Bordertype getBordertype() const { return Bordertype(myBordertype); }
615  void setBordertype(Bordertype val) { myBordertype = int64(val); }
617  {
618  SOP_Node *thissop = cookparms.getNode();
619  if (!thissop) return getBordertype();
620  int64 result;
621  OP_Utils::evalOpParm(result, thissop, "bordertype", cookparms.getCookTime(), 0);
622  return Bordertype(result);
623  }
624  fpreal64 getBorderval() const { return myBorderval; }
625  void setBorderval(fpreal64 val) { myBorderval = val; }
627  {
628  SOP_Node *thissop = cookparms.getNode();
629  if (!thissop) return getBorderval();
631  OP_Utils::evalOpParm(result, thissop, "borderval", cookparms.getCookTime(), 0);
632  return result;
633  }
634  bool getEnableblending() const { return myEnableblending; }
635  void setEnableblending(bool val) { myEnableblending = val; }
636  bool opEnableblending(const SOP_NodeVerb::CookParms &cookparms) const
637  {
638  SOP_Node *thissop = cookparms.getNode();
639  if (!thissop) return getEnableblending();
640  bool result;
641  OP_Utils::evalOpParm(result, thissop, "enableblending", cookparms.getCookTime(), 0);
642  return result;
643  }
644  fpreal64 getBlurblend() const { return myBlurblend; }
645  void setBlurblend(fpreal64 val) { myBlurblend = val; }
647  {
648  SOP_Node *thissop = cookparms.getNode();
649  if (!thissop) return getBlurblend();
651  OP_Utils::evalOpParm(result, thissop, "blurblend", cookparms.getCookTime(), 0);
652  return result;
653  }
654  fpreal64 getOriginalblend() const { return myOriginalblend; }
655  void setOriginalblend(fpreal64 val) { myOriginalblend = val; }
657  {
658  SOP_Node *thissop = cookparms.getNode();
659  if (!thissop) return getOriginalblend();
661  OP_Utils::evalOpParm(result, thissop, "originalblend", cookparms.getCookTime(), 0);
662  return result;
663  }
664 
665 private:
666  UT_StringHolder myGroup;
667  bool myUsevoxelradius;
668  fpreal64 myRadius;
669  UT_Vector3D myVoxelradius;
670  bool myUseopencl;
671  int64 myReduction;
672  int64 myPasses;
673  int64 myBordertype;
674  fpreal64 myBorderval;
675  bool myEnableblending;
676  fpreal64 myBlurblend;
677  fpreal64 myOriginalblend;
678 
679 };
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setUsevoxelradius(bool val)
void save(std::ostream &os) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
Reduction getReduction() const
UT_Vector3D getVoxelradius() const
void copyFrom(const OP_NodeParms *src) override
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
UT_Vector3D opVoxelradius(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
fpreal64 getOriginalblend() const
bool opUsevoxelradius(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 getRadius() const
bool opEnableblending(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_VolumeBlurParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
bool operator==(const SOP_VolumeBlurParms &src) const
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector2D v)
**But if you need a result
Definition: thread.h:613
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
fpreal64 opBorderval(const SOP_NodeVerb::CookParms &cookparms) const
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
fpreal64 opOriginalblend(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, UT_Matrix2D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool opUseopencl(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const char * getNestParmName(TempIndex fieldnum) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
exint getNestNumParms(TempIndex idx) const override
void setReduction(Reduction val)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setRadius(fpreal64 val)
void setVoxelradius(UT_Vector3D val)
void setBlurblend(fpreal64 val)
fpreal64 getBlurblend() const
void setBorderval(fpreal64 val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
exint length() const
fpreal64 opRadius(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
fpreal64 getBorderval() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
int64 opPasses(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, bool &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
UT_Vector3T< fpreal64 > UT_Vector3D
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
fpreal64 opBlurblend(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, fpreal64 v)
GT_API const UT_StringHolder version
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix3D v)
bool getEnableblending() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setEnableblending(bool val)
void loadFromOpSubclass(const LoadParms &loadparms) override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Bordertype opBordertype(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
bool getUsevoxelradius() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
Reduction opReduction(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void setOriginalblend(fpreal64 val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
#define SOP_API
Definition: SOP_API.h:10
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setBordertype(Bordertype val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
static void loadData(UT_IStream &is, UT_StringHolder &v)
const UT_StringHolder & getGroup() const
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
OP_NodeParms & operator=(const OP_NodeParms &)=default
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
Bordertype getBordertype() const