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