HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_TransformByAttrib.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_TransformByAttribEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
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  myXformattrib = "xform"_UTsh;
46  myInvertXform = false;
47  myAttribs = "*"_UTsh;
48  myUpdateaffectednmls = true;
49  myVlength = true;
50  myDeletexform = true;
51 
52  }
53 
54  explicit SOP_TransformByAttribParms(const SOP_TransformByAttribParms &) = default;
57  SOP_TransformByAttribParms &operator=(SOP_TransformByAttribParms &&) noexcept = default;
58 
60 
62  {
63  if (myGroup != src.myGroup) return false;
64  if (myGrouptype != src.myGrouptype) return false;
65  if (myXformattrib != src.myXformattrib) return false;
66  if (myInvertXform != src.myInvertXform) return false;
67  if (myAttribs != src.myAttribs) return false;
68  if (myUpdateaffectednmls != src.myUpdateaffectednmls) return false;
69  if (myVlength != src.myVlength) return false;
70  if (myDeletexform != src.myDeletexform) return false;
71 
72  return true;
73  }
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  myXformattrib = "xform"_UTsh;
91  if (true)
92  graph->evalOpParm(myXformattrib, nodeidx, "xformattrib", time, 0);
93  myInvertXform = false;
94  if (true)
95  graph->evalOpParm(myInvertXform, nodeidx, "invertxform", time, 0);
96  myAttribs = "*"_UTsh;
97  if (true)
98  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, 0);
99  myUpdateaffectednmls = true;
100  if (true)
101  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, 0);
102  myVlength = true;
103  if (true)
104  graph->evalOpParm(myVlength, nodeidx, "vlength", time, 0);
105  myDeletexform = true;
106  if (true)
107  graph->evalOpParm(myDeletexform, nodeidx, "deletexform", 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_TransformByAttribParms *)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, myXformattrib);
142  break;
143  case 3:
144  coerceValue(value, myInvertXform);
145  break;
146  case 4:
147  coerceValue(value, myAttribs);
148  break;
149  case 5:
150  coerceValue(value, myUpdateaffectednmls);
151  break;
152  case 6:
153  coerceValue(value, myVlength);
154  break;
155  case 7:
156  coerceValue(value, myDeletexform);
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(myXformattrib, ( ( value ) ));
213  break;
214  case 3:
215  coerceValue(myInvertXform, ( ( value ) ));
216  break;
217  case 4:
218  coerceValue(myAttribs, ( ( value ) ));
219  break;
220  case 5:
221  coerceValue(myUpdateaffectednmls, ( ( value ) ));
222  break;
223  case 6:
224  coerceValue(myVlength, ( ( value ) ));
225  break;
226  case 7:
227  coerceValue(myDeletexform, ( ( 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 "xformattrib";
280  case 3:
281  return "invertxform";
282  case 4:
283  return "attribs";
284  case 5:
285  return "updateaffectednmls";
286  case 6:
287  return "vlength";
288  case 7:
289  return "deletexform";
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_STRING;
311  case 5:
312  return PARM_INTEGER;
313  case 6:
314  return PARM_INTEGER;
315  case 7:
316  return PARM_INTEGER;
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, myXformattrib);
434  saveData(os, myInvertXform);
435  saveData(os, myAttribs);
436  saveData(os, myUpdateaffectednmls);
437  saveData(os, myVlength);
438  saveData(os, myDeletexform);
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, myXformattrib);
454  loadData(is, myInvertXform);
455  loadData(is, myAttribs);
456  loadData(is, myUpdateaffectednmls);
457  loadData(is, myVlength);
458  loadData(is, myDeletexform);
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 & getXformattrib() const { return myXformattrib; }
484  void setXformattrib(const UT_StringHolder & val) { myXformattrib = val; }
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getXformattrib();
490  OP_Utils::evalOpParm(result, thissop, "xformattrib", cookparms.getCookTime(), 0);
491  return result;
492  }
493  bool getInvertXform() const { return myInvertXform; }
494  void setInvertXform(bool val) { myInvertXform = val; }
495  bool opInvertXform(const SOP_NodeVerb::CookParms &cookparms) const
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getInvertXform();
499  bool result;
500  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
501  return result;
502  }
503  const UT_StringHolder & getAttribs() const { return myAttribs; }
504  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
506  {
507  SOP_Node *thissop = cookparms.getNode();
508  if (!thissop) return getAttribs();
510  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
511  return result;
512  }
513  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
514  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
515  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
516  {
517  SOP_Node *thissop = cookparms.getNode();
518  if (!thissop) return getUpdateaffectednmls();
519  bool result;
520  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
521  return result;
522  }
523  bool getVlength() const { return myVlength; }
524  void setVlength(bool val) { myVlength = val; }
525  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
526  {
527  SOP_Node *thissop = cookparms.getNode();
528  if (!thissop) return getVlength();
529  bool result;
530  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
531  return result;
532  }
533  bool getDeletexform() const { return myDeletexform; }
534  void setDeletexform(bool val) { myDeletexform = val; }
535  bool opDeletexform(const SOP_NodeVerb::CookParms &cookparms) const
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getDeletexform();
539  bool result;
540  OP_Utils::evalOpParm(result, thissop, "deletexform", cookparms.getCookTime(), 0);
541  return result;
542  }
543 
544 private:
545  UT_StringHolder myGroup;
546  int64 myGrouptype;
547  UT_StringHolder myXformattrib;
548  bool myInvertXform;
549  UT_StringHolder myAttribs;
550  bool myUpdateaffectednmls;
551  bool myVlength;
552  bool myDeletexform;
553 
554 };
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void loadData(UT_IStream &is, UT_Vector3D &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
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const UT_StringHolder & getAttribs() const
const UT_StringHolder & getXformattrib() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
bool operator!=(const SOP_TransformByAttribParms &src) const
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
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void loadFromOpSubclass(const LoadParms &loadparms) override
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
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, bool &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool isParmColorRamp(exint idx) const override
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
static void saveData(std::ostream &os, bool v)
bool opInvertXform(const SOP_NodeVerb::CookParms &cookparms) const
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_Vector3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
UT_StringHolder opAttribs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, fpreal64 &v)
ParmType getNestParmType(TempIndex fieldnum) const override
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
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_Matrix2D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_Vector2D &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool opDeletexform(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
static void saveData(std::ostream &os, int64 v)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_Matrix2D v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void saveData(std::ostream &os, fpreal64 v)
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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) 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
static void saveData(std::ostream &os, UT_Vector2D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
void copyFrom(const OP_NodeParms *src) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
void save(std::ostream &os) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, int64 &v)
type
Definition: core.h:1059
UT_StringHolder opXformattrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
bool operator==(const SOP_TransformByAttribParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setAttribs(const UT_StringHolder &val)
void setXformattrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
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