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