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 
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::BREAKPOINTS: return "breakpoints"_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  myXformattrib = "xform"_UTsh;
61  myInvertXform = false;
62  myAttribs = "*"_UTsh;
63  myUpdateaffectednmls = true;
64  myVlength = true;
65  myDeletexform = true;
66 
67  }
68 
69  explicit SOP_TransformByAttribParms(const SOP_TransformByAttribParms &) = default;
72  SOP_TransformByAttribParms &operator=(SOP_TransformByAttribParms &&) noexcept = default;
73 
75 
77  {
78  if (myGroup != src.myGroup) return false;
79  if (myGrouptype != src.myGrouptype) return false;
80  if (myXformattrib != src.myXformattrib) return false;
81  if (myInvertXform != src.myInvertXform) return false;
82  if (myAttribs != src.myAttribs) return false;
83  if (myUpdateaffectednmls != src.myUpdateaffectednmls) return false;
84  if (myVlength != src.myVlength) return false;
85  if (myDeletexform != src.myDeletexform) return false;
86 
87  return true;
88  }
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  myXformattrib = "xform"_UTsh;
106  if (true)
107  graph->evalOpParm(myXformattrib, nodeidx, "xformattrib", time, 0);
108  myInvertXform = false;
109  if (true)
110  graph->evalOpParm(myInvertXform, nodeidx, "invertxform", time, 0);
111  myAttribs = "*"_UTsh;
112  if (true)
113  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, 0);
114  myUpdateaffectednmls = true;
115  if (true)
116  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, 0);
117  myVlength = true;
118  if (true)
119  graph->evalOpParm(myVlength, nodeidx, "vlength", time, 0);
120  myDeletexform = true;
121  if (true)
122  graph->evalOpParm(myDeletexform, nodeidx, "deletexform", 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_TransformByAttribParms *)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, myXformattrib);
157  break;
158  case 3:
159  coerceValue(value, myInvertXform);
160  break;
161  case 4:
162  coerceValue(value, myAttribs);
163  break;
164  case 5:
165  coerceValue(value, myUpdateaffectednmls);
166  break;
167  case 6:
168  coerceValue(value, myVlength);
169  break;
170  case 7:
171  coerceValue(value, myDeletexform);
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(myXformattrib, ( ( value ) ));
228  break;
229  case 3:
230  coerceValue(myInvertXform, ( ( value ) ));
231  break;
232  case 4:
233  coerceValue(myAttribs, ( ( value ) ));
234  break;
235  case 5:
236  coerceValue(myUpdateaffectednmls, ( ( value ) ));
237  break;
238  case 6:
239  coerceValue(myVlength, ( ( value ) ));
240  break;
241  case 7:
242  coerceValue(myDeletexform, ( ( 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 "xformattrib";
295  case 3:
296  return "invertxform";
297  case 4:
298  return "attribs";
299  case 5:
300  return "updateaffectednmls";
301  case 6:
302  return "vlength";
303  case 7:
304  return "deletexform";
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_STRING;
326  case 5:
327  return PARM_INTEGER;
328  case 6:
329  return PARM_INTEGER;
330  case 7:
331  return PARM_INTEGER;
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, myXformattrib);
449  saveData(os, myInvertXform);
450  saveData(os, myAttribs);
451  saveData(os, myUpdateaffectednmls);
452  saveData(os, myVlength);
453  saveData(os, myDeletexform);
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, myXformattrib);
469  loadData(is, myInvertXform);
470  loadData(is, myAttribs);
471  loadData(is, myUpdateaffectednmls);
472  loadData(is, myVlength);
473  loadData(is, myDeletexform);
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 & getXformattrib() const { return myXformattrib; }
499  void setXformattrib(const UT_StringHolder & val) { myXformattrib = val; }
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return getXformattrib();
505  OP_Utils::evalOpParm(result, thissop, "xformattrib", cookparms.getCookTime(), 0);
506  return result;
507  }
508  bool getInvertXform() const { return myInvertXform; }
509  void setInvertXform(bool val) { myInvertXform = val; }
510  bool opInvertXform(const SOP_NodeVerb::CookParms &cookparms) const
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getInvertXform();
514  bool result;
515  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
516  return result;
517  }
518  const UT_StringHolder & getAttribs() const { return myAttribs; }
519  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getAttribs();
525  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
526  return result;
527  }
528  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
529  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
530  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getUpdateaffectednmls();
534  bool result;
535  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
536  return result;
537  }
538  bool getVlength() const { return myVlength; }
539  void setVlength(bool val) { myVlength = val; }
540  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getVlength();
544  bool result;
545  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
546  return result;
547  }
548  bool getDeletexform() const { return myDeletexform; }
549  void setDeletexform(bool val) { myDeletexform = val; }
550  bool opDeletexform(const SOP_NodeVerb::CookParms &cookparms) const
551  {
552  SOP_Node *thissop = cookparms.getNode();
553  if (!thissop) return getDeletexform();
554  bool result;
555  OP_Utils::evalOpParm(result, thissop, "deletexform", cookparms.getCookTime(), 0);
556  return result;
557  }
558 
559 private:
560  UT_StringHolder myGroup;
561  int64 myGrouptype;
562  UT_StringHolder myXformattrib;
563  bool myInvertXform;
564  UT_StringHolder myAttribs;
565  bool myUpdateaffectednmls;
566  bool myVlength;
567  bool myDeletexform;
568 
569 };
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
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)
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
SYS_FORCE_INLINE UT_StringHolder getToken(Grouptype enum_value)
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
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
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)
static void saveData(std::ostream &os, fpreal64 v)
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 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:1395
#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:97
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
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