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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_sh;
32  myGoalgroup = ""_sh;
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;
44 
46 
48  {
49  if (myGroup != src.myGroup) return false;
50  if (myGoalgroup != src.myGoalgroup) return false;
51  if (myTolerance != src.myTolerance) return false;
52  if (myWinradius != src.myWinradius) return false;
53  if (myGaussian != src.myGaussian) return false;
54  if (myLevels != src.myLevels) return false;
55  if (myPyramidscale != src.myPyramidscale) return false;
56  if (myIterations != src.myIterations) return false;
57  if (myApproxradius != src.myApproxradius) return false;
58 
59  return true;
60  }
62  {
63  return !operator==(src);
64  }
65 
66 
67 
68  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
69  {
70  myGroup = ""_sh;
71  if (true)
72  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
73  myGoalgroup = ""_sh;
74  if (true)
75  graph->evalOpParm(myGoalgroup, nodeidx, "goalgroup", time, 0);
76  myTolerance = 1e-2;
77  if (true)
78  graph->evalOpParm(myTolerance, nodeidx, "tolerance", time, 0);
79  myWinradius = 7;
80  if (true)
81  graph->evalOpParm(myWinradius, nodeidx, "winradius", time, 0);
82  myGaussian = false;
83  if (true)
84  graph->evalOpParm(myGaussian, nodeidx, "gaussian", time, 0);
85  myLevels = 3;
86  if (true)
87  graph->evalOpParm(myLevels, nodeidx, "levels", time, 0);
88  myPyramidscale = 0.5;
89  if (true)
90  graph->evalOpParm(myPyramidscale, nodeidx, "pyramidscale", time, 0);
91  myIterations = 3;
92  if (true)
93  graph->evalOpParm(myIterations, nodeidx, "iterations", time, 0);
94  myApproxradius = 2;
95  if (true)
96  graph->evalOpParm(myApproxradius, nodeidx, "approxradius", time, 0);
97 
98  }
99 
100 
101  void loadFromOpSubclass(const LoadParms &loadparms) override
102  {
103  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
104  }
105 
106 
107  void copyFrom(const SOP_NodeParms *src) override
108  {
109  *this = *((const SOP_VolumeOpticalFlowParms *)src);
110  }
111 
112  template <typename T>
113  void
114  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
115  {
116  if (idx.size() < 1)
117  return;
118  UT_ASSERT(idx.size() == instance.size()+1);
119  if (idx.size() != instance.size()+1)
120  return;
121  switch (idx[0])
122  {
123  case 0:
124  coerceValue(value, myGroup);
125  break;
126  case 1:
127  coerceValue(value, myGoalgroup);
128  break;
129  case 2:
130  coerceValue(value, myTolerance);
131  break;
132  case 3:
133  coerceValue(value, myWinradius);
134  break;
135  case 4:
136  coerceValue(value, myGaussian);
137  break;
138  case 5:
139  coerceValue(value, myLevels);
140  break;
141  case 6:
142  coerceValue(value, myPyramidscale);
143  break;
144  case 7:
145  coerceValue(value, myIterations);
146  break;
147  case 8:
148  coerceValue(value, myApproxradius);
149  break;
150 
151  }
152  }
153 
154  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
155  { doGetParmValue(idx, instance, value); }
156  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
157  { doGetParmValue(idx, instance, value); }
158  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
159  { doGetParmValue(idx, instance, value); }
160  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
161  { doGetParmValue(idx, instance, value); }
162  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
175  { doGetParmValue(idx, instance, value); }
176 
177  template <typename T>
178  void
179  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
180  {
181  if (idx.size() < 1)
182  return;
183  UT_ASSERT(idx.size() == instance.size()+1);
184  if (idx.size() != instance.size()+1)
185  return;
186  switch (idx[0])
187  {
188  case 0:
189  coerceValue(myGroup, value);
190  break;
191  case 1:
192  coerceValue(myGoalgroup, value);
193  break;
194  case 2:
195  coerceValue(myTolerance, value);
196  break;
197  case 3:
198  coerceValue(myWinradius, value);
199  break;
200  case 4:
201  coerceValue(myGaussian, value);
202  break;
203  case 5:
204  coerceValue(myLevels, value);
205  break;
206  case 6:
207  coerceValue(myPyramidscale, value);
208  break;
209  case 7:
210  coerceValue(myIterations, value);
211  break;
212  case 8:
213  coerceValue(myApproxradius, value);
214  break;
215 
216  }
217  }
218 
219  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
220  { doSetParmValue(idx, instance, value); }
221  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
240  { doSetParmValue(idx, instance, value); }
241 
242  exint getNestNumParms(TempIndex idx) const override
243  {
244  if (idx.size() == 0)
245  return 9;
246  switch (idx[0])
247  {
248 
249  }
250  // Invalid
251  return 0;
252  }
253 
254  const char *getNestParmName(TempIndex fieldnum) const override
255  {
256  if (fieldnum.size() < 1)
257  return 0;
258  switch (fieldnum[0])
259  {
260  case 0:
261  return "group";
262  case 1:
263  return "goalgroup";
264  case 2:
265  return "tolerance";
266  case 3:
267  return "winradius";
268  case 4:
269  return "gaussian";
270  case 5:
271  return "levels";
272  case 6:
273  return "pyramidscale";
274  case 7:
275  return "iterations";
276  case 8:
277  return "approxradius";
278 
279  }
280  return 0;
281  }
282 
283  ParmType getNestParmType(TempIndex fieldnum) const override
284  {
285  if (fieldnum.size() < 1)
286  return PARM_UNSUPPORTED;
287  switch (fieldnum[0])
288  {
289  case 0:
290  return PARM_STRING;
291  case 1:
292  return PARM_STRING;
293  case 2:
294  return PARM_FLOAT;
295  case 3:
296  return PARM_INTEGER;
297  case 4:
298  return PARM_INTEGER;
299  case 5:
300  return PARM_INTEGER;
301  case 6:
302  return PARM_FLOAT;
303  case 7:
304  return PARM_INTEGER;
305  case 8:
306  return PARM_FLOAT;
307 
308  }
309  return PARM_UNSUPPORTED;
310  }
311 
312  // Boiler plate to load individual types.
313  static void loadData(UT_IStream &is, int64 &v)
314  { is.bread(&v, 1); }
315  static void loadData(UT_IStream &is, bool &v)
316  { int64 iv; is.bread(&iv, 1); v = iv; }
317  static void loadData(UT_IStream &is, fpreal64 &v)
318  { is.bread<fpreal64>(&v, 1); }
319  static void loadData(UT_IStream &is, UT_Vector2D &v)
320  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
321  static void loadData(UT_IStream &is, UT_Vector3D &v)
322  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
323  is.bread<fpreal64>(&v.z(), 1); }
324  static void loadData(UT_IStream &is, UT_Vector4D &v)
325  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
326  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
327  static void loadData(UT_IStream &is, UT_Matrix2D &v)
328  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
329  static void loadData(UT_IStream &is, UT_Matrix3D &v)
330  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
331  static void loadData(UT_IStream &is, UT_Matrix4D &v)
332  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
333  static void loadData(UT_IStream &is, UT_Vector2I &v)
334  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector3I &v)
336  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
337  is.bread<int64>(&v.z(), 1); }
338  static void loadData(UT_IStream &is, UT_Vector4I &v)
339  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
340  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
342  { is.bread(v); }
344  { UT_StringHolder rampdata;
345  loadData(is, rampdata);
346  if (rampdata.isstring())
347  {
348  v.reset(new UT_Ramp());
349  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
350  v->load(istr);
351  }
352  else v.reset();
353  }
356  loadData(is, data);
357  if (data.isstring())
358  {
359  // Find the data type.
360  const char *colon = UT_StringWrap(data).findChar(':');
361  if (colon)
362  {
363  int typelen = colon - data.buffer();
365  type.strncpy(data.buffer(), typelen);
366  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
367 
368  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
369  }
370  }
371  else v.reset();
372  }
373 
374  static void saveData(std::ostream &os, int64 v)
375  { UTwrite(os, &v); }
376  static void saveData(std::ostream &os, bool v)
377  { int64 iv = v; UTwrite(os, &iv); }
378  static void saveData(std::ostream &os, fpreal64 v)
379  { UTwrite<fpreal64>(os, &v); }
380  static void saveData(std::ostream &os, UT_Vector2D v)
381  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
382  static void saveData(std::ostream &os, UT_Vector3D v)
383  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
384  UTwrite<fpreal64>(os, &v.z()); }
385  static void saveData(std::ostream &os, UT_Vector4D v)
386  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
387  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
388  static void saveData(std::ostream &os, UT_Matrix2D v)
390  static void saveData(std::ostream &os, UT_Matrix3D v)
392  static void saveData(std::ostream &os, UT_Matrix4D v)
394  static void saveData(std::ostream &os, UT_StringHolder s)
395  { UT_StringWrap(s).saveBinary(os); }
396  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
398  UT_OStringStream ostr;
399  if (s) s->save(ostr);
400  result = ostr.str();
401  saveData(os, result);
402  }
403  static void saveData(std::ostream &os, PRM_DataItemHandle s)
405  UT_OStringStream ostr;
406  if (s)
407  {
408  ostr << s->getDataTypeToken();
409  ostr << ":";
410  s->saveBinary(ostr);
411  }
412  result = ostr.str();
413  saveData(os, result);
414  }
415 
416 
417  void save(std::ostream &os) const
418  {
419  int32 v = version();
420  UTwrite(os, &v);
421  saveData(os, myGroup);
422  saveData(os, myGoalgroup);
423  saveData(os, myTolerance);
424  saveData(os, myWinradius);
425  saveData(os, myGaussian);
426  saveData(os, myLevels);
427  saveData(os, myPyramidscale);
428  saveData(os, myIterations);
429  saveData(os, myApproxradius);
430 
431  }
432 
433  bool load(UT_IStream &is)
434  {
435  int32 v;
436  is.bread(&v, 1);
437  if (version() != v)
438  {
439  // Fail incompatible versions
440  return false;
441  }
442  loadData(is, myGroup);
443  loadData(is, myGoalgroup);
444  loadData(is, myTolerance);
445  loadData(is, myWinradius);
446  loadData(is, myGaussian);
447  loadData(is, myLevels);
448  loadData(is, myPyramidscale);
449  loadData(is, myIterations);
450  loadData(is, myApproxradius);
451 
452  return true;
453  }
454 
455  const UT_StringHolder & getGroup() const { return myGroup; }
456  void setGroup(const UT_StringHolder & val) { myGroup = val; }
458  {
459  SOP_Node *thissop = cookparms.getNode();
460  if (!thissop) return getGroup();
462  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
463  return result;
464  }
465  const UT_StringHolder & getGoalgroup() const { return myGoalgroup; }
466  void setGoalgroup(const UT_StringHolder & val) { myGoalgroup = val; }
468  {
469  SOP_Node *thissop = cookparms.getNode();
470  if (!thissop) return getGoalgroup();
472  OP_Utils::evalOpParm(result, thissop, "goalgroup", cookparms.getCookTime(), 0);
473  return result;
474  }
475  fpreal64 getTolerance() const { return myTolerance; }
476  void setTolerance(fpreal64 val) { myTolerance = val; }
478  {
479  SOP_Node *thissop = cookparms.getNode();
480  if (!thissop) return getTolerance();
482  OP_Utils::evalOpParm(result, thissop, "tolerance", cookparms.getCookTime(), 0);
483  return result;
484  }
485  int64 getWinradius() const { return myWinradius; }
486  void setWinradius(int64 val) { myWinradius = val; }
487  int64 opWinradius(const SOP_NodeVerb::CookParms &cookparms) const
488  {
489  SOP_Node *thissop = cookparms.getNode();
490  if (!thissop) return getWinradius();
491  int64 result;
492  OP_Utils::evalOpParm(result, thissop, "winradius", cookparms.getCookTime(), 0);
493  return result;
494  }
495  bool getGaussian() const { return myGaussian; }
496  void setGaussian(bool val) { myGaussian = val; }
497  bool opGaussian(const SOP_NodeVerb::CookParms &cookparms) const
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getGaussian();
501  bool result;
502  OP_Utils::evalOpParm(result, thissop, "gaussian", cookparms.getCookTime(), 0);
503  return result;
504  }
505  int64 getLevels() const { return myLevels; }
506  void setLevels(int64 val) { myLevels = val; }
507  int64 opLevels(const SOP_NodeVerb::CookParms &cookparms) const
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getLevels();
511  int64 result;
512  OP_Utils::evalOpParm(result, thissop, "levels", cookparms.getCookTime(), 0);
513  return result;
514  }
515  fpreal64 getPyramidscale() const { return myPyramidscale; }
516  void setPyramidscale(fpreal64 val) { myPyramidscale = val; }
518  {
519  SOP_Node *thissop = cookparms.getNode();
520  if (!thissop) return getPyramidscale();
522  OP_Utils::evalOpParm(result, thissop, "pyramidscale", cookparms.getCookTime(), 0);
523  return result;
524  }
525  int64 getIterations() const { return myIterations; }
526  void setIterations(int64 val) { myIterations = val; }
528  {
529  SOP_Node *thissop = cookparms.getNode();
530  if (!thissop) return getIterations();
531  int64 result;
532  OP_Utils::evalOpParm(result, thissop, "iterations", cookparms.getCookTime(), 0);
533  return result;
534  }
535  fpreal64 getApproxradius() const { return myApproxradius; }
536  void setApproxradius(fpreal64 val) { myApproxradius = val; }
538  {
539  SOP_Node *thissop = cookparms.getNode();
540  if (!thissop) return getApproxradius();
542  OP_Utils::evalOpParm(result, thissop, "approxradius", cookparms.getCookTime(), 0);
543  return result;
544  }
545 
546 private:
547  UT_StringHolder myGroup;
548  UT_StringHolder myGoalgroup;
549  fpreal64 myTolerance;
550  int64 myWinradius;
551  bool myGaussian;
552  int64 myLevels;
553  fpreal64 myPyramidscale;
554  int64 myIterations;
555  fpreal64 myApproxradius;
556 
557 };
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
GLdouble s
Definition: glew.h:1390
fpreal64 opTolerance(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
static void saveData(std::ostream &os, UT_Matrix4D v)
const UT_StringHolder & getGoalgroup() const
UT_StringHolder opGoalgroup(const SOP_NodeVerb::CookParms &cookparms) const
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)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
static void saveData(std::ostream &os, UT_Vector4D v)
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void copyFrom(const SOP_NodeParms *src) override
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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)
const GLdouble * v
Definition: glew.h:1391
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
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)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
double fpreal64
Definition: SYS_Types.h:201
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)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
void setGoalgroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, int64 &v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void loadData(UT_IStream &is, UT_Matrix4D &v)
const GLfloat * c
Definition: glew.h:16296
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)
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:294
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
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)
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)
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:84
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
#define SOP_API
Definition: SOP_API.h:10
exint getNestNumParms(TempIndex idx) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
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:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
bool opGaussian(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool operator==(const SOP_VolumeOpticalFlowParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLsizei const GLfloat * value
Definition: glew.h:1849
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
int64 opWinradius(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)