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 }
32 
33 
35 {
36 public:
37  static int version() { return 1; }
38  struct Numerror
39  {
43 
44 
46  {
47  errormsg = ""_UTsh;
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  myNumerror.setSize(1);
96 
97  }
98 
99  explicit SOP_ErrorNodeParms(const SOP_ErrorNodeParms &) = default;
100  SOP_ErrorNodeParms &operator=(const SOP_ErrorNodeParms &) = default;
101  SOP_ErrorNodeParms(SOP_ErrorNodeParms &&) noexcept = default;
102  SOP_ErrorNodeParms &operator=(SOP_ErrorNodeParms &&) noexcept = default;
103 
104  ~SOP_ErrorNodeParms() override {}
105 
106  bool operator==(const SOP_ErrorNodeParms &src) const
107  {
108  if (myNumerror != src.myNumerror) return false;
109 
110  return true;
111  }
112  bool operator!=(const SOP_ErrorNodeParms &src) const
113  {
114  return !operator==(src);
115  }
117 
118 
119 
120  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
121  {
122  if (true)
123  {
124  int64 length = 0;
125  graph->evalOpParm(length, nodeidx, "numerror", time, 0);
126  if (length < 0) length = 0;
127  myNumerror.setSize(length);
128  for (exint i = 0; i < length; i++)
129  {
130  int parmidx[1];
131  int offsets[1];
132  parmidx[0] = i+1;
133  offsets[0] = 1;
134  auto && _curentry = myNumerror(i);
135  (void) _curentry;
136  _curentry.errormsg = ""_UTsh;
137  if (true)
138  graph->evalOpParmInst(_curentry.errormsg, nodeidx, "errormsg#", parmidx, offsets, time, 0, 2-1);
139  _curentry.severity = 0;
140  if (true)
141  graph->evalOpParmInst(_curentry.severity, nodeidx, "severity#", parmidx, offsets, time, 0, 2-1);
142  _curentry.enable = 0;
143  if (true)
144  graph->evalOpParmInst(_curentry.enable, nodeidx, "enable#", parmidx, offsets, time, 0, 2-1);
145 
146  }
147  }
148  else
149  myNumerror.clear();
150 
151  }
152 
153 
154  void loadFromOpSubclass(const LoadParms &loadparms) override
155  {
156  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
157  }
158 
159 
160  void copyFrom(const OP_NodeParms *src) override
161  {
162  *this = *((const SOP_ErrorNodeParms *)src);
163  }
164 
165  template <typename T>
166  void
167  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
168  {
169  if (idx.size() < 1)
170  return;
171  UT_ASSERT(idx.size() == instance.size()+1);
172  if (idx.size() != instance.size()+1)
173  return;
174  switch (idx[0])
175  {
176  case 0:
177  if (idx.size() == 1)
178  coerceValue(value, myNumerror.entries());
179  else if (instance[0] < myNumerror.entries())
180  {
181  auto && _data = myNumerror(instance[0]);
182  switch (idx[1])
183  {
184  case 0:
185  coerceValue(value, _data.errormsg);
186  break;
187  case 1:
188  coerceValue(value, _data.severity);
189  break;
190  case 2:
191  coerceValue(value, _data.enable);
192  break;
193 
194  }
195  }
196  break;
197 
198  }
199  }
200 
201  bool isParmColorRamp(exint idx) const override
202  {
203  switch (idx)
204  {
205 
206  }
207  return false;
208  }
209 
210  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
223  { doGetParmValue(idx, instance, value); }
224  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
225  { doGetParmValue(idx, instance, value); }
226  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
227  { doGetParmValue(idx, instance, value); }
228  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
229  { doGetParmValue(idx, instance, value); }
230  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
231  { doGetParmValue(idx, instance, value); }
232 
233  template <typename T>
234  void
235  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
236  {
237  if (idx.size() < 1)
238  return;
239  UT_ASSERT(idx.size() == instance.size()+1);
240  if (idx.size() != instance.size()+1)
241  return;
242  switch (idx[0])
243  {
244  case 0:
245  if (idx.size() == 1)
246  {
247  exint newsize;
248  coerceValue(newsize, value);
249  if (newsize < 0) newsize = 0;
250  myNumerror.setSize(newsize);
251  }
252  else
253  {
254  if (instance[0] < 0)
255  return;
256  myNumerror.setSizeIfNeeded(instance[0]+1);
257  auto && _data = myNumerror(instance[0]);
258  switch (idx[1])
259  {
260  case 0:
261  coerceValue(_data.errormsg, value);
262  break;
263  case 1:
264  coerceValue(_data.severity, value);
265  break;
266  case 2:
267  coerceValue(_data.enable, value);
268  break;
269 
270  }
271  }
272  break;
273 
274  }
275  }
276 
277  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
290  { doSetParmValue(idx, instance, value); }
291  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
292  { doSetParmValue(idx, instance, value); }
293  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
294  { doSetParmValue(idx, instance, value); }
295  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
296  { doSetParmValue(idx, instance, value); }
297  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
298  { doSetParmValue(idx, instance, value); }
299 
300  exint getNestNumParms(TempIndex idx) const override
301  {
302  if (idx.size() == 0)
303  return 1;
304  switch (idx[0])
305  {
306  case 0:
307  return 3;
308 
309  }
310  // Invalid
311  return 0;
312  }
313 
314  const char *getNestParmName(TempIndex fieldnum) const override
315  {
316  if (fieldnum.size() < 1)
317  return 0;
318  switch (fieldnum[0])
319  {
320  case 0:
321  if (fieldnum.size() == 1)
322  return "numerror";
323  switch (fieldnum[1])
324  {
325  case 0:
326  return "errormsg#";
327  case 1:
328  return "severity#";
329  case 2:
330  return "enable#";
331 
332  }
333  return 0;
334 
335  }
336  return 0;
337  }
338 
339  ParmType getNestParmType(TempIndex fieldnum) const override
340  {
341  if (fieldnum.size() < 1)
342  return PARM_UNSUPPORTED;
343  switch (fieldnum[0])
344  {
345  case 0:
346  if (fieldnum.size() == 1)
347  return PARM_MULTIPARM;
348  switch (fieldnum[1])
349  {
350  case 0:
351  return PARM_STRING;
352  case 1:
353  return PARM_INTEGER;
354  case 2:
355  return PARM_INTEGER;
356 
357  }
358  return PARM_UNSUPPORTED;
359 
360  }
361  return PARM_UNSUPPORTED;
362  }
363 
364  // Boiler plate to load individual types.
365  static void loadData(UT_IStream &is, int64 &v)
366  { is.bread(&v, 1); }
367  static void loadData(UT_IStream &is, bool &v)
368  { int64 iv; is.bread(&iv, 1); v = iv; }
369  static void loadData(UT_IStream &is, fpreal64 &v)
370  { is.bread<fpreal64>(&v, 1); }
371  static void loadData(UT_IStream &is, UT_Vector2D &v)
372  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector3D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector4D &v)
377  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
378  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
379  static void loadData(UT_IStream &is, UT_Matrix2D &v)
380  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
381  static void loadData(UT_IStream &is, UT_Matrix3D &v)
382  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
383  static void loadData(UT_IStream &is, UT_Matrix4D &v)
384  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
385  static void loadData(UT_IStream &is, UT_Vector2I &v)
386  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector3I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); }
390  static void loadData(UT_IStream &is, UT_Vector4I &v)
391  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
392  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
394  { is.bread(v); }
396  { UT_StringHolder rampdata;
397  loadData(is, rampdata);
398  if (rampdata.isstring())
399  {
400  v.reset(new UT_Ramp());
401  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
402  v->load(istr);
403  }
404  else v.reset();
405  }
408  loadData(is, data);
409  if (data.isstring())
410  {
411  // Find the data type.
412  const char *colon = UT_StringWrap(data).findChar(':');
413  if (colon)
414  {
415  int typelen = colon - data.buffer();
417  type.strncpy(data.buffer(), typelen);
418  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
419 
420  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
421  }
422  }
423  else v.reset();
424  }
425 
426  static void saveData(std::ostream &os, int64 v)
427  { UTwrite(os, &v); }
428  static void saveData(std::ostream &os, bool v)
429  { int64 iv = v; UTwrite(os, &iv); }
430  static void saveData(std::ostream &os, fpreal64 v)
431  { UTwrite<fpreal64>(os, &v); }
432  static void saveData(std::ostream &os, UT_Vector2D v)
433  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
434  static void saveData(std::ostream &os, UT_Vector3D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); }
437  static void saveData(std::ostream &os, UT_Vector4D v)
438  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
439  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
440  static void saveData(std::ostream &os, UT_Matrix2D v)
442  static void saveData(std::ostream &os, UT_Matrix3D v)
444  static void saveData(std::ostream &os, UT_Matrix4D v)
446  static void saveData(std::ostream &os, UT_StringHolder s)
447  { UT_StringWrap(s).saveBinary(os); }
448  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
450  UT_OStringStream ostr;
451  if (s) s->save(ostr);
452  result = ostr.str();
453  saveData(os, result);
454  }
455  static void saveData(std::ostream &os, PRM_DataItemHandle s)
457  UT_OStringStream ostr;
458  if (s)
459  {
460  ostr << s->getDataTypeToken();
461  ostr << ":";
462  s->saveBinary(ostr);
463  }
464  result = ostr.str();
465  saveData(os, result);
466  }
467 
468 
469  void save(std::ostream &os) const
470  {
471  int32 v = version();
472  UTwrite(os, &v);
473  {
474  int64 length = myNumerror.entries();
475  UTwrite(os, &length);
476  for (exint i = 0; i < length; i++)
477  {
478  auto && _curentry = myNumerror(i);
479  (void) _curentry;
480  saveData(os, _curentry.errormsg);
481  saveData(os, _curentry.severity);
482  saveData(os, _curentry.enable);
483 
484  }
485  }
486 
487  }
488 
489  bool load(UT_IStream &is)
490  {
491  int32 v;
492  is.bread(&v, 1);
493  if (version() != v)
494  {
495  // Fail incompatible versions
496  return false;
497  }
498  {
499  int64 length;
500  is.read(&length, 1);
501  myNumerror.setSize(length);
502  for (exint i = 0; i < length; i++)
503  {
504  auto && _curentry = myNumerror(i);
505  (void) _curentry;
506  loadData(is, _curentry.errormsg);
507  loadData(is, _curentry.severity);
508  loadData(is, _curentry.enable);
509 
510  }
511  }
512 
513  return true;
514  }
515 
516  const UT_Array<Numerror> &getNumerror() const { return myNumerror; }
517 void setNumerror(const UT_Array<Numerror> &val) { myNumerror = val; }
518  exint opNumerror(const SOP_NodeVerb::CookParms &cookparms) const
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return getNumerror().entries();
522  exint result;
523  OP_Utils::evalOpParm(result, thissop, "numerror", cookparms.getCookTime(), 0);
524  return result;
525  }
527  { return opinstNumerror_errormsg(cookparms, &_idx); }
528  UT_StringHolder opinstNumerror_errormsg(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
529  {
530  SOP_Node *thissop = cookparms.getNode();
531  if (!thissop) return (myNumerror(_idx[0]).errormsg);
532  int _parmidx[2-1];
533  _parmidx[1-1] = _idx[1-1] + 1;
534 
536  OP_Utils::evalOpParmInst(result, thissop, "errormsg#", _parmidx, cookparms.getCookTime(), 0, 2-1);
537  return (result);
538  }
539  int64 opNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
540  { return opinstNumerror_severity(cookparms, &_idx); }
541  int64 opinstNumerror_severity(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
542  {
543  SOP_Node *thissop = cookparms.getNode();
544  if (!thissop) return (myNumerror(_idx[0]).severity);
545  int _parmidx[2-1];
546  _parmidx[1-1] = _idx[1-1] + 1;
547 
548  int64 result;
549  OP_Utils::evalOpParmInst(result, thissop, "severity#", _parmidx, cookparms.getCookTime(), 0, 2-1);
550  return (result);
551  }
552  int64 opNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
553  { return opinstNumerror_enable(cookparms, &_idx); }
554  int64 opinstNumerror_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
555  {
556  SOP_Node *thissop = cookparms.getNode();
557  if (!thissop) return (myNumerror(_idx[0]).enable);
558  int _parmidx[2-1];
559  _parmidx[1-1] = _idx[1-1] + 1;
560 
561  int64 result;
562  OP_Utils::evalOpParmInst(result, thissop, "enable#", _parmidx, cookparms.getCookTime(), 0, 2-1);
563  return (result);
564  }
565 
566 
567 private:
568  UT_Array<Numerror> myNumerror;
569 
570 };
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
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
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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)
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:1385
#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:89
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)
OP_NodeParms & operator=(const OP_NodeParms &)=default
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