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 <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_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 
88  if (baseGetSignature() != src.baseGetSignature()) return false;
89 
90  return true;
91  }
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  myXformattrib = "xform"_UTsh;
109  if (true)
110  graph->evalOpParm(myXformattrib, nodeidx, "xformattrib", time, graph->isDirect()?nullptr:depnode);
111  myInvertXform = false;
112  if (true)
113  graph->evalOpParm(myInvertXform, nodeidx, "invertxform", time, graph->isDirect()?nullptr:depnode);
114  myAttribs = "*"_UTsh;
115  if (true)
116  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, graph->isDirect()?nullptr:depnode);
117  myUpdateaffectednmls = true;
118  if (true)
119  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, graph->isDirect()?nullptr:depnode);
120  myVlength = true;
121  if (true)
122  graph->evalOpParm(myVlength, nodeidx, "vlength", time, graph->isDirect()?nullptr:depnode);
123  myDeletexform = true;
124  if (true)
125  graph->evalOpParm(myDeletexform, nodeidx, "deletexform", 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_TransformByAttribParms *)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, myXformattrib);
160  break;
161  case 3:
162  coerceValue(value, myInvertXform);
163  break;
164  case 4:
165  coerceValue(value, myAttribs);
166  break;
167  case 5:
168  coerceValue(value, myUpdateaffectednmls);
169  break;
170  case 6:
171  coerceValue(value, myVlength);
172  break;
173  case 7:
174  coerceValue(value, myDeletexform);
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(myXformattrib, ( ( value ) ));
231  break;
232  case 3:
233  coerceValue(myInvertXform, ( ( value ) ));
234  break;
235  case 4:
236  coerceValue(myAttribs, ( ( value ) ));
237  break;
238  case 5:
239  coerceValue(myUpdateaffectednmls, ( ( value ) ));
240  break;
241  case 6:
242  coerceValue(myVlength, ( ( value ) ));
243  break;
244  case 7:
245  coerceValue(myDeletexform, ( ( 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 "xformattrib";
298  case 3:
299  return "invertxform";
300  case 4:
301  return "attribs";
302  case 5:
303  return "updateaffectednmls";
304  case 6:
305  return "vlength";
306  case 7:
307  return "deletexform";
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_STRING;
329  case 5:
330  return PARM_INTEGER;
331  case 6:
332  return PARM_INTEGER;
333  case 7:
334  return PARM_INTEGER;
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, myXformattrib);
452  saveData(os, myInvertXform);
453  saveData(os, myAttribs);
454  saveData(os, myUpdateaffectednmls);
455  saveData(os, myVlength);
456  saveData(os, myDeletexform);
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, myXformattrib);
472  loadData(is, myInvertXform);
473  loadData(is, myAttribs);
474  loadData(is, myUpdateaffectednmls);
475  loadData(is, myVlength);
476  loadData(is, myDeletexform);
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 & getXformattrib() const { return myXformattrib; }
502  void setXformattrib(const UT_StringHolder & val) { myXformattrib = val; }
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getXformattrib();
508  OP_Utils::evalOpParm(result, thissop, "xformattrib", cookparms.getCookTime(), 0);
509  return result;
510  }
511  bool getInvertXform() const { return myInvertXform; }
512  void setInvertXform(bool val) { myInvertXform = val; }
513  bool opInvertXform(const SOP_NodeVerb::CookParms &cookparms) const
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getInvertXform();
517  bool result;
518  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
519  return result;
520  }
521  const UT_StringHolder & getAttribs() const { return myAttribs; }
522  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getAttribs();
528  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
529  return result;
530  }
531  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
532  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
533  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getUpdateaffectednmls();
537  bool result;
538  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
539  return result;
540  }
541  bool getVlength() const { return myVlength; }
542  void setVlength(bool val) { myVlength = val; }
543  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getVlength();
547  bool result;
548  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
549  return result;
550  }
551  bool getDeletexform() const { return myDeletexform; }
552  void setDeletexform(bool val) { myDeletexform = val; }
553  bool opDeletexform(const SOP_NodeVerb::CookParms &cookparms) const
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getDeletexform();
557  bool result;
558  OP_Utils::evalOpParm(result, thissop, "deletexform", cookparms.getCookTime(), 0);
559  return result;
560  }
561 
562 private:
563  UT_StringHolder myGroup;
564  int64 myGrouptype;
565  UT_StringHolder myXformattrib;
566  bool myInvertXform;
567  UT_StringHolder myAttribs;
568  bool myUpdateaffectednmls;
569  bool myVlength;
570  bool myDeletexform;
571 
572 };
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
type
Definition: core.h:556
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:63
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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: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 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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
UT_StringHolder opXformattrib(const SOP_NodeVerb::CookParms &cookparms) const
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