HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PointCloudNormal.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_PointCloudNormalEnums
24 {
25  enum class Method
26  {
27  HINT = 0,
28  LOCAL
29  };
30 
32  getToken(Method enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Method::HINT: return "hint"_sh;
37  case Method::LOCAL: return "local"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42 }
43 
44 
46 {
47 public:
48  static int version() { return 1; }
49 
51  {
52  myGroup = ""_UTsh;
53  myNormalAttrib = "N"_UTsh;
54  myCompute = true;
55  myRadius = 0.5;
56  myUseNeighbors = true;
57  myNeighbors = 20;
58  myOrigIfZero = true;
59  myMethod = 1;
60  myLocalNeighbors = 5;
61  myHint = UT_Vector3D(0,0,0);
62  myReverse = false;
63 
64  }
65 
66  explicit SOP_PointCloudNormalParms(const SOP_PointCloudNormalParms &) = default;
69  SOP_PointCloudNormalParms &operator=(SOP_PointCloudNormalParms &&) noexcept = default;
70 
72 
74  {
75  if (myGroup != src.myGroup) return false;
76  if (myNormalAttrib != src.myNormalAttrib) return false;
77  if (myCompute != src.myCompute) return false;
78  if (myRadius != src.myRadius) return false;
79  if (myUseNeighbors != src.myUseNeighbors) return false;
80  if (myNeighbors != src.myNeighbors) return false;
81  if (myOrigIfZero != src.myOrigIfZero) return false;
82  if (myMethod != src.myMethod) return false;
83  if (myLocalNeighbors != src.myLocalNeighbors) return false;
84  if (myHint != src.myHint) return false;
85  if (myReverse != src.myReverse) return false;
86 
87  return true;
88  }
90  {
91  return !operator==(src);
92  }
94 
95 
96 
97  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
98  {
99  myGroup = ""_UTsh;
100  if (true)
101  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
102  myNormalAttrib = "N"_UTsh;
103  if (true)
104  graph->evalOpParm(myNormalAttrib, nodeidx, "normalattrib", time, 0);
105  myCompute = true;
106  if (true)
107  graph->evalOpParm(myCompute, nodeidx, "compute", time, 0);
108  myRadius = 0.5;
109  if (true && ( (true&&!(((getCompute()==0)))) ) )
110  graph->evalOpParm(myRadius, nodeidx, "radius", time, 0);
111  myUseNeighbors = true;
112  if (true && ( (true&&!(((getCompute()==0)))) ) )
113  graph->evalOpParm(myUseNeighbors, nodeidx, "useneighbors", time, 0);
114  myNeighbors = 20;
115  if (true && ( (true&&!(((getCompute()==0))||((getUseNeighbors()==0)))) ) )
116  graph->evalOpParm(myNeighbors, nodeidx, "neighbors", time, 0);
117  myOrigIfZero = true;
118  if (true && ( (true&&!(((getCompute()==0)))) ) )
119  graph->evalOpParm(myOrigIfZero, nodeidx, "origifzero", time, 0);
120  myMethod = 1;
121  if (true)
122  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
123  myLocalNeighbors = 5;
124  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getMethod())!=1)))) ) )
125  graph->evalOpParm(myLocalNeighbors, nodeidx, "localneighbors", time, 0);
126  myHint = UT_Vector3D(0,0,0);
127  if (true)
128  graph->evalOpParm(myHint, nodeidx, "hint", time, 0);
129  myReverse = false;
130  if (true)
131  graph->evalOpParm(myReverse, nodeidx, "reverse", time, 0);
132 
133  }
134 
135 
136  void loadFromOpSubclass(const LoadParms &loadparms) override
137  {
138  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
139  }
140 
141 
142  void copyFrom(const OP_NodeParms *src) override
143  {
144  *this = *((const SOP_PointCloudNormalParms *)src);
145  }
146 
147  template <typename T>
148  void
149  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
150  {
151  if (idx.size() < 1)
152  return;
153  UT_ASSERT(idx.size() == instance.size()+1);
154  if (idx.size() != instance.size()+1)
155  return;
156  switch (idx[0])
157  {
158  case 0:
159  coerceValue(value, myGroup);
160  break;
161  case 1:
162  coerceValue(value, myNormalAttrib);
163  break;
164  case 2:
165  coerceValue(value, myCompute);
166  break;
167  case 3:
168  coerceValue(value, myRadius);
169  break;
170  case 4:
171  coerceValue(value, myUseNeighbors);
172  break;
173  case 5:
174  coerceValue(value, myNeighbors);
175  break;
176  case 6:
177  coerceValue(value, myOrigIfZero);
178  break;
179  case 7:
180  coerceValue(value, myMethod);
181  break;
182  case 8:
183  coerceValue(value, myLocalNeighbors);
184  break;
185  case 9:
186  coerceValue(value, myHint);
187  break;
188  case 10:
189  coerceValue(value, myReverse);
190  break;
191 
192  }
193  }
194 
195  bool isParmColorRamp(exint idx) const override
196  {
197  switch (idx)
198  {
199 
200  }
201  return false;
202  }
203 
204  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
225  { doGetParmValue(idx, instance, value); }
226 
227  template <typename T>
228  void
229  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
230  {
231  if (idx.size() < 1)
232  return;
233  UT_ASSERT(idx.size() == instance.size()+1);
234  if (idx.size() != instance.size()+1)
235  return;
236  switch (idx[0])
237  {
238  case 0:
239  coerceValue(myGroup, ( ( value ) ));
240  break;
241  case 1:
242  coerceValue(myNormalAttrib, ( ( value ) ));
243  break;
244  case 2:
245  coerceValue(myCompute, ( ( value ) ));
246  break;
247  case 3:
248  coerceValue(myRadius, ( clampMaxValue(-15, value ) ));
249  break;
250  case 4:
251  coerceValue(myUseNeighbors, ( ( value ) ));
252  break;
253  case 5:
254  coerceValue(myNeighbors, clampMinValue(2, ( value ) ));
255  break;
256  case 6:
257  coerceValue(myOrigIfZero, ( ( value ) ));
258  break;
259  case 7:
260  coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
261  break;
262  case 8:
263  coerceValue(myLocalNeighbors, clampMinValue(2, ( value ) ));
264  break;
265  case 9:
266  coerceValue(myHint, ( ( value ) ));
267  break;
268  case 10:
269  coerceValue(myReverse, ( ( value ) ));
270  break;
271 
272  }
273  }
274 
275  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
296  { doSetParmValue(idx, instance, value); }
297 
298  exint getNestNumParms(TempIndex idx) const override
299  {
300  if (idx.size() == 0)
301  return 11;
302  switch (idx[0])
303  {
304 
305  }
306  // Invalid
307  return 0;
308  }
309 
310  const char *getNestParmName(TempIndex fieldnum) const override
311  {
312  if (fieldnum.size() < 1)
313  return 0;
314  switch (fieldnum[0])
315  {
316  case 0:
317  return "group";
318  case 1:
319  return "normalattrib";
320  case 2:
321  return "compute";
322  case 3:
323  return "radius";
324  case 4:
325  return "useneighbors";
326  case 5:
327  return "neighbors";
328  case 6:
329  return "origifzero";
330  case 7:
331  return "method";
332  case 8:
333  return "localneighbors";
334  case 9:
335  return "hint";
336  case 10:
337  return "reverse";
338 
339  }
340  return 0;
341  }
342 
343  ParmType getNestParmType(TempIndex fieldnum) const override
344  {
345  if (fieldnum.size() < 1)
346  return PARM_UNSUPPORTED;
347  switch (fieldnum[0])
348  {
349  case 0:
350  return PARM_STRING;
351  case 1:
352  return PARM_STRING;
353  case 2:
354  return PARM_INTEGER;
355  case 3:
356  return PARM_FLOAT;
357  case 4:
358  return PARM_INTEGER;
359  case 5:
360  return PARM_INTEGER;
361  case 6:
362  return PARM_INTEGER;
363  case 7:
364  return PARM_INTEGER;
365  case 8:
366  return PARM_INTEGER;
367  case 9:
368  return PARM_VECTOR3;
369  case 10:
370  return PARM_INTEGER;
371 
372  }
373  return PARM_UNSUPPORTED;
374  }
375 
376  // Boiler plate to load individual types.
377  static void loadData(UT_IStream &is, int64 &v)
378  { is.bread(&v, 1); }
379  static void loadData(UT_IStream &is, bool &v)
380  { int64 iv; is.bread(&iv, 1); v = iv; }
381  static void loadData(UT_IStream &is, fpreal64 &v)
382  { is.bread<fpreal64>(&v, 1); }
383  static void loadData(UT_IStream &is, UT_Vector2D &v)
384  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
385  static void loadData(UT_IStream &is, UT_Vector3D &v)
386  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
387  is.bread<fpreal64>(&v.z(), 1); }
388  static void loadData(UT_IStream &is, UT_Vector4D &v)
389  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
390  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
391  static void loadData(UT_IStream &is, UT_Matrix2D &v)
392  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
393  static void loadData(UT_IStream &is, UT_Matrix3D &v)
394  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
395  static void loadData(UT_IStream &is, UT_Matrix4D &v)
396  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
397  static void loadData(UT_IStream &is, UT_Vector2I &v)
398  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
399  static void loadData(UT_IStream &is, UT_Vector3I &v)
400  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
401  is.bread<int64>(&v.z(), 1); }
402  static void loadData(UT_IStream &is, UT_Vector4I &v)
403  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
404  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
406  { is.bread(v); }
408  { UT_StringHolder rampdata;
409  loadData(is, rampdata);
410  if (rampdata.isstring())
411  {
412  v.reset(new UT_Ramp());
413  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
414  v->load(istr);
415  }
416  else v.reset();
417  }
420  loadData(is, data);
421  if (data.isstring())
422  {
423  // Find the data type.
424  const char *colon = UT_StringWrap(data).findChar(':');
425  if (colon)
426  {
427  int typelen = colon - data.buffer();
429  type.strncpy(data.buffer(), typelen);
430  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
431 
432  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
433  }
434  }
435  else v.reset();
436  }
437 
438  static void saveData(std::ostream &os, int64 v)
439  { UTwrite(os, &v); }
440  static void saveData(std::ostream &os, bool v)
441  { int64 iv = v; UTwrite(os, &iv); }
442  static void saveData(std::ostream &os, fpreal64 v)
443  { UTwrite<fpreal64>(os, &v); }
444  static void saveData(std::ostream &os, UT_Vector2D v)
445  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
446  static void saveData(std::ostream &os, UT_Vector3D v)
447  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
448  UTwrite<fpreal64>(os, &v.z()); }
449  static void saveData(std::ostream &os, UT_Vector4D v)
450  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
451  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
452  static void saveData(std::ostream &os, UT_Matrix2D v)
454  static void saveData(std::ostream &os, UT_Matrix3D v)
456  static void saveData(std::ostream &os, UT_Matrix4D v)
458  static void saveData(std::ostream &os, UT_StringHolder s)
459  { UT_StringWrap(s).saveBinary(os); }
460  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
462  UT_OStringStream ostr;
463  if (s) s->save(ostr);
464  result = ostr.str();
465  saveData(os, result);
466  }
467  static void saveData(std::ostream &os, PRM_DataItemHandle s)
469  UT_OStringStream ostr;
470  if (s)
471  {
472  ostr << s->getDataTypeToken();
473  ostr << ":";
474  s->saveBinary(ostr);
475  }
476  result = ostr.str();
477  saveData(os, result);
478  }
479 
480 
481  void save(std::ostream &os) const
482  {
483  int32 v = version();
484  UTwrite(os, &v);
485  saveData(os, myGroup);
486  saveData(os, myNormalAttrib);
487  saveData(os, myCompute);
488  saveData(os, myRadius);
489  saveData(os, myUseNeighbors);
490  saveData(os, myNeighbors);
491  saveData(os, myOrigIfZero);
492  saveData(os, myMethod);
493  saveData(os, myLocalNeighbors);
494  saveData(os, myHint);
495  saveData(os, myReverse);
496 
497  }
498 
499  bool load(UT_IStream &is)
500  {
501  int32 v;
502  is.bread(&v, 1);
503  if (version() != v)
504  {
505  // Fail incompatible versions
506  return false;
507  }
508  loadData(is, myGroup);
509  loadData(is, myNormalAttrib);
510  loadData(is, myCompute);
511  loadData(is, myRadius);
512  loadData(is, myUseNeighbors);
513  loadData(is, myNeighbors);
514  loadData(is, myOrigIfZero);
515  loadData(is, myMethod);
516  loadData(is, myLocalNeighbors);
517  loadData(is, myHint);
518  loadData(is, myReverse);
519 
520  return true;
521  }
522 
523  const UT_StringHolder & getGroup() const { return myGroup; }
524  void setGroup(const UT_StringHolder & val) { myGroup = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getGroup();
530  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
531  return result;
532  }
533  const UT_StringHolder & getNormalAttrib() const { return myNormalAttrib; }
534  void setNormalAttrib(const UT_StringHolder & val) { myNormalAttrib = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getNormalAttrib();
540  OP_Utils::evalOpParm(result, thissop, "normalattrib", cookparms.getCookTime(), 0);
541  return result;
542  }
543  bool getCompute() const { return myCompute; }
544  void setCompute(bool val) { myCompute = val; }
545  bool opCompute(const SOP_NodeVerb::CookParms &cookparms) const
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getCompute();
549  bool result;
550  OP_Utils::evalOpParm(result, thissop, "compute", cookparms.getCookTime(), 0);
551  return result;
552  }
553  fpreal64 getRadius() const { return myRadius; }
554  void setRadius(fpreal64 val) { myRadius = val; }
555  fpreal64 opRadius(const SOP_NodeVerb::CookParms &cookparms) const
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getRadius();
560  OP_Utils::evalOpParm(result, thissop, "radius", cookparms.getCookTime(), 0);
561  return result;
562  }
563  bool getUseNeighbors() const { return myUseNeighbors; }
564  void setUseNeighbors(bool val) { myUseNeighbors = val; }
565  bool opUseNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getUseNeighbors();
569  bool result;
570  OP_Utils::evalOpParm(result, thissop, "useneighbors", cookparms.getCookTime(), 0);
571  return result;
572  }
573  int64 getNeighbors() const { return myNeighbors; }
574  void setNeighbors(int64 val) { myNeighbors = val; }
575  int64 opNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getNeighbors();
579  int64 result;
580  OP_Utils::evalOpParm(result, thissop, "neighbors", cookparms.getCookTime(), 0);
581  return result;
582  }
583  bool getOrigIfZero() const { return myOrigIfZero; }
584  void setOrigIfZero(bool val) { myOrigIfZero = val; }
585  bool opOrigIfZero(const SOP_NodeVerb::CookParms &cookparms) const
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getOrigIfZero();
589  bool result;
590  OP_Utils::evalOpParm(result, thissop, "origifzero", cookparms.getCookTime(), 0);
591  return result;
592  }
593  Method getMethod() const { return Method(myMethod); }
594  void setMethod(Method val) { myMethod = int64(val); }
595  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getMethod();
599  int64 result;
600  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
601  return Method(result);
602  }
603  int64 getLocalNeighbors() const { return myLocalNeighbors; }
604  void setLocalNeighbors(int64 val) { myLocalNeighbors = val; }
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getLocalNeighbors();
609  int64 result;
610  OP_Utils::evalOpParm(result, thissop, "localneighbors", cookparms.getCookTime(), 0);
611  return result;
612  }
613  UT_Vector3D getHint() const { return myHint; }
614  void setHint(UT_Vector3D val) { myHint = val; }
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getHint();
620  OP_Utils::evalOpParm(result, thissop, "hint", cookparms.getCookTime(), 0);
621  return result;
622  }
623  bool getReverse() const { return myReverse; }
624  void setReverse(bool val) { myReverse = val; }
625  bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
626  {
627  SOP_Node *thissop = cookparms.getNode();
628  if (!thissop) return getReverse();
629  bool result;
630  OP_Utils::evalOpParm(result, thissop, "reverse", cookparms.getCookTime(), 0);
631  return result;
632  }
633 
634 private:
635  UT_StringHolder myGroup;
636  UT_StringHolder myNormalAttrib;
637  bool myCompute;
638  fpreal64 myRadius;
639  bool myUseNeighbors;
640  int64 myNeighbors;
641  bool myOrigIfZero;
642  int64 myMethod;
643  int64 myLocalNeighbors;
644  UT_Vector3D myHint;
645  bool myReverse;
646 
647 };
bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
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
void setNormalAttrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, int64 v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLdouble s
Definition: glad.h:3009
static void loadData(UT_IStream &is, bool &v)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector3I &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void copyFrom(const OP_NodeParms *src) override
**But if you need a result
Definition: thread.h:613
UT_StringHolder opNormalAttrib(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
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, int64 &v)
void save(std::ostream &os) const
bool operator==(const SOP_PointCloudNormalParms &src) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setGroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
ParmType getNestParmType(TempIndex fieldnum) const 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
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
bool isParmColorRamp(exint idx) const override
exint length() const
bool opOrigIfZero(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &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
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
exint getNestNumParms(TempIndex idx) const override
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void saveData(std::ostream &os, fpreal64 v)
bool opCompute(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
long long int64
Definition: SYS_Types.h:116
bool operator!=(const SOP_PointCloudNormalParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
UT_Vector3T< fpreal64 > UT_Vector3D
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) 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_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
SYS_FORCE_INLINE UT_StringHolder getToken(Method enum_value)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void loadData(UT_IStream &is, UT_StringHolder &v)
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_Matrix2D v)
int64 opNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getNormalAttrib() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
LeafData & operator=(const LeafData &)=delete
const UT_StringHolder & getGroup() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
bool opUseNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
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
static void saveData(std::ostream &os, UT_StringHolder s)
UT_Vector3D opHint(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
int64 opLocalNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
const char * getNestParmName(TempIndex fieldnum) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
fpreal64 opRadius(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663