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