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_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 using namespace UT::Literal;
23 
24 class DEP_MicroNode;
25 namespace SOP_ErrorNodeEnums
26 {
27  enum class Severity
28  {
29  MESSAGE = 0,
30  WARN,
31  ERROR
32  };
33 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40  struct Numerror
41  {
45 
46 
48  {
49  errormsg = ""_sh;
50  severity = 0;
51  enable = 0;
52 
53  }
54 
55  bool operator==(const Numerror &src) const
56  {
57  if (errormsg != src.errormsg) return false;
58  if (severity != src.severity) return false;
59  if (enable != src.enable) return false;
60 
61  return true;
62  }
63  bool operator!=(const Numerror &src) const
64  {
65  return !operator==(src);
66  }
67 
68  };
69 
71  {
73 
74  buf.strcat("[ ");
75  for (int i = 0; i < list.entries(); i++)
76  {
77  if (i)
78  buf.strcat(", ");
79  buf.strcat("( ");
80  buf.append("");
81  { UT_String tmp; tmp = UT_StringWrap(list(i).errormsg).makeQuotedString('"'); buf.strcat(tmp); }
82  buf.append(", ");
83  buf.appendSprintf("%d", (int) list(i).severity);
84  buf.append(", ");
85  buf.appendSprintf("%d", (int) list(i).enable);
86 
87  buf.strcat(" )");
88  }
89  buf.strcat(" ]");
90 
92  return result;
93  }
94 
96  {
97  myNumerror.setSize(1);
98 
99  }
100 
101  explicit SOP_ErrorNodeParms(const SOP_ErrorNodeParms &) = default;
102 
103  ~SOP_ErrorNodeParms() override {}
104 
105  bool operator==(const SOP_ErrorNodeParms &src) const
106  {
107  if (myNumerror != src.myNumerror) return false;
108 
109  return true;
110  }
111  bool operator!=(const SOP_ErrorNodeParms &src) const
112  {
113  return !operator==(src);
114  }
116 
117 
118 
119  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
120  {
121  if (true)
122  {
123  int64 length = 0;
124  graph->evalOpParm(length, nodeidx, "numerror", time, 0);
125  if (length < 0) length = 0;
126  myNumerror.setSize(length);
127  for (exint i = 0; i < length; i++)
128  {
129  int parmidx[1];
130  int offsets[1];
131  parmidx[0] = i+1;
132  offsets[0] = 1;
133  auto && _curentry = myNumerror(i);
134  (void) _curentry;
135  _curentry.errormsg = ""_sh;
136  if (true)
137  graph->evalOpParmInst(_curentry.errormsg, nodeidx, "errormsg#", parmidx, offsets, time, 0, 2-1);
138  _curentry.severity = 0;
139  if (true)
140  graph->evalOpParmInst(_curentry.severity, nodeidx, "severity#", parmidx, offsets, time, 0, 2-1);
141  _curentry.enable = 0;
142  if (true)
143  graph->evalOpParmInst(_curentry.enable, nodeidx, "enable#", parmidx, offsets, time, 0, 2-1);
144 
145  }
146  }
147  else
148  myNumerror.clear();
149 
150  }
151 
152 
153  void loadFromOpSubclass(const LoadParms &loadparms) override
154  {
155  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
156  }
157 
158 
159  void copyFrom(const SOP_NodeParms *src) override
160  {
161  *this = *((const SOP_ErrorNodeParms *)src);
162  }
163 
164  template <typename T>
165  void
166  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
167  {
168  if (idx.size() < 1)
169  return;
170  UT_ASSERT(idx.size() == instance.size()+1);
171  if (idx.size() != instance.size()+1)
172  return;
173  switch (idx[0])
174  {
175  case 0:
176  if (idx.size() == 1)
177  coerceValue(value, myNumerror.entries());
178  else if (instance[0] < myNumerror.entries())
179  {
180  auto && _data = myNumerror(instance[0]);
181  switch (idx[1])
182  {
183  case 0:
184  coerceValue(value, _data.errormsg);
185  break;
186  case 1:
187  coerceValue(value, _data.severity);
188  break;
189  case 2:
190  coerceValue(value, _data.enable);
191  break;
192 
193  }
194  }
195  break;
196 
197  }
198  }
199 
200  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
221  { doGetParmValue(idx, instance, value); }
222 
223  template <typename T>
224  void
225  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
226  {
227  if (idx.size() < 1)
228  return;
229  UT_ASSERT(idx.size() == instance.size()+1);
230  if (idx.size() != instance.size()+1)
231  return;
232  switch (idx[0])
233  {
234  case 0:
235  if (idx.size() == 1)
236  {
237  exint newsize;
238  coerceValue(newsize, value);
239  if (newsize < 0) newsize = 0;
240  myNumerror.setSize(newsize);
241  }
242  else
243  {
244  if (instance[0] < 0)
245  return;
246  myNumerror.setSizeIfNeeded(instance[0]+1);
247  auto && _data = myNumerror(instance[0]);
248  switch (idx[1])
249  {
250  case 0:
251  coerceValue(_data.errormsg, value);
252  break;
253  case 1:
254  coerceValue(_data.severity, value);
255  break;
256  case 2:
257  coerceValue(_data.enable, value);
258  break;
259 
260  }
261  }
262  break;
263 
264  }
265  }
266 
267  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
268  { doSetParmValue(idx, instance, value); }
269  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
288  { doSetParmValue(idx, instance, value); }
289 
290  exint getNestNumParms(TempIndex idx) const override
291  {
292  if (idx.size() == 0)
293  return 1;
294  switch (idx[0])
295  {
296  case 0:
297  return 3;
298 
299  }
300  // Invalid
301  return 0;
302  }
303 
304  const char *getNestParmName(TempIndex fieldnum) const override
305  {
306  if (fieldnum.size() < 1)
307  return 0;
308  switch (fieldnum[0])
309  {
310  case 0:
311  if (fieldnum.size() == 1)
312  return "numerror";
313  switch (fieldnum[1])
314  {
315  case 0:
316  return "errormsg#";
317  case 1:
318  return "severity#";
319  case 2:
320  return "enable#";
321 
322  }
323  return 0;
324 
325  }
326  return 0;
327  }
328 
329  ParmType getNestParmType(TempIndex fieldnum) const override
330  {
331  if (fieldnum.size() < 1)
332  return PARM_UNSUPPORTED;
333  switch (fieldnum[0])
334  {
335  case 0:
336  if (fieldnum.size() == 1)
337  return PARM_MULTIPARM;
338  switch (fieldnum[1])
339  {
340  case 0:
341  return PARM_STRING;
342  case 1:
343  return PARM_INTEGER;
344  case 2:
345  return PARM_INTEGER;
346 
347  }
348  return PARM_UNSUPPORTED;
349 
350  }
351  return PARM_UNSUPPORTED;
352  }
353 
354  // Boiler plate to load individual types.
355  static void loadData(UT_IStream &is, int64 &v)
356  { is.bread(&v, 1); }
357  static void loadData(UT_IStream &is, bool &v)
358  { int64 iv; is.bread(&iv, 1); v = iv; }
359  static void loadData(UT_IStream &is, fpreal64 &v)
360  { is.bread<fpreal64>(&v, 1); }
361  static void loadData(UT_IStream &is, UT_Vector2D &v)
362  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
363  static void loadData(UT_IStream &is, UT_Vector3D &v)
364  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
365  is.bread<fpreal64>(&v.z(), 1); }
366  static void loadData(UT_IStream &is, UT_Vector4D &v)
367  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
368  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
369  static void loadData(UT_IStream &is, UT_Matrix2D &v)
370  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
371  static void loadData(UT_IStream &is, UT_Matrix3D &v)
372  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
373  static void loadData(UT_IStream &is, UT_Matrix4D &v)
374  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
375  static void loadData(UT_IStream &is, UT_Vector2I &v)
376  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
377  static void loadData(UT_IStream &is, UT_Vector3I &v)
378  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
379  is.bread<int64>(&v.z(), 1); }
380  static void loadData(UT_IStream &is, UT_Vector4I &v)
381  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
382  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
384  { is.bread(v); }
386  { UT_StringHolder rampdata;
387  loadData(is, rampdata);
388  if (rampdata.isstring())
389  {
390  v.reset(new UT_Ramp());
391  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
392  v->load(istr);
393  }
394  else v.reset();
395  }
398  loadData(is, data);
399  if (data.isstring())
400  {
401  // Find the data type.
402  const char *colon = UT_StringWrap(data).findChar(':');
403  if (colon)
404  {
405  int typelen = colon - data.buffer();
407  type.strncpy(data.buffer(), typelen);
408  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
409 
410  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
411  }
412  }
413  else v.reset();
414  }
415 
416  static void saveData(std::ostream &os, int64 v)
417  { UTwrite(os, &v); }
418  static void saveData(std::ostream &os, bool v)
419  { int64 iv = v; UTwrite(os, &iv); }
420  static void saveData(std::ostream &os, fpreal64 v)
421  { UTwrite<fpreal64>(os, &v); }
422  static void saveData(std::ostream &os, UT_Vector2D v)
423  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
424  static void saveData(std::ostream &os, UT_Vector3D v)
425  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
426  UTwrite<fpreal64>(os, &v.z()); }
427  static void saveData(std::ostream &os, UT_Vector4D v)
428  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
429  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
430  static void saveData(std::ostream &os, UT_Matrix2D v)
432  static void saveData(std::ostream &os, UT_Matrix3D v)
434  static void saveData(std::ostream &os, UT_Matrix4D v)
436  static void saveData(std::ostream &os, UT_StringHolder s)
437  { UT_StringWrap(s).saveBinary(os); }
438  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
440  UT_OStringStream ostr;
441  if (s) s->save(ostr);
442  result = ostr.str();
443  saveData(os, result);
444  }
445  static void saveData(std::ostream &os, PRM_DataItemHandle s)
447  UT_OStringStream ostr;
448  if (s)
449  {
450  ostr << s->getDataTypeToken();
451  ostr << ":";
452  s->saveBinary(ostr);
453  }
454  result = ostr.str();
455  saveData(os, result);
456  }
457 
458 
459  void save(std::ostream &os) const
460  {
461  int32 v = version();
462  UTwrite(os, &v);
463  {
464  int64 length = myNumerror.entries();
465  UTwrite(os, &length);
466  for (exint i = 0; i < length; i++)
467  {
468  auto && _curentry = myNumerror(i);
469  (void) _curentry;
470  saveData(os, _curentry.errormsg);
471  saveData(os, _curentry.severity);
472  saveData(os, _curentry.enable);
473 
474  }
475  }
476 
477  }
478 
479  bool load(UT_IStream &is)
480  {
481  int32 v;
482  is.bread(&v, 1);
483  if (version() != v)
484  {
485  // Fail incompatible versions
486  return false;
487  }
488  {
489  int64 length;
490  is.read(&length, 1);
491  myNumerror.setSize(length);
492  for (exint i = 0; i < length; i++)
493  {
494  auto && _curentry = myNumerror(i);
495  (void) _curentry;
496  loadData(is, _curentry.errormsg);
497  loadData(is, _curentry.severity);
498  loadData(is, _curentry.enable);
499 
500  }
501  }
502 
503  return true;
504  }
505 
506  const UT_Array<Numerror> &getNumerror() const { return myNumerror; }
507 void setNumerror(const UT_Array<Numerror> &val) { myNumerror = val; }
508  exint opNumerror(const SOP_NodeVerb::CookParms &cookparms) const
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getNumerror().entries();
512  exint result;
513  OP_Utils::evalOpParm(result, thissop, "numerror", cookparms.getCookTime(), 0);
514  return result;
515  }
517  { return opinstNumerror_errormsg(cookparms, &_idx); }
518  UT_StringHolder opinstNumerror_errormsg(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return (myNumerror(_idx[0]).errormsg);
522  int _parmidx[2-1];
523  _parmidx[1-1] = _idx[1-1] + 1;
524 
526  OP_Utils::evalOpParmInst(result, thissop, "errormsg#", _parmidx, cookparms.getCookTime(), 0, 2-1);
527  return (result);
528  }
529  int64 opNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
530  { return opinstNumerror_severity(cookparms, &_idx); }
531  int64 opinstNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
532  {
533  SOP_Node *thissop = cookparms.getNode();
534  if (!thissop) return (myNumerror(_idx[0]).severity);
535  int _parmidx[2-1];
536  _parmidx[1-1] = _idx[1-1] + 1;
537 
538  int64 result;
539  OP_Utils::evalOpParmInst(result, thissop, "severity#", _parmidx, cookparms.getCookTime(), 0, 2-1);
540  return (result);
541  }
542  int64 opNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
543  { return opinstNumerror_enable(cookparms, &_idx); }
544  int64 opinstNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
545  {
546  SOP_Node *thissop = cookparms.getNode();
547  if (!thissop) return (myNumerror(_idx[0]).enable);
548  int _parmidx[2-1];
549  _parmidx[1-1] = _idx[1-1] + 1;
550 
551  int64 result;
552  OP_Utils::evalOpParmInst(result, thissop, "enable#", _parmidx, cookparms.getCookTime(), 0, 2-1);
553  return (result);
554  }
555 
556 
557 private:
558  UT_Array<Numerror> myNumerror;
559 
560 };
int64 opinstNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
void setNumerror(const UT_Array< Numerror > &val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, fpreal64 &v)
GLboolean enable
Definition: glew.h:2750
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:102
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:734
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)
void
Definition: png.h:1083
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:59
static void saveData(std::ostream &os, int64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
int64 opinstNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glcorearb.h:2621
const GLfloat * c
Definition: glew.h:16631
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:657
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:101
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
static void saveData(std::ostream &os, UT_Vector3D v)
int64 opNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
GLenum src
Definition: glcorearb.h:1793
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.
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)
GLuint64EXT * result
Definition: glew.h:14311
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:36
static void loadData(UT_IStream &is, UT_Vector4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
const GLdouble * v
Definition: glcorearb.h:837
int64 opNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:288
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
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)
GLenum GLenum severity
Definition: glcorearb.h:2539
UT_StringHolder opinstNumerror_errormsg(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
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
UT_StringHolder opNumerror_errormsg(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:287
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:109
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:611
GLboolean * data
Definition: glcorearb.h:131
bool operator!=(const Numerror &src) const
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
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)
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
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:748
const char * findChar(int c) const
Definition: UT_String.h:1372
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:153
Definition: core.h:1131
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
type
Definition: core.h:1059
GLboolean r
Definition: glcorearb.h:1222
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:655
GLdouble s
Definition: glew.h:1395
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
const OP_Context & context() const
Definition: SOP_NodeVerb.h:107
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, const int *inst, const int *offsets, fpreal time, DEP_MicroNode *depnode, int nestlevel=1) const =0
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:653
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override