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