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