HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Mirror.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_MirrorEnums
24 {
25  enum class Reversenml
26  {
27  NOREVERSE = 0,
28  REVERSE,
29  REVERSEU,
30  REVERSEV
31  };
32 }
33 
34 
36 {
37 public:
38  static int version() { return 1; }
39 
41  {
42  myGroup = ""_UTsh;
43  myOrigin = UT_Vector3D(0,0,0);
44  myDist = 0;
45  myDir = UT_Vector3D(1,0,0);
46  myReversenml = 1;
47  myKeeporiginal = true;
48  myConsolidatepts = true;
49  myConsolidatetol = 0.0001;
50  myConsolidateunshared = false;
51  myCreateoutputgroup = false;
52  myOutputgroup = "mirror"_UTsh;
53 
54  }
55 
56  explicit SOP_MirrorParms(const SOP_MirrorParms &) = default;
57  SOP_MirrorParms &operator=(const SOP_MirrorParms &) = default;
58  SOP_MirrorParms(SOP_MirrorParms &&) noexcept = default;
59  SOP_MirrorParms &operator=(SOP_MirrorParms &&) noexcept = default;
60 
61  ~SOP_MirrorParms() override {}
62 
63  bool operator==(const SOP_MirrorParms &src) const
64  {
65  if (myGroup != src.myGroup) return false;
66  if (myOrigin != src.myOrigin) return false;
67  if (myDist != src.myDist) return false;
68  if (myDir != src.myDir) return false;
69  if (myReversenml != src.myReversenml) return false;
70  if (myKeeporiginal != src.myKeeporiginal) return false;
71  if (myConsolidatepts != src.myConsolidatepts) return false;
72  if (myConsolidatetol != src.myConsolidatetol) return false;
73  if (myConsolidateunshared != src.myConsolidateunshared) return false;
74  if (myCreateoutputgroup != src.myCreateoutputgroup) return false;
75  if (myOutputgroup != src.myOutputgroup) return false;
76 
77  return true;
78  }
79  bool operator!=(const SOP_MirrorParms &src) const
80  {
81  return !operator==(src);
82  }
84 
85 
86 
87  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
88  {
89  myGroup = ""_UTsh;
90  if (true)
91  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
92  myOrigin = UT_Vector3D(0,0,0);
93  if (true)
94  graph->evalOpParm(myOrigin, nodeidx, "origin", time, 0);
95  myDist = 0;
96  if (true)
97  graph->evalOpParm(myDist, nodeidx, "dist", time, 0);
98  myDir = UT_Vector3D(1,0,0);
99  if (true)
100  graph->evalOpParm(myDir, nodeidx, "dir", time, 0);
101  myReversenml = 1;
102  if (true)
103  graph->evalOpParm(myReversenml, nodeidx, "reversenml", time, 0);
104  myKeeporiginal = true;
105  if (true)
106  graph->evalOpParm(myKeeporiginal, nodeidx, "keepOriginal", time, 0);
107  myConsolidatepts = true;
108  if (true && ( (true&&!(((getKeeporiginal()==0)))) ) )
109  graph->evalOpParm(myConsolidatepts, nodeidx, "consolidatepts", time, 0);
110  myConsolidatetol = 0.0001;
111  if (true && ( (true&&!(((getKeeporiginal()==0))||((getConsolidatepts()==0)))) ) )
112  graph->evalOpParm(myConsolidatetol, nodeidx, "consolidatetol", time, 0);
113  myConsolidateunshared = false;
114  if (true && ( (true&&!(((getKeeporiginal()==0))||((getConsolidatepts()==0)))) ) )
115  graph->evalOpParm(myConsolidateunshared, nodeidx, "consolidateunshared", time, 0);
116  myCreateoutputgroup = false;
117  if (true)
118  graph->evalOpParm(myCreateoutputgroup, nodeidx, "createoutputgroup", time, 0);
119  myOutputgroup = "mirror"_UTsh;
120  if (true && ( (true&&!(((getCreateoutputgroup()==0)))) ) )
121  graph->evalOpParm(myOutputgroup, nodeidx, "outputgroup", time, 0);
122 
123  }
124 
125 
126  void loadFromOpSubclass(const LoadParms &loadparms) override
127  {
128  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
129  }
130 
131 
132  void copyFrom(const OP_NodeParms *src) override
133  {
134  *this = *((const SOP_MirrorParms *)src);
135  }
136 
137  template <typename T>
138  void
139  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
140  {
141  if (idx.size() < 1)
142  return;
143  UT_ASSERT(idx.size() == instance.size()+1);
144  if (idx.size() != instance.size()+1)
145  return;
146  switch (idx[0])
147  {
148  case 0:
149  coerceValue(value, myGroup);
150  break;
151  case 1:
152  coerceValue(value, myOrigin);
153  break;
154  case 2:
155  coerceValue(value, myDist);
156  break;
157  case 3:
158  coerceValue(value, myDir);
159  break;
160  case 4:
161  coerceValue(value, myReversenml);
162  break;
163  case 5:
164  coerceValue(value, myKeeporiginal);
165  break;
166  case 6:
167  coerceValue(value, myConsolidatepts);
168  break;
169  case 7:
170  coerceValue(value, myConsolidatetol);
171  break;
172  case 8:
173  coerceValue(value, myConsolidateunshared);
174  break;
175  case 9:
176  coerceValue(value, myCreateoutputgroup);
177  break;
178  case 10:
179  coerceValue(value, myOutputgroup);
180  break;
181 
182  }
183  }
184 
185  bool isParmColorRamp(exint idx) const override
186  {
187  switch (idx)
188  {
189 
190  }
191  return false;
192  }
193 
194  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
215  { doGetParmValue(idx, instance, value); }
216 
217  template <typename T>
218  void
219  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
220  {
221  if (idx.size() < 1)
222  return;
223  UT_ASSERT(idx.size() == instance.size()+1);
224  if (idx.size() != instance.size()+1)
225  return;
226  switch (idx[0])
227  {
228  case 0:
229  coerceValue(myGroup, ( ( value ) ));
230  break;
231  case 1:
232  coerceValue(myOrigin, ( ( value ) ));
233  break;
234  case 2:
235  coerceValue(myDist, ( ( value ) ));
236  break;
237  case 3:
238  coerceValue(myDir, ( ( value ) ));
239  break;
240  case 4:
241  coerceValue(myReversenml, clampMinValue(0, clampMaxValue(3, value ) ));
242  break;
243  case 5:
244  coerceValue(myKeeporiginal, ( ( value ) ));
245  break;
246  case 6:
247  coerceValue(myConsolidatepts, ( ( value ) ));
248  break;
249  case 7:
250  coerceValue(myConsolidatetol, ( ( value ) ));
251  break;
252  case 8:
253  coerceValue(myConsolidateunshared, ( ( value ) ));
254  break;
255  case 9:
256  coerceValue(myCreateoutputgroup, ( ( value ) ));
257  break;
258  case 10:
259  coerceValue(myOutputgroup, ( ( value ) ));
260  break;
261 
262  }
263  }
264 
265  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
286  { doSetParmValue(idx, instance, value); }
287 
288  exint getNestNumParms(TempIndex idx) const override
289  {
290  if (idx.size() == 0)
291  return 11;
292  switch (idx[0])
293  {
294 
295  }
296  // Invalid
297  return 0;
298  }
299 
300  const char *getNestParmName(TempIndex fieldnum) const override
301  {
302  if (fieldnum.size() < 1)
303  return 0;
304  switch (fieldnum[0])
305  {
306  case 0:
307  return "group";
308  case 1:
309  return "origin";
310  case 2:
311  return "dist";
312  case 3:
313  return "dir";
314  case 4:
315  return "reversenml";
316  case 5:
317  return "keepOriginal";
318  case 6:
319  return "consolidatepts";
320  case 7:
321  return "consolidatetol";
322  case 8:
323  return "consolidateunshared";
324  case 9:
325  return "createoutputgroup";
326  case 10:
327  return "outputgroup";
328 
329  }
330  return 0;
331  }
332 
333  ParmType getNestParmType(TempIndex fieldnum) const override
334  {
335  if (fieldnum.size() < 1)
336  return PARM_UNSUPPORTED;
337  switch (fieldnum[0])
338  {
339  case 0:
340  return PARM_STRING;
341  case 1:
342  return PARM_VECTOR3;
343  case 2:
344  return PARM_FLOAT;
345  case 3:
346  return PARM_VECTOR3;
347  case 4:
348  return PARM_INTEGER;
349  case 5:
350  return PARM_INTEGER;
351  case 6:
352  return PARM_INTEGER;
353  case 7:
354  return PARM_FLOAT;
355  case 8:
356  return PARM_INTEGER;
357  case 9:
358  return PARM_INTEGER;
359  case 10:
360  return PARM_STRING;
361 
362  }
363  return PARM_UNSUPPORTED;
364  }
365 
366  // Boiler plate to load individual types.
367  static void loadData(UT_IStream &is, int64 &v)
368  { is.bread(&v, 1); }
369  static void loadData(UT_IStream &is, bool &v)
370  { int64 iv; is.bread(&iv, 1); v = iv; }
371  static void loadData(UT_IStream &is, fpreal64 &v)
372  { is.bread<fpreal64>(&v, 1); }
373  static void loadData(UT_IStream &is, UT_Vector2D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
375  static void loadData(UT_IStream &is, UT_Vector3D &v)
376  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
377  is.bread<fpreal64>(&v.z(), 1); }
378  static void loadData(UT_IStream &is, UT_Vector4D &v)
379  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
380  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix2D &v)
382  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix3D &v)
384  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Matrix4D &v)
386  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
387  static void loadData(UT_IStream &is, UT_Vector2I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
389  static void loadData(UT_IStream &is, UT_Vector3I &v)
390  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
391  is.bread<int64>(&v.z(), 1); }
392  static void loadData(UT_IStream &is, UT_Vector4I &v)
393  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
394  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
396  { is.bread(v); }
398  { UT_StringHolder rampdata;
399  loadData(is, rampdata);
400  if (rampdata.isstring())
401  {
402  v.reset(new UT_Ramp());
403  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
404  v->load(istr);
405  }
406  else v.reset();
407  }
410  loadData(is, data);
411  if (data.isstring())
412  {
413  // Find the data type.
414  const char *colon = UT_StringWrap(data).findChar(':');
415  if (colon)
416  {
417  int typelen = colon - data.buffer();
419  type.strncpy(data.buffer(), typelen);
420  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
421 
422  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
423  }
424  }
425  else v.reset();
426  }
427 
428  static void saveData(std::ostream &os, int64 v)
429  { UTwrite(os, &v); }
430  static void saveData(std::ostream &os, bool v)
431  { int64 iv = v; UTwrite(os, &iv); }
432  static void saveData(std::ostream &os, fpreal64 v)
433  { UTwrite<fpreal64>(os, &v); }
434  static void saveData(std::ostream &os, UT_Vector2D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
436  static void saveData(std::ostream &os, UT_Vector3D v)
437  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
438  UTwrite<fpreal64>(os, &v.z()); }
439  static void saveData(std::ostream &os, UT_Vector4D v)
440  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
441  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
442  static void saveData(std::ostream &os, UT_Matrix2D v)
444  static void saveData(std::ostream &os, UT_Matrix3D v)
446  static void saveData(std::ostream &os, UT_Matrix4D v)
448  static void saveData(std::ostream &os, UT_StringHolder s)
449  { UT_StringWrap(s).saveBinary(os); }
450  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
452  UT_OStringStream ostr;
453  if (s) s->save(ostr);
454  result = ostr.str();
455  saveData(os, result);
456  }
457  static void saveData(std::ostream &os, PRM_DataItemHandle s)
459  UT_OStringStream ostr;
460  if (s)
461  {
462  ostr << s->getDataTypeToken();
463  ostr << ":";
464  s->saveBinary(ostr);
465  }
466  result = ostr.str();
467  saveData(os, result);
468  }
469 
470 
471  void save(std::ostream &os) const
472  {
473  int32 v = version();
474  UTwrite(os, &v);
475  saveData(os, myGroup);
476  saveData(os, myOrigin);
477  saveData(os, myDist);
478  saveData(os, myDir);
479  saveData(os, myReversenml);
480  saveData(os, myKeeporiginal);
481  saveData(os, myConsolidatepts);
482  saveData(os, myConsolidatetol);
483  saveData(os, myConsolidateunshared);
484  saveData(os, myCreateoutputgroup);
485  saveData(os, myOutputgroup);
486 
487  }
488 
489  bool load(UT_IStream &is)
490  {
491  int32 v;
492  is.bread(&v, 1);
493  if (version() != v)
494  {
495  // Fail incompatible versions
496  return false;
497  }
498  loadData(is, myGroup);
499  loadData(is, myOrigin);
500  loadData(is, myDist);
501  loadData(is, myDir);
502  loadData(is, myReversenml);
503  loadData(is, myKeeporiginal);
504  loadData(is, myConsolidatepts);
505  loadData(is, myConsolidatetol);
506  loadData(is, myConsolidateunshared);
507  loadData(is, myCreateoutputgroup);
508  loadData(is, myOutputgroup);
509 
510  return true;
511  }
512 
513  const UT_StringHolder & getGroup() const { return myGroup; }
514  void setGroup(const UT_StringHolder & val) { myGroup = val; }
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getGroup();
520  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
521  return result;
522  }
523  UT_Vector3D getOrigin() const { return myOrigin; }
524  void setOrigin(UT_Vector3D val) { myOrigin = val; }
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getOrigin();
530  OP_Utils::evalOpParm(result, thissop, "origin", cookparms.getCookTime(), 0);
531  return result;
532  }
533  fpreal64 getDist() const { return myDist; }
534  void setDist(fpreal64 val) { myDist = val; }
535  fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getDist();
540  OP_Utils::evalOpParm(result, thissop, "dist", cookparms.getCookTime(), 0);
541  return result;
542  }
543  UT_Vector3D getDir() const { return myDir; }
544  void setDir(UT_Vector3D val) { myDir = val; }
545  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getDir();
550  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
551  return result;
552  }
553  Reversenml getReversenml() const { return Reversenml(myReversenml); }
554  void setReversenml(Reversenml val) { myReversenml = int64(val); }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getReversenml();
559  int64 result;
560  OP_Utils::evalOpParm(result, thissop, "reversenml", cookparms.getCookTime(), 0);
561  return Reversenml(result);
562  }
563  bool getKeeporiginal() const { return myKeeporiginal; }
564  void setKeeporiginal(bool val) { myKeeporiginal = val; }
565  bool opKeeporiginal(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getKeeporiginal();
569  bool result;
570  OP_Utils::evalOpParm(result, thissop, "keepOriginal", cookparms.getCookTime(), 0);
571  return result;
572  }
573  bool getConsolidatepts() const { return myConsolidatepts; }
574  void setConsolidatepts(bool val) { myConsolidatepts = val; }
575  bool opConsolidatepts(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getConsolidatepts();
579  bool result;
580  OP_Utils::evalOpParm(result, thissop, "consolidatepts", cookparms.getCookTime(), 0);
581  return result;
582  }
583  fpreal64 getConsolidatetol() const { return myConsolidatetol; }
584  void setConsolidatetol(fpreal64 val) { myConsolidatetol = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getConsolidatetol();
590  OP_Utils::evalOpParm(result, thissop, "consolidatetol", cookparms.getCookTime(), 0);
591  return result;
592  }
593  bool getConsolidateunshared() const { return myConsolidateunshared; }
594  void setConsolidateunshared(bool val) { myConsolidateunshared = val; }
595  bool opConsolidateunshared(const SOP_NodeVerb::CookParms &cookparms) const
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getConsolidateunshared();
599  bool result;
600  OP_Utils::evalOpParm(result, thissop, "consolidateunshared", cookparms.getCookTime(), 0);
601  return result;
602  }
603  bool getCreateoutputgroup() const { return myCreateoutputgroup; }
604  void setCreateoutputgroup(bool val) { myCreateoutputgroup = val; }
605  bool opCreateoutputgroup(const SOP_NodeVerb::CookParms &cookparms) const
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getCreateoutputgroup();
609  bool result;
610  OP_Utils::evalOpParm(result, thissop, "createoutputgroup", cookparms.getCookTime(), 0);
611  return result;
612  }
613  const UT_StringHolder & getOutputgroup() const { return myOutputgroup; }
614  void setOutputgroup(const UT_StringHolder & val) { myOutputgroup = val; }
616  {
617  SOP_Node *thissop = cookparms.getNode();
618  if (!thissop) return getOutputgroup();
620  OP_Utils::evalOpParm(result, thissop, "outputgroup", cookparms.getCookTime(), 0);
621  return result;
622  }
623 
624 private:
625  UT_StringHolder myGroup;
626  UT_Vector3D myOrigin;
627  fpreal64 myDist;
628  UT_Vector3D myDir;
629  int64 myReversenml;
630  bool myKeeporiginal;
631  bool myConsolidatepts;
632  fpreal64 myConsolidatetol;
633  bool myConsolidateunshared;
634  bool myCreateoutputgroup;
635  UT_StringHolder myOutputgroup;
636 
637 };
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
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
void setReversenml(Reversenml val)
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, UT_Matrix4D v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
bool opConsolidatepts(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
void setDist(fpreal64 val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setCreateoutputgroup(bool val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
**But if you need a result
Definition: thread.h:613
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
fpreal64 opConsolidatetol(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, fpreal64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, bool v)
exint length() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
bool getConsolidatepts() const
fpreal64 getDist() const
void setConsolidateunshared(bool val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
UT_StringHolder opOutputgroup(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector3D getOrigin() const
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
bool opKeeporiginal(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
UT_Vector3T< fpreal64 > UT_Vector3D
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setOutputgroup(const UT_StringHolder &val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
ParmType getNestParmType(TempIndex fieldnum) const override
void setConsolidatepts(bool val)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool operator!=(const SOP_MirrorParms &src) const
void setOrigin(UT_Vector3D val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, PRM_DataItemHandle s)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_Vector4D v)
UT_Vector3D getDir() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool operator==(const SOP_MirrorParms &src) const
bool opConsolidateunshared(const SOP_NodeVerb::CookParms &cookparms) const
void setGroup(const UT_StringHolder &val)
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getOutputgroup() const
static void saveData(std::ostream &os, UT_StringHolder s)
static int version()
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, UT_Matrix3D &v)
Reversenml getReversenml() const
fpreal64 opDist(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_Vector3D opOrigin(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
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_Matrix4D &v)
bool getCreateoutputgroup() 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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setDir(UT_Vector3D val)
GLboolean r
Definition: glcorearb.h:1222
void setConsolidatetol(fpreal64 val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_Vector2D &v)
bool getKeeporiginal() const
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
Reversenml opReversenml(const SOP_NodeVerb::CookParms &cookparms) const
bool getConsolidateunshared() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
static void saveData(std::ostream &os, fpreal64 v)
void save(std::ostream &os) const
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
fpreal64 getConsolidatetol() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setKeeporiginal(bool val)
bool opCreateoutputgroup(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const OP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663