HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_CaptureAttribUnpack.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_CaptureAttribUnpackEnums
24 {
25  enum class Class
26  {
27  DETAIL = 0,
28  PRIMITIVE,
29  POINT,
30  VERTEX
31  };
32 }
33 
34 
36 {
37 public:
38  static int version() { return 1; }
39 
41  {
42  myClass = 2;
43  myAttrib = "boneCapture"_UTsh;
44  myPrefix = ""_UTsh;
45  mySecondaryPrefix = "secondary"_UTsh;
46  myUnpackProperties = true;
47  myUnpackData = true;
48  myDeleteCaptureAttributes = true;
49 
50  }
51 
55  SOP_CaptureAttribUnpackParms &operator=(SOP_CaptureAttribUnpackParms &&) noexcept = default;
56 
58 
60  {
61  if (myClass != src.myClass) return false;
62  if (myAttrib != src.myAttrib) return false;
63  if (myPrefix != src.myPrefix) return false;
64  if (mySecondaryPrefix != src.mySecondaryPrefix) return false;
65  if (myUnpackProperties != src.myUnpackProperties) return false;
66  if (myUnpackData != src.myUnpackData) return false;
67  if (myDeleteCaptureAttributes != src.myDeleteCaptureAttributes) return false;
68 
69  return true;
70  }
72  {
73  return !operator==(src);
74  }
76 
77 
78 
79  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
80  {
81  myClass = 2;
82  if (true)
83  graph->evalOpParm(myClass, nodeidx, "class", time, 0);
84  myAttrib = "boneCapture"_UTsh;
85  if (true)
86  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, 0);
87  myPrefix = ""_UTsh;
88  if (true)
89  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, 0);
90  mySecondaryPrefix = "secondary"_UTsh;
91  if (true)
92  graph->evalOpParm(mySecondaryPrefix, nodeidx, "secondaryprefix", time, 0);
93  myUnpackProperties = true;
94  if (true)
95  graph->evalOpParm(myUnpackProperties, nodeidx, "unpackproperties", time, 0);
96  myUnpackData = true;
97  if (true)
98  graph->evalOpParm(myUnpackData, nodeidx, "unpackdata", time, 0);
99  myDeleteCaptureAttributes = true;
100  if (true)
101  graph->evalOpParm(myDeleteCaptureAttributes, nodeidx, "deletecapture", time, 0);
102 
103  }
104 
105 
106  void loadFromOpSubclass(const LoadParms &loadparms) override
107  {
108  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
109  }
110 
111 
112  void copyFrom(const OP_NodeParms *src) override
113  {
114  *this = *((const SOP_CaptureAttribUnpackParms *)src);
115  }
116 
117  template <typename T>
118  void
119  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
120  {
121  if (idx.size() < 1)
122  return;
123  UT_ASSERT(idx.size() == instance.size()+1);
124  if (idx.size() != instance.size()+1)
125  return;
126  switch (idx[0])
127  {
128  case 0:
129  coerceValue(value, myClass);
130  break;
131  case 1:
132  coerceValue(value, myAttrib);
133  break;
134  case 2:
135  coerceValue(value, myPrefix);
136  break;
137  case 3:
138  coerceValue(value, mySecondaryPrefix);
139  break;
140  case 4:
141  coerceValue(value, myUnpackProperties);
142  break;
143  case 5:
144  coerceValue(value, myUnpackData);
145  break;
146  case 6:
147  coerceValue(value, myDeleteCaptureAttributes);
148  break;
149 
150  }
151  }
152 
153  bool isParmColorRamp(exint idx) const override
154  {
155  switch (idx)
156  {
157 
158  }
159  return false;
160  }
161 
162  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
183  { doGetParmValue(idx, instance, value); }
184 
185  template <typename T>
186  void
187  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
188  {
189  if (idx.size() < 1)
190  return;
191  UT_ASSERT(idx.size() == instance.size()+1);
192  if (idx.size() != instance.size()+1)
193  return;
194  switch (idx[0])
195  {
196  case 0:
197  coerceValue(myClass, clampMinValue(0, clampMaxValue(3, value ) ));
198  break;
199  case 1:
200  coerceValue(myAttrib, ( ( value ) ));
201  break;
202  case 2:
203  coerceValue(myPrefix, ( ( value ) ));
204  break;
205  case 3:
206  coerceValue(mySecondaryPrefix, ( ( value ) ));
207  break;
208  case 4:
209  coerceValue(myUnpackProperties, ( ( value ) ));
210  break;
211  case 5:
212  coerceValue(myUnpackData, ( ( value ) ));
213  break;
214  case 6:
215  coerceValue(myDeleteCaptureAttributes, ( ( value ) ));
216  break;
217 
218  }
219  }
220 
221  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
230  { doSetParmValue(idx, instance, value); }
231  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
232  { doSetParmValue(idx, instance, value); }
233  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
234  { doSetParmValue(idx, instance, value); }
235  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
242  { doSetParmValue(idx, instance, value); }
243 
244  exint getNestNumParms(TempIndex idx) const override
245  {
246  if (idx.size() == 0)
247  return 7;
248  switch (idx[0])
249  {
250 
251  }
252  // Invalid
253  return 0;
254  }
255 
256  const char *getNestParmName(TempIndex fieldnum) const override
257  {
258  if (fieldnum.size() < 1)
259  return 0;
260  switch (fieldnum[0])
261  {
262  case 0:
263  return "class";
264  case 1:
265  return "attrib";
266  case 2:
267  return "prefix";
268  case 3:
269  return "secondaryprefix";
270  case 4:
271  return "unpackproperties";
272  case 5:
273  return "unpackdata";
274  case 6:
275  return "deletecapture";
276 
277  }
278  return 0;
279  }
280 
281  ParmType getNestParmType(TempIndex fieldnum) const override
282  {
283  if (fieldnum.size() < 1)
284  return PARM_UNSUPPORTED;
285  switch (fieldnum[0])
286  {
287  case 0:
288  return PARM_INTEGER;
289  case 1:
290  return PARM_STRING;
291  case 2:
292  return PARM_STRING;
293  case 3:
294  return PARM_STRING;
295  case 4:
296  return PARM_INTEGER;
297  case 5:
298  return PARM_INTEGER;
299  case 6:
300  return PARM_INTEGER;
301 
302  }
303  return PARM_UNSUPPORTED;
304  }
305 
306  // Boiler plate to load individual types.
307  static void loadData(UT_IStream &is, int64 &v)
308  { is.bread(&v, 1); }
309  static void loadData(UT_IStream &is, bool &v)
310  { int64 iv; is.bread(&iv, 1); v = iv; }
311  static void loadData(UT_IStream &is, fpreal64 &v)
312  { is.bread<fpreal64>(&v, 1); }
313  static void loadData(UT_IStream &is, UT_Vector2D &v)
314  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
315  static void loadData(UT_IStream &is, UT_Vector3D &v)
316  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
317  is.bread<fpreal64>(&v.z(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector4D &v)
319  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
320  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
321  static void loadData(UT_IStream &is, UT_Matrix2D &v)
322  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
323  static void loadData(UT_IStream &is, UT_Matrix3D &v)
324  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
325  static void loadData(UT_IStream &is, UT_Matrix4D &v)
326  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
327  static void loadData(UT_IStream &is, UT_Vector2I &v)
328  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
329  static void loadData(UT_IStream &is, UT_Vector3I &v)
330  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
331  is.bread<int64>(&v.z(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector4I &v)
333  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
334  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
336  { is.bread(v); }
338  { UT_StringHolder rampdata;
339  loadData(is, rampdata);
340  if (rampdata.isstring())
341  {
342  v.reset(new UT_Ramp());
343  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
344  v->load(istr);
345  }
346  else v.reset();
347  }
350  loadData(is, data);
351  if (data.isstring())
352  {
353  // Find the data type.
354  const char *colon = UT_StringWrap(data).findChar(':');
355  if (colon)
356  {
357  int typelen = colon - data.buffer();
359  type.strncpy(data.buffer(), typelen);
360  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
361 
362  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
363  }
364  }
365  else v.reset();
366  }
367 
368  static void saveData(std::ostream &os, int64 v)
369  { UTwrite(os, &v); }
370  static void saveData(std::ostream &os, bool v)
371  { int64 iv = v; UTwrite(os, &iv); }
372  static void saveData(std::ostream &os, fpreal64 v)
373  { UTwrite<fpreal64>(os, &v); }
374  static void saveData(std::ostream &os, UT_Vector2D v)
375  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
376  static void saveData(std::ostream &os, UT_Vector3D v)
377  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
378  UTwrite<fpreal64>(os, &v.z()); }
379  static void saveData(std::ostream &os, UT_Vector4D v)
380  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
381  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
382  static void saveData(std::ostream &os, UT_Matrix2D v)
384  static void saveData(std::ostream &os, UT_Matrix3D v)
386  static void saveData(std::ostream &os, UT_Matrix4D v)
388  static void saveData(std::ostream &os, UT_StringHolder s)
389  { UT_StringWrap(s).saveBinary(os); }
390  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
392  UT_OStringStream ostr;
393  if (s) s->save(ostr);
394  result = ostr.str();
395  saveData(os, result);
396  }
397  static void saveData(std::ostream &os, PRM_DataItemHandle s)
399  UT_OStringStream ostr;
400  if (s)
401  {
402  ostr << s->getDataTypeToken();
403  ostr << ":";
404  s->saveBinary(ostr);
405  }
406  result = ostr.str();
407  saveData(os, result);
408  }
409 
410 
411  void save(std::ostream &os) const
412  {
413  int32 v = version();
414  UTwrite(os, &v);
415  saveData(os, myClass);
416  saveData(os, myAttrib);
417  saveData(os, myPrefix);
418  saveData(os, mySecondaryPrefix);
419  saveData(os, myUnpackProperties);
420  saveData(os, myUnpackData);
421  saveData(os, myDeleteCaptureAttributes);
422 
423  }
424 
425  bool load(UT_IStream &is)
426  {
427  int32 v;
428  is.bread(&v, 1);
429  if (version() != v)
430  {
431  // Fail incompatible versions
432  return false;
433  }
434  loadData(is, myClass);
435  loadData(is, myAttrib);
436  loadData(is, myPrefix);
437  loadData(is, mySecondaryPrefix);
438  loadData(is, myUnpackProperties);
439  loadData(is, myUnpackData);
440  loadData(is, myDeleteCaptureAttributes);
441 
442  return true;
443  }
444 
445  Class getClass() const { return Class(myClass); }
446  void setClass(Class val) { myClass = int64(val); }
447  Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
448  {
449  SOP_Node *thissop = cookparms.getNode();
450  if (!thissop) return getClass();
451  int64 result;
452  OP_Utils::evalOpParm(result, thissop, "class", cookparms.getCookTime(), 0);
453  return Class(result);
454  }
455  const UT_StringHolder & getAttrib() const { return myAttrib; }
456  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
458  {
459  SOP_Node *thissop = cookparms.getNode();
460  if (!thissop) return getAttrib();
462  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
463  return result;
464  }
465  const UT_StringHolder & getPrefix() const { return myPrefix; }
466  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
468  {
469  SOP_Node *thissop = cookparms.getNode();
470  if (!thissop) return getPrefix();
472  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
473  return result;
474  }
475  const UT_StringHolder & getSecondaryPrefix() const { return mySecondaryPrefix; }
476  void setSecondaryPrefix(const UT_StringHolder & val) { mySecondaryPrefix = val; }
478  {
479  SOP_Node *thissop = cookparms.getNode();
480  if (!thissop) return getSecondaryPrefix();
482  OP_Utils::evalOpParm(result, thissop, "secondaryprefix", cookparms.getCookTime(), 0);
483  return result;
484  }
485  bool getUnpackProperties() const { return myUnpackProperties; }
486  void setUnpackProperties(bool val) { myUnpackProperties = val; }
487  bool opUnpackProperties(const SOP_NodeVerb::CookParms &cookparms) const
488  {
489  SOP_Node *thissop = cookparms.getNode();
490  if (!thissop) return getUnpackProperties();
491  bool result;
492  OP_Utils::evalOpParm(result, thissop, "unpackproperties", cookparms.getCookTime(), 0);
493  return result;
494  }
495  bool getUnpackData() const { return myUnpackData; }
496  void setUnpackData(bool val) { myUnpackData = val; }
497  bool opUnpackData(const SOP_NodeVerb::CookParms &cookparms) const
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getUnpackData();
501  bool result;
502  OP_Utils::evalOpParm(result, thissop, "unpackdata", cookparms.getCookTime(), 0);
503  return result;
504  }
505  bool getDeleteCaptureAttributes() const { return myDeleteCaptureAttributes; }
506  void setDeleteCaptureAttributes(bool val) { myDeleteCaptureAttributes = val; }
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getDeleteCaptureAttributes();
511  bool result;
512  OP_Utils::evalOpParm(result, thissop, "deletecapture", cookparms.getCookTime(), 0);
513  return result;
514  }
515 
516 private:
517  int64 myClass;
518  UT_StringHolder myAttrib;
519  UT_StringHolder myPrefix;
520  UT_StringHolder mySecondaryPrefix;
521  bool myUnpackProperties;
522  bool myUnpackData;
523  bool myDeleteCaptureAttributes;
524 
525 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void copyFrom(const OP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
bool opUnpackProperties(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, bool v)
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
bool operator!=(const SOP_CaptureAttribUnpackParms &src) const
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, bool &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
**But if you need a result
Definition: thread.h:613
void setPrefix(const UT_StringHolder &val)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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_SharedPtr< UT_Ramp > s)
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 buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
UT_StringHolder opPrefix(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void saveData(std::ostream &os, UT_Matrix2D v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
UT_StringHolder opSecondaryPrefix(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getPrefix() const
bool operator==(const SOP_CaptureAttribUnpackParms &src) const
exint length() const
const UT_StringHolder & getAttrib() const
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, UT_Vector3D v)
const char * getNestParmName(TempIndex fieldnum) const override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Vector2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool opUnpackData(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
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_Vector4I &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
const UT_StringHolder & getSecondaryPrefix() const
void save(std::ostream &os) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, fpreal64 &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
static void loadData(UT_IStream &is, UT_Vector3D &v)
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
bool isParmColorRamp(exint idx) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
void setSecondaryPrefix(const UT_StringHolder &val)
#define SOP_API
Definition: SOP_API.h:10
exint getNestNumParms(TempIndex idx) const override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
GLboolean r
Definition: glcorearb.h:1222
void setAttrib(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool opDeleteCaptureAttributes(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663