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