HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Rewire.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_RewireEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
28  VERTICES,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGroup = ""_UTsh;
44  myGrouptype = 0;
45  myAttrib = "rewire_to"_UTsh;
46  myDeleteTargetPointAttrib = false;
47  myRecurse = false;
48  myKeepunusedpoints = false;
49  myCreateorigattrib = false;
50  myOrigattrib = "rewired_from"_UTsh;
51 
52  }
53 
54  explicit SOP_RewireParms(const SOP_RewireParms &) = default;
55  SOP_RewireParms &operator=(const SOP_RewireParms &) = default;
56  SOP_RewireParms(SOP_RewireParms &&) noexcept = default;
57  SOP_RewireParms &operator=(SOP_RewireParms &&) noexcept = default;
58 
59  ~SOP_RewireParms() override {}
60 
61  bool operator==(const SOP_RewireParms &src) const
62  {
63  if (myGroup != src.myGroup) return false;
64  if (myGrouptype != src.myGrouptype) return false;
65  if (myAttrib != src.myAttrib) return false;
66  if (myDeleteTargetPointAttrib != src.myDeleteTargetPointAttrib) return false;
67  if (myRecurse != src.myRecurse) return false;
68  if (myKeepunusedpoints != src.myKeepunusedpoints) return false;
69  if (myCreateorigattrib != src.myCreateorigattrib) return false;
70  if (myOrigattrib != src.myOrigattrib) return false;
71 
72  return true;
73  }
74  bool operator!=(const SOP_RewireParms &src) const
75  {
76  return !operator==(src);
77  }
79 
80 
81 
82  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
83  {
84  myGroup = ""_UTsh;
85  if (true)
86  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
87  myGrouptype = 0;
88  if (true)
89  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
90  myAttrib = "rewire_to"_UTsh;
91  if (true)
92  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, 0);
93  myDeleteTargetPointAttrib = false;
94  if (true)
95  graph->evalOpParm(myDeleteTargetPointAttrib, nodeidx, "deletetargetpointattrib", time, 0);
96  myRecurse = false;
97  if (true)
98  graph->evalOpParm(myRecurse, nodeidx, "recurse", time, 0);
99  myKeepunusedpoints = false;
100  if (true)
101  graph->evalOpParm(myKeepunusedpoints, nodeidx, "keepunusedpoints", time, 0);
102  myCreateorigattrib = false;
103  if (true)
104  graph->evalOpParm(myCreateorigattrib, nodeidx, "createorigattrib", time, 0);
105  myOrigattrib = "rewired_from"_UTsh;
106  if (true && ( (true&&!(((getCreateorigattrib()==0)))) ) )
107  graph->evalOpParm(myOrigattrib, nodeidx, "origattrib", 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_RewireParms *)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, myGrouptype);
139  break;
140  case 2:
141  coerceValue(value, myAttrib);
142  break;
143  case 3:
144  coerceValue(value, myDeleteTargetPointAttrib);
145  break;
146  case 4:
147  coerceValue(value, myRecurse);
148  break;
149  case 5:
150  coerceValue(value, myKeepunusedpoints);
151  break;
152  case 6:
153  coerceValue(value, myCreateorigattrib);
154  break;
155  case 7:
156  coerceValue(value, myOrigattrib);
157  break;
158 
159  }
160  }
161 
162  bool isParmColorRamp(exint idx) const override
163  {
164  switch (idx)
165  {
166 
167  }
168  return false;
169  }
170 
171  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
192  { doGetParmValue(idx, instance, value); }
193 
194  template <typename T>
195  void
196  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
197  {
198  if (idx.size() < 1)
199  return;
200  UT_ASSERT(idx.size() == instance.size()+1);
201  if (idx.size() != instance.size()+1)
202  return;
203  switch (idx[0])
204  {
205  case 0:
206  coerceValue(myGroup, ( ( value ) ));
207  break;
208  case 1:
209  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
210  break;
211  case 2:
212  coerceValue(myAttrib, ( ( value ) ));
213  break;
214  case 3:
215  coerceValue(myDeleteTargetPointAttrib, ( ( value ) ));
216  break;
217  case 4:
218  coerceValue(myRecurse, ( ( value ) ));
219  break;
220  case 5:
221  coerceValue(myKeepunusedpoints, ( ( value ) ));
222  break;
223  case 6:
224  coerceValue(myCreateorigattrib, ( ( value ) ));
225  break;
226  case 7:
227  coerceValue(myOrigattrib, ( ( value ) ));
228  break;
229 
230  }
231  }
232 
233  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
254  { doSetParmValue(idx, instance, value); }
255 
256  exint getNestNumParms(TempIndex idx) const override
257  {
258  if (idx.size() == 0)
259  return 8;
260  switch (idx[0])
261  {
262 
263  }
264  // Invalid
265  return 0;
266  }
267 
268  const char *getNestParmName(TempIndex fieldnum) const override
269  {
270  if (fieldnum.size() < 1)
271  return 0;
272  switch (fieldnum[0])
273  {
274  case 0:
275  return "group";
276  case 1:
277  return "grouptype";
278  case 2:
279  return "attrib";
280  case 3:
281  return "deletetargetpointattrib";
282  case 4:
283  return "recurse";
284  case 5:
285  return "keepunusedpoints";
286  case 6:
287  return "createorigattrib";
288  case 7:
289  return "origattrib";
290 
291  }
292  return 0;
293  }
294 
295  ParmType getNestParmType(TempIndex fieldnum) const override
296  {
297  if (fieldnum.size() < 1)
298  return PARM_UNSUPPORTED;
299  switch (fieldnum[0])
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_INTEGER;
305  case 2:
306  return PARM_STRING;
307  case 3:
308  return PARM_INTEGER;
309  case 4:
310  return PARM_INTEGER;
311  case 5:
312  return PARM_INTEGER;
313  case 6:
314  return PARM_INTEGER;
315  case 7:
316  return PARM_STRING;
317 
318  }
319  return PARM_UNSUPPORTED;
320  }
321 
322  // Boiler plate to load individual types.
323  static void loadData(UT_IStream &is, int64 &v)
324  { is.bread(&v, 1); }
325  static void loadData(UT_IStream &is, bool &v)
326  { int64 iv; is.bread(&iv, 1); v = iv; }
327  static void loadData(UT_IStream &is, fpreal64 &v)
328  { is.bread<fpreal64>(&v, 1); }
329  static void loadData(UT_IStream &is, UT_Vector2D &v)
330  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
331  static void loadData(UT_IStream &is, UT_Vector3D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
333  is.bread<fpreal64>(&v.z(), 1); }
334  static void loadData(UT_IStream &is, UT_Vector4D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
336  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
337  static void loadData(UT_IStream &is, UT_Matrix2D &v)
338  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix3D &v)
340  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix4D &v)
342  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Vector2I &v)
344  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
345  static void loadData(UT_IStream &is, UT_Vector3I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
347  is.bread<int64>(&v.z(), 1); }
348  static void loadData(UT_IStream &is, UT_Vector4I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
350  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
352  { is.bread(v); }
354  { UT_StringHolder rampdata;
355  loadData(is, rampdata);
356  if (rampdata.isstring())
357  {
358  v.reset(new UT_Ramp());
359  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
360  v->load(istr);
361  }
362  else v.reset();
363  }
366  loadData(is, data);
367  if (data.isstring())
368  {
369  // Find the data type.
370  const char *colon = UT_StringWrap(data).findChar(':');
371  if (colon)
372  {
373  int typelen = colon - data.buffer();
375  type.strncpy(data.buffer(), typelen);
376  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
377 
378  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
379  }
380  }
381  else v.reset();
382  }
383 
384  static void saveData(std::ostream &os, int64 v)
385  { UTwrite(os, &v); }
386  static void saveData(std::ostream &os, bool v)
387  { int64 iv = v; UTwrite(os, &iv); }
388  static void saveData(std::ostream &os, fpreal64 v)
389  { UTwrite<fpreal64>(os, &v); }
390  static void saveData(std::ostream &os, UT_Vector2D v)
391  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
392  static void saveData(std::ostream &os, UT_Vector3D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
394  UTwrite<fpreal64>(os, &v.z()); }
395  static void saveData(std::ostream &os, UT_Vector4D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
397  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
398  static void saveData(std::ostream &os, UT_Matrix2D v)
400  static void saveData(std::ostream &os, UT_Matrix3D v)
402  static void saveData(std::ostream &os, UT_Matrix4D v)
404  static void saveData(std::ostream &os, UT_StringHolder s)
405  { UT_StringWrap(s).saveBinary(os); }
406  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
408  UT_OStringStream ostr;
409  if (s) s->save(ostr);
410  result = ostr.str();
411  saveData(os, result);
412  }
413  static void saveData(std::ostream &os, PRM_DataItemHandle s)
415  UT_OStringStream ostr;
416  if (s)
417  {
418  ostr << s->getDataTypeToken();
419  ostr << ":";
420  s->saveBinary(ostr);
421  }
422  result = ostr.str();
423  saveData(os, result);
424  }
425 
426 
427  void save(std::ostream &os) const
428  {
429  int32 v = version();
430  UTwrite(os, &v);
431  saveData(os, myGroup);
432  saveData(os, myGrouptype);
433  saveData(os, myAttrib);
434  saveData(os, myDeleteTargetPointAttrib);
435  saveData(os, myRecurse);
436  saveData(os, myKeepunusedpoints);
437  saveData(os, myCreateorigattrib);
438  saveData(os, myOrigattrib);
439 
440  }
441 
442  bool load(UT_IStream &is)
443  {
444  int32 v;
445  is.bread(&v, 1);
446  if (version() != v)
447  {
448  // Fail incompatible versions
449  return false;
450  }
451  loadData(is, myGroup);
452  loadData(is, myGrouptype);
453  loadData(is, myAttrib);
454  loadData(is, myDeleteTargetPointAttrib);
455  loadData(is, myRecurse);
456  loadData(is, myKeepunusedpoints);
457  loadData(is, myCreateorigattrib);
458  loadData(is, myOrigattrib);
459 
460  return true;
461  }
462 
463  const UT_StringHolder & getGroup() const { return myGroup; }
464  void setGroup(const UT_StringHolder & val) { myGroup = val; }
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return getGroup();
470  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
471  return result;
472  }
473  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
474  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return getGrouptype();
479  int64 result;
480  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
481  return Grouptype(result);
482  }
483  const UT_StringHolder & getAttrib() const { return myAttrib; }
484  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getAttrib();
490  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
491  return result;
492  }
493  bool getDeleteTargetPointAttrib() const { return myDeleteTargetPointAttrib; }
494  void setDeleteTargetPointAttrib(bool val) { myDeleteTargetPointAttrib = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getDeleteTargetPointAttrib();
499  bool result;
500  OP_Utils::evalOpParm(result, thissop, "deletetargetpointattrib", cookparms.getCookTime(), 0);
501  return result;
502  }
503  bool getRecurse() const { return myRecurse; }
504  void setRecurse(bool val) { myRecurse = val; }
505  bool opRecurse(const SOP_NodeVerb::CookParms &cookparms) const
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getRecurse();
509  bool result;
510  OP_Utils::evalOpParm(result, thissop, "recurse", cookparms.getCookTime(), 0);
511  return result;
512  }
513  bool getKeepunusedpoints() const { return myKeepunusedpoints; }
514  void setKeepunusedpoints(bool val) { myKeepunusedpoints = val; }
515  bool opKeepunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getKeepunusedpoints();
519  bool result;
520  OP_Utils::evalOpParm(result, thissop, "keepunusedpoints", cookparms.getCookTime(), 0);
521  return result;
522  }
523  bool getCreateorigattrib() const { return myCreateorigattrib; }
524  void setCreateorigattrib(bool val) { myCreateorigattrib = val; }
525  bool opCreateorigattrib(const SOP_NodeVerb::CookParms &cookparms) const
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getCreateorigattrib();
529  bool result;
530  OP_Utils::evalOpParm(result, thissop, "createorigattrib", cookparms.getCookTime(), 0);
531  return result;
532  }
533  const UT_StringHolder & getOrigattrib() const { return myOrigattrib; }
534  void setOrigattrib(const UT_StringHolder & val) { myOrigattrib = val; }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getOrigattrib();
540  OP_Utils::evalOpParm(result, thissop, "origattrib", cookparms.getCookTime(), 0);
541  return result;
542  }
543 
544 private:
545  UT_StringHolder myGroup;
546  int64 myGrouptype;
547  UT_StringHolder myAttrib;
548  bool myDeleteTargetPointAttrib;
549  bool myRecurse;
550  bool myKeepunusedpoints;
551  bool myCreateorigattrib;
552  UT_StringHolder myOrigattrib;
553 
554 };
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_StringHolder opOrigattrib(const SOP_NodeVerb::CookParms &cookparms) const
bool isParmColorRamp(exint idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool opKeepunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setAttrib(const UT_StringHolder &val)
void setKeepunusedpoints(bool val)
bool operator==(const SOP_RewireParms &src) const
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
static void loadData(UT_IStream &is, fpreal64 &v)
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
bool load(UT_IStream &is)
bool getDeleteTargetPointAttrib() const
void setGrouptype(Grouptype val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint getNestNumParms(TempIndex idx) const override
bool opDeleteTargetPointAttrib(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
bool opRecurse(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void copyFrom(const OP_NodeParms *src) override
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
**But if you need a result
Definition: thread.h:613
bool getCreateorigattrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Vector4D v)
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.
bool opCreateorigattrib(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
double fpreal64
Definition: SYS_Types.h:201
static void saveData(std::ostream &os, UT_StringHolder s)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
UT_StringHolder opGroup(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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const UT_StringHolder & getAttrib() const
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
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
static int version()
bool getKeepunusedpoints() const
void setDeleteTargetPointAttrib(bool val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
void setCreateorigattrib(bool val)
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
Grouptype getGrouptype() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) 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
void setOrigattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
void setRecurse(bool val)
static void saveData(std::ostream &os, UT_Vector3D v)
const UT_StringHolder & getOrigattrib() const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
bool getRecurse() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void save(std::ostream &os) const
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, fpreal64 v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
type
Definition: core.h:1059
bool operator!=(const SOP_RewireParms &src) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
static void loadData(UT_IStream &is, UT_Vector3I &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, bool v)
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