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  enum class Collate
31  {
32  SINGLE = 0,
33  INDEX,
34  ATTRIB,
36  };
37 }
38 
39 
41 {
42 public:
43  static int version() { return 1; }
44 
46  {
47  myGroup = ""_UTsh;
48  myMethod = 0;
49  myCollate = 2;
50  mySource = 0;
51  myMatchAttrib = "name"_UTsh;
52  mySrcAttrib = "name"_UTsh;
53  myIgnoremissing = true;
54  myPreservetype = true;
55 
56  }
57 
58  explicit SOP_PackInjectParms(const SOP_PackInjectParms &) = default;
60  SOP_PackInjectParms(SOP_PackInjectParms &&) noexcept = default;
61  SOP_PackInjectParms &operator=(SOP_PackInjectParms &&) noexcept = default;
62 
63  ~SOP_PackInjectParms() override {}
64 
65  bool operator==(const SOP_PackInjectParms &src) const
66  {
67  if (myGroup != src.myGroup) return false;
68  if (myMethod != src.myMethod) return false;
69  if (myCollate != src.myCollate) return false;
70  if (mySource != src.mySource) return false;
71  if (myMatchAttrib != src.myMatchAttrib) return false;
72  if (mySrcAttrib != src.mySrcAttrib) return false;
73  if (myIgnoremissing != src.myIgnoremissing) return false;
74  if (myPreservetype != src.myPreservetype) return false;
75 
76  return true;
77  }
78  bool operator!=(const SOP_PackInjectParms &src) const
79  {
80  return !operator==(src);
81  }
84 
85 
86 
87  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
88  {
89  myGroup = ""_UTsh;
90  if (true)
91  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
92  myMethod = 0;
93  if (true)
94  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
95  myCollate = 2;
96  if (true && ( (true&&!(((int64(getMethod())!=1)))) ) )
97  graph->evalOpParm(myCollate, nodeidx, "collate", time, 0);
98  mySource = 0;
99  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getCollate())!=0)))) ) )
100  graph->evalOpParm(mySource, nodeidx, "source", time, 0);
101  myMatchAttrib = "name"_UTsh;
102  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getCollate())==1)&&(int64(getCollate())==0)))) ) )
103  graph->evalOpParm(myMatchAttrib, nodeidx, "matchattrib", time, 0);
104  mySrcAttrib = "name"_UTsh;
105  if (true && ( (true&&!(((int64(getMethod())!=1))||((int64(getCollate())!=3)))) ) )
106  graph->evalOpParm(mySrcAttrib, nodeidx, "srcattrib", time, 0);
107  myIgnoremissing = true;
108  if (true && ( (true&&!(((int64(getMethod())!=1)))) ) )
109  graph->evalOpParm(myIgnoremissing, nodeidx, "ignoremissing", time, 0);
110  myPreservetype = true;
111  if (true && ( (true&&!(((int64(getMethod())!=1)))) ) )
112  graph->evalOpParm(myPreservetype, nodeidx, "preservetype", time, 0);
113 
114  }
115 
116 
117  void loadFromOpSubclass(const LoadParms &loadparms) override
118  {
119  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
120  }
121 
122 
123  void copyFrom(const OP_NodeParms *src) override
124  {
125  *this = *((const SOP_PackInjectParms *)src);
126  }
127 
128  template <typename T>
129  void
130  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
131  {
132  if (idx.size() < 1)
133  return;
134  UT_ASSERT(idx.size() == instance.size()+1);
135  if (idx.size() != instance.size()+1)
136  return;
137  switch (idx[0])
138  {
139  case 0:
140  coerceValue(value, myGroup);
141  break;
142  case 1:
143  coerceValue(value, myMethod);
144  break;
145  case 2:
146  coerceValue(value, myCollate);
147  break;
148  case 3:
149  coerceValue(value, mySource);
150  break;
151  case 4:
152  coerceValue(value, myMatchAttrib);
153  break;
154  case 5:
155  coerceValue(value, mySrcAttrib);
156  break;
157  case 6:
158  coerceValue(value, myIgnoremissing);
159  break;
160  case 7:
161  coerceValue(value, myPreservetype);
162  break;
163 
164  }
165  }
166 
167  bool isParmColorRamp(exint idx) const override
168  {
169  switch (idx)
170  {
171 
172  }
173  return false;
174  }
175 
176  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
197  { doGetParmValue(idx, instance, value); }
198 
199  template <typename T>
200  void
201  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
202  {
203  if (idx.size() < 1)
204  return;
205  UT_ASSERT(idx.size() == instance.size()+1);
206  if (idx.size() != instance.size()+1)
207  return;
208  switch (idx[0])
209  {
210  case 0:
211  coerceValue(myGroup, ( ( value ) ));
212  break;
213  case 1:
214  coerceValue(myMethod, clampMinValue(0, clampMaxValue(1, value ) ));
215  break;
216  case 2:
217  coerceValue(myCollate, clampMinValue(0, clampMaxValue(3, value ) ));
218  break;
219  case 3:
220  coerceValue(mySource, ( ( value ) ));
221  break;
222  case 4:
223  coerceValue(myMatchAttrib, ( ( value ) ));
224  break;
225  case 5:
226  coerceValue(mySrcAttrib, ( ( value ) ));
227  break;
228  case 6:
229  coerceValue(myIgnoremissing, ( ( value ) ));
230  break;
231  case 7:
232  coerceValue(myPreservetype, ( ( value ) ));
233  break;
234 
235  }
236  }
237 
238  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
259  { doSetParmValue(idx, instance, value); }
260 
261  exint getNestNumParms(TempIndex idx) const override
262  {
263  if (idx.size() == 0)
264  return 8;
265  switch (idx[0])
266  {
267 
268  }
269  // Invalid
270  return 0;
271  }
272 
273  const char *getNestParmName(TempIndex fieldnum) const override
274  {
275  if (fieldnum.size() < 1)
276  return 0;
277  switch (fieldnum[0])
278  {
279  case 0:
280  return "group";
281  case 1:
282  return "method";
283  case 2:
284  return "collate";
285  case 3:
286  return "source";
287  case 4:
288  return "matchattrib";
289  case 5:
290  return "srcattrib";
291  case 6:
292  return "ignoremissing";
293  case 7:
294  return "preservetype";
295 
296  }
297  return 0;
298  }
299 
300  ParmType getNestParmType(TempIndex fieldnum) const override
301  {
302  if (fieldnum.size() < 1)
303  return PARM_UNSUPPORTED;
304  switch (fieldnum[0])
305  {
306  case 0:
307  return PARM_STRING;
308  case 1:
309  return PARM_INTEGER;
310  case 2:
311  return PARM_INTEGER;
312  case 3:
313  return PARM_INTEGER;
314  case 4:
315  return PARM_STRING;
316  case 5:
317  return PARM_STRING;
318  case 6:
319  return PARM_INTEGER;
320  case 7:
321  return PARM_INTEGER;
322 
323  }
324  return PARM_UNSUPPORTED;
325  }
326 
327  // Boiler plate to load individual types.
328  static void loadData(UT_IStream &is, int64 &v)
329  { is.bread(&v, 1); }
330  static void loadData(UT_IStream &is, bool &v)
331  { int64 iv; is.bread(&iv, 1); v = iv; }
332  static void loadData(UT_IStream &is, fpreal64 &v)
333  { is.bread<fpreal64>(&v, 1); }
334  static void loadData(UT_IStream &is, UT_Vector2D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector3D &v)
337  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
338  is.bread<fpreal64>(&v.z(), 1); }
339  static void loadData(UT_IStream &is, UT_Vector4D &v)
340  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
341  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix2D &v)
343  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Matrix3D &v)
345  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
346  static void loadData(UT_IStream &is, UT_Matrix4D &v)
347  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
348  static void loadData(UT_IStream &is, UT_Vector2I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
350  static void loadData(UT_IStream &is, UT_Vector3I &v)
351  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
352  is.bread<int64>(&v.z(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector4I &v)
354  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
355  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
357  { is.bread(v); }
359  { UT_StringHolder rampdata;
360  loadData(is, rampdata);
361  if (rampdata.isstring())
362  {
363  v.reset(new UT_Ramp());
364  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
365  v->load(istr);
366  }
367  else v.reset();
368  }
371  loadData(is, data);
372  if (data.isstring())
373  {
374  // Find the data type.
375  const char *colon = UT_StringWrap(data).findChar(':');
376  if (colon)
377  {
378  int typelen = colon - data.buffer();
380  type.strncpy(data.buffer(), typelen);
381  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
382 
383  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
384  }
385  }
386  else v.reset();
387  }
388 
389  static void saveData(std::ostream &os, int64 v)
390  { UTwrite(os, &v); }
391  static void saveData(std::ostream &os, bool v)
392  { int64 iv = v; UTwrite(os, &iv); }
393  static void saveData(std::ostream &os, fpreal64 v)
394  { UTwrite<fpreal64>(os, &v); }
395  static void saveData(std::ostream &os, UT_Vector2D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
397  static void saveData(std::ostream &os, UT_Vector3D v)
398  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
399  UTwrite<fpreal64>(os, &v.z()); }
400  static void saveData(std::ostream &os, UT_Vector4D v)
401  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
402  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
403  static void saveData(std::ostream &os, UT_Matrix2D v)
405  static void saveData(std::ostream &os, UT_Matrix3D v)
407  static void saveData(std::ostream &os, UT_Matrix4D v)
409  static void saveData(std::ostream &os, UT_StringHolder s)
410  { UT_StringWrap(s).saveBinary(os); }
411  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
413  UT_OStringStream ostr;
414  if (s) s->save(ostr);
415  result = ostr.str();
416  saveData(os, result);
417  }
418  static void saveData(std::ostream &os, PRM_DataItemHandle s)
420  UT_OStringStream ostr;
421  if (s)
422  {
423  ostr << s->getDataTypeToken();
424  ostr << ":";
425  s->saveBinary(ostr);
426  }
427  result = ostr.str();
428  saveData(os, result);
429  }
430 
431 
432  void save(std::ostream &os) const
433  {
434  int32 v = version();
435  UTwrite(os, &v);
436  saveData(os, myGroup);
437  saveData(os, myMethod);
438  saveData(os, myCollate);
439  saveData(os, mySource);
440  saveData(os, myMatchAttrib);
441  saveData(os, mySrcAttrib);
442  saveData(os, myIgnoremissing);
443  saveData(os, myPreservetype);
444 
445  }
446 
447  bool load(UT_IStream &is)
448  {
449  int32 v;
450  is.bread(&v, 1);
451  if (version() != v)
452  {
453  // Fail incompatible versions
454  return false;
455  }
456  loadData(is, myGroup);
457  loadData(is, myMethod);
458  loadData(is, myCollate);
459  loadData(is, mySource);
460  loadData(is, myMatchAttrib);
461  loadData(is, mySrcAttrib);
462  loadData(is, myIgnoremissing);
463  loadData(is, myPreservetype);
464 
465  return true;
466  }
467 
468  const UT_StringHolder & getGroup() const { return myGroup; }
469  void setGroup(const UT_StringHolder & val) { myGroup = val; }
471  {
472  SOP_Node *thissop = cookparms.getNode();
473  if (!thissop) return getGroup();
475  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
476  return result;
477  }
478  Method getMethod() const { return Method(myMethod); }
479  void setMethod(Method val) { myMethod = int64(val); }
480  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
481  {
482  SOP_Node *thissop = cookparms.getNode();
483  if (!thissop) return getMethod();
484  int64 result;
485  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
486  return Method(result);
487  }
488  Collate getCollate() const { return Collate(myCollate); }
489  void setCollate(Collate val) { myCollate = int64(val); }
490  Collate opCollate(const SOP_NodeVerb::CookParms &cookparms) const
491  {
492  SOP_Node *thissop = cookparms.getNode();
493  if (!thissop) return getCollate();
494  int64 result;
495  OP_Utils::evalOpParm(result, thissop, "collate", cookparms.getCookTime(), 0);
496  return Collate(result);
497  }
498  int64 getSource() const { return mySource; }
499  void setSource(int64 val) { mySource = val; }
500  int64 opSource(const SOP_NodeVerb::CookParms &cookparms) const
501  {
502  SOP_Node *thissop = cookparms.getNode();
503  if (!thissop) return getSource();
504  int64 result;
505  OP_Utils::evalOpParm(result, thissop, "source", cookparms.getCookTime(), 0);
506  return result;
507  }
508  const UT_StringHolder & getMatchAttrib() const { return myMatchAttrib; }
509  void setMatchAttrib(const UT_StringHolder & val) { myMatchAttrib = val; }
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return getMatchAttrib();
515  OP_Utils::evalOpParm(result, thissop, "matchattrib", cookparms.getCookTime(), 0);
516  return result;
517  }
518  const UT_StringHolder & getSrcAttrib() const { return mySrcAttrib; }
519  void setSrcAttrib(const UT_StringHolder & val) { mySrcAttrib = val; }
521  {
522  SOP_Node *thissop = cookparms.getNode();
523  if (!thissop) return getSrcAttrib();
525  OP_Utils::evalOpParm(result, thissop, "srcattrib", cookparms.getCookTime(), 0);
526  return result;
527  }
528  bool getIgnoremissing() const { return myIgnoremissing; }
529  void setIgnoremissing(bool val) { myIgnoremissing = val; }
530  bool opIgnoremissing(const SOP_NodeVerb::CookParms &cookparms) const
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return getIgnoremissing();
534  bool result;
535  OP_Utils::evalOpParm(result, thissop, "ignoremissing", cookparms.getCookTime(), 0);
536  return result;
537  }
538  bool getPreservetype() const { return myPreservetype; }
539  void setPreservetype(bool val) { myPreservetype = val; }
540  bool opPreservetype(const SOP_NodeVerb::CookParms &cookparms) const
541  {
542  SOP_Node *thissop = cookparms.getNode();
543  if (!thissop) return getPreservetype();
544  bool result;
545  OP_Utils::evalOpParm(result, thissop, "preservetype", cookparms.getCookTime(), 0);
546  return result;
547  }
548 
549 private:
550  UT_StringHolder myGroup;
551  int64 myMethod;
552  int64 myCollate;
553  int64 mySource;
554  UT_StringHolder myMatchAttrib;
555  UT_StringHolder mySrcAttrib;
556  bool myIgnoremissing;
557  bool myPreservetype;
558 
559 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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)