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 <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 namespace SOP_RewireEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
28  VERTICES,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33 
35  getToken(Grouptype enum_value)
36  {
37  using namespace UT::Literal;
38  switch (enum_value) {
39  case Grouptype::GUESS: return "guess"_sh;
40  case Grouptype::VERTICES: return "vertices"_sh;
41  case Grouptype::EDGES: return "edges"_sh;
42  case Grouptype::POINTS: return "points"_sh;
43  case Grouptype::PRIMS: return "prims"_sh;
44  default: UT_ASSERT(false); return ""_sh;
45  }
46  }
47 
48 }
49 
50 
52 {
53 public:
54  static int version() { return 1; }
55 
57  {
58  myGroup = ""_UTsh;
59  myGrouptype = 0;
60  myAttrib = "rewire_to"_UTsh;
61  myDeleteTargetPointAttrib = false;
62  myRecurse = false;
63  myKeepunusedpoints = false;
64  myCreateorigattrib = false;
65  myOrigattrib = "rewired_from"_UTsh;
66 
67  }
68 
69  explicit SOP_RewireParms(const SOP_RewireParms &) = default;
70  SOP_RewireParms &operator=(const SOP_RewireParms &) = default;
71  SOP_RewireParms(SOP_RewireParms &&) noexcept = default;
72  SOP_RewireParms &operator=(SOP_RewireParms &&) noexcept = default;
73 
74  ~SOP_RewireParms() override {}
75 
76  bool operator==(const SOP_RewireParms &src) const
77  {
78  if (myGroup != src.myGroup) return false;
79  if (myGrouptype != src.myGrouptype) return false;
80  if (myAttrib != src.myAttrib) return false;
81  if (myDeleteTargetPointAttrib != src.myDeleteTargetPointAttrib) return false;
82  if (myRecurse != src.myRecurse) return false;
83  if (myKeepunusedpoints != src.myKeepunusedpoints) return false;
84  if (myCreateorigattrib != src.myCreateorigattrib) return false;
85  if (myOrigattrib != src.myOrigattrib) return false;
86 
87 
88  if (baseGetSignature() != src.baseGetSignature()) return false;
89 
90  return true;
91  }
92  bool operator!=(const SOP_RewireParms &src) const
93  {
94  return !operator==(src);
95  }
97 
98 
99 
100  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
101  {
102  myGroup = ""_UTsh;
103  if (true)
104  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
105  myGrouptype = 0;
106  if (true)
107  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, graph->isDirect()?nullptr:depnode);
108  myAttrib = "rewire_to"_UTsh;
109  if (true)
110  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, graph->isDirect()?nullptr:depnode);
111  myDeleteTargetPointAttrib = false;
112  if (true)
113  graph->evalOpParm(myDeleteTargetPointAttrib, nodeidx, "deletetargetpointattrib", time, graph->isDirect()?nullptr:depnode);
114  myRecurse = false;
115  if (true)
116  graph->evalOpParm(myRecurse, nodeidx, "recurse", time, graph->isDirect()?nullptr:depnode);
117  myKeepunusedpoints = false;
118  if (true)
119  graph->evalOpParm(myKeepunusedpoints, nodeidx, "keepunusedpoints", time, graph->isDirect()?nullptr:depnode);
120  myCreateorigattrib = false;
121  if (true)
122  graph->evalOpParm(myCreateorigattrib, nodeidx, "createorigattrib", time, graph->isDirect()?nullptr:depnode);
123  myOrigattrib = "rewired_from"_UTsh;
124  if (true && ( (true&&!(((getCreateorigattrib()==0)))) ) )
125  graph->evalOpParm(myOrigattrib, nodeidx, "origattrib", time, graph->isDirect()?nullptr:depnode);
126 
127  }
128 
129 
130  void loadFromOpSubclass(const LoadParms &loadparms) override
131  {
132  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
133  }
134 
135 
136  void copyFrom(const OP_NodeParms *src) override
137  {
138  *this = *((const SOP_RewireParms *)src);
139  }
140 
141  template <typename T>
142  void
143  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
144  {
145  if (idx.size() < 1)
146  return;
147  UT_ASSERT(idx.size() == instance.size()+1);
148  if (idx.size() != instance.size()+1)
149  return;
150  switch (idx[0])
151  {
152  case 0:
153  coerceValue(value, myGroup);
154  break;
155  case 1:
156  coerceValue(value, myGrouptype);
157  break;
158  case 2:
159  coerceValue(value, myAttrib);
160  break;
161  case 3:
162  coerceValue(value, myDeleteTargetPointAttrib);
163  break;
164  case 4:
165  coerceValue(value, myRecurse);
166  break;
167  case 5:
168  coerceValue(value, myKeepunusedpoints);
169  break;
170  case 6:
171  coerceValue(value, myCreateorigattrib);
172  break;
173  case 7:
174  coerceValue(value, myOrigattrib);
175  break;
176 
177  }
178  }
179 
180  bool isParmColorRamp(exint idx) const override
181  {
182  switch (idx)
183  {
184 
185  }
186  return false;
187  }
188 
189  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
192  { doGetParmValue(idx, instance, value); }
193  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
210  { doGetParmValue(idx, instance, value); }
211 
212  template <typename T>
213  void
214  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
215  {
216  if (idx.size() < 1)
217  return;
218  UT_ASSERT(idx.size() == instance.size()+1);
219  if (idx.size() != instance.size()+1)
220  return;
221  switch (idx[0])
222  {
223  case 0:
224  coerceValue(myGroup, ( ( value ) ));
225  break;
226  case 1:
227  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
228  break;
229  case 2:
230  coerceValue(myAttrib, ( ( value ) ));
231  break;
232  case 3:
233  coerceValue(myDeleteTargetPointAttrib, ( ( value ) ));
234  break;
235  case 4:
236  coerceValue(myRecurse, ( ( value ) ));
237  break;
238  case 5:
239  coerceValue(myKeepunusedpoints, ( ( value ) ));
240  break;
241  case 6:
242  coerceValue(myCreateorigattrib, ( ( value ) ));
243  break;
244  case 7:
245  coerceValue(myOrigattrib, ( ( value ) ));
246  break;
247 
248  }
249  }
250 
251  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
272  { doSetParmValue(idx, instance, value); }
273 
274  exint getNestNumParms(TempIndex idx) const override
275  {
276  if (idx.size() == 0)
277  return 8;
278  switch (idx[0])
279  {
280 
281  }
282  // Invalid
283  return 0;
284  }
285 
286  const char *getNestParmName(TempIndex fieldnum) const override
287  {
288  if (fieldnum.size() < 1)
289  return 0;
290  switch (fieldnum[0])
291  {
292  case 0:
293  return "group";
294  case 1:
295  return "grouptype";
296  case 2:
297  return "attrib";
298  case 3:
299  return "deletetargetpointattrib";
300  case 4:
301  return "recurse";
302  case 5:
303  return "keepunusedpoints";
304  case 6:
305  return "createorigattrib";
306  case 7:
307  return "origattrib";
308 
309  }
310  return 0;
311  }
312 
313  ParmType getNestParmType(TempIndex fieldnum) const override
314  {
315  if (fieldnum.size() < 1)
316  return PARM_UNSUPPORTED;
317  switch (fieldnum[0])
318  {
319  case 0:
320  return PARM_STRING;
321  case 1:
322  return PARM_INTEGER;
323  case 2:
324  return PARM_STRING;
325  case 3:
326  return PARM_INTEGER;
327  case 4:
328  return PARM_INTEGER;
329  case 5:
330  return PARM_INTEGER;
331  case 6:
332  return PARM_INTEGER;
333  case 7:
334  return PARM_STRING;
335 
336  }
337  return PARM_UNSUPPORTED;
338  }
339 
340  // Boiler plate to load individual types.
341  static void loadData(UT_IStream &is, int64 &v)
342  { is.bread(&v, 1); }
343  static void loadData(UT_IStream &is, bool &v)
344  { int64 iv; is.bread(&iv, 1); v = iv; }
345  static void loadData(UT_IStream &is, fpreal64 &v)
346  { is.bread<fpreal64>(&v, 1); }
347  static void loadData(UT_IStream &is, UT_Vector2D &v)
348  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
349  static void loadData(UT_IStream &is, UT_Vector3D &v)
350  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
351  is.bread<fpreal64>(&v.z(), 1); }
352  static void loadData(UT_IStream &is, UT_Vector4D &v)
353  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
354  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
355  static void loadData(UT_IStream &is, UT_Matrix2D &v)
356  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
357  static void loadData(UT_IStream &is, UT_Matrix3D &v)
358  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
359  static void loadData(UT_IStream &is, UT_Matrix4D &v)
360  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
361  static void loadData(UT_IStream &is, UT_Vector2I &v)
362  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
363  static void loadData(UT_IStream &is, UT_Vector3I &v)
364  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
365  is.bread<int64>(&v.z(), 1); }
366  static void loadData(UT_IStream &is, UT_Vector4I &v)
367  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
368  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
370  { is.bread(v); }
372  { UT_StringHolder rampdata;
373  loadData(is, rampdata);
374  if (rampdata.isstring())
375  {
376  v.reset(new UT_Ramp());
377  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
378  v->load(istr);
379  }
380  else v.reset();
381  }
384  loadData(is, data);
385  if (data.isstring())
386  {
387  // Find the data type.
388  const char *colon = UT_StringWrap(data).findChar(':');
389  if (colon)
390  {
391  int typelen = colon - data.buffer();
393  type.strncpy(data.buffer(), typelen);
394  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
395 
396  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
397  }
398  }
399  else v.reset();
400  }
401 
402  static void saveData(std::ostream &os, int64 v)
403  { UTwrite(os, &v); }
404  static void saveData(std::ostream &os, bool v)
405  { int64 iv = v; UTwrite(os, &iv); }
406  static void saveData(std::ostream &os, fpreal64 v)
407  { UTwrite<fpreal64>(os, &v); }
408  static void saveData(std::ostream &os, UT_Vector2D v)
409  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
410  static void saveData(std::ostream &os, UT_Vector3D v)
411  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
412  UTwrite<fpreal64>(os, &v.z()); }
413  static void saveData(std::ostream &os, UT_Vector4D v)
414  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
415  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
416  static void saveData(std::ostream &os, UT_Matrix2D v)
418  static void saveData(std::ostream &os, UT_Matrix3D v)
420  static void saveData(std::ostream &os, UT_Matrix4D v)
422  static void saveData(std::ostream &os, UT_StringHolder s)
423  { UT_StringWrap(s).saveBinary(os); }
424  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
426  UT_OStringStream ostr;
427  if (s) s->save(ostr);
428  result = ostr.str();
429  saveData(os, result);
430  }
431  static void saveData(std::ostream &os, PRM_DataItemHandle s)
433  UT_OStringStream ostr;
434  if (s)
435  {
436  ostr << s->getDataTypeToken();
437  ostr << ":";
438  s->saveBinary(ostr);
439  }
440  result = ostr.str();
441  saveData(os, result);
442  }
443 
444 
445  void save(std::ostream &os) const
446  {
447  int32 v = version();
448  UTwrite(os, &v);
449  saveData(os, myGroup);
450  saveData(os, myGrouptype);
451  saveData(os, myAttrib);
452  saveData(os, myDeleteTargetPointAttrib);
453  saveData(os, myRecurse);
454  saveData(os, myKeepunusedpoints);
455  saveData(os, myCreateorigattrib);
456  saveData(os, myOrigattrib);
457 
458  }
459 
460  bool load(UT_IStream &is)
461  {
462  int32 v;
463  is.bread(&v, 1);
464  if (version() != v)
465  {
466  // Fail incompatible versions
467  return false;
468  }
469  loadData(is, myGroup);
470  loadData(is, myGrouptype);
471  loadData(is, myAttrib);
472  loadData(is, myDeleteTargetPointAttrib);
473  loadData(is, myRecurse);
474  loadData(is, myKeepunusedpoints);
475  loadData(is, myCreateorigattrib);
476  loadData(is, myOrigattrib);
477 
478  return true;
479  }
480 
481  const UT_StringHolder & getGroup() const { return myGroup; }
482  void setGroup(const UT_StringHolder & val) { myGroup = val; }
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getGroup();
488  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
489  return result;
490  }
491  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
492  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return getGrouptype();
497  int64 result;
498  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
499  return Grouptype(result);
500  }
501  const UT_StringHolder & getAttrib() const { return myAttrib; }
502  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getAttrib();
508  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
509  return result;
510  }
511  bool getDeleteTargetPointAttrib() const { return myDeleteTargetPointAttrib; }
512  void setDeleteTargetPointAttrib(bool val) { myDeleteTargetPointAttrib = val; }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getDeleteTargetPointAttrib();
517  bool result;
518  OP_Utils::evalOpParm(result, thissop, "deletetargetpointattrib", cookparms.getCookTime(), 0);
519  return result;
520  }
521  bool getRecurse() const { return myRecurse; }
522  void setRecurse(bool val) { myRecurse = val; }
523  bool opRecurse(const SOP_NodeVerb::CookParms &cookparms) const
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getRecurse();
527  bool result;
528  OP_Utils::evalOpParm(result, thissop, "recurse", cookparms.getCookTime(), 0);
529  return result;
530  }
531  bool getKeepunusedpoints() const { return myKeepunusedpoints; }
532  void setKeepunusedpoints(bool val) { myKeepunusedpoints = val; }
533  bool opKeepunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getKeepunusedpoints();
537  bool result;
538  OP_Utils::evalOpParm(result, thissop, "keepunusedpoints", cookparms.getCookTime(), 0);
539  return result;
540  }
541  bool getCreateorigattrib() const { return myCreateorigattrib; }
542  void setCreateorigattrib(bool val) { myCreateorigattrib = val; }
543  bool opCreateorigattrib(const SOP_NodeVerb::CookParms &cookparms) const
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getCreateorigattrib();
547  bool result;
548  OP_Utils::evalOpParm(result, thissop, "createorigattrib", cookparms.getCookTime(), 0);
549  return result;
550  }
551  const UT_StringHolder & getOrigattrib() const { return myOrigattrib; }
552  void setOrigattrib(const UT_StringHolder & val) { myOrigattrib = val; }
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getOrigattrib();
558  OP_Utils::evalOpParm(result, thissop, "origattrib", cookparms.getCookTime(), 0);
559  return result;
560  }
561 
562 private:
563  UT_StringHolder myGroup;
564  int64 myGrouptype;
565  UT_StringHolder myAttrib;
566  bool myDeleteTargetPointAttrib;
567  bool myRecurse;
568  bool myKeepunusedpoints;
569  bool myCreateorigattrib;
570  UT_StringHolder myOrigattrib;
571 
572 };
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
type
Definition: core.h:556
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
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:63
bool load(UT_IStream &is)
bool getDeleteTargetPointAttrib() const
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
bool getCreateorigattrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
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
SYS_FORCE_INLINE UT_StringHolder getToken(Grouptype enum_value)
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
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:303
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)
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:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void save(std::ostream &os) const
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
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
bool operator!=(const SOP_RewireParms &src) const
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)
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