HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_DeltaMushParms.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 <OP/OP_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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myIterations = 10;
33  myStepSize = 0.5;
34  myMethod = 0;
35  mySymmetrize = false;
36  mySymmetryAxis = 0;
37  myPinBorder = false;
38  myRecomputeNormals = true;
39  myClampStepSize = true;
40 
41  }
42 
43  explicit SOP_DeltaMushParms(const SOP_DeltaMushParms &) = default;
45  SOP_DeltaMushParms(SOP_DeltaMushParms &&) noexcept = default;
46  SOP_DeltaMushParms &operator=(SOP_DeltaMushParms &&) noexcept = default;
47 
48  ~SOP_DeltaMushParms() override {}
49 
50  bool operator==(const SOP_DeltaMushParms &src) const
51  {
52  if (myGroup != src.myGroup) return false;
53  if (myIterations != src.myIterations) return false;
54  if (myStepSize != src.myStepSize) return false;
55  if (myMethod != src.myMethod) return false;
56  if (mySymmetrize != src.mySymmetrize) return false;
57  if (mySymmetryAxis != src.mySymmetryAxis) return false;
58  if (myPinBorder != src.myPinBorder) return false;
59  if (myRecomputeNormals != src.myRecomputeNormals) return false;
60  if (myClampStepSize != src.myClampStepSize) return false;
61 
62 
63  if (baseGetSignature() != src.baseGetSignature()) return false;
64 
65  return true;
66  }
67  bool operator!=(const SOP_DeltaMushParms &src) const
68  {
69  return !operator==(src);
70  }
71 
72 
73 
74  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
75  {
76  myGroup = ""_UTsh;
77  if (true)
78  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
79  myIterations = 10;
80  if (true)
81  graph->evalOpParm(myIterations, nodeidx, "iterations", time, graph->isDirect()?nullptr:depnode);
82  myStepSize = 0.5;
83  if (true)
84  graph->evalOpParm(myStepSize, nodeidx, "stepsize", time, graph->isDirect()?nullptr:depnode);
85  myMethod = 0;
86  if (true)
87  graph->evalOpParm(myMethod, nodeidx, "method", time, graph->isDirect()?nullptr:depnode);
88  mySymmetrize = false;
89  if (true)
90  graph->evalOpParm(mySymmetrize, nodeidx, "symmetrize", time, graph->isDirect()?nullptr:depnode);
91  mySymmetryAxis = 0;
92  if (true && ( (getSymmetrize()) ) )
93  graph->evalOpParm(mySymmetryAxis, nodeidx, "symmetryaxis", time, graph->isDirect()?nullptr:depnode);
94  myPinBorder = false;
95  if (true)
96  graph->evalOpParm(myPinBorder, nodeidx, "pinborder", time, graph->isDirect()?nullptr:depnode);
97  myRecomputeNormals = true;
98  if (true)
99  graph->evalOpParm(myRecomputeNormals, nodeidx, "updateaffectednmls", time, graph->isDirect()?nullptr:depnode);
100  myClampStepSize = true;
101  if (true)
102  graph->evalOpParm(myClampStepSize, nodeidx, "clampstepsize", time, graph->isDirect()?nullptr:depnode);
103 
104  }
105 
106 
107  void loadFromOpSubclass(const LoadParms &loadparms) override
108  {
109  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
110  }
111 
112 
113  void copyFrom(const OP_NodeParms *src) override
114  {
115  *this = *((const SOP_DeltaMushParms *)src);
116  }
117 
118  template <typename T>
119  void
120  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
121  {
122  if (idx.size() < 1)
123  return;
124  UT_ASSERT(idx.size() == instance.size()+1);
125  if (idx.size() != instance.size()+1)
126  return;
127  switch (idx[0])
128  {
129  case 0:
130  coerceValue(value, myGroup);
131  break;
132  case 1:
133  coerceValue(value, myIterations);
134  break;
135  case 2:
136  coerceValue(value, myStepSize);
137  break;
138  case 3:
139  coerceValue(value, myMethod);
140  break;
141  case 4:
142  coerceValue(value, mySymmetrize);
143  break;
144  case 5:
145  coerceValue(value, mySymmetryAxis);
146  break;
147  case 6:
148  coerceValue(value, myPinBorder);
149  break;
150  case 7:
151  coerceValue(value, myRecomputeNormals);
152  break;
153  case 8:
154  coerceValue(value, myClampStepSize);
155  break;
156 
157  }
158  }
159 
160  bool isParmColorRamp(exint idx) const override
161  {
162  switch (idx)
163  {
164 
165  }
166  return false;
167  }
168 
169  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
190  { doGetParmValue(idx, instance, value); }
191 
192  template <typename T>
193  void
194  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
195  {
196  if (idx.size() < 1)
197  return;
198  UT_ASSERT(idx.size() == instance.size()+1);
199  if (idx.size() != instance.size()+1)
200  return;
201  switch (idx[0])
202  {
203  case 0:
204  coerceValue(myGroup, ( ( value ) ));
205  break;
206  case 1:
207  coerceValue(myIterations, ( ( value ) ));
208  break;
209  case 2:
210  coerceValue(myStepSize, ( ( value ) ));
211  break;
212  case 3:
213  coerceValue(myMethod, ( ( value ) ));
214  break;
215  case 4:
216  coerceValue(mySymmetrize, ( ( value ) ));
217  break;
218  case 5:
219  coerceValue(mySymmetryAxis, ( ( value ) ));
220  break;
221  case 6:
222  coerceValue(myPinBorder, ( ( value ) ));
223  break;
224  case 7:
225  coerceValue(myRecomputeNormals, ( ( value ) ));
226  break;
227  case 8:
228  coerceValue(myClampStepSize, ( ( value ) ));
229  break;
230 
231  }
232  }
233 
234  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
255  { doSetParmValue(idx, instance, value); }
256 
257  exint getNestNumParms(TempIndex idx) const override
258  {
259  if (idx.size() == 0)
260  return 9;
261  switch (idx[0])
262  {
263 
264  }
265  // Invalid
266  return 0;
267  }
268 
269  const char *getNestParmName(TempIndex fieldnum) const override
270  {
271  if (fieldnum.size() < 1)
272  return 0;
273  switch (fieldnum[0])
274  {
275  case 0:
276  return "group";
277  case 1:
278  return "iterations";
279  case 2:
280  return "stepsize";
281  case 3:
282  return "method";
283  case 4:
284  return "symmetrize";
285  case 5:
286  return "symmetryaxis";
287  case 6:
288  return "pinborder";
289  case 7:
290  return "updateaffectednmls";
291  case 8:
292  return "clampstepsize";
293 
294  }
295  return 0;
296  }
297 
298  ParmType getNestParmType(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return PARM_UNSUPPORTED;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return PARM_STRING;
306  case 1:
307  return PARM_INTEGER;
308  case 2:
309  return PARM_FLOAT;
310  case 3:
311  return PARM_INTEGER;
312  case 4:
313  return PARM_INTEGER;
314  case 5:
315  return PARM_INTEGER;
316  case 6:
317  return PARM_INTEGER;
318  case 7:
319  return PARM_INTEGER;
320  case 8:
321  return PARM_INTEGER;
322 
323  }
324  return PARM_UNSUPPORTED;
325  }
326 
327  // Boiler plate to load individual types.
328  static void loadData(UT_IStream &is, int64 &v)
329  { is.bread(&v, 1); }
330  static void loadData(UT_IStream &is, bool &v)
331  { int64 iv; is.bread(&iv, 1); v = iv; }
332  static void loadData(UT_IStream &is, fpreal64 &v)
333  { is.bread<fpreal64>(&v, 1); }
334  static void loadData(UT_IStream &is, UT_Vector2D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector3D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); }
339  static void loadData(UT_IStream &is, UT_Vector4D &v)
340  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
341  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix2D &v)
343  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Matrix3D &v)
345  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
346  static void loadData(UT_IStream &is, UT_Matrix4D &v)
347  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
348  static void loadData(UT_IStream &is, UT_Vector2I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector3I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector4I &v)
354  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
355  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
357  { is.bread(v); }
359  { UT_StringHolder rampdata;
360  loadData(is, rampdata);
361  if (rampdata.isstring())
362  {
363  v.reset(new UT_Ramp());
364  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
365  v->load(istr);
366  }
367  else v.reset();
368  }
371  loadData(is, data);
372  if (data.isstring())
373  {
374  // Find the data type.
375  const char *colon = UT_StringWrap(data).findChar(':');
376  if (colon)
377  {
378  int typelen = colon - data.buffer();
380  type.strncpy(data.buffer(), typelen);
381  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
382 
383  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
384  }
385  }
386  else v.reset();
387  }
388 
389  static void saveData(std::ostream &os, int64 v)
390  { UTwrite(os, &v); }
391  static void saveData(std::ostream &os, bool v)
392  { int64 iv = v; UTwrite(os, &iv); }
393  static void saveData(std::ostream &os, fpreal64 v)
394  { UTwrite<fpreal64>(os, &v); }
395  static void saveData(std::ostream &os, UT_Vector2D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
397  static void saveData(std::ostream &os, UT_Vector3D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); }
400  static void saveData(std::ostream &os, UT_Vector4D v)
401  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
402  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
403  static void saveData(std::ostream &os, UT_Matrix2D v)
405  static void saveData(std::ostream &os, UT_Matrix3D v)
407  static void saveData(std::ostream &os, UT_Matrix4D v)
409  static void saveData(std::ostream &os, UT_StringHolder s)
410  { UT_StringWrap(s).saveBinary(os); }
411  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
413  UT_OStringStream ostr;
414  if (s) s->save(ostr);
415  result = ostr.str();
416  saveData(os, result);
417  }
418  static void saveData(std::ostream &os, PRM_DataItemHandle s)
420  UT_OStringStream ostr;
421  if (s)
422  {
423  ostr << s->getDataTypeToken();
424  ostr << ":";
425  s->saveBinary(ostr);
426  }
427  result = ostr.str();
428  saveData(os, result);
429  }
430 
431 
432  void save(std::ostream &os) const
433  {
434  int32 v = version();
435  UTwrite(os, &v);
436  saveData(os, myGroup);
437  saveData(os, myIterations);
438  saveData(os, myStepSize);
439  saveData(os, myMethod);
440  saveData(os, mySymmetrize);
441  saveData(os, mySymmetryAxis);
442  saveData(os, myPinBorder);
443  saveData(os, myRecomputeNormals);
444  saveData(os, myClampStepSize);
445 
446  }
447 
448  bool load(UT_IStream &is)
449  {
450  int32 v;
451  is.bread(&v, 1);
452  if (version() != v)
453  {
454  // Fail incompatible versions
455  return false;
456  }
457  loadData(is, myGroup);
458  loadData(is, myIterations);
459  loadData(is, myStepSize);
460  loadData(is, myMethod);
461  loadData(is, mySymmetrize);
462  loadData(is, mySymmetryAxis);
463  loadData(is, myPinBorder);
464  loadData(is, myRecomputeNormals);
465  loadData(is, myClampStepSize);
466 
467  return true;
468  }
469 
470  const UT_StringHolder & getGroup() const { return myGroup; }
471  void setGroup(const UT_StringHolder & val) { myGroup = val; }
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getGroup();
477  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
478  return result;
479  }
480  int64 getIterations() const { return myIterations; }
481  void setIterations(int64 val) { myIterations = val; }
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getIterations();
486  int64 result;
487  OP_Utils::evalOpParm(result, thissop, "iterations", cookparms.getCookTime(), 0);
488  return result;
489  }
490  fpreal64 getStepSize() const { return myStepSize; }
491  void setStepSize(fpreal64 val) { myStepSize = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getStepSize();
497  OP_Utils::evalOpParm(result, thissop, "stepsize", cookparms.getCookTime(), 0);
498  return result;
499  }
500  int64 getMethod() const { return myMethod; }
501  void setMethod(int64 val) { myMethod = val; }
502  int64 opMethod(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getMethod();
506  int64 result;
507  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
508  return result;
509  }
510  bool getSymmetrize() const { return mySymmetrize; }
511  void setSymmetrize(bool val) { mySymmetrize = val; }
512  bool opSymmetrize(const SOP_NodeVerb::CookParms &cookparms) const
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getSymmetrize();
516  bool result;
517  OP_Utils::evalOpParm(result, thissop, "symmetrize", cookparms.getCookTime(), 0);
518  return result;
519  }
520  int64 getSymmetryAxis() const { return mySymmetryAxis; }
521  void setSymmetryAxis(int64 val) { mySymmetryAxis = val; }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getSymmetryAxis();
526  int64 result;
527  OP_Utils::evalOpParm(result, thissop, "symmetryaxis", cookparms.getCookTime(), 0);
528  return result;
529  }
530  bool getPinBorder() const { return myPinBorder; }
531  void setPinBorder(bool val) { myPinBorder = val; }
532  bool opPinBorder(const SOP_NodeVerb::CookParms &cookparms) const
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getPinBorder();
536  bool result;
537  OP_Utils::evalOpParm(result, thissop, "pinborder", cookparms.getCookTime(), 0);
538  return result;
539  }
540  bool getRecomputeNormals() const { return myRecomputeNormals; }
541  void setRecomputeNormals(bool val) { myRecomputeNormals = val; }
542  bool opRecomputeNormals(const SOP_NodeVerb::CookParms &cookparms) const
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getRecomputeNormals();
546  bool result;
547  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
548  return result;
549  }
550  bool getClampStepSize() const { return myClampStepSize; }
551  void setClampStepSize(bool val) { myClampStepSize = val; }
552  bool opClampStepSize(const SOP_NodeVerb::CookParms &cookparms) const
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getClampStepSize();
556  bool result;
557  OP_Utils::evalOpParm(result, thissop, "clampstepsize", cookparms.getCookTime(), 0);
558  return result;
559  }
560 
561 private:
562  UT_StringHolder myGroup;
563  int64 myIterations;
564  fpreal64 myStepSize;
565  int64 myMethod;
566  bool mySymmetrize;
567  int64 mySymmetryAxis;
568  bool myPinBorder;
569  bool myRecomputeNormals;
570  bool myClampStepSize;
571 
572 };
type
Definition: core.h:556
static void loadData(UT_IStream &is, UT_Matrix2D &v)
int64 opMethod(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
static void saveData(std::ostream &os, UT_Vector3D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector4D v)
void save(std::ostream &os) const
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
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const char * getNestParmName(TempIndex fieldnum) const override
fpreal getTime() const
Definition: OP_Context.h:63
void setRecomputeNormals(bool val)
GLsizei const GLfloat * value
Definition: glcorearb.h:824
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const 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
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Matrix3D &v)
**But if you need a result
Definition: thread.h:622
int64 opSymmetryAxis(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
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.
exint getNestNumParms(TempIndex idx) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
bool opClampStepSize(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool isParmColorRamp(exint idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
exint length() const
static void loadData(UT_IStream &is, UT_Vector4I &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void setStepSize(fpreal64 val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
bool opSymmetrize(const SOP_NodeVerb::CookParms &cookparms) const
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Vector2D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, UT_StringHolder s)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
GT_API const UT_StringHolder version
void copyFrom(const OP_NodeParms *src) override
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:310
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
fpreal64 fpreal
Definition: SYS_Types.h:278
const UT_StringHolder & getGroup() const
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
bool opPinBorder(const SOP_NodeVerb::CookParms &cookparms) const
bool opRecomputeNormals(const SOP_NodeVerb::CookParms &cookparms) const
int64 opIterations(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
bool operator!=(const SOP_DeltaMushParms &src) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GLboolean r
Definition: glcorearb.h:1222
fpreal64 opStepSize(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, fpreal64 v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
ParmType getNestParmType(TempIndex fieldnum) const override
fpreal64 getStepSize() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, int64 &v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool operator==(const SOP_DeltaMushParms &src) const
GLenum src
Definition: glcorearb.h:1793
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663