HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PointCaptureCore.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_PointCaptureCoreEnums
24 {
25  enum class KernelType
26  {
27  EXPONENTIALBUMP = 0,
29  QUADRATIC,
30  LINEAR
31  };
32 
34  getToken(KernelType enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case KernelType::EXPONENTIALBUMP: return "exponentialbump"_sh;
39  case KernelType::TRUNCATEDGAUSSIAN: return "truncatedgaussian"_sh;
40  case KernelType::QUADRATIC: return "quadratic"_sh;
41  case KernelType::LINEAR: return "linear"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46  enum class SmoothingMethod
47  {
48  APPROXIMATING = 0,
50  NONE
51  };
52 
55  {
56  using namespace UT::Literal;
57  switch (enum_value) {
58  case SmoothingMethod::APPROXIMATING: return "approximating"_sh;
59  case SmoothingMethod::INTERPOLATING: return "interpolating"_sh;
60  case SmoothingMethod::NONE: return "none"_sh;
61  default: UT_ASSERT(false); return ""_sh;
62  }
63  }
64 
65  enum class TetMeshTreatment
66  {
67  AS_SURFACE = 0,
68  AS_SOLID,
69  NONE
70  };
71 
74  {
75  using namespace UT::Literal;
76  switch (enum_value) {
77  case TetMeshTreatment::AS_SURFACE: return "as_surface"_sh;
78  case TetMeshTreatment::AS_SOLID: return "as_solid"_sh;
79  case TetMeshTreatment::NONE: return "none"_sh;
80  default: UT_ASSERT(false); return ""_sh;
81  }
82  }
83 
84 }
85 
86 
88 {
89 public:
90  static int version() { return 1; }
91 
93  {
94  myGroup = ""_UTsh;
95  myCaptureRadius = 0.1;
96  myKernelType = 0;
97  mySmoothingMethod = 0;
98  mySmoothingLevel = 1;
99  myTetMeshTreatment = 0;
100  myOutputCorrespondence = false;
101 
102  }
103 
104  explicit SOP_PointCaptureCoreParms(const SOP_PointCaptureCoreParms &) = default;
107  SOP_PointCaptureCoreParms &operator=(SOP_PointCaptureCoreParms &&) noexcept = default;
108 
110 
112  {
113  if (myGroup != src.myGroup) return false;
114  if (myCaptureRadius != src.myCaptureRadius) return false;
115  if (myKernelType != src.myKernelType) return false;
116  if (mySmoothingMethod != src.mySmoothingMethod) return false;
117  if (mySmoothingLevel != src.mySmoothingLevel) return false;
118  if (myTetMeshTreatment != src.myTetMeshTreatment) return false;
119  if (myOutputCorrespondence != src.myOutputCorrespondence) return false;
120 
121  return true;
122  }
124  {
125  return !operator==(src);
126  }
130 
131 
132 
133  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
134  {
135  myGroup = ""_UTsh;
136  if (true)
137  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
138  myCaptureRadius = 0.1;
139  if (true)
140  graph->evalOpParm(myCaptureRadius, nodeidx, "captureradius", time, 0);
141  myKernelType = 0;
142  if (true)
143  graph->evalOpParm(myKernelType, nodeidx, "kerneltype", time, 0);
144  mySmoothingMethod = 0;
145  if (true)
146  graph->evalOpParm(mySmoothingMethod, nodeidx, "smoothingmethod", time, 0);
147  mySmoothingLevel = 1;
148  if (true)
149  graph->evalOpParm(mySmoothingLevel, nodeidx, "smoothinglevel", time, 0);
150  myTetMeshTreatment = 0;
151  if (true)
152  graph->evalOpParm(myTetMeshTreatment, nodeidx, "tetmeshtreatment", time, 0);
153  myOutputCorrespondence = false;
154  if (true)
155  graph->evalOpParm(myOutputCorrespondence, nodeidx, "outputcorrespondence", time, 0);
156 
157  }
158 
159 
160  void loadFromOpSubclass(const LoadParms &loadparms) override
161  {
162  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
163  }
164 
165 
166  void copyFrom(const OP_NodeParms *src) override
167  {
168  *this = *((const SOP_PointCaptureCoreParms *)src);
169  }
170 
171  template <typename T>
172  void
173  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
174  {
175  if (idx.size() < 1)
176  return;
177  UT_ASSERT(idx.size() == instance.size()+1);
178  if (idx.size() != instance.size()+1)
179  return;
180  switch (idx[0])
181  {
182  case 0:
183  coerceValue(value, myGroup);
184  break;
185  case 1:
186  coerceValue(value, myCaptureRadius);
187  break;
188  case 2:
189  coerceValue(value, myKernelType);
190  break;
191  case 3:
192  coerceValue(value, mySmoothingMethod);
193  break;
194  case 4:
195  coerceValue(value, mySmoothingLevel);
196  break;
197  case 5:
198  coerceValue(value, myTetMeshTreatment);
199  break;
200  case 6:
201  coerceValue(value, myOutputCorrespondence);
202  break;
203 
204  }
205  }
206 
207  bool isParmColorRamp(exint idx) const override
208  {
209  switch (idx)
210  {
211 
212  }
213  return false;
214  }
215 
216  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
231  { doGetParmValue(idx, instance, value); }
232  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
233  { doGetParmValue(idx, instance, value); }
234  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
235  { doGetParmValue(idx, instance, value); }
236  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
237  { doGetParmValue(idx, instance, value); }
238 
239  template <typename T>
240  void
241  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
242  {
243  if (idx.size() < 1)
244  return;
245  UT_ASSERT(idx.size() == instance.size()+1);
246  if (idx.size() != instance.size()+1)
247  return;
248  switch (idx[0])
249  {
250  case 0:
251  coerceValue(myGroup, ( ( value ) ));
252  break;
253  case 1:
254  coerceValue(myCaptureRadius, clampMinValue(0, ( value ) ));
255  break;
256  case 2:
257  coerceValue(myKernelType, clampMinValue(0, clampMaxValue(3, value ) ));
258  break;
259  case 3:
260  coerceValue(mySmoothingMethod, clampMinValue(0, clampMaxValue(2, value ) ));
261  break;
262  case 4:
263  coerceValue(mySmoothingLevel, clampMinValue(0, ( value ) ));
264  break;
265  case 5:
266  coerceValue(myTetMeshTreatment, clampMinValue(0, clampMaxValue(2, value ) ));
267  break;
268  case 6:
269  coerceValue(myOutputCorrespondence, ( ( 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 7;
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 "captureradius";
320  case 2:
321  return "kerneltype";
322  case 3:
323  return "smoothingmethod";
324  case 4:
325  return "smoothinglevel";
326  case 5:
327  return "tetmeshtreatment";
328  case 6:
329  return "outputcorrespondence";
330 
331  }
332  return 0;
333  }
334 
335  ParmType getNestParmType(TempIndex fieldnum) const override
336  {
337  if (fieldnum.size() < 1)
338  return PARM_UNSUPPORTED;
339  switch (fieldnum[0])
340  {
341  case 0:
342  return PARM_STRING;
343  case 1:
344  return PARM_FLOAT;
345  case 2:
346  return PARM_INTEGER;
347  case 3:
348  return PARM_INTEGER;
349  case 4:
350  return PARM_INTEGER;
351  case 5:
352  return PARM_INTEGER;
353  case 6:
354  return PARM_INTEGER;
355 
356  }
357  return PARM_UNSUPPORTED;
358  }
359 
360  // Boiler plate to load individual types.
361  static void loadData(UT_IStream &is, int64 &v)
362  { is.bread(&v, 1); }
363  static void loadData(UT_IStream &is, bool &v)
364  { int64 iv; is.bread(&iv, 1); v = iv; }
365  static void loadData(UT_IStream &is, fpreal64 &v)
366  { is.bread<fpreal64>(&v, 1); }
367  static void loadData(UT_IStream &is, UT_Vector2D &v)
368  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
369  static void loadData(UT_IStream &is, UT_Vector3D &v)
370  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
371  is.bread<fpreal64>(&v.z(), 1); }
372  static void loadData(UT_IStream &is, UT_Vector4D &v)
373  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
374  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
375  static void loadData(UT_IStream &is, UT_Matrix2D &v)
376  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
377  static void loadData(UT_IStream &is, UT_Matrix3D &v)
378  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix4D &v)
380  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Vector2I &v)
382  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
383  static void loadData(UT_IStream &is, UT_Vector3I &v)
384  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
385  is.bread<int64>(&v.z(), 1); }
386  static void loadData(UT_IStream &is, UT_Vector4I &v)
387  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
388  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
390  { is.bread(v); }
392  { UT_StringHolder rampdata;
393  loadData(is, rampdata);
394  if (rampdata.isstring())
395  {
396  v.reset(new UT_Ramp());
397  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
398  v->load(istr);
399  }
400  else v.reset();
401  }
404  loadData(is, data);
405  if (data.isstring())
406  {
407  // Find the data type.
408  const char *colon = UT_StringWrap(data).findChar(':');
409  if (colon)
410  {
411  int typelen = colon - data.buffer();
413  type.strncpy(data.buffer(), typelen);
414  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
415 
416  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
417  }
418  }
419  else v.reset();
420  }
421 
422  static void saveData(std::ostream &os, int64 v)
423  { UTwrite(os, &v); }
424  static void saveData(std::ostream &os, bool v)
425  { int64 iv = v; UTwrite(os, &iv); }
426  static void saveData(std::ostream &os, fpreal64 v)
427  { UTwrite<fpreal64>(os, &v); }
428  static void saveData(std::ostream &os, UT_Vector2D v)
429  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
430  static void saveData(std::ostream &os, UT_Vector3D v)
431  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
432  UTwrite<fpreal64>(os, &v.z()); }
433  static void saveData(std::ostream &os, UT_Vector4D v)
434  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
435  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
436  static void saveData(std::ostream &os, UT_Matrix2D v)
438  static void saveData(std::ostream &os, UT_Matrix3D v)
440  static void saveData(std::ostream &os, UT_Matrix4D v)
442  static void saveData(std::ostream &os, UT_StringHolder s)
443  { UT_StringWrap(s).saveBinary(os); }
444  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
446  UT_OStringStream ostr;
447  if (s) s->save(ostr);
448  result = ostr.str();
449  saveData(os, result);
450  }
451  static void saveData(std::ostream &os, PRM_DataItemHandle s)
453  UT_OStringStream ostr;
454  if (s)
455  {
456  ostr << s->getDataTypeToken();
457  ostr << ":";
458  s->saveBinary(ostr);
459  }
460  result = ostr.str();
461  saveData(os, result);
462  }
463 
464 
465  void save(std::ostream &os) const
466  {
467  int32 v = version();
468  UTwrite(os, &v);
469  saveData(os, myGroup);
470  saveData(os, myCaptureRadius);
471  saveData(os, myKernelType);
472  saveData(os, mySmoothingMethod);
473  saveData(os, mySmoothingLevel);
474  saveData(os, myTetMeshTreatment);
475  saveData(os, myOutputCorrespondence);
476 
477  }
478 
479  bool load(UT_IStream &is)
480  {
481  int32 v;
482  is.bread(&v, 1);
483  if (version() != v)
484  {
485  // Fail incompatible versions
486  return false;
487  }
488  loadData(is, myGroup);
489  loadData(is, myCaptureRadius);
490  loadData(is, myKernelType);
491  loadData(is, mySmoothingMethod);
492  loadData(is, mySmoothingLevel);
493  loadData(is, myTetMeshTreatment);
494  loadData(is, myOutputCorrespondence);
495 
496  return true;
497  }
498 
499  const UT_StringHolder & getGroup() const { return myGroup; }
500  void setGroup(const UT_StringHolder & val) { myGroup = val; }
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return getGroup();
506  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
507  return result;
508  }
509  fpreal64 getCaptureRadius() const { return myCaptureRadius; }
510  void setCaptureRadius(fpreal64 val) { myCaptureRadius = val; }
512  {
513  SOP_Node *thissop = cookparms.getNode();
514  if (!thissop) return getCaptureRadius();
516  OP_Utils::evalOpParm(result, thissop, "captureradius", cookparms.getCookTime(), 0);
517  return result;
518  }
519  KernelType getKernelType() const { return KernelType(myKernelType); }
520  void setKernelType(KernelType val) { myKernelType = int64(val); }
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return getKernelType();
525  int64 result;
526  OP_Utils::evalOpParm(result, thissop, "kerneltype", cookparms.getCookTime(), 0);
527  return KernelType(result);
528  }
529  SmoothingMethod getSmoothingMethod() const { return SmoothingMethod(mySmoothingMethod); }
530  void setSmoothingMethod(SmoothingMethod val) { mySmoothingMethod = int64(val); }
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return getSmoothingMethod();
535  int64 result;
536  OP_Utils::evalOpParm(result, thissop, "smoothingmethod", cookparms.getCookTime(), 0);
537  return SmoothingMethod(result);
538  }
539  int64 getSmoothingLevel() const { return mySmoothingLevel; }
540  void setSmoothingLevel(int64 val) { mySmoothingLevel = val; }
542  {
543  SOP_Node *thissop = cookparms.getNode();
544  if (!thissop) return getSmoothingLevel();
545  int64 result;
546  OP_Utils::evalOpParm(result, thissop, "smoothinglevel", cookparms.getCookTime(), 0);
547  return result;
548  }
549  TetMeshTreatment getTetMeshTreatment() const { return TetMeshTreatment(myTetMeshTreatment); }
550  void setTetMeshTreatment(TetMeshTreatment val) { myTetMeshTreatment = int64(val); }
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getTetMeshTreatment();
555  int64 result;
556  OP_Utils::evalOpParm(result, thissop, "tetmeshtreatment", cookparms.getCookTime(), 0);
557  return TetMeshTreatment(result);
558  }
559  bool getOutputCorrespondence() const { return myOutputCorrespondence; }
560  void setOutputCorrespondence(bool val) { myOutputCorrespondence = val; }
561  bool opOutputCorrespondence(const SOP_NodeVerb::CookParms &cookparms) const
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getOutputCorrespondence();
565  bool result;
566  OP_Utils::evalOpParm(result, thissop, "outputcorrespondence", cookparms.getCookTime(), 0);
567  return result;
568  }
569 
570 private:
571  UT_StringHolder myGroup;
572  fpreal64 myCaptureRadius;
573  int64 myKernelType;
574  int64 mySmoothingMethod;
575  int64 mySmoothingLevel;
576  int64 myTetMeshTreatment;
577  bool myOutputCorrespondence;
578 
579 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SmoothingMethod getSmoothingMethod() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
KernelType opKernelType(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void save(std::ostream &os) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setGroup(const UT_StringHolder &val)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
static void loadData(UT_IStream &is, UT_Vector2I &v)
ParmType getNestParmType(TempIndex fieldnum) const override
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
void setTetMeshTreatment(TetMeshTreatment val)
fpreal getTime() const
Definition: OP_Context.h:62
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
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
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
An output stream object that owns its own string buffer storage.
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Matrix3D v)
**But if you need a result
Definition: thread.h:613
bool opOutputCorrespondence(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
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.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, PRM_DataItemHandle s)
bool operator!=(const SOP_PointCaptureCoreParms &src) const
exint length() const
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Matrix4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
SYS_FORCE_INLINE UT_StringHolder getToken(KernelType enum_value)
TetMeshTreatment opTetMeshTreatment(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
const UT_StringHolder & getGroup() const
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
TetMeshTreatment getTetMeshTreatment() const
static void loadData(UT_IStream &is, int64 &v)
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, fpreal64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
bool operator==(const SOP_PointCaptureCoreParms &src) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, UT_Matrix4D &v)
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector4I &v)
exint getNestNumParms(TempIndex idx) const override
fpreal64 opCaptureRadius(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, int64 v)
SmoothingMethod opSmoothingMethod(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
int64 opSmoothingLevel(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
SYS_FORCE_INLINE bool isstring() const
void setSmoothingMethod(SmoothingMethod val)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663