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 <OP/OP_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 
88  if (baseGetSignature() != src.baseGetSignature()) return false;
89 
90  return true;
91  }
93  {
94  return !operator==(src);
95  }
97 
98 
99 
100  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
101  {
102  myGroup = ""_UTsh;
103  if (true)
104  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
105  myNormalAttrib = "N"_UTsh;
106  if (true)
107  graph->evalOpParm(myNormalAttrib, nodeidx, "normalattrib", time, graph->isDirect()?nullptr:depnode);
108  myCompute = true;
109  if (true)
110  graph->evalOpParm(myCompute, nodeidx, "compute", time, graph->isDirect()?nullptr:depnode);
111  myRadius = 0.5;
112  if (true && ( (true&&!(((getCompute()==0)))) ) )
113  graph->evalOpParm(myRadius, nodeidx, "radius", time, graph->isDirect()?nullptr:depnode);
114  myUseNeighbors = true;
115  if (true && ( (true&&!(((getCompute()==0)))) ) )
116  graph->evalOpParm(myUseNeighbors, nodeidx, "useneighbors", time, graph->isDirect()?nullptr:depnode);
117  myNeighbors = 20;
118  if (true && ( (true&&!(((getCompute()==0))||((getUseNeighbors()==0)))) ) )
119  graph->evalOpParm(myNeighbors, nodeidx, "neighbors", time, graph->isDirect()?nullptr:depnode);
120  myOrigIfZero = true;
121  if (true && ( (true&&!(((getCompute()==0)))) ) )
122  graph->evalOpParm(myOrigIfZero, nodeidx, "origifzero", time, graph->isDirect()?nullptr:depnode);
123  myMethod = 1;
124  if (true)
125  graph->evalOpParm(myMethod, nodeidx, "method", time, graph->isDirect()?nullptr:depnode);
126  myLocalNeighbors = 5;
127  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getMethod())!=1)))) ) )
128  graph->evalOpParm(myLocalNeighbors, nodeidx, "localneighbors", time, graph->isDirect()?nullptr:depnode);
129  myHint = UT_Vector3D(0,0,0);
130  if (true)
131  graph->evalOpParm(myHint, nodeidx, "hint", time, graph->isDirect()?nullptr:depnode);
132  myReverse = false;
133  if (true)
134  graph->evalOpParm(myReverse, nodeidx, "reverse", time, graph->isDirect()?nullptr:depnode);
135 
136  }
137 
138 
139  void loadFromOpSubclass(const LoadParms &loadparms) override
140  {
141  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
142  }
143 
144 
145  void copyFrom(const OP_NodeParms *src) override
146  {
147  *this = *((const SOP_PointCloudNormalParms *)src);
148  }
149 
150  template <typename T>
151  void
152  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
153  {
154  if (idx.size() < 1)
155  return;
156  UT_ASSERT(idx.size() == instance.size()+1);
157  if (idx.size() != instance.size()+1)
158  return;
159  switch (idx[0])
160  {
161  case 0:
162  coerceValue(value, myGroup);
163  break;
164  case 1:
165  coerceValue(value, myNormalAttrib);
166  break;
167  case 2:
168  coerceValue(value, myCompute);
169  break;
170  case 3:
171  coerceValue(value, myRadius);
172  break;
173  case 4:
174  coerceValue(value, myUseNeighbors);
175  break;
176  case 5:
177  coerceValue(value, myNeighbors);
178  break;
179  case 6:
180  coerceValue(value, myOrigIfZero);
181  break;
182  case 7:
183  coerceValue(value, myMethod);
184  break;
185  case 8:
186  coerceValue(value, myLocalNeighbors);
187  break;
188  case 9:
189  coerceValue(value, myHint);
190  break;
191  case 10:
192  coerceValue(value, myReverse);
193  break;
194 
195  }
196  }
197 
198  bool isParmColorRamp(exint idx) const override
199  {
200  switch (idx)
201  {
202 
203  }
204  return false;
205  }
206 
207  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
224  { doGetParmValue(idx, instance, value); }
225  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
226  { doGetParmValue(idx, instance, value); }
227  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
228  { doGetParmValue(idx, instance, value); }
229 
230  template <typename T>
231  void
232  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
233  {
234  if (idx.size() < 1)
235  return;
236  UT_ASSERT(idx.size() == instance.size()+1);
237  if (idx.size() != instance.size()+1)
238  return;
239  switch (idx[0])
240  {
241  case 0:
242  coerceValue(myGroup, ( ( value ) ));
243  break;
244  case 1:
245  coerceValue(myNormalAttrib, ( ( value ) ));
246  break;
247  case 2:
248  coerceValue(myCompute, ( ( value ) ));
249  break;
250  case 3:
251  coerceValue(myRadius, ( clampMaxValue(-15, value ) ));
252  break;
253  case 4:
254  coerceValue(myUseNeighbors, ( ( value ) ));
255  break;
256  case 5:
257  coerceValue(myNeighbors, clampMinValue(2, ( value ) ));
258  break;
259  case 6:
260  coerceValue(myOrigIfZero, ( ( value ) ));
261  break;
262  case 7:
263  coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
264  break;
265  case 8:
266  coerceValue(myLocalNeighbors, clampMinValue(2, ( value ) ));
267  break;
268  case 9:
269  coerceValue(myHint, ( ( value ) ));
270  break;
271  case 10:
272  coerceValue(myReverse, ( ( value ) ));
273  break;
274 
275  }
276  }
277 
278  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
291  { doSetParmValue(idx, instance, value); }
292  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
293  { doSetParmValue(idx, instance, value); }
294  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
295  { doSetParmValue(idx, instance, value); }
296  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
297  { doSetParmValue(idx, instance, value); }
298  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
299  { doSetParmValue(idx, instance, value); }
300 
301  exint getNestNumParms(TempIndex idx) const override
302  {
303  if (idx.size() == 0)
304  return 11;
305  switch (idx[0])
306  {
307 
308  }
309  // Invalid
310  return 0;
311  }
312 
313  const char *getNestParmName(TempIndex fieldnum) const override
314  {
315  if (fieldnum.size() < 1)
316  return 0;
317  switch (fieldnum[0])
318  {
319  case 0:
320  return "group";
321  case 1:
322  return "normalattrib";
323  case 2:
324  return "compute";
325  case 3:
326  return "radius";
327  case 4:
328  return "useneighbors";
329  case 5:
330  return "neighbors";
331  case 6:
332  return "origifzero";
333  case 7:
334  return "method";
335  case 8:
336  return "localneighbors";
337  case 9:
338  return "hint";
339  case 10:
340  return "reverse";
341 
342  }
343  return 0;
344  }
345 
346  ParmType getNestParmType(TempIndex fieldnum) const override
347  {
348  if (fieldnum.size() < 1)
349  return PARM_UNSUPPORTED;
350  switch (fieldnum[0])
351  {
352  case 0:
353  return PARM_STRING;
354  case 1:
355  return PARM_STRING;
356  case 2:
357  return PARM_INTEGER;
358  case 3:
359  return PARM_FLOAT;
360  case 4:
361  return PARM_INTEGER;
362  case 5:
363  return PARM_INTEGER;
364  case 6:
365  return PARM_INTEGER;
366  case 7:
367  return PARM_INTEGER;
368  case 8:
369  return PARM_INTEGER;
370  case 9:
371  return PARM_VECTOR3;
372  case 10:
373  return PARM_INTEGER;
374 
375  }
376  return PARM_UNSUPPORTED;
377  }
378 
379  // Boiler plate to load individual types.
380  static void loadData(UT_IStream &is, int64 &v)
381  { is.bread(&v, 1); }
382  static void loadData(UT_IStream &is, bool &v)
383  { int64 iv; is.bread(&iv, 1); v = iv; }
384  static void loadData(UT_IStream &is, fpreal64 &v)
385  { is.bread<fpreal64>(&v, 1); }
386  static void loadData(UT_IStream &is, UT_Vector2D &v)
387  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
388  static void loadData(UT_IStream &is, UT_Vector3D &v)
389  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
390  is.bread<fpreal64>(&v.z(), 1); }
391  static void loadData(UT_IStream &is, UT_Vector4D &v)
392  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
393  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
394  static void loadData(UT_IStream &is, UT_Matrix2D &v)
395  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
396  static void loadData(UT_IStream &is, UT_Matrix3D &v)
397  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
398  static void loadData(UT_IStream &is, UT_Matrix4D &v)
399  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
400  static void loadData(UT_IStream &is, UT_Vector2I &v)
401  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
402  static void loadData(UT_IStream &is, UT_Vector3I &v)
403  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
404  is.bread<int64>(&v.z(), 1); }
405  static void loadData(UT_IStream &is, UT_Vector4I &v)
406  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
407  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
409  { is.bread(v); }
411  { UT_StringHolder rampdata;
412  loadData(is, rampdata);
413  if (rampdata.isstring())
414  {
415  v.reset(new UT_Ramp());
416  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
417  v->load(istr);
418  }
419  else v.reset();
420  }
423  loadData(is, data);
424  if (data.isstring())
425  {
426  // Find the data type.
427  const char *colon = UT_StringWrap(data).findChar(':');
428  if (colon)
429  {
430  int typelen = colon - data.buffer();
432  type.strncpy(data.buffer(), typelen);
433  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
434 
435  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
436  }
437  }
438  else v.reset();
439  }
440 
441  static void saveData(std::ostream &os, int64 v)
442  { UTwrite(os, &v); }
443  static void saveData(std::ostream &os, bool v)
444  { int64 iv = v; UTwrite(os, &iv); }
445  static void saveData(std::ostream &os, fpreal64 v)
446  { UTwrite<fpreal64>(os, &v); }
447  static void saveData(std::ostream &os, UT_Vector2D v)
448  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
449  static void saveData(std::ostream &os, UT_Vector3D v)
450  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
451  UTwrite<fpreal64>(os, &v.z()); }
452  static void saveData(std::ostream &os, UT_Vector4D v)
453  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
454  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
455  static void saveData(std::ostream &os, UT_Matrix2D v)
457  static void saveData(std::ostream &os, UT_Matrix3D v)
459  static void saveData(std::ostream &os, UT_Matrix4D v)
461  static void saveData(std::ostream &os, UT_StringHolder s)
462  { UT_StringWrap(s).saveBinary(os); }
463  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
465  UT_OStringStream ostr;
466  if (s) s->save(ostr);
467  result = ostr.str();
468  saveData(os, result);
469  }
470  static void saveData(std::ostream &os, PRM_DataItemHandle s)
472  UT_OStringStream ostr;
473  if (s)
474  {
475  ostr << s->getDataTypeToken();
476  ostr << ":";
477  s->saveBinary(ostr);
478  }
479  result = ostr.str();
480  saveData(os, result);
481  }
482 
483 
484  void save(std::ostream &os) const
485  {
486  int32 v = version();
487  UTwrite(os, &v);
488  saveData(os, myGroup);
489  saveData(os, myNormalAttrib);
490  saveData(os, myCompute);
491  saveData(os, myRadius);
492  saveData(os, myUseNeighbors);
493  saveData(os, myNeighbors);
494  saveData(os, myOrigIfZero);
495  saveData(os, myMethod);
496  saveData(os, myLocalNeighbors);
497  saveData(os, myHint);
498  saveData(os, myReverse);
499 
500  }
501 
502  bool load(UT_IStream &is)
503  {
504  int32 v;
505  is.bread(&v, 1);
506  if (version() != v)
507  {
508  // Fail incompatible versions
509  return false;
510  }
511  loadData(is, myGroup);
512  loadData(is, myNormalAttrib);
513  loadData(is, myCompute);
514  loadData(is, myRadius);
515  loadData(is, myUseNeighbors);
516  loadData(is, myNeighbors);
517  loadData(is, myOrigIfZero);
518  loadData(is, myMethod);
519  loadData(is, myLocalNeighbors);
520  loadData(is, myHint);
521  loadData(is, myReverse);
522 
523  return true;
524  }
525 
526  const UT_StringHolder & getGroup() const { return myGroup; }
527  void setGroup(const UT_StringHolder & val) { myGroup = val; }
529  {
530  SOP_Node *thissop = cookparms.getNode();
531  if (!thissop) return getGroup();
533  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
534  return result;
535  }
536  const UT_StringHolder & getNormalAttrib() const { return myNormalAttrib; }
537  void setNormalAttrib(const UT_StringHolder & val) { myNormalAttrib = val; }
539  {
540  SOP_Node *thissop = cookparms.getNode();
541  if (!thissop) return getNormalAttrib();
543  OP_Utils::evalOpParm(result, thissop, "normalattrib", cookparms.getCookTime(), 0);
544  return result;
545  }
546  bool getCompute() const { return myCompute; }
547  void setCompute(bool val) { myCompute = val; }
548  bool opCompute(const SOP_NodeVerb::CookParms &cookparms) const
549  {
550  SOP_Node *thissop = cookparms.getNode();
551  if (!thissop) return getCompute();
552  bool result;
553  OP_Utils::evalOpParm(result, thissop, "compute", cookparms.getCookTime(), 0);
554  return result;
555  }
556  fpreal64 getRadius() const { return myRadius; }
557  void setRadius(fpreal64 val) { myRadius = val; }
558  fpreal64 opRadius(const SOP_NodeVerb::CookParms &cookparms) const
559  {
560  SOP_Node *thissop = cookparms.getNode();
561  if (!thissop) return getRadius();
563  OP_Utils::evalOpParm(result, thissop, "radius", cookparms.getCookTime(), 0);
564  return result;
565  }
566  bool getUseNeighbors() const { return myUseNeighbors; }
567  void setUseNeighbors(bool val) { myUseNeighbors = val; }
568  bool opUseNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
569  {
570  SOP_Node *thissop = cookparms.getNode();
571  if (!thissop) return getUseNeighbors();
572  bool result;
573  OP_Utils::evalOpParm(result, thissop, "useneighbors", cookparms.getCookTime(), 0);
574  return result;
575  }
576  int64 getNeighbors() const { return myNeighbors; }
577  void setNeighbors(int64 val) { myNeighbors = val; }
578  int64 opNeighbors(const SOP_NodeVerb::CookParms &cookparms) const
579  {
580  SOP_Node *thissop = cookparms.getNode();
581  if (!thissop) return getNeighbors();
582  int64 result;
583  OP_Utils::evalOpParm(result, thissop, "neighbors", cookparms.getCookTime(), 0);
584  return result;
585  }
586  bool getOrigIfZero() const { return myOrigIfZero; }
587  void setOrigIfZero(bool val) { myOrigIfZero = val; }
588  bool opOrigIfZero(const SOP_NodeVerb::CookParms &cookparms) const
589  {
590  SOP_Node *thissop = cookparms.getNode();
591  if (!thissop) return getOrigIfZero();
592  bool result;
593  OP_Utils::evalOpParm(result, thissop, "origifzero", cookparms.getCookTime(), 0);
594  return result;
595  }
596  Method getMethod() const { return Method(myMethod); }
597  void setMethod(Method val) { myMethod = int64(val); }
598  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
599  {
600  SOP_Node *thissop = cookparms.getNode();
601  if (!thissop) return getMethod();
602  int64 result;
603  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
604  return Method(result);
605  }
606  int64 getLocalNeighbors() const { return myLocalNeighbors; }
607  void setLocalNeighbors(int64 val) { myLocalNeighbors = val; }
609  {
610  SOP_Node *thissop = cookparms.getNode();
611  if (!thissop) return getLocalNeighbors();
612  int64 result;
613  OP_Utils::evalOpParm(result, thissop, "localneighbors", cookparms.getCookTime(), 0);
614  return result;
615  }
616  UT_Vector3D getHint() const { return myHint; }
617  void setHint(UT_Vector3D val) { myHint = val; }
619  {
620  SOP_Node *thissop = cookparms.getNode();
621  if (!thissop) return getHint();
623  OP_Utils::evalOpParm(result, thissop, "hint", cookparms.getCookTime(), 0);
624  return result;
625  }
626  bool getReverse() const { return myReverse; }
627  void setReverse(bool val) { myReverse = val; }
628  bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
629  {
630  SOP_Node *thissop = cookparms.getNode();
631  if (!thissop) return getReverse();
632  bool result;
633  OP_Utils::evalOpParm(result, thissop, "reverse", cookparms.getCookTime(), 0);
634  return result;
635  }
636 
637 private:
638  UT_StringHolder myGroup;
639  UT_StringHolder myNormalAttrib;
640  bool myCompute;
641  fpreal64 myRadius;
642  bool myUseNeighbors;
643  int64 myNeighbors;
644  bool myOrigIfZero;
645  int64 myMethod;
646  int64 myLocalNeighbors;
647  UT_Vector3D myHint;
648  bool myReverse;
649 
650 };
bool opReverse(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:556
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#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:372
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
const char * getNestParmName(TempIndex fieldnum) const override
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