HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PackInject.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_PackInjectEnums
24 {
25  enum class Method
26  {
27  REPLACE = 0,
28  COLLATE
29  };
30 
32  getToken(Method enum_value)
33  {
34  using namespace UT::Literal;
35  switch (enum_value) {
36  case Method::REPLACE: return "replace"_sh;
37  case Method::COLLATE: return "collate"_sh;
38  default: UT_ASSERT(false); return ""_sh;
39  }
40  }
41 
42  enum class Collate
43  {
44  SINGLE = 0,
45  INDEX,
46  ATTRIB,
48  };
49 
51  getToken(Collate enum_value)
52  {
53  using namespace UT::Literal;
54  switch (enum_value) {
55  case Collate::SINGLE: return "single"_sh;
56  case Collate::INDEX: return "index"_sh;
57  case Collate::ATTRIB: return "attrib"_sh;
58  case Collate::ATTRIBPAIR: return "attribpair"_sh;
59  default: UT_ASSERT(false); return ""_sh;
60  }
61  }
62 
63 }
64 
65 
67 {
68 public:
69  static int version() { return 1; }
70 
72  {
73  myGroup = ""_UTsh;
74  myMethod = 0;
75  myCollate = 2;
76  mySource = 0;
77  myMatchAttrib = "name"_UTsh;
78  mySrcAttrib = "name"_UTsh;
79  myIgnoremissing = true;
80  myPreservetype = true;
81 
82  }
83 
84  explicit SOP_PackInjectParms(const SOP_PackInjectParms &) = default;
86  SOP_PackInjectParms(SOP_PackInjectParms &&) noexcept = default;
87  SOP_PackInjectParms &operator=(SOP_PackInjectParms &&) noexcept = default;
88 
89  ~SOP_PackInjectParms() override {}
90 
91  bool operator==(const SOP_PackInjectParms &src) const
92  {
93  if (myGroup != src.myGroup) return false;
94  if (myMethod != src.myMethod) return false;
95  if (myCollate != src.myCollate) return false;
96  if (mySource != src.mySource) return false;
97  if (myMatchAttrib != src.myMatchAttrib) return false;
98  if (mySrcAttrib != src.mySrcAttrib) return false;
99  if (myIgnoremissing != src.myIgnoremissing) return false;
100  if (myPreservetype != src.myPreservetype) return false;
101 
102  return true;
103  }
104  bool operator!=(const SOP_PackInjectParms &src) const
105  {
106  return !operator==(src);
107  }
110 
111 
112 
113  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
114  {
115  myGroup = ""_UTsh;
116  if (true)
117  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
118  myMethod = 0;
119  if (true)
120  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
121  myCollate = 2;
122  if (true && ( (true&&!(((int64(getMethod())!=1)))) ) )
123  graph->evalOpParm(myCollate, nodeidx, "collate", time, 0);
124  mySource = 0;
125  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getCollate())!=0)))) ) )
126  graph->evalOpParm(mySource, nodeidx, "source", time, 0);
127  myMatchAttrib = "name"_UTsh;
128  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getCollate())==1)&&(int64(getCollate())==0)))) ) )
129  graph->evalOpParm(myMatchAttrib, nodeidx, "matchattrib", time, 0);
130  mySrcAttrib = "name"_UTsh;
131  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getCollate())!=3)))) ) )
132  graph->evalOpParm(mySrcAttrib, nodeidx, "srcattrib", time, 0);
133  myIgnoremissing = true;
134  if (true && ( (true&&!(((int64(getMethod())!=1)))) ) )
135  graph->evalOpParm(myIgnoremissing, nodeidx, "ignoremissing", time, 0);
136  myPreservetype = true;
137  if (true && ( (true&&!(((int64(getMethod())!=1)))) ) )
138  graph->evalOpParm(myPreservetype, nodeidx, "preservetype", time, 0);
139 
140  }
141 
142 
143  void loadFromOpSubclass(const LoadParms &loadparms) override
144  {
145  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
146  }
147 
148 
149  void copyFrom(const OP_NodeParms *src) override
150  {
151  *this = *((const SOP_PackInjectParms *)src);
152  }
153 
154  template <typename T>
155  void
156  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
157  {
158  if (idx.size() < 1)
159  return;
160  UT_ASSERT(idx.size() == instance.size()+1);
161  if (idx.size() != instance.size()+1)
162  return;
163  switch (idx[0])
164  {
165  case 0:
166  coerceValue(value, myGroup);
167  break;
168  case 1:
169  coerceValue(value, myMethod);
170  break;
171  case 2:
172  coerceValue(value, myCollate);
173  break;
174  case 3:
175  coerceValue(value, mySource);
176  break;
177  case 4:
178  coerceValue(value, myMatchAttrib);
179  break;
180  case 5:
181  coerceValue(value, mySrcAttrib);
182  break;
183  case 6:
184  coerceValue(value, myIgnoremissing);
185  break;
186  case 7:
187  coerceValue(value, myPreservetype);
188  break;
189 
190  }
191  }
192 
193  bool isParmColorRamp(exint idx) const override
194  {
195  switch (idx)
196  {
197 
198  }
199  return false;
200  }
201 
202  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
219  { doGetParmValue(idx, instance, value); }
220  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
221  { doGetParmValue(idx, instance, value); }
222  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
223  { doGetParmValue(idx, instance, value); }
224 
225  template <typename T>
226  void
227  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
228  {
229  if (idx.size() < 1)
230  return;
231  UT_ASSERT(idx.size() == instance.size()+1);
232  if (idx.size() != instance.size()+1)
233  return;
234  switch (idx[0])
235  {
236  case 0:
237  coerceValue(myGroup, ( ( value ) ));
238  break;
239  case 1:
240  coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
241  break;
242  case 2:
243  coerceValue(myCollate, clampMinValue(0, clampMaxValue(3, value ) ));
244  break;
245  case 3:
246  coerceValue(mySource, ( ( value ) ));
247  break;
248  case 4:
249  coerceValue(myMatchAttrib, ( ( value ) ));
250  break;
251  case 5:
252  coerceValue(mySrcAttrib, ( ( value ) ));
253  break;
254  case 6:
255  coerceValue(myIgnoremissing, ( ( value ) ));
256  break;
257  case 7:
258  coerceValue(myPreservetype, ( ( value ) ));
259  break;
260 
261  }
262  }
263 
264  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
285  { doSetParmValue(idx, instance, value); }
286 
287  exint getNestNumParms(TempIndex idx) const override
288  {
289  if (idx.size() == 0)
290  return 8;
291  switch (idx[0])
292  {
293 
294  }
295  // Invalid
296  return 0;
297  }
298 
299  const char *getNestParmName(TempIndex fieldnum) const override
300  {
301  if (fieldnum.size() < 1)
302  return 0;
303  switch (fieldnum[0])
304  {
305  case 0:
306  return "group";
307  case 1:
308  return "method";
309  case 2:
310  return "collate";
311  case 3:
312  return "source";
313  case 4:
314  return "matchattrib";
315  case 5:
316  return "srcattrib";
317  case 6:
318  return "ignoremissing";
319  case 7:
320  return "preservetype";
321 
322  }
323  return 0;
324  }
325 
326  ParmType getNestParmType(TempIndex fieldnum) const override
327  {
328  if (fieldnum.size() < 1)
329  return PARM_UNSUPPORTED;
330  switch (fieldnum[0])
331  {
332  case 0:
333  return PARM_STRING;
334  case 1:
335  return PARM_INTEGER;
336  case 2:
337  return PARM_INTEGER;
338  case 3:
339  return PARM_INTEGER;
340  case 4:
341  return PARM_STRING;
342  case 5:
343  return PARM_STRING;
344  case 6:
345  return PARM_INTEGER;
346  case 7:
347  return PARM_INTEGER;
348 
349  }
350  return PARM_UNSUPPORTED;
351  }
352 
353  // Boiler plate to load individual types.
354  static void loadData(UT_IStream &is, int64 &v)
355  { is.bread(&v, 1); }
356  static void loadData(UT_IStream &is, bool &v)
357  { int64 iv; is.bread(&iv, 1); v = iv; }
358  static void loadData(UT_IStream &is, fpreal64 &v)
359  { is.bread<fpreal64>(&v, 1); }
360  static void loadData(UT_IStream &is, UT_Vector2D &v)
361  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
362  static void loadData(UT_IStream &is, UT_Vector3D &v)
363  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
364  is.bread<fpreal64>(&v.z(), 1); }
365  static void loadData(UT_IStream &is, UT_Vector4D &v)
366  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
367  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
368  static void loadData(UT_IStream &is, UT_Matrix2D &v)
369  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
370  static void loadData(UT_IStream &is, UT_Matrix3D &v)
371  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
372  static void loadData(UT_IStream &is, UT_Matrix4D &v)
373  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
374  static void loadData(UT_IStream &is, UT_Vector2I &v)
375  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
376  static void loadData(UT_IStream &is, UT_Vector3I &v)
377  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
378  is.bread<int64>(&v.z(), 1); }
379  static void loadData(UT_IStream &is, UT_Vector4I &v)
380  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
381  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
383  { is.bread(v); }
385  { UT_StringHolder rampdata;
386  loadData(is, rampdata);
387  if (rampdata.isstring())
388  {
389  v.reset(new UT_Ramp());
390  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
391  v->load(istr);
392  }
393  else v.reset();
394  }
397  loadData(is, data);
398  if (data.isstring())
399  {
400  // Find the data type.
401  const char *colon = UT_StringWrap(data).findChar(':');
402  if (colon)
403  {
404  int typelen = colon - data.buffer();
406  type.strncpy(data.buffer(), typelen);
407  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
408 
409  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
410  }
411  }
412  else v.reset();
413  }
414 
415  static void saveData(std::ostream &os, int64 v)
416  { UTwrite(os, &v); }
417  static void saveData(std::ostream &os, bool v)
418  { int64 iv = v; UTwrite(os, &iv); }
419  static void saveData(std::ostream &os, fpreal64 v)
420  { UTwrite<fpreal64>(os, &v); }
421  static void saveData(std::ostream &os, UT_Vector2D v)
422  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
423  static void saveData(std::ostream &os, UT_Vector3D v)
424  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
425  UTwrite<fpreal64>(os, &v.z()); }
426  static void saveData(std::ostream &os, UT_Vector4D v)
427  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
428  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
429  static void saveData(std::ostream &os, UT_Matrix2D v)
431  static void saveData(std::ostream &os, UT_Matrix3D v)
433  static void saveData(std::ostream &os, UT_Matrix4D v)
435  static void saveData(std::ostream &os, UT_StringHolder s)
436  { UT_StringWrap(s).saveBinary(os); }
437  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
439  UT_OStringStream ostr;
440  if (s) s->save(ostr);
441  result = ostr.str();
442  saveData(os, result);
443  }
444  static void saveData(std::ostream &os, PRM_DataItemHandle s)
446  UT_OStringStream ostr;
447  if (s)
448  {
449  ostr << s->getDataTypeToken();
450  ostr << ":";
451  s->saveBinary(ostr);
452  }
453  result = ostr.str();
454  saveData(os, result);
455  }
456 
457 
458  void save(std::ostream &os) const
459  {
460  int32 v = version();
461  UTwrite(os, &v);
462  saveData(os, myGroup);
463  saveData(os, myMethod);
464  saveData(os, myCollate);
465  saveData(os, mySource);
466  saveData(os, myMatchAttrib);
467  saveData(os, mySrcAttrib);
468  saveData(os, myIgnoremissing);
469  saveData(os, myPreservetype);
470 
471  }
472 
473  bool load(UT_IStream &is)
474  {
475  int32 v;
476  is.bread(&v, 1);
477  if (version() != v)
478  {
479  // Fail incompatible versions
480  return false;
481  }
482  loadData(is, myGroup);
483  loadData(is, myMethod);
484  loadData(is, myCollate);
485  loadData(is, mySource);
486  loadData(is, myMatchAttrib);
487  loadData(is, mySrcAttrib);
488  loadData(is, myIgnoremissing);
489  loadData(is, myPreservetype);
490 
491  return true;
492  }
493 
494  const UT_StringHolder & getGroup() const { return myGroup; }
495  void setGroup(const UT_StringHolder & val) { myGroup = val; }
497  {
498  SOP_Node *thissop = cookparms.getNode();
499  if (!thissop) return getGroup();
501  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
502  return result;
503  }
504  Method getMethod() const { return Method(myMethod); }
505  void setMethod(Method val) { myMethod = int64(val); }
506  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
507  {
508  SOP_Node *thissop = cookparms.getNode();
509  if (!thissop) return getMethod();
510  int64 result;
511  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
512  return Method(result);
513  }
514  Collate getCollate() const { return Collate(myCollate); }
515  void setCollate(Collate val) { myCollate = int64(val); }
516  Collate opCollate(const SOP_NodeVerb::CookParms &cookparms) const
517  {
518  SOP_Node *thissop = cookparms.getNode();
519  if (!thissop) return getCollate();
520  int64 result;
521  OP_Utils::evalOpParm(result, thissop, "collate", cookparms.getCookTime(), 0);
522  return Collate(result);
523  }
524  int64 getSource() const { return mySource; }
525  void setSource(int64 val) { mySource = val; }
526  int64 opSource(const SOP_NodeVerb::CookParms &cookparms) const
527  {
528  SOP_Node *thissop = cookparms.getNode();
529  if (!thissop) return getSource();
530  int64 result;
531  OP_Utils::evalOpParm(result, thissop, "source", cookparms.getCookTime(), 0);
532  return result;
533  }
534  const UT_StringHolder & getMatchAttrib() const { return myMatchAttrib; }
535  void setMatchAttrib(const UT_StringHolder & val) { myMatchAttrib = val; }
537  {
538  SOP_Node *thissop = cookparms.getNode();
539  if (!thissop) return getMatchAttrib();
541  OP_Utils::evalOpParm(result, thissop, "matchattrib", cookparms.getCookTime(), 0);
542  return result;
543  }
544  const UT_StringHolder & getSrcAttrib() const { return mySrcAttrib; }
545  void setSrcAttrib(const UT_StringHolder & val) { mySrcAttrib = val; }
547  {
548  SOP_Node *thissop = cookparms.getNode();
549  if (!thissop) return getSrcAttrib();
551  OP_Utils::evalOpParm(result, thissop, "srcattrib", cookparms.getCookTime(), 0);
552  return result;
553  }
554  bool getIgnoremissing() const { return myIgnoremissing; }
555  void setIgnoremissing(bool val) { myIgnoremissing = val; }
556  bool opIgnoremissing(const SOP_NodeVerb::CookParms &cookparms) const
557  {
558  SOP_Node *thissop = cookparms.getNode();
559  if (!thissop) return getIgnoremissing();
560  bool result;
561  OP_Utils::evalOpParm(result, thissop, "ignoremissing", cookparms.getCookTime(), 0);
562  return result;
563  }
564  bool getPreservetype() const { return myPreservetype; }
565  void setPreservetype(bool val) { myPreservetype = val; }
566  bool opPreservetype(const SOP_NodeVerb::CookParms &cookparms) const
567  {
568  SOP_Node *thissop = cookparms.getNode();
569  if (!thissop) return getPreservetype();
570  bool result;
571  OP_Utils::evalOpParm(result, thissop, "preservetype", cookparms.getCookTime(), 0);
572  return result;
573  }
574 
575 private:
576  UT_StringHolder myGroup;
577  int64 myMethod;
578  int64 myCollate;
579  int64 mySource;
580  UT_StringHolder myMatchAttrib;
581  UT_StringHolder mySrcAttrib;
582  bool myIgnoremissing;
583  bool myPreservetype;
584 
585 };
bool opPreservetype(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
const UT_StringHolder & getGroup() const
static void loadData(UT_IStream &is, fpreal64 &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
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
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:62
void setPreservetype(bool val)
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
int getSource() override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setCollate(Collate val)
bool operator==(const SOP_PackInjectParms &src) const
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
bool operator!=(const SOP_PackInjectParms &src) const
static void saveData(std::ostream &os, bool v)
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:613
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void loadFromOpSubclass(const LoadParms &loadparms) override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void saveData(std::ostream &os, UT_StringHolder s)
void setGroup(const UT_StringHolder &val)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
const UT_StringHolder & getSrcAttrib() const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
double fpreal64
Definition: SYS_Types.h:201
void setMatchAttrib(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void saveData(std::ostream &os, UT_Vector3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
ParmType getNestParmType(TempIndex fieldnum) const override
exint length() const
bool opIgnoremissing(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
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
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
bool load(UT_IStream &is)
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool getIgnoremissing() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
UT_StringHolder opMatchAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, int64 v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
const UT_StringHolder & getMatchAttrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
UT_StringHolder opSrcAttrib(const SOP_NodeVerb::CookParms &cookparms) const
Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
exint getNestNumParms(TempIndex idx) const override
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
SYS_FORCE_INLINE UT_StringHolder getToken(Method enum_value)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void loadData(UT_IStream &is, UT_Vector2D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
void setSrcAttrib(const UT_StringHolder &val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, bool &v)
int64 opSource(const SOP_NodeVerb::CookParms &cookparms) const
bool isParmColorRamp(exint idx) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Matrix3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setIgnoremissing(bool val)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setMethod(Method val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
Collate getCollate() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
Collate opCollate(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
static void saveData(std::ostream &os, UT_Vector4D v)