HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Smooth-2.0.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_Smooth_2_0Enums
24 {
26  {
27  NONE = 0,
30  };
31 
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case ConstrainedBoundary::NONE: return "none"_sh;
38  case ConstrainedBoundary::UNSHAREDEDGES: return "unsharededges"_sh;
39  case ConstrainedBoundary::GROUPBOUNDARY: return "groupboundary"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44  enum class Method
45  {
46  UNIFORM = 0,
49  };
50 
52  getToken(Method enum_value)
53  {
54  using namespace UT::Literal;
55  switch (enum_value) {
56  case Method::UNIFORM: return "uniform"_sh;
57  case Method::SCALEDOMINANT: return "scaledominant"_sh;
58  case Method::CURVATUREDOMINANT: return "curvaturedominant"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63 }
64 
65 
67 {
68 public:
69  static int version() { return 1; }
70 
72  {
73  myGroup = ""_UTsh;
74  myConstrainedBoundary = 2;
75  myConstrainedPoints = ""_UTsh;
76  myAttributes = "P"_UTsh;
77  myMethod = 0;
78  myStrength = 10;
79  myFilterQuality = 2;
80  myUpdateAffectedNmls = true;
81 
82  }
83 
84  explicit SOP_Smooth_2_0Parms(const SOP_Smooth_2_0Parms &) = default;
86  SOP_Smooth_2_0Parms(SOP_Smooth_2_0Parms &&) noexcept = default;
87  SOP_Smooth_2_0Parms &operator=(SOP_Smooth_2_0Parms &&) noexcept = default;
88 
89  ~SOP_Smooth_2_0Parms() override {}
90 
91  bool operator==(const SOP_Smooth_2_0Parms &src) const
92  {
93  if (myGroup != src.myGroup) return false;
94  if (myConstrainedBoundary != src.myConstrainedBoundary) return false;
95  if (myConstrainedPoints != src.myConstrainedPoints) return false;
96  if (myAttributes != src.myAttributes) return false;
97  if (myMethod != src.myMethod) return false;
98  if (myStrength != src.myStrength) return false;
99  if (myFilterQuality != src.myFilterQuality) return false;
100  if (myUpdateAffectedNmls != src.myUpdateAffectedNmls) return false;
101 
102  return true;
103  }
104  bool operator!=(const SOP_Smooth_2_0Parms &src) const
105  {
106  return !operator==(src);
107  }
110 
111 
112 
113  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
114  {
115  myGroup = ""_UTsh;
116  if (true)
117  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
118  myConstrainedBoundary = 2;
119  if (true)
120  graph->evalOpParm(myConstrainedBoundary, nodeidx, "contrainedboundary", time, 0);
121  myConstrainedPoints = ""_UTsh;
122  if (true)
123  graph->evalOpParm(myConstrainedPoints, nodeidx, "constrainedpoints", time, 0);
124  myAttributes = "P"_UTsh;
125  if (true)
126  graph->evalOpParm(myAttributes, nodeidx, "attributes", time, 0);
127  myMethod = 0;
128  if (true)
129  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
130  myStrength = 10;
131  if (true)
132  graph->evalOpParm(myStrength, nodeidx, "strength", time, 0);
133  myFilterQuality = 2;
134  if (true)
135  graph->evalOpParm(myFilterQuality, nodeidx, "filterquality", time, 0);
136  myUpdateAffectedNmls = true;
137  if (true)
138  graph->evalOpParm(myUpdateAffectedNmls, nodeidx, "updateaffectednmls", time, 0);
139 
140  }
141 
142 
143  void loadFromOpSubclass(const LoadParms &loadparms) override
144  {
145  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
146  }
147 
148 
149  void copyFrom(const OP_NodeParms *src) override
150  {
151  *this = *((const SOP_Smooth_2_0Parms *)src);
152  }
153 
154  template <typename T>
155  void
156  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
157  {
158  if (idx.size() < 1)
159  return;
160  UT_ASSERT(idx.size() == instance.size()+1);
161  if (idx.size() != instance.size()+1)
162  return;
163  switch (idx[0])
164  {
165  case 0:
166  coerceValue(value, myGroup);
167  break;
168  case 1:
169  coerceValue(value, myConstrainedBoundary);
170  break;
171  case 2:
172  coerceValue(value, myConstrainedPoints);
173  break;
174  case 3:
175  coerceValue(value, myAttributes);
176  break;
177  case 4:
178  coerceValue(value, myMethod);
179  break;
180  case 5:
181  coerceValue(value, myStrength);
182  break;
183  case 6:
184  coerceValue(value, myFilterQuality);
185  break;
186  case 7:
187  coerceValue(value, myUpdateAffectedNmls);
188  break;
189 
190  }
191  }
192 
193  bool isParmColorRamp(exint idx) const override
194  {
195  switch (idx)
196  {
197 
198  }
199  return false;
200  }
201 
202  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
223  { doGetParmValue(idx, instance, value); }
224 
225  template <typename T>
226  void
227  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
228  {
229  if (idx.size() < 1)
230  return;
231  UT_ASSERT(idx.size() == instance.size()+1);
232  if (idx.size() != instance.size()+1)
233  return;
234  switch (idx[0])
235  {
236  case 0:
237  coerceValue(myGroup, ( ( value ) ));
238  break;
239  case 1:
240  coerceValue(myConstrainedBoundary, clampMinValue(0, clampMaxValue(2, value ) ));
241  break;
242  case 2:
243  coerceValue(myConstrainedPoints, ( ( value ) ));
244  break;
245  case 3:
246  coerceValue(myAttributes, ( ( value ) ));
247  break;
248  case 4:
249  coerceValue(myMethod, clampMinValue(0, clampMaxValue(2, value ) ));
250  break;
251  case 5:
252  coerceValue(myStrength, clampMinValue(0, ( value ) ));
253  break;
254  case 6:
255  coerceValue(myFilterQuality, clampMinValue(1, clampMaxValue(5, value ) ));
256  break;
257  case 7:
258  coerceValue(myUpdateAffectedNmls, ( ( value ) ));
259  break;
260 
261  }
262  }
263 
264  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
285  { doSetParmValue(idx, instance, value); }
286 
287  exint getNestNumParms(TempIndex idx) const override
288  {
289  if (idx.size() == 0)
290  return 8;
291  switch (idx[0])
292  {
293 
294  }
295  // Invalid
296  return 0;
297  }
298 
299  const char *getNestParmName(TempIndex fieldnum) const override
300  {
301  if (fieldnum.size() < 1)
302  return 0;
303  switch (fieldnum[0])
304  {
305  case 0:
306  return "group";
307  case 1:
308  return "contrainedboundary";
309  case 2:
310  return "constrainedpoints";
311  case 3:
312  return "attributes";
313  case 4:
314  return "method";
315  case 5:
316  return "strength";
317  case 6:
318  return "filterquality";
319  case 7:
320  return "updateaffectednmls";
321 
322  }
323  return 0;
324  }
325 
326  ParmType getNestParmType(TempIndex fieldnum) const override
327  {
328  if (fieldnum.size() < 1)
329  return PARM_UNSUPPORTED;
330  switch (fieldnum[0])
331  {
332  case 0:
333  return PARM_STRING;
334  case 1:
335  return PARM_INTEGER;
336  case 2:
337  return PARM_STRING;
338  case 3:
339  return PARM_STRING;
340  case 4:
341  return PARM_INTEGER;
342  case 5:
343  return PARM_FLOAT;
344  case 6:
345  return PARM_INTEGER;
346  case 7:
347  return PARM_INTEGER;
348 
349  }
350  return PARM_UNSUPPORTED;
351  }
352 
353  // Boiler plate to load individual types.
354  static void loadData(UT_IStream &is, int64 &v)
355  { is.bread(&v, 1); }
356  static void loadData(UT_IStream &is, bool &v)
357  { int64 iv; is.bread(&iv, 1); v = iv; }
358  static void loadData(UT_IStream &is, fpreal64 &v)
359  { is.bread<fpreal64>(&v, 1); }
360  static void loadData(UT_IStream &is, UT_Vector2D &v)
361  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
362  static void loadData(UT_IStream &is, UT_Vector3D &v)
363  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
364  is.bread<fpreal64>(&v.z(), 1); }
365  static void loadData(UT_IStream &is, UT_Vector4D &v)
366  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
367  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
368  static void loadData(UT_IStream &is, UT_Matrix2D &v)
369  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
370  static void loadData(UT_IStream &is, UT_Matrix3D &v)
371  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
372  static void loadData(UT_IStream &is, UT_Matrix4D &v)
373  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
374  static void loadData(UT_IStream &is, UT_Vector2I &v)
375  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector3I &v)
377  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
378  is.bread<int64>(&v.z(), 1); }
379  static void loadData(UT_IStream &is, UT_Vector4I &v)
380  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
381  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
383  { is.bread(v); }
385  { UT_StringHolder rampdata;
386  loadData(is, rampdata);
387  if (rampdata.isstring())
388  {
389  v.reset(new UT_Ramp());
390  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
391  v->load(istr);
392  }
393  else v.reset();
394  }
397  loadData(is, data);
398  if (data.isstring())
399  {
400  // Find the data type.
401  const char *colon = UT_StringWrap(data).findChar(':');
402  if (colon)
403  {
404  int typelen = colon - data.buffer();
406  type.strncpy(data.buffer(), typelen);
407  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
408 
409  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
410  }
411  }
412  else v.reset();
413  }
414 
415  static void saveData(std::ostream &os, int64 v)
416  { UTwrite(os, &v); }
417  static void saveData(std::ostream &os, bool v)
418  { int64 iv = v; UTwrite(os, &iv); }
419  static void saveData(std::ostream &os, fpreal64 v)
420  { UTwrite<fpreal64>(os, &v); }
421  static void saveData(std::ostream &os, UT_Vector2D v)
422  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
423  static void saveData(std::ostream &os, UT_Vector3D v)
424  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
425  UTwrite<fpreal64>(os, &v.z()); }
426  static void saveData(std::ostream &os, UT_Vector4D v)
427  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
428  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
429  static void saveData(std::ostream &os, UT_Matrix2D v)
431  static void saveData(std::ostream &os, UT_Matrix3D v)
433  static void saveData(std::ostream &os, UT_Matrix4D v)
435  static void saveData(std::ostream &os, UT_StringHolder s)
436  { UT_StringWrap(s).saveBinary(os); }
437  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
439  UT_OStringStream ostr;
440  if (s) s->save(ostr);
441  result = ostr.str();
442  saveData(os, result);
443  }
444  static void saveData(std::ostream &os, PRM_DataItemHandle s)
446  UT_OStringStream ostr;
447  if (s)
448  {
449  ostr << s->getDataTypeToken();
450  ostr << ":";
451  s->saveBinary(ostr);
452  }
453  result = ostr.str();
454  saveData(os, result);
455  }
456 
457 
458  void save(std::ostream &os) const
459  {
460  int32 v = version();
461  UTwrite(os, &v);
462  saveData(os, myGroup);
463  saveData(os, myConstrainedBoundary);
464  saveData(os, myConstrainedPoints);
465  saveData(os, myAttributes);
466  saveData(os, myMethod);
467  saveData(os, myStrength);
468  saveData(os, myFilterQuality);
469  saveData(os, myUpdateAffectedNmls);
470 
471  }
472 
473  bool load(UT_IStream &is)
474  {
475  int32 v;
476  is.bread(&v, 1);
477  if (version() != v)
478  {
479  // Fail incompatible versions
480  return false;
481  }
482  loadData(is, myGroup);
483  loadData(is, myConstrainedBoundary);
484  loadData(is, myConstrainedPoints);
485  loadData(is, myAttributes);
486  loadData(is, myMethod);
487  loadData(is, myStrength);
488  loadData(is, myFilterQuality);
489  loadData(is, myUpdateAffectedNmls);
490 
491  return true;
492  }
493 
494  const UT_StringHolder & getGroup() const { return myGroup; }
495  void setGroup(const UT_StringHolder & val) { myGroup = val; }
497  {
498  SOP_Node *thissop = cookparms.getNode();
499  if (!thissop) return getGroup();
501  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
502  return result;
503  }
504  ConstrainedBoundary getConstrainedBoundary() const { return ConstrainedBoundary(myConstrainedBoundary); }
505  void setConstrainedBoundary(ConstrainedBoundary val) { myConstrainedBoundary = int64(val); }
507  {
508  SOP_Node *thissop = cookparms.getNode();
509  if (!thissop) return getConstrainedBoundary();
510  int64 result;
511  OP_Utils::evalOpParm(result, thissop, "contrainedboundary", cookparms.getCookTime(), 0);
512  return ConstrainedBoundary(result);
513  }
514  const UT_StringHolder & getConstrainedPoints() const { return myConstrainedPoints; }
515  void setConstrainedPoints(const UT_StringHolder & val) { myConstrainedPoints = val; }
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getConstrainedPoints();
521  OP_Utils::evalOpParm(result, thissop, "constrainedpoints", cookparms.getCookTime(), 0);
522  return result;
523  }
524  const UT_StringHolder & getAttributes() const { return myAttributes; }
525  void setAttributes(const UT_StringHolder & val) { myAttributes = val; }
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getAttributes();
531  OP_Utils::evalOpParm(result, thissop, "attributes", cookparms.getCookTime(), 0);
532  return result;
533  }
534  Method getMethod() const { return Method(myMethod); }
535  void setMethod(Method val) { myMethod = int64(val); }
536  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getMethod();
540  int64 result;
541  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
542  return Method(result);
543  }
544  fpreal64 getStrength() const { return myStrength; }
545  void setStrength(fpreal64 val) { myStrength = val; }
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getStrength();
551  OP_Utils::evalOpParm(result, thissop, "strength", cookparms.getCookTime(), 0);
552  return result;
553  }
554  int64 getFilterQuality() const { return myFilterQuality; }
555  void setFilterQuality(int64 val) { myFilterQuality = val; }
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getFilterQuality();
560  int64 result;
561  OP_Utils::evalOpParm(result, thissop, "filterquality", cookparms.getCookTime(), 0);
562  return result;
563  }
564  bool getUpdateAffectedNmls() const { return myUpdateAffectedNmls; }
565  void setUpdateAffectedNmls(bool val) { myUpdateAffectedNmls = val; }
566  bool opUpdateAffectedNmls(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getUpdateAffectedNmls();
570  bool result;
571  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
572  return result;
573  }
574 
575 private:
576  UT_StringHolder myGroup;
577  int64 myConstrainedBoundary;
578  UT_StringHolder myConstrainedPoints;
579  UT_StringHolder myAttributes;
580  int64 myMethod;
581  fpreal64 myStrength;
582  int64 myFilterQuality;
583  bool myUpdateAffectedNmls;
584 
585 };
void setStrength(fpreal64 val)
const UT_StringHolder & getConstrainedPoints() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
fpreal64 opStrength(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &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
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setMethod(Method val)
const UT_StringHolder & getAttributes() const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_Vector3D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
SYS_FORCE_INLINE const char * buffer() const
exint getNestNumParms(TempIndex idx) const override
const char * getNestParmName(TempIndex fieldnum) const override
GLdouble s
Definition: glad.h:3009
void loadFromOpSubclass(const LoadParms &loadparms) override
fpreal64 getStrength() const
An output stream object that owns its own string buffer storage.
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void save(std::ostream &os) const
**But if you need a result
Definition: thread.h:613
bool operator!=(const SOP_Smooth_2_0Parms &src) const
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setFilterQuality(int64 val)
bool operator==(const SOP_Smooth_2_0Parms &src) const
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.
ParmType getNestParmType(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, int64 v)
ConstrainedBoundary getConstrainedBoundary() const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
bool load(UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
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 PRM_DataItemHandle &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint length() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &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
static void loadData(UT_IStream &is, UT_Matrix4D &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setUpdateAffectedNmls(bool val)
bool opUpdateAffectedNmls(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool getUpdateAffectedNmls() const
void setGroup(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
GT_API const UT_StringHolder version
bool isParmColorRamp(exint idx) const override
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setConstrainedBoundary(ConstrainedBoundary val)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setConstrainedPoints(const UT_StringHolder &val)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
int64 getFilterQuality() const
static void saveData(std::ostream &os, UT_Vector4D v)
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_StringHolder &v)
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
UT_StringHolder opAttributes(const SOP_NodeVerb::CookParms &cookparms) const
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
static void saveData(std::ostream &os, fpreal64 v)
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, fpreal64 &v)
int64 opFilterQuality(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setAttributes(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void saveData(std::ostream &os, bool v)
UT_StringHolder opConstrainedPoints(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
ConstrainedBoundary opConstrainedBoundary(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE UT_StringHolder getToken(ConstrainedBoundary enum_value)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
const UT_StringHolder & getGroup() const