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