HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_ErrorNode.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_ErrorNodeEnums
24 {
25  enum class Severity
26  {
27  MESSAGE = 0,
28  WARN,
29  ERROR
30  };
31 }
32 
33 
35 {
36 public:
37  static int version() { return 1; }
38  struct Numerror
39  {
43 
44 
46  {
47  errormsg = ""_sh;
48  severity = 0;
49  enable = 0;
50 
51  }
52 
53  bool operator==(const Numerror &src) const
54  {
55  if (errormsg != src.errormsg) return false;
56  if (severity != src.severity) return false;
57  if (enable != src.enable) return false;
58 
59  return true;
60  }
61  bool operator!=(const Numerror &src) const
62  {
63  return !operator==(src);
64  }
65 
66  };
67 
69  {
71 
72  buf.strcat("[ ");
73  for (int i = 0; i < list.entries(); i++)
74  {
75  if (i)
76  buf.strcat(", ");
77  buf.strcat("( ");
78  buf.append("");
79  { UT_String tmp; tmp = UT_StringWrap(list(i).errormsg).makeQuotedString('"'); buf.strcat(tmp); }
80  buf.append(", ");
81  buf.appendSprintf("%d", (int) list(i).severity);
82  buf.append(", ");
83  buf.appendSprintf("%d", (int) list(i).enable);
84 
85  buf.strcat(" )");
86  }
87  buf.strcat(" ]");
88 
90  return result;
91  }
92 
94  {
95 
96  }
97 
98  explicit SOP_ErrorNodeParms(const SOP_ErrorNodeParms &) = default;
99 
100  ~SOP_ErrorNodeParms() override {}
101 
102  bool operator==(const SOP_ErrorNodeParms &src) const
103  {
104  if (myNumerror != src.myNumerror) return false;
105 
106  return true;
107  }
108  bool operator!=(const SOP_ErrorNodeParms &src) const
109  {
110  return !operator==(src);
111  }
113 
114 
115 
116  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
117  {
118  if (true)
119  {
120  int64 length = 0;
121  graph->evalOpParm(length, nodeidx, "numerror", time, 0);
122  myNumerror.entries(length);
123  for (exint i = 0; i < length; i++)
124  {
125  int parmidx = i+1;
126  auto && _curentry = myNumerror(i);
127  (void) _curentry;
128  myNumerror(i).errormsg = ""_sh;
129  if (true)
130  graph->evalOpParmInst(myNumerror(i).errormsg, nodeidx, "errormsg#", &parmidx, time, 0);
131  myNumerror(i).severity = 0;
132  if (true)
133  graph->evalOpParmInst(myNumerror(i).severity, nodeidx, "severity#", &parmidx, time, 0);
134  myNumerror(i).enable = 0;
135  if (true)
136  graph->evalOpParmInst(myNumerror(i).enable, nodeidx, "enable#", &parmidx, time, 0);
137 
138  }
139  }
140  else
141  myNumerror.clear();
142 
143  }
144 
145 
146  void loadFromOpSubclass(const LoadParms &loadparms) override
147  {
148  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
149  }
150 
151 
152  void copyFrom(const SOP_NodeParms *src) override
153  {
154  *this = *((const SOP_ErrorNodeParms *)src);
155  }
156 
157  template <typename T>
158  void
159  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
160  {
161  if (idx.size() < 1)
162  return;
163  UT_ASSERT(idx.size() == instance.size()+1);
164  if (idx.size() != instance.size()+1)
165  return;
166  switch (idx[0])
167  {
168  case 0:
169  if (idx.size() == 1)
170  coerceValue(value, myNumerror.entries());
171  else if (instance[0] < myNumerror.entries())
172  {
173  auto && _data = myNumerror(instance[0]);
174  switch (idx[1])
175  {
176  case 0:
177  coerceValue(value, _data.errormsg);
178  break;
179  case 1:
180  coerceValue(value, _data.severity);
181  break;
182  case 2:
183  coerceValue(value, _data.enable);
184  break;
185 
186  }
187  }
188  break;
189 
190  }
191  }
192 
193  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
214  { doGetParmValue(idx, instance, value); }
215 
216  template <typename T>
217  void
218  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
219  {
220  if (idx.size() < 1)
221  return;
222  UT_ASSERT(idx.size() == instance.size()+1);
223  if (idx.size() != instance.size()+1)
224  return;
225  switch (idx[0])
226  {
227  case 0:
228  if (idx.size() == 1)
229  {
230  exint newsize;
231  coerceValue(newsize, value);
232  myNumerror.setSize(newsize);
233  }
234  else
235  {
236  myNumerror.setSizeIfNeeded(instance[0]+1);
237  auto && _data = myNumerror(instance[0]);
238  switch (idx[1])
239  {
240  case 0:
241  coerceValue(_data.errormsg, value);
242  break;
243  case 1:
244  coerceValue(_data.severity, value);
245  break;
246  case 2:
247  coerceValue(_data.enable, value);
248  break;
249 
250  }
251  }
252  break;
253 
254  }
255  }
256 
257  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
278  { doSetParmValue(idx, instance, value); }
279 
280  exint getNestNumParms(TempIndex idx) const override
281  {
282  if (idx.size() == 0)
283  return 1;
284  switch (idx[0])
285  {
286  case 0:
287  return 3;
288 
289  }
290  // Invalid
291  return 0;
292  }
293 
294  const char *getNestParmName(TempIndex fieldnum) const override
295  {
296  if (fieldnum.size() < 1)
297  return 0;
298  switch (fieldnum[0])
299  {
300  case 0:
301  if (fieldnum.size() == 1)
302  return "numerror";
303  switch (fieldnum[1])
304  {
305  case 0:
306  return "errormsg#";
307  case 1:
308  return "severity#";
309  case 2:
310  return "enable#";
311 
312  }
313  return 0;
314 
315  }
316  return 0;
317  }
318 
319  ParmType getNestParmType(TempIndex fieldnum) const override
320  {
321  if (fieldnum.size() < 1)
322  return PARM_UNSUPPORTED;
323  switch (fieldnum[0])
324  {
325  case 0:
326  if (fieldnum.size() == 1)
327  return PARM_MULTIPARM;
328  switch (fieldnum[1])
329  {
330  case 0:
331  return PARM_STRING;
332  case 1:
333  return PARM_INTEGER;
334  case 2:
335  return PARM_INTEGER;
336 
337  }
338  return PARM_UNSUPPORTED;
339 
340  }
341  return PARM_UNSUPPORTED;
342  }
343 
344  // Boiler plate to load individual types.
345  static void loadData(UT_IStream &is, int64 &v)
346  { is.bread(&v, 1); }
347  static void loadData(UT_IStream &is, bool &v)
348  { int64 iv; is.bread(&iv, 1); v = iv; }
349  static void loadData(UT_IStream &is, fpreal64 &v)
350  { is.bread<fpreal64>(&v, 1); }
351  static void loadData(UT_IStream &is, UT_Vector2D &v)
352  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector3D &v)
354  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
355  is.bread<fpreal64>(&v.z(), 1); }
356  static void loadData(UT_IStream &is, UT_Vector4D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
358  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
359  static void loadData(UT_IStream &is, UT_Matrix2D &v)
360  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
361  static void loadData(UT_IStream &is, UT_Matrix3D &v)
362  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
363  static void loadData(UT_IStream &is, UT_Matrix4D &v)
364  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
365  static void loadData(UT_IStream &is, UT_Vector2I &v)
366  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
367  static void loadData(UT_IStream &is, UT_Vector3I &v)
368  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
369  is.bread<int64>(&v.z(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector4I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
372  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
374  { is.bread(v); }
376  { UT_StringHolder rampdata;
377  loadData(is, rampdata);
378  if (rampdata.isstring())
379  {
380  v.reset(new UT_Ramp());
381  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
382  v->load(istr);
383  }
384  else v.reset();
385  }
388  loadData(is, data);
389  if (data.isstring())
390  {
391  // Find the data type.
392  const char *colon = UT_StringWrap(data).findChar(':');
393  if (colon)
394  {
395  int typelen = colon - data.buffer();
397  type.strncpy(data.buffer(), typelen);
398  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
399 
400  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
401  }
402  }
403  else v.reset();
404  }
405 
406  static void saveData(std::ostream &os, int64 v)
407  { UTwrite(os, &v); }
408  static void saveData(std::ostream &os, bool v)
409  { int64 iv = v; UTwrite(os, &iv); }
410  static void saveData(std::ostream &os, fpreal64 v)
411  { UTwrite<fpreal64>(os, &v); }
412  static void saveData(std::ostream &os, UT_Vector2D v)
413  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
414  static void saveData(std::ostream &os, UT_Vector3D v)
415  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
416  UTwrite<fpreal64>(os, &v.z()); }
417  static void saveData(std::ostream &os, UT_Vector4D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
419  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
420  static void saveData(std::ostream &os, UT_Matrix2D v)
422  static void saveData(std::ostream &os, UT_Matrix3D v)
424  static void saveData(std::ostream &os, UT_Matrix4D v)
426  static void saveData(std::ostream &os, UT_StringHolder s)
427  { UT_StringWrap(s).saveBinary(os); }
428  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
430  UT_OStringStream ostr;
431  if (s) s->save(ostr);
432  result = ostr.str();
433  saveData(os, result);
434  }
435  static void saveData(std::ostream &os, PRM_DataItemHandle s)
437  UT_OStringStream ostr;
438  if (s)
439  {
440  ostr << s->getDataTypeToken();
441  ostr << ":";
442  s->saveBinary(ostr);
443  }
444  result = ostr.str();
445  saveData(os, result);
446  }
447 
448 
449  void save(std::ostream &os) const
450  {
451  int32 v = version();
452  UTwrite(os, &v);
453  {
454  int64 length = myNumerror.entries();
455  UTwrite(os, &length);
456  for (exint i = 0; i < length; i++)
457  {
458  saveData(os, myNumerror(i).errormsg);
459  saveData(os, myNumerror(i).severity);
460  saveData(os, myNumerror(i).enable);
461 
462  }
463  }
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  {
477  int64 length;
478  is.read(&length, 1);
479  myNumerror.entries(length);
480  for (exint i = 0; i < length; i++)
481  {
482  loadData(is, myNumerror(i).errormsg);
483  loadData(is, myNumerror(i).severity);
484  loadData(is, myNumerror(i).enable);
485 
486  }
487  }
488 
489  return true;
490  }
491 
492  const UT_Array<Numerror> &getNumerror() const { return myNumerror; }
493  void setNumerror(const UT_Array<Numerror> &val) { myNumerror = val; }
494  exint opNumerror(const SOP_NodeVerb::CookParms &cookparms) const
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getNumerror().entries();
498  exint result;
499  OP_Utils::evalOpParm(result, thissop, "numerror", cookparms.getCookTime(), 0);
500  return result;
501  }
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return (myNumerror(_idx).errormsg);
506  int _parmidx = _idx + 1;
508  OP_Utils::evalOpParmInst(result, thissop, "errormsg#", &_parmidx, cookparms.getCookTime(), 0);
509  return (result);
510  }
512  {
513  SOP_Node *thissop = cookparms.getNode();
514  if (!thissop) return (myNumerror(_idx).severity);
515  int _parmidx = _idx + 1;
516  int64 result;
517  OP_Utils::evalOpParmInst(result, thissop, "severity#", &_parmidx, cookparms.getCookTime(), 0);
518  return (result);
519  }
520  int64 opNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return (myNumerror(_idx).enable);
524  int _parmidx = _idx + 1;
525  int64 result;
526  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
527  return (result);
528  }
529 
530 
531 private:
532  UT_Array<Numerror> myNumerror;
533 
534 };
GLdouble s
Definition: glew.h:1390
void setNumerror(const UT_Array< Numerror > &val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Vector4D v)
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, int *inst, fpreal time, DEP_MicroNode *depnode) const =0
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
bool operator==(const SOP_ErrorNodeParms &src) const
fpreal getTime() const
Definition: OP_Context.h:60
UT_StringHolder opNumerror_errormsg(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void saveData(std::ostream &os, int64 v)
GLuint const GLfloat * val
Definition: glew.h:2794
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLenum severity
Definition: glew.h:2579
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
void copyFrom(const SOP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector4I &v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, fpreal64 v)
const UT_Array< Numerror > & getNumerror() const
const GLdouble * v
Definition: glew.h:1391
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
int64 opNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, bool v)
double fpreal64
Definition: SYS_Types.h:201
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
exint length() const
static void saveData(std::ostream &os, UT_Vector2D v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
static void loadData(UT_IStream &is, UT_Vector4D &v)
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:284
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void
Definition: png.h:1083
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const GLfloat * c
Definition: glew.h:16296
GLuint GLsizei GLsizei * length
Definition: glew.h:1825
static void saveData(std::ostream &os, UT_StringHolder s)
exint getNestNumParms(TempIndex idx) const override
void save(std::ostream &os) const
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
UT_StringHolder createString(const UT_Array< Numerror > &list) const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:460
bool operator!=(const Numerror &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
int64 opNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
exint opNumerror(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
fpreal64 fpreal
Definition: SYS_Types.h:277
bool operator==(const Numerror &src) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
SYS_FORCE_INLINE void append(char character)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool operator!=(const SOP_ErrorNodeParms &src) const
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
bool load(UT_IStream &is)
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
GLenum GLuint GLsizei const GLchar * buf
Definition: glew.h:2580
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
GLboolean enable
Definition: glew.h:2745
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
type
Definition: core.h:528
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override