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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 namespace SOP_TransformByAttribEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
28  BREAKPOINTS,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGroup = ""_sh;
44  myGrouptype = 0;
45  myXformattrib = "xform"_sh;
46  myInvertXform = false;
47  myAttribs = "*"_sh;
48  myUpdateaffectednmls = true;
49  myVlength = true;
50  myDeletexform = true;
51 
52  }
53 
54  explicit SOP_TransformByAttribParms(const SOP_TransformByAttribParms &) = default;
55 
57 
59  {
60  if (myGroup != src.myGroup) return false;
61  if (myGrouptype != src.myGrouptype) return false;
62  if (myXformattrib != src.myXformattrib) return false;
63  if (myInvertXform != src.myInvertXform) return false;
64  if (myAttribs != src.myAttribs) return false;
65  if (myUpdateaffectednmls != src.myUpdateaffectednmls) return false;
66  if (myVlength != src.myVlength) return false;
67  if (myDeletexform != src.myDeletexform) return false;
68 
69  return true;
70  }
72  {
73  return !operator==(src);
74  }
76 
77 
78 
79  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
80  {
81  myGroup = ""_sh;
82  if (true)
83  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
84  myGrouptype = 0;
85  if (true)
86  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
87  myXformattrib = "xform"_sh;
88  if (true)
89  graph->evalOpParm(myXformattrib, nodeidx, "xformattrib", time, 0);
90  myInvertXform = false;
91  if (true)
92  graph->evalOpParm(myInvertXform, nodeidx, "invertxform", time, 0);
93  myAttribs = "*"_sh;
94  if (true)
95  graph->evalOpParm(myAttribs, nodeidx, "attribs", time, 0);
96  myUpdateaffectednmls = true;
97  if (true)
98  graph->evalOpParm(myUpdateaffectednmls, nodeidx, "updateaffectednmls", time, 0);
99  myVlength = true;
100  if (true)
101  graph->evalOpParm(myVlength, nodeidx, "vlength", time, 0);
102  myDeletexform = true;
103  if (true)
104  graph->evalOpParm(myDeletexform, nodeidx, "deletexform", time, 0);
105 
106  }
107 
108 
109  void loadFromOpSubclass(const LoadParms &loadparms) override
110  {
111  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
112  }
113 
114 
115  void copyFrom(const SOP_NodeParms *src) override
116  {
117  *this = *((const SOP_TransformByAttribParms *)src);
118  }
119 
120  template <typename T>
121  void
122  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
123  {
124  if (idx.size() < 1)
125  return;
126  UT_ASSERT(idx.size() == instance.size()+1);
127  if (idx.size() != instance.size()+1)
128  return;
129  switch (idx[0])
130  {
131  case 0:
132  coerceValue(value, myGroup);
133  break;
134  case 1:
135  coerceValue(value, myGrouptype);
136  break;
137  case 2:
138  coerceValue(value, myXformattrib);
139  break;
140  case 3:
141  coerceValue(value, myInvertXform);
142  break;
143  case 4:
144  coerceValue(value, myAttribs);
145  break;
146  case 5:
147  coerceValue(value, myUpdateaffectednmls);
148  break;
149  case 6:
150  coerceValue(value, myVlength);
151  break;
152  case 7:
153  coerceValue(value, myDeletexform);
154  break;
155 
156  }
157  }
158 
159  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
180  { doGetParmValue(idx, instance, value); }
181 
182  template <typename T>
183  void
184  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
185  {
186  if (idx.size() < 1)
187  return;
188  UT_ASSERT(idx.size() == instance.size()+1);
189  if (idx.size() != instance.size()+1)
190  return;
191  switch (idx[0])
192  {
193  case 0:
194  coerceValue(myGroup, value);
195  break;
196  case 1:
197  coerceValue(myGrouptype, value);
198  break;
199  case 2:
200  coerceValue(myXformattrib, value);
201  break;
202  case 3:
203  coerceValue(myInvertXform, value);
204  break;
205  case 4:
206  coerceValue(myAttribs, value);
207  break;
208  case 5:
209  coerceValue(myUpdateaffectednmls, value);
210  break;
211  case 6:
212  coerceValue(myVlength, value);
213  break;
214  case 7:
215  coerceValue(myDeletexform, value);
216  break;
217 
218  }
219  }
220 
221  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
242  { doSetParmValue(idx, instance, value); }
243 
244  exint getNestNumParms(TempIndex idx) const override
245  {
246  if (idx.size() == 0)
247  return 8;
248  switch (idx[0])
249  {
250 
251  }
252  // Invalid
253  return 0;
254  }
255 
256  const char *getNestParmName(TempIndex fieldnum) const override
257  {
258  if (fieldnum.size() < 1)
259  return 0;
260  switch (fieldnum[0])
261  {
262  case 0:
263  return "group";
264  case 1:
265  return "grouptype";
266  case 2:
267  return "xformattrib";
268  case 3:
269  return "invertxform";
270  case 4:
271  return "attribs";
272  case 5:
273  return "updateaffectednmls";
274  case 6:
275  return "vlength";
276  case 7:
277  return "deletexform";
278 
279  }
280  return 0;
281  }
282 
283  ParmType getNestParmType(TempIndex fieldnum) const override
284  {
285  if (fieldnum.size() < 1)
286  return PARM_UNSUPPORTED;
287  switch (fieldnum[0])
288  {
289  case 0:
290  return PARM_STRING;
291  case 1:
292  return PARM_INTEGER;
293  case 2:
294  return PARM_STRING;
295  case 3:
296  return PARM_INTEGER;
297  case 4:
298  return PARM_STRING;
299  case 5:
300  return PARM_INTEGER;
301  case 6:
302  return PARM_INTEGER;
303  case 7:
304  return PARM_INTEGER;
305 
306  }
307  return PARM_UNSUPPORTED;
308  }
309 
310  // Boiler plate to load individual types.
311  static void loadData(UT_IStream &is, int64 &v)
312  { is.bread(&v, 1); }
313  static void loadData(UT_IStream &is, bool &v)
314  { int64 iv; is.bread(&iv, 1); v = iv; }
315  static void loadData(UT_IStream &is, fpreal64 &v)
316  { is.bread<fpreal64>(&v, 1); }
317  static void loadData(UT_IStream &is, UT_Vector2D &v)
318  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
319  static void loadData(UT_IStream &is, UT_Vector3D &v)
320  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
321  is.bread<fpreal64>(&v.z(), 1); }
322  static void loadData(UT_IStream &is, UT_Vector4D &v)
323  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
324  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
325  static void loadData(UT_IStream &is, UT_Matrix2D &v)
326  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
327  static void loadData(UT_IStream &is, UT_Matrix3D &v)
328  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
329  static void loadData(UT_IStream &is, UT_Matrix4D &v)
330  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
331  static void loadData(UT_IStream &is, UT_Vector2I &v)
332  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector3I &v)
334  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
335  is.bread<int64>(&v.z(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector4I &v)
337  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
338  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
340  { is.bread(v); }
342  { UT_StringHolder rampdata;
343  loadData(is, rampdata);
344  if (rampdata.isstring())
345  {
346  v.reset(new UT_Ramp());
347  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
348  v->load(istr);
349  }
350  else v.reset();
351  }
354  loadData(is, data);
355  if (data.isstring())
356  {
357  // Find the data type.
358  const char *colon = UT_StringWrap(data).findChar(':');
359  if (colon)
360  {
361  int typelen = colon - data.buffer();
363  type.strncpy(data.buffer(), typelen);
364  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
365 
366  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
367  }
368  }
369  else v.reset();
370  }
371 
372  static void saveData(std::ostream &os, int64 v)
373  { UTwrite(os, &v); }
374  static void saveData(std::ostream &os, bool v)
375  { int64 iv = v; UTwrite(os, &iv); }
376  static void saveData(std::ostream &os, fpreal64 v)
377  { UTwrite<fpreal64>(os, &v); }
378  static void saveData(std::ostream &os, UT_Vector2D v)
379  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
380  static void saveData(std::ostream &os, UT_Vector3D v)
381  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
382  UTwrite<fpreal64>(os, &v.z()); }
383  static void saveData(std::ostream &os, UT_Vector4D v)
384  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
385  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
386  static void saveData(std::ostream &os, UT_Matrix2D v)
388  static void saveData(std::ostream &os, UT_Matrix3D v)
390  static void saveData(std::ostream &os, UT_Matrix4D v)
392  static void saveData(std::ostream &os, UT_StringHolder s)
393  { UT_StringWrap(s).saveBinary(os); }
394  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
396  UT_OStringStream ostr;
397  if (s) s->save(ostr);
398  result = ostr.str();
399  saveData(os, result);
400  }
401  static void saveData(std::ostream &os, PRM_DataItemHandle s)
403  UT_OStringStream ostr;
404  if (s)
405  {
406  ostr << s->getDataTypeToken();
407  ostr << ":";
408  s->saveBinary(ostr);
409  }
410  result = ostr.str();
411  saveData(os, result);
412  }
413 
414 
415  void save(std::ostream &os) const
416  {
417  int32 v = version();
418  UTwrite(os, &v);
419  saveData(os, myGroup);
420  saveData(os, myGrouptype);
421  saveData(os, myXformattrib);
422  saveData(os, myInvertXform);
423  saveData(os, myAttribs);
424  saveData(os, myUpdateaffectednmls);
425  saveData(os, myVlength);
426  saveData(os, myDeletexform);
427 
428  }
429 
430  bool load(UT_IStream &is)
431  {
432  int32 v;
433  is.bread(&v, 1);
434  if (version() != v)
435  {
436  // Fail incompatible versions
437  return false;
438  }
439  loadData(is, myGroup);
440  loadData(is, myGrouptype);
441  loadData(is, myXformattrib);
442  loadData(is, myInvertXform);
443  loadData(is, myAttribs);
444  loadData(is, myUpdateaffectednmls);
445  loadData(is, myVlength);
446  loadData(is, myDeletexform);
447 
448  return true;
449  }
450 
451  const UT_StringHolder & getGroup() const { return myGroup; }
452  void setGroup(const UT_StringHolder & val) { myGroup = val; }
454  {
455  SOP_Node *thissop = cookparms.getNode();
456  if (!thissop) return getGroup();
458  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
459  return result;
460  }
461  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
462  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
464  {
465  SOP_Node *thissop = cookparms.getNode();
466  if (!thissop) return getGrouptype();
467  int64 result;
468  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
469  return Grouptype(result);
470  }
471  const UT_StringHolder & getXformattrib() const { return myXformattrib; }
472  void setXformattrib(const UT_StringHolder & val) { myXformattrib = val; }
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return getXformattrib();
478  OP_Utils::evalOpParm(result, thissop, "xformattrib", cookparms.getCookTime(), 0);
479  return result;
480  }
481  bool getInvertXform() const { return myInvertXform; }
482  void setInvertXform(bool val) { myInvertXform = val; }
483  bool opInvertXform(const SOP_NodeVerb::CookParms &cookparms) const
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getInvertXform();
487  bool result;
488  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
489  return result;
490  }
491  const UT_StringHolder & getAttribs() const { return myAttribs; }
492  void setAttribs(const UT_StringHolder & val) { myAttribs = val; }
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return getAttribs();
498  OP_Utils::evalOpParm(result, thissop, "attribs", cookparms.getCookTime(), 0);
499  return result;
500  }
501  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
502  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
503  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getUpdateaffectednmls();
507  bool result;
508  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
509  return result;
510  }
511  bool getVlength() const { return myVlength; }
512  void setVlength(bool val) { myVlength = val; }
513  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getVlength();
517  bool result;
518  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
519  return result;
520  }
521  bool getDeletexform() const { return myDeletexform; }
522  void setDeletexform(bool val) { myDeletexform = val; }
523  bool opDeletexform(const SOP_NodeVerb::CookParms &cookparms) const
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getDeletexform();
527  bool result;
528  OP_Utils::evalOpParm(result, thissop, "deletexform", cookparms.getCookTime(), 0);
529  return result;
530  }
531 
532 private:
533  UT_StringHolder myGroup;
534  int64 myGrouptype;
535  UT_StringHolder myXformattrib;
536  bool myInvertXform;
537  UT_StringHolder myAttribs;
538  bool myUpdateaffectednmls;
539  bool myVlength;
540  bool myDeletexform;
541 
542 };
GLdouble s
Definition: glew.h:1390
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
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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
void copyFrom(const SOP_NodeParms *src) override
const UT_StringHolder & getXformattrib() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
bool operator!=(const SOP_TransformByAttribParms &src) const
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Matrix4D v)
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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
const GLdouble * v
Definition: glew.h:1391
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
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
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_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)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
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)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
const GLfloat * c
Definition: glew.h:16296
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)
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:294
static void saveData(std::ostream &os, int64 v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, fpreal64 v)
fpreal64 fpreal
Definition: SYS_Types.h:277
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, UT_StringHolder s)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
exint getNestNumParms(TempIndex idx) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
GLuint64EXT * result
Definition: glew.h:14007
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:1368
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void save(std::ostream &os) const
static void loadData(UT_IStream &is, int64 &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
UT_StringHolder opXformattrib(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
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
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)
type
Definition: core.h:528