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  enum class SmoothingMethod
33  {
34  APPROXIMATING = 0,
36  NONE
37  };
38 }
39 
40 
42 {
43 public:
44  static int version() { return 1; }
45 
47  {
48  myGroup = ""_UTsh;
49  myCaptureRadius = 0.1;
50  myKernelType = 0;
51  mySmoothingMethod = 0;
52  mySmoothingLevel = 1;
53 
54  }
55 
56  explicit SOP_PointCaptureCoreParms(const SOP_PointCaptureCoreParms &) = default;
59  SOP_PointCaptureCoreParms &operator=(SOP_PointCaptureCoreParms &&) noexcept = default;
60 
62 
64  {
65  if (myGroup != src.myGroup) return false;
66  if (myCaptureRadius != src.myCaptureRadius) return false;
67  if (myKernelType != src.myKernelType) return false;
68  if (mySmoothingMethod != src.mySmoothingMethod) return false;
69  if (mySmoothingLevel != src.mySmoothingLevel) return false;
70 
71  return true;
72  }
74  {
75  return !operator==(src);
76  }
79 
80 
81 
82  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
83  {
84  myGroup = ""_UTsh;
85  if (true)
86  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
87  myCaptureRadius = 0.1;
88  if (true)
89  graph->evalOpParm(myCaptureRadius, nodeidx, "captureradius", time, 0);
90  myKernelType = 0;
91  if (true)
92  graph->evalOpParm(myKernelType, nodeidx, "kerneltype", time, 0);
93  mySmoothingMethod = 0;
94  if (true)
95  graph->evalOpParm(mySmoothingMethod, nodeidx, "smoothingmethod", time, 0);
96  mySmoothingLevel = 1;
97  if (true)
98  graph->evalOpParm(mySmoothingLevel, nodeidx, "smoothinglevel", time, 0);
99 
100  }
101 
102 
103  void loadFromOpSubclass(const LoadParms &loadparms) override
104  {
105  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
106  }
107 
108 
109  void copyFrom(const OP_NodeParms *src) override
110  {
111  *this = *((const SOP_PointCaptureCoreParms *)src);
112  }
113 
114  template <typename T>
115  void
116  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
117  {
118  if (idx.size() < 1)
119  return;
120  UT_ASSERT(idx.size() == instance.size()+1);
121  if (idx.size() != instance.size()+1)
122  return;
123  switch (idx[0])
124  {
125  case 0:
126  coerceValue(value, myGroup);
127  break;
128  case 1:
129  coerceValue(value, myCaptureRadius);
130  break;
131  case 2:
132  coerceValue(value, myKernelType);
133  break;
134  case 3:
135  coerceValue(value, mySmoothingMethod);
136  break;
137  case 4:
138  coerceValue(value, mySmoothingLevel);
139  break;
140 
141  }
142  }
143 
144  bool isParmColorRamp(exint idx) const override
145  {
146  switch (idx)
147  {
148 
149  }
150  return false;
151  }
152 
153  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
154  { doGetParmValue(idx, instance, value); }
155  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
174  { doGetParmValue(idx, instance, value); }
175 
176  template <typename T>
177  void
178  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
179  {
180  if (idx.size() < 1)
181  return;
182  UT_ASSERT(idx.size() == instance.size()+1);
183  if (idx.size() != instance.size()+1)
184  return;
185  switch (idx[0])
186  {
187  case 0:
188  coerceValue(myGroup, ( ( value ) ));
189  break;
190  case 1:
191  coerceValue(myCaptureRadius, clampMinValue(0, ( value ) ));
192  break;
193  case 2:
194  coerceValue(myKernelType, clampMinValue(0, clampMaxValue(3, value ) ));
195  break;
196  case 3:
197  coerceValue(mySmoothingMethod, clampMinValue(0, clampMaxValue(2, value ) ));
198  break;
199  case 4:
200  coerceValue(mySmoothingLevel, clampMinValue(0, ( value ) ));
201  break;
202 
203  }
204  }
205 
206  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
207  { doSetParmValue(idx, instance, value); }
208  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
209  { doSetParmValue(idx, instance, value); }
210  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
211  { doSetParmValue(idx, instance, value); }
212  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
213  { doSetParmValue(idx, instance, value); }
214  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
215  { doSetParmValue(idx, instance, value); }
216  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
217  { doSetParmValue(idx, instance, value); }
218  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
219  { doSetParmValue(idx, instance, value); }
220  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
227  { doSetParmValue(idx, instance, value); }
228 
229  exint getNestNumParms(TempIndex idx) const override
230  {
231  if (idx.size() == 0)
232  return 5;
233  switch (idx[0])
234  {
235 
236  }
237  // Invalid
238  return 0;
239  }
240 
241  const char *getNestParmName(TempIndex fieldnum) const override
242  {
243  if (fieldnum.size() < 1)
244  return 0;
245  switch (fieldnum[0])
246  {
247  case 0:
248  return "group";
249  case 1:
250  return "captureradius";
251  case 2:
252  return "kerneltype";
253  case 3:
254  return "smoothingmethod";
255  case 4:
256  return "smoothinglevel";
257 
258  }
259  return 0;
260  }
261 
262  ParmType getNestParmType(TempIndex fieldnum) const override
263  {
264  if (fieldnum.size() < 1)
265  return PARM_UNSUPPORTED;
266  switch (fieldnum[0])
267  {
268  case 0:
269  return PARM_STRING;
270  case 1:
271  return PARM_FLOAT;
272  case 2:
273  return PARM_INTEGER;
274  case 3:
275  return PARM_INTEGER;
276  case 4:
277  return PARM_INTEGER;
278 
279  }
280  return PARM_UNSUPPORTED;
281  }
282 
283  // Boiler plate to load individual types.
284  static void loadData(UT_IStream &is, int64 &v)
285  { is.bread(&v, 1); }
286  static void loadData(UT_IStream &is, bool &v)
287  { int64 iv; is.bread(&iv, 1); v = iv; }
288  static void loadData(UT_IStream &is, fpreal64 &v)
289  { is.bread<fpreal64>(&v, 1); }
290  static void loadData(UT_IStream &is, UT_Vector2D &v)
291  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
292  static void loadData(UT_IStream &is, UT_Vector3D &v)
293  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
294  is.bread<fpreal64>(&v.z(), 1); }
295  static void loadData(UT_IStream &is, UT_Vector4D &v)
296  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
297  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
298  static void loadData(UT_IStream &is, UT_Matrix2D &v)
299  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
300  static void loadData(UT_IStream &is, UT_Matrix3D &v)
301  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
302  static void loadData(UT_IStream &is, UT_Matrix4D &v)
303  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
304  static void loadData(UT_IStream &is, UT_Vector2I &v)
305  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
306  static void loadData(UT_IStream &is, UT_Vector3I &v)
307  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
308  is.bread<int64>(&v.z(), 1); }
309  static void loadData(UT_IStream &is, UT_Vector4I &v)
310  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
311  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
313  { is.bread(v); }
315  { UT_StringHolder rampdata;
316  loadData(is, rampdata);
317  if (rampdata.isstring())
318  {
319  v.reset(new UT_Ramp());
320  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
321  v->load(istr);
322  }
323  else v.reset();
324  }
327  loadData(is, data);
328  if (data.isstring())
329  {
330  // Find the data type.
331  const char *colon = UT_StringWrap(data).findChar(':');
332  if (colon)
333  {
334  int typelen = colon - data.buffer();
336  type.strncpy(data.buffer(), typelen);
337  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
338 
339  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
340  }
341  }
342  else v.reset();
343  }
344 
345  static void saveData(std::ostream &os, int64 v)
346  { UTwrite(os, &v); }
347  static void saveData(std::ostream &os, bool v)
348  { int64 iv = v; UTwrite(os, &iv); }
349  static void saveData(std::ostream &os, fpreal64 v)
350  { UTwrite<fpreal64>(os, &v); }
351  static void saveData(std::ostream &os, UT_Vector2D v)
352  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
353  static void saveData(std::ostream &os, UT_Vector3D v)
354  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
355  UTwrite<fpreal64>(os, &v.z()); }
356  static void saveData(std::ostream &os, UT_Vector4D v)
357  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
358  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
359  static void saveData(std::ostream &os, UT_Matrix2D v)
361  static void saveData(std::ostream &os, UT_Matrix3D v)
363  static void saveData(std::ostream &os, UT_Matrix4D v)
365  static void saveData(std::ostream &os, UT_StringHolder s)
366  { UT_StringWrap(s).saveBinary(os); }
367  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
369  UT_OStringStream ostr;
370  if (s) s->save(ostr);
371  result = ostr.str();
372  saveData(os, result);
373  }
374  static void saveData(std::ostream &os, PRM_DataItemHandle s)
376  UT_OStringStream ostr;
377  if (s)
378  {
379  ostr << s->getDataTypeToken();
380  ostr << ":";
381  s->saveBinary(ostr);
382  }
383  result = ostr.str();
384  saveData(os, result);
385  }
386 
387 
388  void save(std::ostream &os) const
389  {
390  int32 v = version();
391  UTwrite(os, &v);
392  saveData(os, myGroup);
393  saveData(os, myCaptureRadius);
394  saveData(os, myKernelType);
395  saveData(os, mySmoothingMethod);
396  saveData(os, mySmoothingLevel);
397 
398  }
399 
400  bool load(UT_IStream &is)
401  {
402  int32 v;
403  is.bread(&v, 1);
404  if (version() != v)
405  {
406  // Fail incompatible versions
407  return false;
408  }
409  loadData(is, myGroup);
410  loadData(is, myCaptureRadius);
411  loadData(is, myKernelType);
412  loadData(is, mySmoothingMethod);
413  loadData(is, mySmoothingLevel);
414 
415  return true;
416  }
417 
418  const UT_StringHolder & getGroup() const { return myGroup; }
419  void setGroup(const UT_StringHolder & val) { myGroup = val; }
421  {
422  SOP_Node *thissop = cookparms.getNode();
423  if (!thissop) return getGroup();
425  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
426  return result;
427  }
428  fpreal64 getCaptureRadius() const { return myCaptureRadius; }
429  void setCaptureRadius(fpreal64 val) { myCaptureRadius = val; }
431  {
432  SOP_Node *thissop = cookparms.getNode();
433  if (!thissop) return getCaptureRadius();
435  OP_Utils::evalOpParm(result, thissop, "captureradius", cookparms.getCookTime(), 0);
436  return result;
437  }
438  KernelType getKernelType() const { return KernelType(myKernelType); }
439  void setKernelType(KernelType val) { myKernelType = int64(val); }
441  {
442  SOP_Node *thissop = cookparms.getNode();
443  if (!thissop) return getKernelType();
444  int64 result;
445  OP_Utils::evalOpParm(result, thissop, "kerneltype", cookparms.getCookTime(), 0);
446  return KernelType(result);
447  }
448  SmoothingMethod getSmoothingMethod() const { return SmoothingMethod(mySmoothingMethod); }
449  void setSmoothingMethod(SmoothingMethod val) { mySmoothingMethod = int64(val); }
451  {
452  SOP_Node *thissop = cookparms.getNode();
453  if (!thissop) return getSmoothingMethod();
454  int64 result;
455  OP_Utils::evalOpParm(result, thissop, "smoothingmethod", cookparms.getCookTime(), 0);
456  return SmoothingMethod(result);
457  }
458  int64 getSmoothingLevel() const { return mySmoothingLevel; }
459  void setSmoothingLevel(int64 val) { mySmoothingLevel = val; }
461  {
462  SOP_Node *thissop = cookparms.getNode();
463  if (!thissop) return getSmoothingLevel();
464  int64 result;
465  OP_Utils::evalOpParm(result, thissop, "smoothinglevel", cookparms.getCookTime(), 0);
466  return result;
467  }
468 
469 private:
470  UT_StringHolder myGroup;
471  fpreal64 myCaptureRadius;
472  int64 myKernelType;
473  int64 mySmoothingMethod;
474  int64 mySmoothingLevel;
475 
476 };
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)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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
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
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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