HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribSwap.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_AttribSwapEnums
22 {
23  enum class Method
24  {
25  SWAP = 0,
26  COPY,
27  MOVE
28  };
29  enum class Class
30  {
31  DETAIL = 0,
32  PRIMITIVE,
33  POINT,
34  VERTEX
35  };
36  enum class Typeinfo
37  {
38  SOURCE = 0,
39  DEST
40  };
41 }
42 
43 
45 {
46 public:
47  static int version() { return 1; }
48  struct Numswaps
49  {
50  bool enable;
56 
57 
59  {
60  enable = false;
61  method = 0;
62  _class = 2;
63  srcattribs = ""_sh;
64  dstattribs = ""_sh;
65  typeinfo = 1;
66 
67  }
68 
69  bool operator==(const Numswaps &src) const
70  {
71  if (enable != src.enable) return false;
72  if (method != src.method) return false;
73  if (_class != src._class) return false;
74  if (srcattribs != src.srcattribs) return false;
75  if (dstattribs != src.dstattribs) return false;
76  if (typeinfo != src.typeinfo) return false;
77 
78  return true;
79  }
80  bool operator!=(const Numswaps &src) const
81  {
82  return !operator==(src);
83  }
84 
85  };
86 
88  {
90 
91  buf.strcat("[ ");
92  for (int i = 0; i < list.entries(); i++)
93  {
94  if (i)
95  buf.strcat(", ");
96  buf.strcat("( ");
97  buf.append("");
98  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
99  buf.append(", ");
100  buf.appendSprintf("%d", (int) list(i).method);
101  buf.append(", ");
102  buf.appendSprintf("%d", (int) list(i)._class);
103  buf.append(", ");
104  { UT_String tmp; tmp = UT_StringWrap(list(i).srcattribs).makeQuotedString('"'); buf.strcat(tmp); }
105  buf.append(", ");
106  { UT_String tmp; tmp = UT_StringWrap(list(i).dstattribs).makeQuotedString('"'); buf.strcat(tmp); }
107  buf.append(", ");
108  buf.appendSprintf("%d", (int) list(i).typeinfo);
109 
110  buf.strcat(" )");
111  }
112  buf.strcat(" ]");
113 
114  UT_StringHolder result = buf;
115  return result;
116  }
117 
119  {
120 
121  }
122 
123  explicit SOP_AttribSwapParms(const SOP_AttribSwapParms &) = default;
124 
125  virtual ~SOP_AttribSwapParms() {}
126 
127  bool operator==(const SOP_AttribSwapParms &src) const
128  {
129  if (myNumswaps != src.myNumswaps) return false;
130 
131  return true;
132  }
133  bool operator!=(const SOP_AttribSwapParms &src) const
134  {
135  return !operator==(src);
136  }
140 
141 
142 
143  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
144  {
145  if (true)
146  {
147  int64 length;
148  OP_Utils::evalOpParm(length, node, "numswaps", time, 0);
149  myNumswaps.entries(length);
150  for (exint i = 0; i < length; i++)
151  {
152  int parmidx = i+1;
153  auto && _curentry = myNumswaps(i);
154  (void) _curentry;
155  if (true)
156  OP_Utils::evalOpParmInst(myNumswaps(i).enable, node, "enable#", &parmidx, time, 0);
157  else myNumswaps(i).enable = false;
158  if (true)
159  OP_Utils::evalOpParmInst(myNumswaps(i).method, node, "method#", &parmidx, time, 0);
160  else myNumswaps(i).method = 0;
161  if (true)
162  OP_Utils::evalOpParmInst(myNumswaps(i)._class, node, "class#", &parmidx, time, 0);
163  else myNumswaps(i)._class = 2;
164  if (true)
165  OP_Utils::evalOpParmInst(myNumswaps(i).srcattribs, node, "srcattribs#", &parmidx, time, 0);
166  else myNumswaps(i).srcattribs = ""_sh;
167  if (true)
168  OP_Utils::evalOpParmInst(myNumswaps(i).dstattribs, node, "dstattribs#", &parmidx, time, 0);
169  else myNumswaps(i).dstattribs = ""_sh;
170  if (true)
171  OP_Utils::evalOpParmInst(myNumswaps(i).typeinfo, node, "typeinfo#", &parmidx, time, 0);
172  else myNumswaps(i).typeinfo = 1;
173 
174  }
175  }
176  else
177  myNumswaps.clear();
178 
179  }
180 
181 
182  virtual void loadFromOpSubclass(const LoadParms &loadparms)
183  {
184  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
185  }
186 
187 
188  virtual void copyFrom(const SOP_NodeParms *src)
189  {
190  *this = *((const SOP_AttribSwapParms *)src);
191  }
192 
193  template <typename T>
194  void
195  doGetParmValue(exint idx, T &value) const
196  {
197  switch (idx)
198  {
199 
200  }
201  }
202 
203  void getParmValue(exint idx, exint &value) const
204  { doGetParmValue(idx, value); }
205  void getParmValue(exint idx, fpreal &value) const
206  { doGetParmValue(idx, value); }
208  { doGetParmValue(idx, value); }
210  { doGetParmValue(idx, value); }
212  { doGetParmValue(idx, value); }
214  { doGetParmValue(idx, value); }
216  { doGetParmValue(idx, value); }
218  { doGetParmValue(idx, value); }
220  { doGetParmValue(idx, value); }
222  { doGetParmValue(idx, value); }
224  { doGetParmValue(idx, value); }
225 
226  template <typename T>
227  void
228  doSetParmValue(exint idx, const T &value)
229  {
230  switch (idx)
231  {
232 
233  }
234  }
235 
236  void setParmValue(exint idx, const exint &value)
237  { doSetParmValue(idx, value); }
238  void setParmValue(exint idx, const fpreal &value)
239  { doSetParmValue(idx, value); }
240  void setParmValue(exint idx, const UT_Vector2D &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const UT_Vector3D &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Vector4D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Matrix2D &value)
247  { doSetParmValue(idx, value); }
248  void setParmValue(exint idx, const UT_Matrix3D &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const UT_Matrix4D &value)
251  { doSetParmValue(idx, value); }
253  { doSetParmValue(idx, value); }
255  { doSetParmValue(idx, value); }
257  { doSetParmValue(idx, value); }
258 
259  virtual exint getNumParms() const
260  {
261  return 1;
262  }
263 
264  virtual const char *getParmName(exint fieldnum) const
265  {
266  switch (fieldnum)
267  {
268  case 0:
269  return "numswaps";
270 
271  }
272  return 0;
273  }
274 
275  virtual ParmType getParmType(exint fieldnum) const
276  {
277  switch (fieldnum)
278  {
279 
280  }
281  return PARM_UNSUPPORTED;
282  }
283 
284  // Boiler plate to load individual types.
285  static void loadData(UT_IStream &is, int64 &v)
286  { is.bread(&v, 1); }
287  static void loadData(UT_IStream &is, bool &v)
288  { int64 iv; is.bread(&iv, 1); v = iv; }
289  static void loadData(UT_IStream &is, fpreal64 &v)
290  { is.bread<fpreal64>(&v, 1); }
291  static void loadData(UT_IStream &is, UT_Vector2D &v)
292  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
293  static void loadData(UT_IStream &is, UT_Vector3D &v)
294  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
295  is.bread<fpreal64>(&v.z(), 1); }
296  static void loadData(UT_IStream &is, UT_Vector4D &v)
297  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
298  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
299  static void loadData(UT_IStream &is, UT_Matrix2D &v)
300  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
301  static void loadData(UT_IStream &is, UT_Matrix3D &v)
302  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
303  static void loadData(UT_IStream &is, UT_Matrix4D &v)
304  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
305  static void loadData(UT_IStream &is, UT_Vector2I &v)
306  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
307  static void loadData(UT_IStream &is, UT_Vector3I &v)
308  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
309  is.bread<int64>(&v.z(), 1); }
310  static void loadData(UT_IStream &is, UT_Vector4I &v)
311  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
312  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
314  { is.bread(v); }
316  { UT_StringHolder rampdata;
317  loadData(is, rampdata);
318  if (rampdata.isstring())
319  {
320  v.reset(new UT_Ramp());
321  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
322  v->load(istr);
323  }
324  else v.reset();
325  }
328  loadData(is, data);
329  if (data.isstring())
330  {
331  // Find the data type.
332  char *colon = UT_StringWrap(data).findChar(':');
333  if (colon)
334  {
335  int typelen = colon - data.buffer();
337  type.strncpy(data.buffer(), typelen);
338  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
339 
340  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
341  }
342  }
343  else v.reset();
344  }
345 
346  static void saveData(std::ostream &os, int64 v)
347  { UTwrite(os, &v); }
348  static void saveData(std::ostream &os, bool v)
349  { int64 iv = v; UTwrite(os, &iv); }
350  static void saveData(std::ostream &os, fpreal64 v)
351  { UTwrite<fpreal64>(os, &v); }
352  static void saveData(std::ostream &os, UT_Vector2D v)
353  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
354  static void saveData(std::ostream &os, UT_Vector3D v)
355  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
356  UTwrite<fpreal64>(os, &v.z()); }
357  static void saveData(std::ostream &os, UT_Vector4D v)
358  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
359  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
360  static void saveData(std::ostream &os, UT_Matrix2D v)
362  static void saveData(std::ostream &os, UT_Matrix3D v)
364  static void saveData(std::ostream &os, UT_Matrix4D v)
366  static void saveData(std::ostream &os, UT_StringHolder s)
367  { UT_StringWrap(s).saveBinary(os); }
368  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
369  { UT_StringHolder result;
370  UT_OStringStream ostr;
371  if (s) s->save(ostr);
372  result = ostr.str();
373  saveData(os, result);
374  }
375  static void saveData(std::ostream &os, PRM_DataItemHandle s)
376  { UT_StringHolder result;
377  UT_OStringStream ostr;
378  if (s)
379  {
380  ostr << s->getDataTypeToken();
381  ostr << ":";
382  s->saveBinary(ostr);
383  }
384  result = ostr.str();
385  saveData(os, result);
386  }
387 
388 
389  void save(std::ostream &os) const
390  {
391  int32 v = version();
392  UTwrite(os, &v);
393  {
394  int64 length = myNumswaps.entries();
395  UTwrite(os, &length);
396  for (exint i = 0; i < length; i++)
397  {
398  saveData(os, myNumswaps(i).enable);
399  saveData(os, myNumswaps(i).method);
400  saveData(os, myNumswaps(i)._class);
401  saveData(os, myNumswaps(i).srcattribs);
402  saveData(os, myNumswaps(i).dstattribs);
403  saveData(os, myNumswaps(i).typeinfo);
404 
405  }
406  }
407 
408  }
409 
410  bool load(UT_IStream &is)
411  {
412  int32 v;
413  is.bread(&v, 1);
414  if (version() != v)
415  {
416  // Fail incompatible versions
417  return false;
418  }
419  {
420  int64 length;
421  is.read(&length, 1);
422  myNumswaps.entries(length);
423  for (exint i = 0; i < length; i++)
424  {
425  loadData(is, myNumswaps(i).enable);
426  loadData(is, myNumswaps(i).method);
427  loadData(is, myNumswaps(i)._class);
428  loadData(is, myNumswaps(i).srcattribs);
429  loadData(is, myNumswaps(i).dstattribs);
430  loadData(is, myNumswaps(i).typeinfo);
431 
432  }
433  }
434 
435  return true;
436  }
437 
438  const UT_Array<Numswaps> &getNumswaps() const { return myNumswaps; }
439  void setNumswaps(const UT_Array<Numswaps> &val) { myNumswaps = val; }
440  exint opNumswaps(const SOP_NodeVerb::CookParms &cookparms) const
441  {
442  SOP_Node *thissop = cookparms.getNode();
443  if (!thissop) return getNumswaps().entries();
444  exint result;
445  OP_Utils::evalOpParm(result, thissop, "numswaps", cookparms.getCookTime(), 0);
446  return result;
447  }
448  bool opNumswaps_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
449  {
450  SOP_Node *thissop = cookparms.getNode();
451  if (!thissop) return (myNumswaps(_idx).enable);
452  int _parmidx = _idx + 1;
453  bool result;
454  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
455  return (result);
456  }
457  int64 opNumswaps_method(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
458  {
459  SOP_Node *thissop = cookparms.getNode();
460  if (!thissop) return (myNumswaps(_idx).method);
461  int _parmidx = _idx + 1;
462  int64 result;
463  OP_Utils::evalOpParmInst(result, thissop, "method#", &_parmidx, cookparms.getCookTime(), 0);
464  return (result);
465  }
466  int64 opNumswaps__class(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
467  {
468  SOP_Node *thissop = cookparms.getNode();
469  if (!thissop) return (myNumswaps(_idx)._class);
470  int _parmidx = _idx + 1;
471  int64 result;
472  OP_Utils::evalOpParmInst(result, thissop, "class#", &_parmidx, cookparms.getCookTime(), 0);
473  return (result);
474  }
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return (myNumswaps(_idx).srcattribs);
479  int _parmidx = _idx + 1;
480  UT_StringHolder result;
481  OP_Utils::evalOpParmInst(result, thissop, "srcattribs#", &_parmidx, cookparms.getCookTime(), 0);
482  return (result);
483  }
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return (myNumswaps(_idx).dstattribs);
488  int _parmidx = _idx + 1;
489  UT_StringHolder result;
490  OP_Utils::evalOpParmInst(result, thissop, "dstattribs#", &_parmidx, cookparms.getCookTime(), 0);
491  return (result);
492  }
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return (myNumswaps(_idx).typeinfo);
497  int _parmidx = _idx + 1;
498  int64 result;
499  OP_Utils::evalOpParmInst(result, thissop, "typeinfo#", &_parmidx, cookparms.getCookTime(), 0);
500  return (result);
501  }
502 
503 
504 private:
505  UT_Array<Numswaps> myNumswaps;
506 
507 };
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
bool load(UT_IStream &is)
void setParmValue(exint idx, const UT_StringHolder &value)
static void saveData(std::ostream &os, bool v)
void getParmValue(exint idx, UT_Vector4D &value) const
void getParmValue(exint idx, PRM_DataItemHandle &value) const
void getParmValue(exint idx, exint &value) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
static void saveData(std::ostream &os, int64 v)
int64 opNumswaps__class(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
int64 opNumswaps_typeinfo(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
void setParmValue(exint idx, const fpreal &value)
static void saveData(std::ostream &os, UT_Matrix2D v)
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void getParmValue(exint idx, UT_Vector3D &value) const
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
UT_StringHolder createString(const UT_Array< Numswaps > &list) const
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
SYS_FORCE_INLINE const char * buffer() const
virtual const char * getParmName(exint fieldnum) const
static void saveData(std::ostream &os, UT_Matrix4D v)
T & x(void)
Definition: UT_Vector2.h:285
void getParmValue(exint idx, UT_Vector2D &value) const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void getParmValue(exint idx, fpreal &value) 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:498
bool operator==(const Numswaps &src) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
png_uint_32 i
Definition: png.h:2877
void doGetParmValue(exint idx, T &value) const
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setNumswaps(const UT_Array< Numswaps > &val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector2D &v)
long long int64
Definition: SYS_Types.h:107
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const UT_Array< Numswaps > & getNumswaps() const
bool operator!=(const Numswaps &src) const
void getParmValue(exint idx, UT_StringHolder &value) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
void getParmValue(exint idx, UT_Matrix3D &value) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
bool opNumswaps_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
double fpreal64
Definition: SYS_Types.h:192
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:284
int method
Definition: png.h:1924
void setParmValue(exint idx, const UT_Matrix2D &value)
void save(std::ostream &os) const
bool operator==(const SOP_AttribSwapParms &src) const
void doSetParmValue(exint idx, const T &value)
int64 opNumswaps_method(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setParmValue(exint idx, const UT_Matrix4D &value)
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, fpreal64 v)
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void saveData(std::ostream &os, UT_Matrix3D v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2539
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:453
void setParmValue(exint idx, const UT_Matrix3D &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
virtual void loadFromOpSubclass(const LoadParms &loadparms)
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
bool operator!=(const SOP_AttribSwapParms &src) const
static void saveData(std::ostream &os, UT_Vector4D v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
SYS_FORCE_INLINE void append(char character)
static void saveData(std::ostream &os, UT_StringHolder s)
void getParmValue(exint idx, UT_Matrix2D &value) const
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void loadData(UT_IStream &is, UT_Vector2I &v)
#define SOP_API
Definition: SOP_API.h:10
void setParmValue(exint idx, const UT_Vector4D &value)
void setParmValue(exint idx, const UT_Vector3D &value)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
T & x(void)
Definition: UT_Vector4.h:375
static void saveData(std::ostream &os, UT_Vector2D v)
void getParmValue(exint idx, UT_Matrix4D &value) const
T & y(void)
Definition: UT_Vector2.h:287
UT_StringHolder opNumswaps_dstattribs(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
virtual ParmType getParmType(exint fieldnum) const
static void saveData(std::ostream &os, UT_Vector3D v)
GLboolean r
Definition: glcorearb.h:1221
void setParmValue(exint idx, const UT_Vector2D &value)
T & w(void)
Definition: UT_Vector4.h:381
virtual exint getNumParms() const
virtual void copyFrom(const SOP_NodeParms *src)
static void loadData(UT_IStream &is, fpreal64 &v)
UT_StringHolder opNumswaps_srcattribs(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void setParmValue(exint idx, const exint &value)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
static void loadData(UT_IStream &is, bool &v)
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
exint opNumswaps(const SOP_NodeVerb::CookParms &cookparms) const
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:794
GLenum src
Definition: glcorearb.h:1792