HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_TransformAxis.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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_TransformAxisEnums
22 {
23  enum class Grouptype
24  {
25  GUESS = 0,
26  BREAKPOINTS,
27  EDGES,
28  POINTS,
29  PRIMS
30  };
31 }
32 
33 
35 {
36 public:
37  static int version() { return 1; }
38 
40  {
41  myGroup = ""_sh;
42  myGrouptype = 0;
43  myOrig = UT_Vector3D(0,0,0);
44  myDir = UT_Vector3D(0,1,0);
45  myTrans = 0;
46  myRot = 0;
47  myScale = 1;
48  myUpdatenmls = false;
49  myUpdateaffectednmls = true;
50  myVlength = true;
51  myInvertxform = false;
52 
53  }
54 
55  explicit SOP_TransformAxisParms(const SOP_TransformAxisParms &) = default;
56 
58 
60  {
61  if (myGroup != src.myGroup) return false;
62  if (myGrouptype != src.myGrouptype) return false;
63  if (myOrig != src.myOrig) return false;
64  if (myDir != src.myDir) return false;
65  if (myTrans != src.myTrans) return false;
66  if (myRot != src.myRot) return false;
67  if (myScale != src.myScale) return false;
68  if (myUpdatenmls != src.myUpdatenmls) return false;
69  if (myUpdateaffectednmls != src.myUpdateaffectednmls) return false;
70  if (myVlength != src.myVlength) return false;
71  if (myInvertxform != src.myInvertxform) return false;
72 
73  return true;
74  }
76 
77 
78 
79  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
80  {
81  if (true)
82  OP_Utils::evalOpParm(myGroup, node, "group", time, 0);
83  else myGroup = ""_sh;
84  if (true)
85  OP_Utils::evalOpParm(myGrouptype, node, "grouptype", time, 0);
86  else myGrouptype = 0;
87  if (true)
88  OP_Utils::evalOpParm(myOrig, node, "orig", time, 0);
89  else myOrig = UT_Vector3D(0,0,0);
90  if (true)
91  OP_Utils::evalOpParm(myDir, node, "dir", time, 0);
92  else myDir = UT_Vector3D(0,1,0);
93  if (true)
94  OP_Utils::evalOpParm(myTrans, node, "trans", time, 0);
95  else myTrans = 0;
96  if (true)
97  OP_Utils::evalOpParm(myRot, node, "rot", time, 0);
98  else myRot = 0;
99  if (true)
100  OP_Utils::evalOpParm(myScale, node, "scale", time, 0);
101  else myScale = 1;
102  if (true)
103  OP_Utils::evalOpParm(myUpdatenmls, node, "updatenmls", time, 0);
104  else myUpdatenmls = false;
105  if (true && ( (!(((getUpdatenmls()==1)))) ) )
106  OP_Utils::evalOpParm(myUpdateaffectednmls, node, "updateaffectednmls", time, 0);
107  else myUpdateaffectednmls = true;
108  if (true && ( (!(((getUpdatenmls()==1)))) ) )
109  OP_Utils::evalOpParm(myVlength, node, "vlength", time, 0);
110  else myVlength = true;
111  if (true)
112  OP_Utils::evalOpParm(myInvertxform, node, "invertxform", time, 0);
113  else myInvertxform = false;
114 
115  }
116 
117 
118  virtual void loadFromOpSubclass(const LoadParms &loadparms)
119  {
120  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
121  }
122 
123 
124  virtual void copyFrom(const SOP_NodeParms *src)
125  {
126  *this = *((const SOP_TransformAxisParms *)src);
127  }
128 
129  template <typename T>
130  void
131  doGetParmValue(exint idx, T &value) const
132  {
133  switch (idx)
134  {
135  case 0:
136  coerceValue(value, myGroup);
137  break;
138  case 1:
139  coerceValue(value, myGrouptype);
140  break;
141  case 2:
142  coerceValue(value, myOrig);
143  break;
144  case 3:
145  coerceValue(value, myDir);
146  break;
147  case 4:
148  coerceValue(value, myTrans);
149  break;
150  case 5:
151  coerceValue(value, myRot);
152  break;
153  case 6:
154  coerceValue(value, myScale);
155  break;
156  case 7:
157  coerceValue(value, myUpdatenmls);
158  break;
159  case 8:
160  coerceValue(value, myUpdateaffectednmls);
161  break;
162  case 9:
163  coerceValue(value, myVlength);
164  break;
165  case 10:
166  coerceValue(value, myInvertxform);
167  break;
168 
169  }
170  }
171 
172  void getParmValue(exint idx, exint &value) const
173  { doGetParmValue(idx, value); }
174  void getParmValue(exint idx, fpreal &value) const
175  { doGetParmValue(idx, value); }
177  { doGetParmValue(idx, value); }
179  { doGetParmValue(idx, value); }
181  { doGetParmValue(idx, value); }
183  { doGetParmValue(idx, value); }
185  { doGetParmValue(idx, value); }
187  { doGetParmValue(idx, value); }
189  { doGetParmValue(idx, value); }
191  { doGetParmValue(idx, value); }
193  { doGetParmValue(idx, value); }
194 
195  template <typename T>
196  void
197  doSetParmValue(exint idx, const T &value)
198  {
199  switch (idx)
200  {
201  case 0:
202  coerceValue(myGroup, value);
203  break;
204  case 1:
205  coerceValue(myGrouptype, value);
206  break;
207  case 2:
208  coerceValue(myOrig, value);
209  break;
210  case 3:
211  coerceValue(myDir, value);
212  break;
213  case 4:
214  coerceValue(myTrans, value);
215  break;
216  case 5:
217  coerceValue(myRot, value);
218  break;
219  case 6:
220  coerceValue(myScale, value);
221  break;
222  case 7:
223  coerceValue(myUpdatenmls, value);
224  break;
225  case 8:
226  coerceValue(myUpdateaffectednmls, value);
227  break;
228  case 9:
229  coerceValue(myVlength, value);
230  break;
231  case 10:
232  coerceValue(myInvertxform, value);
233  break;
234 
235  }
236  }
237 
238  void setParmValue(exint idx, const exint &value)
239  { doSetParmValue(idx, value); }
240  void setParmValue(exint idx, const fpreal &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const UT_Vector2D &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Vector3D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Vector4D &value)
247  { doSetParmValue(idx, value); }
248  void setParmValue(exint idx, const UT_Matrix2D &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const UT_Matrix3D &value)
251  { doSetParmValue(idx, value); }
252  void setParmValue(exint idx, const UT_Matrix4D &value)
253  { doSetParmValue(idx, value); }
255  { doSetParmValue(idx, value); }
257  { doSetParmValue(idx, value); }
259  { doSetParmValue(idx, value); }
260 
261  virtual exint getNumParms() const
262  {
263  return 11;
264  }
265 
266  virtual const char *getParmName(exint fieldnum) const
267  {
268  switch (fieldnum)
269  {
270  case 0:
271  return "group";
272  case 1:
273  return "grouptype";
274  case 2:
275  return "orig";
276  case 3:
277  return "dir";
278  case 4:
279  return "trans";
280  case 5:
281  return "rot";
282  case 6:
283  return "scale";
284  case 7:
285  return "updatenmls";
286  case 8:
287  return "updateaffectednmls";
288  case 9:
289  return "vlength";
290  case 10:
291  return "invertxform";
292 
293  }
294  return 0;
295  }
296 
297  virtual ParmType getParmType(exint fieldnum) const
298  {
299  switch (fieldnum)
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_INTEGER;
305  case 2:
306  return PARM_VECTOR3;
307  case 3:
308  return PARM_VECTOR3;
309  case 4:
310  return PARM_FLOAT;
311  case 5:
312  return PARM_FLOAT;
313  case 6:
314  return PARM_FLOAT;
315  case 7:
316  return PARM_INTEGER;
317  case 8:
318  return PARM_INTEGER;
319  case 9:
320  return PARM_INTEGER;
321  case 10:
322  return PARM_INTEGER;
323 
324  }
325  return PARM_UNSUPPORTED;
326  }
327 
328  // Boiler plate to load individual types.
329  static void loadData(UT_IStream &is, int64 &v)
330  { is.bread(&v, 1); }
331  static void loadData(UT_IStream &is, bool &v)
332  { int64 iv; is.bread(&iv, 1); v = iv; }
333  static void loadData(UT_IStream &is, fpreal64 &v)
334  { is.bread<fpreal64>(&v, 1); }
335  static void loadData(UT_IStream &is, UT_Vector2D &v)
336  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
337  static void loadData(UT_IStream &is, UT_Vector3D &v)
338  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
339  is.bread<fpreal64>(&v.z(), 1); }
340  static void loadData(UT_IStream &is, UT_Vector4D &v)
341  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
342  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix2D &v)
344  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Matrix3D &v)
346  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
347  static void loadData(UT_IStream &is, UT_Matrix4D &v)
348  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
349  static void loadData(UT_IStream &is, UT_Vector2I &v)
350  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
351  static void loadData(UT_IStream &is, UT_Vector3I &v)
352  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
353  is.bread<int64>(&v.z(), 1); }
354  static void loadData(UT_IStream &is, UT_Vector4I &v)
355  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
356  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
358  { is.bread(v); }
360  { UT_StringHolder rampdata;
361  loadData(is, rampdata);
362  if (rampdata.isstring())
363  {
364  v.reset(new UT_Ramp());
365  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
366  v->load(istr);
367  }
368  else v.reset();
369  }
372  loadData(is, data);
373  if (data.isstring())
374  {
375  // Find the data type.
376  char *colon = UT_StringWrap(data).findChar(':');
377  if (colon)
378  {
379  int typelen = colon - data.buffer();
381  type.strncpy(data.buffer(), typelen);
382  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
383 
384  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
385  }
386  }
387  else v.reset();
388  }
389 
390  static void saveData(std::ostream &os, int64 v)
391  { UTwrite(os, &v); }
392  static void saveData(std::ostream &os, bool v)
393  { int64 iv = v; UTwrite(os, &iv); }
394  static void saveData(std::ostream &os, fpreal64 v)
395  { UTwrite<fpreal64>(os, &v); }
396  static void saveData(std::ostream &os, UT_Vector2D v)
397  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
398  static void saveData(std::ostream &os, UT_Vector3D v)
399  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
400  UTwrite<fpreal64>(os, &v.z()); }
401  static void saveData(std::ostream &os, UT_Vector4D v)
402  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
403  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
404  static void saveData(std::ostream &os, UT_Matrix2D v)
406  static void saveData(std::ostream &os, UT_Matrix3D v)
408  static void saveData(std::ostream &os, UT_Matrix4D v)
410  static void saveData(std::ostream &os, UT_StringHolder s)
411  { UT_StringWrap(s).saveBinary(os); }
412  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
413  { UT_StringHolder result;
414  UT_OStringStream ostr;
415  if (s) s->save(ostr);
416  result = ostr.str();
417  saveData(os, result);
418  }
419  static void saveData(std::ostream &os, PRM_DataItemHandle s)
420  { UT_StringHolder result;
421  UT_OStringStream ostr;
422  if (s)
423  {
424  ostr << s->getDataTypeToken();
425  ostr << ":";
426  s->saveBinary(ostr);
427  }
428  result = ostr.str();
429  saveData(os, result);
430  }
431 
432 
433  void save(std::ostream &os) const
434  {
435  int32 v = version();
436  UTwrite(os, &v);
437  saveData(os, myGroup);
438  saveData(os, myGrouptype);
439  saveData(os, myOrig);
440  saveData(os, myDir);
441  saveData(os, myTrans);
442  saveData(os, myRot);
443  saveData(os, myScale);
444  saveData(os, myUpdatenmls);
445  saveData(os, myUpdateaffectednmls);
446  saveData(os, myVlength);
447  saveData(os, myInvertxform);
448 
449  }
450 
451  bool load(UT_IStream &is)
452  {
453  int32 v;
454  is.bread(&v, 1);
455  if (version() != v)
456  {
457  // Fail incompatible versions
458  return false;
459  }
460  loadData(is, myGroup);
461  loadData(is, myGrouptype);
462  loadData(is, myOrig);
463  loadData(is, myDir);
464  loadData(is, myTrans);
465  loadData(is, myRot);
466  loadData(is, myScale);
467  loadData(is, myUpdatenmls);
468  loadData(is, myUpdateaffectednmls);
469  loadData(is, myVlength);
470  loadData(is, myInvertxform);
471 
472  return true;
473  }
474 
475  const UT_StringHolder & getGroup() const { return myGroup; }
476  void setGroup(const UT_StringHolder & val) { myGroup = val; }
478  {
479  SOP_Node *thissop = cookparms.getNode();
480  if (!thissop) return getGroup();
481  UT_StringHolder result;
482  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
483  return result;
484  }
485  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
486  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
488  {
489  SOP_Node *thissop = cookparms.getNode();
490  if (!thissop) return getGrouptype();
491  int64 result;
492  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
493  return Grouptype(result);
494  }
495  UT_Vector3D getOrig() const { return myOrig; }
496  void setOrig(UT_Vector3D val) { myOrig = val; }
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getOrig();
501  UT_Vector3D result;
502  OP_Utils::evalOpParm(result, thissop, "orig", cookparms.getCookTime(), 0);
503  return result;
504  }
505  UT_Vector3D getDir() const { return myDir; }
506  void setDir(UT_Vector3D val) { myDir = val; }
507  UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getDir();
511  UT_Vector3D result;
512  OP_Utils::evalOpParm(result, thissop, "dir", cookparms.getCookTime(), 0);
513  return result;
514  }
515  fpreal64 getTrans() const { return myTrans; }
516  void setTrans(fpreal64 val) { myTrans = val; }
517  fpreal64 opTrans(const SOP_NodeVerb::CookParms &cookparms) const
518  {
519  SOP_Node *thissop = cookparms.getNode();
520  if (!thissop) return getTrans();
521  fpreal64 result;
522  OP_Utils::evalOpParm(result, thissop, "trans", cookparms.getCookTime(), 0);
523  return result;
524  }
525  fpreal64 getRot() const { return myRot; }
526  void setRot(fpreal64 val) { myRot = val; }
527  fpreal64 opRot(const SOP_NodeVerb::CookParms &cookparms) const
528  {
529  SOP_Node *thissop = cookparms.getNode();
530  if (!thissop) return getRot();
531  fpreal64 result;
532  OP_Utils::evalOpParm(result, thissop, "rot", cookparms.getCookTime(), 0);
533  return result;
534  }
535  fpreal64 getScale() const { return myScale; }
536  void setScale(fpreal64 val) { myScale = val; }
537  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
538  {
539  SOP_Node *thissop = cookparms.getNode();
540  if (!thissop) return getScale();
541  fpreal64 result;
542  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
543  return result;
544  }
545  bool getUpdatenmls() const { return myUpdatenmls; }
546  void setUpdatenmls(bool val) { myUpdatenmls = val; }
547  bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
548  {
549  SOP_Node *thissop = cookparms.getNode();
550  if (!thissop) return getUpdatenmls();
551  bool result;
552  OP_Utils::evalOpParm(result, thissop, "updatenmls", cookparms.getCookTime(), 0);
553  return result;
554  }
555  bool getUpdateaffectednmls() const { return myUpdateaffectednmls; }
556  void setUpdateaffectednmls(bool val) { myUpdateaffectednmls = val; }
557  bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
558  {
559  SOP_Node *thissop = cookparms.getNode();
560  if (!thissop) return getUpdateaffectednmls();
561  bool result;
562  OP_Utils::evalOpParm(result, thissop, "updateaffectednmls", cookparms.getCookTime(), 0);
563  return result;
564  }
565  bool getVlength() const { return myVlength; }
566  void setVlength(bool val) { myVlength = val; }
567  bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
568  {
569  SOP_Node *thissop = cookparms.getNode();
570  if (!thissop) return getVlength();
571  bool result;
572  OP_Utils::evalOpParm(result, thissop, "vlength", cookparms.getCookTime(), 0);
573  return result;
574  }
575  bool getInvertxform() const { return myInvertxform; }
576  void setInvertxform(bool val) { myInvertxform = val; }
577  bool opInvertxform(const SOP_NodeVerb::CookParms &cookparms) const
578  {
579  SOP_Node *thissop = cookparms.getNode();
580  if (!thissop) return getInvertxform();
581  bool result;
582  OP_Utils::evalOpParm(result, thissop, "invertxform", cookparms.getCookTime(), 0);
583  return result;
584  }
585 
586 private:
587  UT_StringHolder myGroup;
588  int64 myGrouptype;
589  UT_Vector3D myOrig;
590  UT_Vector3D myDir;
591  fpreal64 myTrans;
592  fpreal64 myRot;
593  fpreal64 myScale;
594  bool myUpdatenmls;
595  bool myUpdateaffectednmls;
596  bool myVlength;
597  bool myInvertxform;
598 
599 };
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
bool opUpdateaffectednmls(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual ParmType getParmType(exint fieldnum) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
static void saveData(std::ostream &os, PRM_DataItemHandle s)
T & z(void)
Definition: UT_Vector4.h:372
void setGroup(const UT_StringHolder &val)
void doGetParmValue(exint idx, T &value) const
exint bread(int32 *buffer, exint asize=1)
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Vector2D v)
void setGrouptype(Grouptype val)
static void loadData(UT_IStream &is, bool &v)
bool opVlength(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
UT_Vector3D getOrig() const
void getParmValue(exint idx, UT_Vector2D &value) const
T & x(void)
Definition: UT_Vector2.h:284
UT_Vector3D opOrig(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setParmValue(exint idx, const UT_StringHolder &value)
An output stream object that owns its own string buffer storage.
bool opInvertxform(const SOP_NodeVerb::CookParms &cookparms) const
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
bool opUpdatenmls(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_StringHolder &value) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
static void loadData(UT_IStream &is, int64 &v)
long long int64
Definition: SYS_Types.h:106
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
bool operator==(const SOP_TransformAxisParms &src) const
void getParmValue(exint idx, UT_Matrix2D &value) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
SYS_FORCE_INLINE const char * buffer() const
int64 exint
Definition: SYS_Types.h:115
void setOrig(UT_Vector3D val)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:191
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_Vector3D opDir(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void doSetParmValue(exint idx, const T &value)
virtual exint getNumParms() const
UT_Vector3T< fpreal64 > UT_Vector3D
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:34
T & y(void)
Definition: UT_Vector4.h:370
void setParmValue(exint idx, const UT_Vector4D &value)
static void loadData(UT_IStream &is, fpreal64 &v)
void setParmValue(exint idx, const UT_Matrix3D &value)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setParmValue(exint idx, const exint &value)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void getParmValue(exint idx, PRM_DataItemHandle &value) const
static void saveData(std::ostream &os, UT_Matrix4D v)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:269
void strncpy(const char *src, exint maxlen)
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void getParmValue(exint idx, UT_Matrix3D &value) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void getParmValue(exint idx, UT_Vector4D &value) const
virtual void copyFrom(const SOP_NodeParms *src)
void setParmValue(exint idx, const UT_Matrix2D &value)
GLuint GLfloat * val
Definition: glcorearb.h:1607
Vec3< typename MatType::value_type > getScale(const MatType &mat)
Return a Vec3 representing the lengths of the passed matrix's upper 3x3's rows.
Definition: Mat.h:628
const UT_StringHolder & getGroup() const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
#define SOP_API
Definition: SOP_API.h:10
const char * buffer() const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:499
void setParmValue(exint idx, const UT_Vector3D &value)
T & x(void)
Definition: UT_Vector4.h:368
void getParmValue(exint idx, UT_Vector3D &value) const
T & y(void)
Definition: UT_Vector2.h:286
fpreal64 opRot(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, fpreal &value) const
GLboolean r
Definition: glcorearb.h:1221
void setParmValue(exint idx, const UT_Matrix4D &value)
virtual const char * getParmName(exint fieldnum) const
void setParmValue(exint idx, const fpreal &value)
T & w(void)
Definition: UT_Vector4.h:374
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
void setParmValue(exint idx, const UT_Vector2D &value)
void setDir(UT_Vector3D val)
fpreal64 opTrans(const SOP_NodeVerb::CookParms &cookparms) const
fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, UT_Matrix4D &value) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
static void loadData(UT_IStream &is, UT_Matrix3D &v)
SYS_FORCE_INLINE bool isstring() const
void getParmValue(exint idx, exint &value) const
GLenum src
Definition: glcorearb.h:1792
void setParmValue(exint idx, const PRM_DataItemHandle &value)
static void saveData(std::ostream &os, UT_StringHolder s)