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