HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_SBlend.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 
23 {
24 public:
25  static int version() { return 1; }
26 
28  {
29  myBlend = 0;
30  myDoPos = false;
31  myDoClr = false;
32  myDoNml = false;
33  myDoUVW = false;
34  myDoVoxel = false;
35  myDoSlerp = false;
36  myPtIDAttr = ""_sh;
37  myPrimIDAttr = ""_sh;
38 
39  }
40 
41  explicit SOP_SBlendParms(const SOP_SBlendParms &) = default;
42 
43  virtual ~SOP_SBlendParms() {}
44 
45  bool operator==(const SOP_SBlendParms &src) const
46  {
47  if (myBlend != src.myBlend) return false;
48  if (myDoPos != src.myDoPos) return false;
49  if (myDoClr != src.myDoClr) return false;
50  if (myDoNml != src.myDoNml) return false;
51  if (myDoUVW != src.myDoUVW) return false;
52  if (myDoVoxel != src.myDoVoxel) return false;
53  if (myDoSlerp != src.myDoSlerp) return false;
54  if (myPtIDAttr != src.myPtIDAttr) return false;
55  if (myPrimIDAttr != src.myPrimIDAttr) return false;
56 
57  return true;
58  }
59  bool operator!=(const SOP_SBlendParms &src) const
60  {
61  return !operator==(src);
62  }
63 
64 
65 
66  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
67  {
68  if (true)
69  OP_Utils::evalOpParm(myBlend, node, "blend", time, 0);
70  else myBlend = 0;
71  if (true)
72  OP_Utils::evalOpParm(myDoPos, node, "dopos", time, 0);
73  else myDoPos = false;
74  if (true)
75  OP_Utils::evalOpParm(myDoClr, node, "doclr", time, 0);
76  else myDoClr = false;
77  if (true)
78  OP_Utils::evalOpParm(myDoNml, node, "donml", time, 0);
79  else myDoNml = false;
80  if (true)
81  OP_Utils::evalOpParm(myDoUVW, node, "douvw", time, 0);
82  else myDoUVW = false;
83  if (true)
84  OP_Utils::evalOpParm(myDoVoxel, node, "dovoxel", time, 0);
85  else myDoVoxel = false;
86  if (true)
87  OP_Utils::evalOpParm(myDoSlerp, node, "doslerp", time, 0);
88  else myDoSlerp = false;
89  if (true)
90  OP_Utils::evalOpParm(myPtIDAttr, node, "ptidattr", time, 0);
91  else myPtIDAttr = ""_sh;
92  if (true)
93  OP_Utils::evalOpParm(myPrimIDAttr, node, "primidattr", time, 0);
94  else myPrimIDAttr = ""_sh;
95 
96  }
97 
98 
99  virtual void loadFromOpSubclass(const LoadParms &loadparms)
100  {
101  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
102  }
103 
104 
105  virtual void copyFrom(const SOP_NodeParms *src)
106  {
107  *this = *((const SOP_SBlendParms *)src);
108  }
109 
110  template <typename T>
111  void
112  doGetParmValue(exint idx, T &value) const
113  {
114  switch (idx)
115  {
116  case 0:
117  coerceValue(value, myBlend);
118  break;
119  case 1:
120  coerceValue(value, myDoPos);
121  break;
122  case 2:
123  coerceValue(value, myDoClr);
124  break;
125  case 3:
126  coerceValue(value, myDoNml);
127  break;
128  case 4:
129  coerceValue(value, myDoUVW);
130  break;
131  case 5:
132  coerceValue(value, myDoVoxel);
133  break;
134  case 6:
135  coerceValue(value, myDoSlerp);
136  break;
137  case 7:
138  coerceValue(value, myPtIDAttr);
139  break;
140  case 8:
141  coerceValue(value, myPrimIDAttr);
142  break;
143 
144  }
145  }
146 
147  void getParmValue(exint idx, exint &value) const
148  { doGetParmValue(idx, value); }
149  void getParmValue(exint idx, fpreal &value) const
150  { doGetParmValue(idx, value); }
152  { doGetParmValue(idx, value); }
154  { doGetParmValue(idx, value); }
156  { doGetParmValue(idx, value); }
158  { doGetParmValue(idx, value); }
160  { doGetParmValue(idx, value); }
162  { doGetParmValue(idx, value); }
164  { doGetParmValue(idx, value); }
166  { doGetParmValue(idx, value); }
168  { doGetParmValue(idx, value); }
169 
170  template <typename T>
171  void
172  doSetParmValue(exint idx, const T &value)
173  {
174  switch (idx)
175  {
176  case 0:
177  coerceValue(myBlend, value);
178  break;
179  case 1:
180  coerceValue(myDoPos, value);
181  break;
182  case 2:
183  coerceValue(myDoClr, value);
184  break;
185  case 3:
186  coerceValue(myDoNml, value);
187  break;
188  case 4:
189  coerceValue(myDoUVW, value);
190  break;
191  case 5:
192  coerceValue(myDoVoxel, value);
193  break;
194  case 6:
195  coerceValue(myDoSlerp, value);
196  break;
197  case 7:
198  coerceValue(myPtIDAttr, value);
199  break;
200  case 8:
201  coerceValue(myPrimIDAttr, value);
202  break;
203 
204  }
205  }
206 
207  void setParmValue(exint idx, const exint &value)
208  { doSetParmValue(idx, value); }
209  void setParmValue(exint idx, const fpreal &value)
210  { doSetParmValue(idx, value); }
211  void setParmValue(exint idx, const UT_Vector2D &value)
212  { doSetParmValue(idx, value); }
213  void setParmValue(exint idx, const UT_Vector3D &value)
214  { doSetParmValue(idx, value); }
215  void setParmValue(exint idx, const UT_Vector4D &value)
216  { doSetParmValue(idx, value); }
217  void setParmValue(exint idx, const UT_Matrix2D &value)
218  { doSetParmValue(idx, value); }
219  void setParmValue(exint idx, const UT_Matrix3D &value)
220  { doSetParmValue(idx, value); }
221  void setParmValue(exint idx, const UT_Matrix4D &value)
222  { doSetParmValue(idx, value); }
224  { doSetParmValue(idx, value); }
226  { doSetParmValue(idx, value); }
228  { doSetParmValue(idx, value); }
229 
230  virtual exint getNumParms() const
231  {
232  return 9;
233  }
234 
235  virtual const char *getParmName(exint fieldnum) const
236  {
237  switch (fieldnum)
238  {
239  case 0:
240  return "blend";
241  case 1:
242  return "dopos";
243  case 2:
244  return "doclr";
245  case 3:
246  return "donml";
247  case 4:
248  return "douvw";
249  case 5:
250  return "dovoxel";
251  case 6:
252  return "doslerp";
253  case 7:
254  return "ptidattr";
255  case 8:
256  return "primidattr";
257 
258  }
259  return 0;
260  }
261 
262  virtual ParmType getParmType(exint fieldnum) const
263  {
264  switch (fieldnum)
265  {
266  case 0:
267  return PARM_FLOAT;
268  case 1:
269  return PARM_INTEGER;
270  case 2:
271  return PARM_INTEGER;
272  case 3:
273  return PARM_INTEGER;
274  case 4:
275  return PARM_INTEGER;
276  case 5:
277  return PARM_INTEGER;
278  case 6:
279  return PARM_INTEGER;
280  case 7:
281  return PARM_STRING;
282  case 8:
283  return PARM_STRING;
284 
285  }
286  return PARM_UNSUPPORTED;
287  }
288 
289  // Boiler plate to load individual types.
290  static void loadData(UT_IStream &is, int64 &v)
291  { is.bread(&v, 1); }
292  static void loadData(UT_IStream &is, bool &v)
293  { int64 iv; is.bread(&iv, 1); v = iv; }
294  static void loadData(UT_IStream &is, fpreal64 &v)
295  { is.bread<fpreal64>(&v, 1); }
296  static void loadData(UT_IStream &is, UT_Vector2D &v)
297  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
298  static void loadData(UT_IStream &is, UT_Vector3D &v)
299  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
300  is.bread<fpreal64>(&v.z(), 1); }
301  static void loadData(UT_IStream &is, UT_Vector4D &v)
302  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
303  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
304  static void loadData(UT_IStream &is, UT_Matrix2D &v)
305  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
306  static void loadData(UT_IStream &is, UT_Matrix3D &v)
307  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
308  static void loadData(UT_IStream &is, UT_Matrix4D &v)
309  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
310  static void loadData(UT_IStream &is, UT_Vector2I &v)
311  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
312  static void loadData(UT_IStream &is, UT_Vector3I &v)
313  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
314  is.bread<int64>(&v.z(), 1); }
315  static void loadData(UT_IStream &is, UT_Vector4I &v)
316  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
317  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
319  { is.bread(v); }
321  { UT_StringHolder rampdata;
322  loadData(is, rampdata);
323  if (rampdata.isstring())
324  {
325  v.reset(new UT_Ramp());
326  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
327  v->load(istr);
328  }
329  else v.reset();
330  }
333  loadData(is, data);
334  if (data.isstring())
335  {
336  // Find the data type.
337  char *colon = UT_StringWrap(data).findChar(':');
338  if (colon)
339  {
340  int typelen = colon - data.buffer();
342  type.strncpy(data.buffer(), typelen);
343  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
344 
345  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
346  }
347  }
348  else v.reset();
349  }
350 
351  static void saveData(std::ostream &os, int64 v)
352  { UTwrite(os, &v); }
353  static void saveData(std::ostream &os, bool v)
354  { int64 iv = v; UTwrite(os, &iv); }
355  static void saveData(std::ostream &os, fpreal64 v)
356  { UTwrite<fpreal64>(os, &v); }
357  static void saveData(std::ostream &os, UT_Vector2D v)
358  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
359  static void saveData(std::ostream &os, UT_Vector3D v)
360  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
361  UTwrite<fpreal64>(os, &v.z()); }
362  static void saveData(std::ostream &os, UT_Vector4D v)
363  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
364  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
365  static void saveData(std::ostream &os, UT_Matrix2D v)
367  static void saveData(std::ostream &os, UT_Matrix3D v)
369  static void saveData(std::ostream &os, UT_Matrix4D v)
371  static void saveData(std::ostream &os, UT_StringHolder s)
372  { UT_StringWrap(s).saveBinary(os); }
373  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
374  { UT_StringHolder result;
375  UT_OStringStream ostr;
376  if (s) s->save(ostr);
377  result = ostr.str();
378  saveData(os, result);
379  }
380  static void saveData(std::ostream &os, PRM_DataItemHandle s)
381  { UT_StringHolder result;
382  UT_OStringStream ostr;
383  if (s)
384  {
385  ostr << s->getDataTypeToken();
386  ostr << ":";
387  s->saveBinary(ostr);
388  }
389  result = ostr.str();
390  saveData(os, result);
391  }
392 
393 
394  void save(std::ostream &os) const
395  {
396  int32 v = version();
397  UTwrite(os, &v);
398  saveData(os, myBlend);
399  saveData(os, myDoPos);
400  saveData(os, myDoClr);
401  saveData(os, myDoNml);
402  saveData(os, myDoUVW);
403  saveData(os, myDoVoxel);
404  saveData(os, myDoSlerp);
405  saveData(os, myPtIDAttr);
406  saveData(os, myPrimIDAttr);
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  loadData(is, myBlend);
420  loadData(is, myDoPos);
421  loadData(is, myDoClr);
422  loadData(is, myDoNml);
423  loadData(is, myDoUVW);
424  loadData(is, myDoVoxel);
425  loadData(is, myDoSlerp);
426  loadData(is, myPtIDAttr);
427  loadData(is, myPrimIDAttr);
428 
429  return true;
430  }
431 
432  fpreal64 getBlend() const { return myBlend; }
433  void setBlend(fpreal64 val) { myBlend = val; }
434  fpreal64 opBlend(const SOP_NodeVerb::CookParms &cookparms) const
435  {
436  SOP_Node *thissop = cookparms.getNode();
437  if (!thissop) return getBlend();
438  fpreal64 result;
439  OP_Utils::evalOpParm(result, thissop, "blend", cookparms.getCookTime(), 0);
440  return result;
441  }
442  bool getDoPos() const { return myDoPos; }
443  void setDoPos(bool val) { myDoPos = val; }
444  bool opDoPos(const SOP_NodeVerb::CookParms &cookparms) const
445  {
446  SOP_Node *thissop = cookparms.getNode();
447  if (!thissop) return getDoPos();
448  bool result;
449  OP_Utils::evalOpParm(result, thissop, "dopos", cookparms.getCookTime(), 0);
450  return result;
451  }
452  bool getDoClr() const { return myDoClr; }
453  void setDoClr(bool val) { myDoClr = val; }
454  bool opDoClr(const SOP_NodeVerb::CookParms &cookparms) const
455  {
456  SOP_Node *thissop = cookparms.getNode();
457  if (!thissop) return getDoClr();
458  bool result;
459  OP_Utils::evalOpParm(result, thissop, "doclr", cookparms.getCookTime(), 0);
460  return result;
461  }
462  bool getDoNml() const { return myDoNml; }
463  void setDoNml(bool val) { myDoNml = val; }
464  bool opDoNml(const SOP_NodeVerb::CookParms &cookparms) const
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getDoNml();
468  bool result;
469  OP_Utils::evalOpParm(result, thissop, "donml", cookparms.getCookTime(), 0);
470  return result;
471  }
472  bool getDoUVW() const { return myDoUVW; }
473  void setDoUVW(bool val) { myDoUVW = val; }
474  bool opDoUVW(const SOP_NodeVerb::CookParms &cookparms) const
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getDoUVW();
478  bool result;
479  OP_Utils::evalOpParm(result, thissop, "douvw", cookparms.getCookTime(), 0);
480  return result;
481  }
482  bool getDoVoxel() const { return myDoVoxel; }
483  void setDoVoxel(bool val) { myDoVoxel = val; }
484  bool opDoVoxel(const SOP_NodeVerb::CookParms &cookparms) const
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getDoVoxel();
488  bool result;
489  OP_Utils::evalOpParm(result, thissop, "dovoxel", cookparms.getCookTime(), 0);
490  return result;
491  }
492  bool getDoSlerp() const { return myDoSlerp; }
493  void setDoSlerp(bool val) { myDoSlerp = val; }
494  bool opDoSlerp(const SOP_NodeVerb::CookParms &cookparms) const
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getDoSlerp();
498  bool result;
499  OP_Utils::evalOpParm(result, thissop, "doslerp", cookparms.getCookTime(), 0);
500  return result;
501  }
502  const UT_StringHolder & getPtIDAttr() const { return myPtIDAttr; }
503  void setPtIDAttr(const UT_StringHolder & val) { myPtIDAttr = val; }
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getPtIDAttr();
508  UT_StringHolder result;
509  OP_Utils::evalOpParm(result, thissop, "ptidattr", cookparms.getCookTime(), 0);
510  return result;
511  }
512  const UT_StringHolder & getPrimIDAttr() const { return myPrimIDAttr; }
513  void setPrimIDAttr(const UT_StringHolder & val) { myPrimIDAttr = val; }
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getPrimIDAttr();
518  UT_StringHolder result;
519  OP_Utils::evalOpParm(result, thissop, "primidattr", cookparms.getCookTime(), 0);
520  return result;
521  }
522 
523 private:
524  fpreal64 myBlend;
525  bool myDoPos;
526  bool myDoClr;
527  bool myDoNml;
528  bool myDoUVW;
529  bool myDoVoxel;
530  bool myDoSlerp;
531  UT_StringHolder myPtIDAttr;
532  UT_StringHolder myPrimIDAttr;
533 
534 };
void getParmValue(exint idx, UT_Vector4D &value) const
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Matrix2D v)
void setParmValue(exint idx, const UT_StringHolder &value)
bool getDoNml() const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
T & z(void)
Definition: UT_Vector4.h:379
static void saveData(std::ostream &os, UT_StringHolder s)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
virtual ~SOP_SBlendParms()
void setDoSlerp(bool val)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
void getParmValue(exint idx, PRM_DataItemHandle &value) const
bool getDoPos() const
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void getParmValue(exint idx, UT_Matrix2D &value) const
bool operator==(const SOP_SBlendParms &src) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
bool getDoUVW() const
void setDoNml(bool val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getParmValue(exint idx, UT_Matrix3D &value) const
virtual const char * getParmName(exint fieldnum) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getParmValue(exint idx, UT_StringHolder &value) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
An output stream object that owns its own string buffer storage.
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
static void loadData(UT_IStream &is, bool &v)
bool opDoClr(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Matrix4D &value)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
virtual exint getNumParms() const
void setParmValue(exint idx, const UT_Vector2D &value)
void setDoPos(bool val)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, int64 &v)
UT_StringHolder opPtIDAttr(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, fpreal &value) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
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
long long int64
Definition: SYS_Types.h:107
void doGetParmValue(exint idx, T &value) const
fpreal64 opBlend(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
bool getDoVoxel() const
bool getDoClr() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
virtual ParmType getParmType(exint fieldnum) const
int64 exint
Definition: SYS_Types.h:116
void setBlend(fpreal64 val)
static void saveData(std::ostream &os, UT_Matrix3D v)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
void setDoUVW(bool val)
double fpreal64
Definition: SYS_Types.h:192
void setParmValue(exint idx, const fpreal &value)
void setDoClr(bool val)
bool load(UT_IStream &is)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
UT_StringHolder opPrimIDAttr(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector4D &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_Matrix2D &v)
static int version()
static void saveData(std::ostream &os, UT_Vector2D v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
fpreal64 getBlend() const
void setDoVoxel(bool val)
void setPtIDAttr(const UT_StringHolder &val)
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
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getParmValue(exint idx, UT_Vector3D &value) const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
virtual void copyFrom(const SOP_NodeParms *src)
void setPrimIDAttr(const UT_StringHolder &val)
bool opDoPos(const SOP_NodeVerb::CookParms &cookparms) const
bool getDoSlerp() const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void save(std::ostream &os) const
void getParmValue(exint idx, UT_Matrix4D &value) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void loadData(UT_IStream &is, UT_StringHolder &v)
#define SOP_API
Definition: SOP_API.h:10
const UT_StringHolder & getPrimIDAttr() const
static void loadData(UT_IStream &is, fpreal64 &v)
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
const UT_StringHolder & getPtIDAttr() const
T & x(void)
Definition: UT_Vector4.h:375
T & y(void)
Definition: UT_Vector2.h:287
bool operator!=(const SOP_SBlendParms &src) const
GLboolean r
Definition: glcorearb.h:1221
bool opDoUVW(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
T & w(void)
Definition: UT_Vector4.h:381
void setParmValue(exint idx, const UT_Matrix3D &value)
bool opDoNml(const SOP_NodeVerb::CookParms &cookparms) const
bool opDoSlerp(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
void setParmValue(exint idx, const exint &value)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
void setParmValue(exint idx, const UT_Matrix2D &value)
void getParmValue(exint idx, UT_Vector2D &value) const
SYS_FORCE_INLINE bool isstring() const
bool opDoVoxel(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void getParmValue(exint idx, exint &value) const
GLenum src
Definition: glcorearb.h:1792
void doSetParmValue(exint idx, const T &value)