HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeOpticalFlow.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myGoalgroup = ""_UTsh;
33  myTolerance = 1e-2;
34  myWinradius = 7;
35  myGaussian = false;
36  myLevels = 3;
37  myPyramidscale = 0.5;
38  myIterations = 3;
39  myApproxradius = 2;
40 
41  }
42 
43  explicit SOP_VolumeOpticalFlowParms(const SOP_VolumeOpticalFlowParms &) = default;
46  SOP_VolumeOpticalFlowParms &operator=(SOP_VolumeOpticalFlowParms &&) noexcept = default;
47 
49 
51  {
52  if (myGroup != src.myGroup) return false;
53  if (myGoalgroup != src.myGoalgroup) return false;
54  if (myTolerance != src.myTolerance) return false;
55  if (myWinradius != src.myWinradius) return false;
56  if (myGaussian != src.myGaussian) return false;
57  if (myLevels != src.myLevels) return false;
58  if (myPyramidscale != src.myPyramidscale) return false;
59  if (myIterations != src.myIterations) return false;
60  if (myApproxradius != src.myApproxradius) return false;
61 
62  return true;
63  }
65  {
66  return !operator==(src);
67  }
68 
69 
70 
71  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
72  {
73  myGroup = ""_UTsh;
74  if (true)
75  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
76  myGoalgroup = ""_UTsh;
77  if (true)
78  graph->evalOpParm(myGoalgroup, nodeidx, "goalgroup", time, 0);
79  myTolerance = 1e-2;
80  if (true)
81  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
82  myWinradius = 7;
83  if (true)
84  graph->evalOpParm(myWinradius, nodeidx, "winradius", time, 0);
85  myGaussian = false;
86  if (true)
87  graph->evalOpParm(myGaussian, nodeidx, "gaussian", time, 0);
88  myLevels = 3;
89  if (true)
90  graph->evalOpParm(myLevels, nodeidx, "levels", time, 0);
91  myPyramidscale = 0.5;
92  if (true)
93  graph->evalOpParm(myPyramidscale, nodeidx, "pyramidscale", time, 0);
94  myIterations = 3;
95  if (true)
96  graph->evalOpParm(myIterations, nodeidx, "iterations", time, 0);
97  myApproxradius = 2;
98  if (true)
99  graph->evalOpParm(myApproxradius, nodeidx, "approxradius", time, 0);
100 
101  }
102 
103 
104  void loadFromOpSubclass(const LoadParms &loadparms) override
105  {
106  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
107  }
108 
109 
110  void copyFrom(const OP_NodeParms *src) override
111  {
112  *this = *((const SOP_VolumeOpticalFlowParms *)src);
113  }
114 
115  template <typename T>
116  void
117  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
118  {
119  if (idx.size() < 1)
120  return;
121  UT_ASSERT(idx.size() == instance.size()+1);
122  if (idx.size() != instance.size()+1)
123  return;
124  switch (idx[0])
125  {
126  case 0:
127  coerceValue(value, myGroup);
128  break;
129  case 1:
130  coerceValue(value, myGoalgroup);
131  break;
132  case 2:
133  coerceValue(value, myTolerance);
134  break;
135  case 3:
136  coerceValue(value, myWinradius);
137  break;
138  case 4:
139  coerceValue(value, myGaussian);
140  break;
141  case 5:
142  coerceValue(value, myLevels);
143  break;
144  case 6:
145  coerceValue(value, myPyramidscale);
146  break;
147  case 7:
148  coerceValue(value, myIterations);
149  break;
150  case 8:
151  coerceValue(value, myApproxradius);
152  break;
153 
154  }
155  }
156 
157  bool isParmColorRamp(exint idx) const override
158  {
159  switch (idx)
160  {
161 
162  }
163  return false;
164  }
165 
166  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
187  { doGetParmValue(idx, instance, value); }
188 
189  template <typename T>
190  void
191  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
192  {
193  if (idx.size() < 1)
194  return;
195  UT_ASSERT(idx.size() == instance.size()+1);
196  if (idx.size() != instance.size()+1)
197  return;
198  switch (idx[0])
199  {
200  case 0:
201  coerceValue(myGroup, ( ( value ) ));
202  break;
203  case 1:
204  coerceValue(myGoalgroup, ( ( value ) ));
205  break;
206  case 2:
207  coerceValue(myTolerance, ( clampMaxValue(-12, value ) ));
208  break;
209  case 3:
210  coerceValue(myWinradius, clampMinValue(0, ( value ) ));
211  break;
212  case 4:
213  coerceValue(myGaussian, ( ( value ) ));
214  break;
215  case 5:
216  coerceValue(myLevels, clampMinValue(1, ( value ) ));
217  break;
218  case 6:
219  coerceValue(myPyramidscale, clampMinValue(0.1, clampMaxValue(0.9, value ) ));
220  break;
221  case 7:
222  coerceValue(myIterations, clampMinValue(1, ( value ) ));
223  break;
224  case 8:
225  coerceValue(myApproxradius, clampMinValue(0.25, ( value ) ));
226  break;
227 
228  }
229  }
230 
231  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
252  { doSetParmValue(idx, instance, value); }
253 
254  exint getNestNumParms(TempIndex idx) const override
255  {
256  if (idx.size() == 0)
257  return 9;
258  switch (idx[0])
259  {
260 
261  }
262  // Invalid
263  return 0;
264  }
265 
266  const char *getNestParmName(TempIndex fieldnum) const override
267  {
268  if (fieldnum.size() < 1)
269  return 0;
270  switch (fieldnum[0])
271  {
272  case 0:
273  return "group";
274  case 1:
275  return "goalgroup";
276  case 2:
277  return "tolerance";
278  case 3:
279  return "winradius";
280  case 4:
281  return "gaussian";
282  case 5:
283  return "levels";
284  case 6:
285  return "pyramidscale";
286  case 7:
287  return "iterations";
288  case 8:
289  return "approxradius";
290 
291  }
292  return 0;
293  }
294 
295  ParmType getNestParmType(TempIndex fieldnum) const override
296  {
297  if (fieldnum.size() < 1)
298  return PARM_UNSUPPORTED;
299  switch (fieldnum[0])
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_STRING;
305  case 2:
306  return PARM_FLOAT;
307  case 3:
308  return PARM_INTEGER;
309  case 4:
310  return PARM_INTEGER;
311  case 5:
312  return PARM_INTEGER;
313  case 6:
314  return PARM_FLOAT;
315  case 7:
316  return PARM_INTEGER;
317  case 8:
318  return PARM_FLOAT;
319 
320  }
321  return PARM_UNSUPPORTED;
322  }
323 
324  // Boiler plate to load individual types.
325  static void loadData(UT_IStream &is, int64 &v)
326  { is.bread(&v, 1); }
327  static void loadData(UT_IStream &is, bool &v)
328  { int64 iv; is.bread(&iv, 1); v = iv; }
329  static void loadData(UT_IStream &is, fpreal64 &v)
330  { is.bread<fpreal64>(&v, 1); }
331  static void loadData(UT_IStream &is, UT_Vector2D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector3D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
335  is.bread<fpreal64>(&v.z(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector4D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix2D &v)
340  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix3D &v)
342  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix4D &v)
344  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Vector2I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector3I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
349  is.bread<int64>(&v.z(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector4I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
354  { is.bread(v); }
356  { UT_StringHolder rampdata;
357  loadData(is, rampdata);
358  if (rampdata.isstring())
359  {
360  v.reset(new UT_Ramp());
361  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
362  v->load(istr);
363  }
364  else v.reset();
365  }
368  loadData(is, data);
369  if (data.isstring())
370  {
371  // Find the data type.
372  const char *colon = UT_StringWrap(data).findChar(':');
373  if (colon)
374  {
375  int typelen = colon - data.buffer();
377  type.strncpy(data.buffer(), typelen);
378  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
379 
380  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
381  }
382  }
383  else v.reset();
384  }
385 
386  static void saveData(std::ostream &os, int64 v)
387  { UTwrite(os, &v); }
388  static void saveData(std::ostream &os, bool v)
389  { int64 iv = v; UTwrite(os, &iv); }
390  static void saveData(std::ostream &os, fpreal64 v)
391  { UTwrite<fpreal64>(os, &v); }
392  static void saveData(std::ostream &os, UT_Vector2D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
394  static void saveData(std::ostream &os, UT_Vector3D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
396  UTwrite<fpreal64>(os, &v.z()); }
397  static void saveData(std::ostream &os, UT_Vector4D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
400  static void saveData(std::ostream &os, UT_Matrix2D v)
402  static void saveData(std::ostream &os, UT_Matrix3D v)
404  static void saveData(std::ostream &os, UT_Matrix4D v)
406  static void saveData(std::ostream &os, UT_StringHolder s)
407  { UT_StringWrap(s).saveBinary(os); }
408  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
410  UT_OStringStream ostr;
411  if (s) s->save(ostr);
412  result = ostr.str();
413  saveData(os, result);
414  }
415  static void saveData(std::ostream &os, PRM_DataItemHandle s)
417  UT_OStringStream ostr;
418  if (s)
419  {
420  ostr << s->getDataTypeToken();
421  ostr << ":";
422  s->saveBinary(ostr);
423  }
424  result = ostr.str();
425  saveData(os, result);
426  }
427 
428 
429  void save(std::ostream &os) const
430  {
431  int32 v = version();
432  UTwrite(os, &v);
433  saveData(os, myGroup);
434  saveData(os, myGoalgroup);
435  saveData(os, myTolerance);
436  saveData(os, myWinradius);
437  saveData(os, myGaussian);
438  saveData(os, myLevels);
439  saveData(os, myPyramidscale);
440  saveData(os, myIterations);
441  saveData(os, myApproxradius);
442 
443  }
444 
445  bool load(UT_IStream &is)
446  {
447  int32 v;
448  is.bread(&v, 1);
449  if (version() != v)
450  {
451  // Fail incompatible versions
452  return false;
453  }
454  loadData(is, myGroup);
455  loadData(is, myGoalgroup);
456  loadData(is, myTolerance);
457  loadData(is, myWinradius);
458  loadData(is, myGaussian);
459  loadData(is, myLevels);
460  loadData(is, myPyramidscale);
461  loadData(is, myIterations);
462  loadData(is, myApproxradius);
463 
464  return true;
465  }
466 
467  const UT_StringHolder & getGroup() const { return myGroup; }
468  void setGroup(const UT_StringHolder & val) { myGroup = val; }
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getGroup();
474  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
475  return result;
476  }
477  const UT_StringHolder & getGoalgroup() const { return myGoalgroup; }
478  void setGoalgroup(const UT_StringHolder & val) { myGoalgroup = val; }
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getGoalgroup();
484  OP_Utils::evalOpParm(result, thissop, "goalgroup", cookparms.getCookTime(), 0);
485  return result;
486  }
487  fpreal64 getTolerance() const { return myTolerance; }
488  void setTolerance(fpreal64 val) { myTolerance = val; }
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getTolerance();
494  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
495  return result;
496  }
497  int64 getWinradius() const { return myWinradius; }
498  void setWinradius(int64 val) { myWinradius = val; }
499  int64 opWinradius(const SOP_NodeVerb::CookParms &cookparms) const
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getWinradius();
503  int64 result;
504  OP_Utils::evalOpParm(result, thissop, "winradius", cookparms.getCookTime(), 0);
505  return result;
506  }
507  bool getGaussian() const { return myGaussian; }
508  void setGaussian(bool val) { myGaussian = val; }
509  bool opGaussian(const SOP_NodeVerb::CookParms &cookparms) const
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getGaussian();
513  bool result;
514  OP_Utils::evalOpParm(result, thissop, "gaussian", cookparms.getCookTime(), 0);
515  return result;
516  }
517  int64 getLevels() const { return myLevels; }
518  void setLevels(int64 val) { myLevels = val; }
519  int64 opLevels(const SOP_NodeVerb::CookParms &cookparms) const
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getLevels();
523  int64 result;
524  OP_Utils::evalOpParm(result, thissop, "levels", cookparms.getCookTime(), 0);
525  return result;
526  }
527  fpreal64 getPyramidscale() const { return myPyramidscale; }
528  void setPyramidscale(fpreal64 val) { myPyramidscale = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getPyramidscale();
534  OP_Utils::evalOpParm(result, thissop, "pyramidscale", cookparms.getCookTime(), 0);
535  return result;
536  }
537  int64 getIterations() const { return myIterations; }
538  void setIterations(int64 val) { myIterations = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getIterations();
543  int64 result;
544  OP_Utils::evalOpParm(result, thissop, "iterations", cookparms.getCookTime(), 0);
545  return result;
546  }
547  fpreal64 getApproxradius() const { return myApproxradius; }
548  void setApproxradius(fpreal64 val) { myApproxradius = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getApproxradius();
554  OP_Utils::evalOpParm(result, thissop, "approxradius", cookparms.getCookTime(), 0);
555  return result;
556  }
557 
558 private:
559  UT_StringHolder myGroup;
560  UT_StringHolder myGoalgroup;
561  fpreal64 myTolerance;
562  int64 myWinradius;
563  bool myGaussian;
564  int64 myLevels;
565  fpreal64 myPyramidscale;
566  int64 myIterations;
567  fpreal64 myApproxradius;
568 
569 };
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
fpreal64 opTolerance(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, UT_Matrix4D v)
const UT_StringHolder & getGoalgroup() const
UT_StringHolder opGoalgroup(const SOP_NodeVerb::CookParms &cookparms) const
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
exint bread(int32 *buffer, exint asize=1)
static void saveData(std::ostream &os, UT_StringHolder s)
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_Vector4D v)
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &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
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void saveData(std::ostream &os, int64 v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
**But if you need a result
Definition: thread.h:613
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
static void loadData(UT_IStream &is, fpreal64 &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, UT_StringHolder &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
int64 opLevels(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_Vector3D v)
exint length() const
const UT_StringHolder & getGroup() const
static void saveData(std::ostream &os, UT_Vector2D v)
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 setGoalgroup(const UT_StringHolder &val)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
fpreal64 opPyramidscale(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator!=(const SOP_VolumeOpticalFlowParms &src) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
GT_API const UT_StringHolder version
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void saveData(std::ostream &os, bool v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, bool &v)
fpreal64 opApproxradius(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 fpreal
Definition: SYS_Types.h:277
static void saveData(std::ostream &os, UT_Matrix2D v)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
const char * getNestParmName(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
exint getNestNumParms(TempIndex idx) const override
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 PRM_DataItemHandle &value) override
void setGroup(const UT_StringHolder &val)
ParmType getNestParmType(TempIndex fieldnum) const override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
bool opGaussian(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
bool operator==(const SOP_VolumeOpticalFlowParms &src) const
type
Definition: core.h:1059
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void copyFrom(const OP_NodeParms *src) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
int64 opWinradius(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663