HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_CaptureAttribPack.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_CaptureAttribPackEnums
24 {
25  enum class Class
26  {
27  DETAIL = 0,
28  PRIMITIVE,
29  POINT,
30  VERTEX
31  };
32 
34  getToken(Class enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Class::DETAIL: return "detail"_sh;
39  case Class::PRIMITIVE: return "primitive"_sh;
40  case Class::POINT: return "point"_sh;
41  case Class::VERTEX: return "vertex"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46 }
47 
48 
50 {
51 public:
52  static int version() { return 1; }
53 
55  {
56  myClass = 2;
57  myAttrib = "boneCapture"_UTsh;
58  myPrefix = ""_UTsh;
59  mySecondaryPrefix = "secondary"_UTsh;
60  myPackProperties = true;
61  myPackData = true;
62  myDeleteArrayAttributes = true;
63 
64  }
65 
66  explicit SOP_CaptureAttribPackParms(const SOP_CaptureAttribPackParms &) = default;
69  SOP_CaptureAttribPackParms &operator=(SOP_CaptureAttribPackParms &&) noexcept = default;
70 
72 
74  {
75  if (myClass != src.myClass) return false;
76  if (myAttrib != src.myAttrib) return false;
77  if (myPrefix != src.myPrefix) return false;
78  if (mySecondaryPrefix != src.mySecondaryPrefix) return false;
79  if (myPackProperties != src.myPackProperties) return false;
80  if (myPackData != src.myPackData) return false;
81  if (myDeleteArrayAttributes != src.myDeleteArrayAttributes) return false;
82 
83 
84  if (baseGetSignature() != src.baseGetSignature()) return false;
85 
86  return true;
87  }
89  {
90  return !operator==(src);
91  }
93 
94 
95 
96  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
97  {
98  myClass = 2;
99  if (true)
100  graph->evalOpParm(myClass, nodeidx, "class", time, graph->isDirect()?nullptr:depnode);
101  myAttrib = "boneCapture"_UTsh;
102  if (true)
103  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, graph->isDirect()?nullptr:depnode);
104  myPrefix = ""_UTsh;
105  if (true)
106  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, graph->isDirect()?nullptr:depnode);
107  mySecondaryPrefix = "secondary"_UTsh;
108  if (true)
109  graph->evalOpParm(mySecondaryPrefix, nodeidx, "secondaryprefix", time, graph->isDirect()?nullptr:depnode);
110  myPackProperties = true;
111  if (true)
112  graph->evalOpParm(myPackProperties, nodeidx, "packproperties", time, graph->isDirect()?nullptr:depnode);
113  myPackData = true;
114  if (true)
115  graph->evalOpParm(myPackData, nodeidx, "packdata", time, graph->isDirect()?nullptr:depnode);
116  myDeleteArrayAttributes = true;
117  if (true)
118  graph->evalOpParm(myDeleteArrayAttributes, nodeidx, "deletecapture", time, graph->isDirect()?nullptr:depnode);
119 
120  }
121 
122 
123  void loadFromOpSubclass(const LoadParms &loadparms) override
124  {
125  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
126  }
127 
128 
129  void copyFrom(const OP_NodeParms *src) override
130  {
131  *this = *((const SOP_CaptureAttribPackParms *)src);
132  }
133 
134  template <typename T>
135  void
136  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
137  {
138  if (idx.size() < 1)
139  return;
140  UT_ASSERT(idx.size() == instance.size()+1);
141  if (idx.size() != instance.size()+1)
142  return;
143  switch (idx[0])
144  {
145  case 0:
146  coerceValue(value, myClass);
147  break;
148  case 1:
149  coerceValue(value, myAttrib);
150  break;
151  case 2:
152  coerceValue(value, myPrefix);
153  break;
154  case 3:
155  coerceValue(value, mySecondaryPrefix);
156  break;
157  case 4:
158  coerceValue(value, myPackProperties);
159  break;
160  case 5:
161  coerceValue(value, myPackData);
162  break;
163  case 6:
164  coerceValue(value, myDeleteArrayAttributes);
165  break;
166 
167  }
168  }
169 
170  bool isParmColorRamp(exint idx) const override
171  {
172  switch (idx)
173  {
174 
175  }
176  return false;
177  }
178 
179  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
192  { doGetParmValue(idx, instance, value); }
193  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
200  { doGetParmValue(idx, instance, value); }
201 
202  template <typename T>
203  void
204  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
205  {
206  if (idx.size() < 1)
207  return;
208  UT_ASSERT(idx.size() == instance.size()+1);
209  if (idx.size() != instance.size()+1)
210  return;
211  switch (idx[0])
212  {
213  case 0:
214  coerceValue(myClass, clampMinValue(0, clampMaxValue(3, value ) ));
215  break;
216  case 1:
217  coerceValue(myAttrib, ( ( value ) ));
218  break;
219  case 2:
220  coerceValue(myPrefix, ( ( value ) ));
221  break;
222  case 3:
223  coerceValue(mySecondaryPrefix, ( ( value ) ));
224  break;
225  case 4:
226  coerceValue(myPackProperties, ( ( value ) ));
227  break;
228  case 5:
229  coerceValue(myPackData, ( ( value ) ));
230  break;
231  case 6:
232  coerceValue(myDeleteArrayAttributes, ( ( 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 7;
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 "class";
281  case 1:
282  return "attrib";
283  case 2:
284  return "prefix";
285  case 3:
286  return "secondaryprefix";
287  case 4:
288  return "packproperties";
289  case 5:
290  return "packdata";
291  case 6:
292  return "deletecapture";
293 
294  }
295  return 0;
296  }
297 
298  ParmType getNestParmType(TempIndex fieldnum) const override
299  {
300  if (fieldnum.size() < 1)
301  return PARM_UNSUPPORTED;
302  switch (fieldnum[0])
303  {
304  case 0:
305  return PARM_INTEGER;
306  case 1:
307  return PARM_STRING;
308  case 2:
309  return PARM_STRING;
310  case 3:
311  return PARM_STRING;
312  case 4:
313  return PARM_INTEGER;
314  case 5:
315  return PARM_INTEGER;
316  case 6:
317  return PARM_INTEGER;
318 
319  }
320  return PARM_UNSUPPORTED;
321  }
322 
323  // Boiler plate to load individual types.
324  static void loadData(UT_IStream &is, int64 &v)
325  { is.bread(&v, 1); }
326  static void loadData(UT_IStream &is, bool &v)
327  { int64 iv; is.bread(&iv, 1); v = iv; }
328  static void loadData(UT_IStream &is, fpreal64 &v)
329  { is.bread<fpreal64>(&v, 1); }
330  static void loadData(UT_IStream &is, UT_Vector2D &v)
331  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector3D &v)
333  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
334  is.bread<fpreal64>(&v.z(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector4D &v)
336  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
337  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
338  static void loadData(UT_IStream &is, UT_Matrix2D &v)
339  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
340  static void loadData(UT_IStream &is, UT_Matrix3D &v)
341  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
342  static void loadData(UT_IStream &is, UT_Matrix4D &v)
343  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
344  static void loadData(UT_IStream &is, UT_Vector2I &v)
345  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
346  static void loadData(UT_IStream &is, UT_Vector3I &v)
347  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
348  is.bread<int64>(&v.z(), 1); }
349  static void loadData(UT_IStream &is, UT_Vector4I &v)
350  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
351  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
353  { is.bread(v); }
355  { UT_StringHolder rampdata;
356  loadData(is, rampdata);
357  if (rampdata.isstring())
358  {
359  v.reset(new UT_Ramp());
360  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
361  v->load(istr);
362  }
363  else v.reset();
364  }
367  loadData(is, data);
368  if (data.isstring())
369  {
370  // Find the data type.
371  const char *colon = UT_StringWrap(data).findChar(':');
372  if (colon)
373  {
374  int typelen = colon - data.buffer();
376  type.strncpy(data.buffer(), typelen);
377  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
378 
379  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
380  }
381  }
382  else v.reset();
383  }
384 
385  static void saveData(std::ostream &os, int64 v)
386  { UTwrite(os, &v); }
387  static void saveData(std::ostream &os, bool v)
388  { int64 iv = v; UTwrite(os, &iv); }
389  static void saveData(std::ostream &os, fpreal64 v)
390  { UTwrite<fpreal64>(os, &v); }
391  static void saveData(std::ostream &os, UT_Vector2D v)
392  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
393  static void saveData(std::ostream &os, UT_Vector3D v)
394  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
395  UTwrite<fpreal64>(os, &v.z()); }
396  static void saveData(std::ostream &os, UT_Vector4D v)
397  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
398  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
399  static void saveData(std::ostream &os, UT_Matrix2D v)
401  static void saveData(std::ostream &os, UT_Matrix3D v)
403  static void saveData(std::ostream &os, UT_Matrix4D v)
405  static void saveData(std::ostream &os, UT_StringHolder s)
406  { UT_StringWrap(s).saveBinary(os); }
407  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
409  UT_OStringStream ostr;
410  if (s) s->save(ostr);
411  result = ostr.str();
412  saveData(os, result);
413  }
414  static void saveData(std::ostream &os, PRM_DataItemHandle s)
416  UT_OStringStream ostr;
417  if (s)
418  {
419  ostr << s->getDataTypeToken();
420  ostr << ":";
421  s->saveBinary(ostr);
422  }
423  result = ostr.str();
424  saveData(os, result);
425  }
426 
427 
428  void save(std::ostream &os) const
429  {
430  int32 v = version();
431  UTwrite(os, &v);
432  saveData(os, myClass);
433  saveData(os, myAttrib);
434  saveData(os, myPrefix);
435  saveData(os, mySecondaryPrefix);
436  saveData(os, myPackProperties);
437  saveData(os, myPackData);
438  saveData(os, myDeleteArrayAttributes);
439 
440  }
441 
442  bool load(UT_IStream &is)
443  {
444  int32 v;
445  is.bread(&v, 1);
446  if (version() != v)
447  {
448  // Fail incompatible versions
449  return false;
450  }
451  loadData(is, myClass);
452  loadData(is, myAttrib);
453  loadData(is, myPrefix);
454  loadData(is, mySecondaryPrefix);
455  loadData(is, myPackProperties);
456  loadData(is, myPackData);
457  loadData(is, myDeleteArrayAttributes);
458 
459  return true;
460  }
461 
462  Class getClass() const { return Class(myClass); }
463  void setClass(Class val) { myClass = int64(val); }
464  Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getClass();
468  int64 result;
469  OP_Utils::evalOpParm(result, thissop, "class", cookparms.getCookTime(), 0);
470  return Class(result);
471  }
472  const UT_StringHolder & getAttrib() const { return myAttrib; }
473  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getAttrib();
479  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
480  return result;
481  }
482  const UT_StringHolder & getPrefix() const { return myPrefix; }
483  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getPrefix();
489  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
490  return result;
491  }
492  const UT_StringHolder & getSecondaryPrefix() const { return mySecondaryPrefix; }
493  void setSecondaryPrefix(const UT_StringHolder & val) { mySecondaryPrefix = val; }
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getSecondaryPrefix();
499  OP_Utils::evalOpParm(result, thissop, "secondaryprefix", cookparms.getCookTime(), 0);
500  return result;
501  }
502  bool getPackProperties() const { return myPackProperties; }
503  void setPackProperties(bool val) { myPackProperties = val; }
504  bool opPackProperties(const SOP_NodeVerb::CookParms &cookparms) const
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getPackProperties();
508  bool result;
509  OP_Utils::evalOpParm(result, thissop, "packproperties", cookparms.getCookTime(), 0);
510  return result;
511  }
512  bool getPackData() const { return myPackData; }
513  void setPackData(bool val) { myPackData = val; }
514  bool opPackData(const SOP_NodeVerb::CookParms &cookparms) const
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getPackData();
518  bool result;
519  OP_Utils::evalOpParm(result, thissop, "packdata", cookparms.getCookTime(), 0);
520  return result;
521  }
522  bool getDeleteArrayAttributes() const { return myDeleteArrayAttributes; }
523  void setDeleteArrayAttributes(bool val) { myDeleteArrayAttributes = val; }
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getDeleteArrayAttributes();
528  bool result;
529  OP_Utils::evalOpParm(result, thissop, "deletecapture", cookparms.getCookTime(), 0);
530  return result;
531  }
532 
533 private:
534  int64 myClass;
535  UT_StringHolder myAttrib;
536  UT_StringHolder myPrefix;
537  UT_StringHolder mySecondaryPrefix;
538  bool myPackProperties;
539  bool myPackData;
540  bool myDeleteArrayAttributes;
541 
542 };
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
type
Definition: core.h:556
static void loadData(UT_IStream &is, UT_StringHolder &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
UT_StringHolder opPrefix(const SOP_NodeVerb::CookParms &cookparms) const
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
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getAttrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
GLsizei const GLfloat * value
Definition: glcorearb.h:824
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
Class opClass(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, 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
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
An output stream object that owns its own string buffer storage.
**But if you need a result
Definition: thread.h:622
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void saveData(std::ostream &os, UT_Vector4D v)
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Matrix3D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
void copyFrom(const OP_NodeParms *src) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
void setPrefix(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
bool operator==(const SOP_CaptureAttribPackParms &src) const
bool operator!=(const SOP_CaptureAttribPackParms &src) const
exint length() const
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
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_Vector2D &v)
bool opPackData(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void save(std::ostream &os) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
long long int64
Definition: SYS_Types.h:116
void setSecondaryPrefix(const UT_StringHolder &val)
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
UT_StringHolder opSecondaryPrefix(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
bool opDeleteArrayAttributes(const SOP_NodeVerb::CookParms &cookparms) const
exint getNestNumParms(TempIndex idx) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
const UT_StringHolder & getPrefix() const
ParmType getNestParmType(TempIndex fieldnum) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, fpreal64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
bool isParmColorRamp(exint idx) const override
const UT_StringHolder & getSecondaryPrefix() const
SYS_FORCE_INLINE UT_StringHolder getToken(Class enum_value)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
LeafData & operator=(const LeafData &)=delete
void setAttrib(const UT_StringHolder &val)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Matrix3D &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool opPackProperties(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
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