HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribPromote.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_AttribPromoteEnums
22 {
23  enum class Inclass
24  {
25  DETAIL = 0,
26  PRIMITIVE,
27  POINT,
28  VERTEX
29  };
30  enum class Outclass
31  {
32  DETAIL = 0,
33  PRIMITIVE,
34  POINT,
35  VERTEX
36  };
37  enum class Method
38  {
39  MAX = 0,
40  MIN,
41  MEAN,
42  MODE,
43  MEDIAN,
44  SUM,
45  SUMSQUARE,
46  RMS,
47  FIRST,
48  LAST
49  };
50 }
51 
52 
54 {
55 public:
56  static int version() { return 1; }
57 
59  {
60  myInname = ""_sh;
61  myInclass = 2;
62  myOutclass = 2;
63  myUsePieceAttrib = false;
64  myPieceAttrib = "name"_sh;
65  myMethod = 2;
66  myUseoutname = false;
67  myOutname = ""_sh;
68  myDeletein = true;
69 
70  }
71 
72  explicit SOP_AttribPromoteParms(const SOP_AttribPromoteParms &) = default;
73 
75 
77  {
78  if (myInname != src.myInname) return false;
79  if (myInclass != src.myInclass) return false;
80  if (myOutclass != src.myOutclass) return false;
81  if (myUsePieceAttrib != src.myUsePieceAttrib) return false;
82  if (myPieceAttrib != src.myPieceAttrib) return false;
83  if (myMethod != src.myMethod) return false;
84  if (myUseoutname != src.myUseoutname) return false;
85  if (myOutname != src.myOutname) return false;
86  if (myDeletein != src.myDeletein) return false;
87 
88  return true;
89  }
91  {
92  return !operator==(src);
93  }
97 
98 
99 
100  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
101  {
102  if (true)
103  OP_Utils::evalOpParm(myInname, node, "inname", time, 0);
104  else myInname = ""_sh;
105  if (true)
106  OP_Utils::evalOpParm(myInclass, node, "inclass", time, 0);
107  else myInclass = 2;
108  if (true)
109  OP_Utils::evalOpParm(myOutclass, node, "outclass", time, 0);
110  else myOutclass = 2;
111  if (true && ( (!(((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
112  OP_Utils::evalOpParm(myUsePieceAttrib, node, "usepieceattrib", time, 0);
113  else myUsePieceAttrib = false;
114  if (true && ( (!(((getUsePieceAttrib()==0))||((int64(getOutclass())==0))||((int64(getInclass())==0)))) ) )
115  OP_Utils::evalOpParm(myPieceAttrib, node, "pieceattrib", time, 0);
116  else myPieceAttrib = "name"_sh;
117  if (true)
118  OP_Utils::evalOpParm(myMethod, node, "method", time, 0);
119  else myMethod = 2;
120  if (true)
121  OP_Utils::evalOpParm(myUseoutname, node, "useoutname", time, 0);
122  else myUseoutname = false;
123  if (true && ( (!(((getUseoutname()==0)))) ) )
124  OP_Utils::evalOpParm(myOutname, node, "outname", time, 0);
125  else myOutname = ""_sh;
126  if (true && ( (!(((getUseoutname()==0)&&(int64(getInclass())==2)&&(int64(getOutclass())==3))||((getUseoutname()==0)&&(int64(getInclass())==3)&&(int64(getOutclass())==2)))) ) )
127  OP_Utils::evalOpParm(myDeletein, node, "deletein", time, 0);
128  else myDeletein = true;
129 
130  }
131 
132 
133  virtual void loadFromOpSubclass(const LoadParms &loadparms)
134  {
135  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
136  }
137 
138 
139  virtual void copyFrom(const SOP_NodeParms *src)
140  {
141  *this = *((const SOP_AttribPromoteParms *)src);
142  }
143 
144  template <typename T>
145  void
146  doGetParmValue(exint idx, T &value) const
147  {
148  switch (idx)
149  {
150  case 0:
151  coerceValue(value, myInname);
152  break;
153  case 1:
154  coerceValue(value, myInclass);
155  break;
156  case 2:
157  coerceValue(value, myOutclass);
158  break;
159  case 3:
160  coerceValue(value, myUsePieceAttrib);
161  break;
162  case 4:
163  coerceValue(value, myPieceAttrib);
164  break;
165  case 5:
166  coerceValue(value, myMethod);
167  break;
168  case 6:
169  coerceValue(value, myUseoutname);
170  break;
171  case 7:
172  coerceValue(value, myOutname);
173  break;
174  case 8:
175  coerceValue(value, myDeletein);
176  break;
177 
178  }
179  }
180 
181  void getParmValue(exint idx, exint &value) const
182  { doGetParmValue(idx, value); }
183  void getParmValue(exint idx, fpreal &value) const
184  { doGetParmValue(idx, value); }
186  { doGetParmValue(idx, value); }
188  { doGetParmValue(idx, value); }
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
200  { doGetParmValue(idx, value); }
202  { doGetParmValue(idx, value); }
203 
204  template <typename T>
205  void
206  doSetParmValue(exint idx, const T &value)
207  {
208  switch (idx)
209  {
210  case 0:
211  coerceValue(myInname, value);
212  break;
213  case 1:
214  coerceValue(myInclass, value);
215  break;
216  case 2:
217  coerceValue(myOutclass, value);
218  break;
219  case 3:
220  coerceValue(myUsePieceAttrib, value);
221  break;
222  case 4:
223  coerceValue(myPieceAttrib, value);
224  break;
225  case 5:
226  coerceValue(myMethod, value);
227  break;
228  case 6:
229  coerceValue(myUseoutname, value);
230  break;
231  case 7:
232  coerceValue(myOutname, value);
233  break;
234  case 8:
235  coerceValue(myDeletein, value);
236  break;
237 
238  }
239  }
240 
241  void setParmValue(exint idx, const exint &value)
242  { doSetParmValue(idx, value); }
243  void setParmValue(exint idx, const fpreal &value)
244  { doSetParmValue(idx, value); }
245  void setParmValue(exint idx, const UT_Vector2D &value)
246  { doSetParmValue(idx, value); }
247  void setParmValue(exint idx, const UT_Vector3D &value)
248  { doSetParmValue(idx, value); }
249  void setParmValue(exint idx, const UT_Vector4D &value)
250  { doSetParmValue(idx, value); }
251  void setParmValue(exint idx, const UT_Matrix2D &value)
252  { doSetParmValue(idx, value); }
253  void setParmValue(exint idx, const UT_Matrix3D &value)
254  { doSetParmValue(idx, value); }
255  void setParmValue(exint idx, const UT_Matrix4D &value)
256  { doSetParmValue(idx, value); }
258  { doSetParmValue(idx, value); }
260  { doSetParmValue(idx, value); }
262  { doSetParmValue(idx, value); }
263 
264  virtual exint getNumParms() const
265  {
266  return 9;
267  }
268 
269  virtual const char *getParmName(exint fieldnum) const
270  {
271  switch (fieldnum)
272  {
273  case 0:
274  return "inname";
275  case 1:
276  return "inclass";
277  case 2:
278  return "outclass";
279  case 3:
280  return "usepieceattrib";
281  case 4:
282  return "pieceattrib";
283  case 5:
284  return "method";
285  case 6:
286  return "useoutname";
287  case 7:
288  return "outname";
289  case 8:
290  return "deletein";
291 
292  }
293  return 0;
294  }
295 
296  virtual ParmType getParmType(exint fieldnum) const
297  {
298  switch (fieldnum)
299  {
300  case 0:
301  return PARM_STRING;
302  case 1:
303  return PARM_INTEGER;
304  case 2:
305  return PARM_INTEGER;
306  case 3:
307  return PARM_INTEGER;
308  case 4:
309  return PARM_STRING;
310  case 5:
311  return PARM_INTEGER;
312  case 6:
313  return PARM_INTEGER;
314  case 7:
315  return PARM_STRING;
316  case 8:
317  return PARM_INTEGER;
318 
319  }
320  return PARM_UNSUPPORTED;
321  }
322 
323  // Boiler plate to load individual types.
324  static void loadData(UT_IStream &is, int64 &v)
325  { is.bread(&v, 1); }
326  static void loadData(UT_IStream &is, bool &v)
327  { int64 iv; is.bread(&iv, 1); v = iv; }
328  static void loadData(UT_IStream &is, fpreal64 &v)
329  { is.bread<fpreal64>(&v, 1); }
330  static void loadData(UT_IStream &is, UT_Vector2D &v)
331  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector3D &v)
333  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
334  is.bread<fpreal64>(&v.z(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector4D &v)
336  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
337  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
338  static void loadData(UT_IStream &is, UT_Matrix2D &v)
339  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
340  static void loadData(UT_IStream &is, UT_Matrix3D &v)
341  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix4D &v)
343  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Vector2I &v)
345  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
346  static void loadData(UT_IStream &is, UT_Vector3I &v)
347  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
348  is.bread<int64>(&v.z(), 1); }
349  static void loadData(UT_IStream &is, UT_Vector4I &v)
350  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
351  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
353  { is.bread(v); }
355  { UT_StringHolder rampdata;
356  loadData(is, rampdata);
357  if (rampdata.isstring())
358  {
359  v.reset(new UT_Ramp());
360  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
361  v->load(istr);
362  }
363  else v.reset();
364  }
367  loadData(is, data);
368  if (data.isstring())
369  {
370  // Find the data type.
371  char *colon = UT_StringWrap(data).findChar(':');
372  if (colon)
373  {
374  int typelen = colon - data.buffer();
376  type.strncpy(data.buffer(), typelen);
377  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
378 
379  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
380  }
381  }
382  else v.reset();
383  }
384 
385  static void saveData(std::ostream &os, int64 v)
386  { UTwrite(os, &v); }
387  static void saveData(std::ostream &os, bool v)
388  { int64 iv = v; UTwrite(os, &iv); }
389  static void saveData(std::ostream &os, fpreal64 v)
390  { UTwrite<fpreal64>(os, &v); }
391  static void saveData(std::ostream &os, UT_Vector2D v)
392  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
393  static void saveData(std::ostream &os, UT_Vector3D v)
394  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
395  UTwrite<fpreal64>(os, &v.z()); }
396  static void saveData(std::ostream &os, UT_Vector4D v)
397  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
398  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
399  static void saveData(std::ostream &os, UT_Matrix2D v)
401  static void saveData(std::ostream &os, UT_Matrix3D v)
403  static void saveData(std::ostream &os, UT_Matrix4D v)
405  static void saveData(std::ostream &os, UT_StringHolder s)
406  { UT_StringWrap(s).saveBinary(os); }
407  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
408  { UT_StringHolder result;
409  UT_OStringStream ostr;
410  if (s) s->save(ostr);
411  result = ostr.str();
412  saveData(os, result);
413  }
414  static void saveData(std::ostream &os, PRM_DataItemHandle s)
415  { UT_StringHolder result;
416  UT_OStringStream ostr;
417  if (s)
418  {
419  ostr << s->getDataTypeToken();
420  ostr << ":";
421  s->saveBinary(ostr);
422  }
423  result = ostr.str();
424  saveData(os, result);
425  }
426 
427 
428  void save(std::ostream &os) const
429  {
430  int32 v = version();
431  UTwrite(os, &v);
432  saveData(os, myInname);
433  saveData(os, myInclass);
434  saveData(os, myOutclass);
435  saveData(os, myUsePieceAttrib);
436  saveData(os, myPieceAttrib);
437  saveData(os, myMethod);
438  saveData(os, myUseoutname);
439  saveData(os, myOutname);
440  saveData(os, myDeletein);
441 
442  }
443 
444  bool load(UT_IStream &is)
445  {
446  int32 v;
447  is.bread(&v, 1);
448  if (version() != v)
449  {
450  // Fail incompatible versions
451  return false;
452  }
453  loadData(is, myInname);
454  loadData(is, myInclass);
455  loadData(is, myOutclass);
456  loadData(is, myUsePieceAttrib);
457  loadData(is, myPieceAttrib);
458  loadData(is, myMethod);
459  loadData(is, myUseoutname);
460  loadData(is, myOutname);
461  loadData(is, myDeletein);
462 
463  return true;
464  }
465 
466  const UT_StringHolder & getInname() const { return myInname; }
467  void setInname(const UT_StringHolder & val) { myInname = val; }
469  {
470  SOP_Node *thissop = cookparms.getNode();
471  if (!thissop) return getInname();
472  UT_StringHolder result;
473  OP_Utils::evalOpParm(result, thissop, "inname", cookparms.getCookTime(), 0);
474  return result;
475  }
476  Inclass getInclass() const { return Inclass(myInclass); }
477  void setInclass(Inclass val) { myInclass = int64(val); }
478  Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
479  {
480  SOP_Node *thissop = cookparms.getNode();
481  if (!thissop) return getInclass();
482  int64 result;
483  OP_Utils::evalOpParm(result, thissop, "inclass", cookparms.getCookTime(), 0);
484  return Inclass(result);
485  }
486  Outclass getOutclass() const { return Outclass(myOutclass); }
487  void setOutclass(Outclass val) { myOutclass = int64(val); }
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getOutclass();
492  int64 result;
493  OP_Utils::evalOpParm(result, thissop, "outclass", cookparms.getCookTime(), 0);
494  return Outclass(result);
495  }
496  bool getUsePieceAttrib() const { return myUsePieceAttrib; }
497  void setUsePieceAttrib(bool val) { myUsePieceAttrib = val; }
498  bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getUsePieceAttrib();
502  bool result;
503  OP_Utils::evalOpParm(result, thissop, "usepieceattrib", cookparms.getCookTime(), 0);
504  return result;
505  }
506  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
507  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getPieceAttrib();
512  UT_StringHolder result;
513  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
514  return result;
515  }
516  Method getMethod() const { return Method(myMethod); }
517  void setMethod(Method val) { myMethod = int64(val); }
518  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return getMethod();
522  int64 result;
523  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
524  return Method(result);
525  }
526  bool getUseoutname() const { return myUseoutname; }
527  void setUseoutname(bool val) { myUseoutname = val; }
528  bool opUseoutname(const SOP_NodeVerb::CookParms &cookparms) const
529  {
530  SOP_Node *thissop = cookparms.getNode();
531  if (!thissop) return getUseoutname();
532  bool result;
533  OP_Utils::evalOpParm(result, thissop, "useoutname", cookparms.getCookTime(), 0);
534  return result;
535  }
536  const UT_StringHolder & getOutname() const { return myOutname; }
537  void setOutname(const UT_StringHolder & val) { myOutname = val; }
539  {
540  SOP_Node *thissop = cookparms.getNode();
541  if (!thissop) return getOutname();
542  UT_StringHolder result;
543  OP_Utils::evalOpParm(result, thissop, "outname", cookparms.getCookTime(), 0);
544  return result;
545  }
546  bool getDeletein() const { return myDeletein; }
547  void setDeletein(bool val) { myDeletein = val; }
548  bool opDeletein(const SOP_NodeVerb::CookParms &cookparms) const
549  {
550  SOP_Node *thissop = cookparms.getNode();
551  if (!thissop) return getDeletein();
552  bool result;
553  OP_Utils::evalOpParm(result, thissop, "deletein", cookparms.getCookTime(), 0);
554  return result;
555  }
556 
557 private:
558  UT_StringHolder myInname;
559  int64 myInclass;
560  int64 myOutclass;
561  bool myUsePieceAttrib;
562  UT_StringHolder myPieceAttrib;
563  int64 myMethod;
564  bool myUseoutname;
565  UT_StringHolder myOutname;
566  bool myDeletein;
567 
568 };
static void saveData(std::ostream &os, int64 v)
void setParmValue(exint idx, const UT_Matrix4D &value)
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
bool operator==(const SOP_AttribPromoteParms &src) const
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:494
static void loadData(UT_IStream &is, UT_Vector3D &v)
T & z(void)
Definition: UT_Vector4.h:379
bool opDeletein(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
bool operator!=(const SOP_AttribPromoteParms &src) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
const GLdouble * v
Definition: glcorearb.h:836
void setOutname(const UT_StringHolder &val)
UT_StringHolder opPieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2D &v)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setInname(const UT_StringHolder &val)
An output stream object that owns its own string buffer storage.
void doGetParmValue(exint idx, T &value) const
void getParmValue(exint idx, UT_Vector4D &value) const
void getParmValue(exint idx, fpreal &value) const
void setParmValue(exint idx, const UT_Vector4D &value)
virtual exint getNumParms() const
virtual void loadFromOpSubclass(const LoadParms &loadparms)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:498
const UT_StringHolder & getPieceAttrib() const
void setParmValue(exint idx, const UT_Matrix3D &value)
bool opUseoutname(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void getParmValue(exint idx, UT_Vector2D &value) const
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual ParmType getParmType(exint fieldnum) const
static void loadData(UT_IStream &is, UT_Matrix4D &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 setParmValue(exint idx, const fpreal &value)
void setParmValue(exint idx, const UT_Vector2D &value)
void getParmValue(exint idx, UT_Matrix3D &value) const
void setParmValue(exint idx, const UT_Matrix2D &value)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
void getParmValue(exint idx, UT_Matrix4D &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_StringHolder &value) const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
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
static void saveData(std::ostream &os, UT_Vector4D v)
double fpreal64
Definition: SYS_Types.h:192
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const UT_StringHolder & getInname() const
UT_StringHolder opOutname(const SOP_NodeVerb::CookParms &cookparms) const
bool opUsePieceAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getParmValue(exint idx, exint &value) const
GLboolean * data
Definition: glcorearb.h:130
static void loadData(UT_IStream &is, UT_Matrix3D &v)
int int32
Definition: SYS_Types.h:35
T & y(void)
Definition: UT_Vector4.h:377
static void saveData(std::ostream &os, fpreal64 v)
const UT_StringHolder & getOutname() const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void saveData(std::ostream &os, UT_Matrix2D v)
void getParmValue(exint idx, UT_Vector3D &value) const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void setParmValue(exint idx, const exint &value)
virtual const char * getParmName(exint fieldnum) const
void setParmValue(exint idx, const PRM_DataItemHandle &value)
UT_StringHolder opInname(const SOP_NodeVerb::CookParms &cookparms) const
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 saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, fpreal64 &v)
void setParmValue(exint idx, const UT_StringHolder &value)
static void loadData(UT_IStream &is, bool &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
#define SOP_API
Definition: SOP_API.h:10
void save(std::ostream &os) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:501
void setPieceAttrib(const UT_StringHolder &val)
T & x(void)
Definition: UT_Vector4.h:375
void getParmValue(exint idx, UT_Matrix2D &value) const
static void saveData(std::ostream &os, UT_Matrix4D v)
T & y(void)
Definition: UT_Vector2.h:287
void getParmValue(exint idx, PRM_DataItemHandle &value) const
GLboolean r
Definition: glcorearb.h:1221
Outclass opOutclass(const SOP_NodeVerb::CookParms &cookparms) const
virtual void copyFrom(const SOP_NodeParms *src)
T & w(void)
Definition: UT_Vector4.h:381
void doSetParmValue(exint idx, const T &value)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
Inclass opInclass(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
static void saveData(std::ostream &os, UT_Vector2D v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
SYS_FORCE_INLINE bool isstring() const
void setParmValue(exint idx, const UT_Vector3D &value)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1792