HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PackParms.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myViewportLOD = "full"_UTsh;
32  myCreatePath = true;
33  myPath = ""_UTsh;
34  myPackByName = false;
35  myNameAttrib = "name"_UTsh;
36  myPackedFragments = true;
37  myPivot = 1;
38  myTransferAttributes = ""_UTsh;
39  myTransferGroups = ""_UTsh;
40 
41  }
42 
43  explicit SOP_PackParms(const SOP_PackParms &) = default;
44  SOP_PackParms &operator=(const SOP_PackParms &) = default;
45  SOP_PackParms(SOP_PackParms &&) noexcept = default;
46  SOP_PackParms &operator=(SOP_PackParms &&) noexcept = default;
47 
48  ~SOP_PackParms() override {}
49 
50  bool operator==(const SOP_PackParms &src) const
51  {
52  if (myViewportLOD != src.myViewportLOD) return false;
53  if (myCreatePath != src.myCreatePath) return false;
54  if (myPath != src.myPath) return false;
55  if (myPackByName != src.myPackByName) return false;
56  if (myNameAttrib != src.myNameAttrib) return false;
57  if (myPackedFragments != src.myPackedFragments) return false;
58  if (myPivot != src.myPivot) return false;
59  if (myTransferAttributes != src.myTransferAttributes) return false;
60  if (myTransferGroups != src.myTransferGroups) return false;
61 
62 
63  if (baseGetSignature() != src.baseGetSignature()) return false;
64 
65  return true;
66  }
67  bool operator!=(const SOP_PackParms &src) const
68  {
69  return !operator==(src);
70  }
71 
72 
73 
74  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
75  {
76  myViewportLOD = "full"_UTsh;
77  if (true)
78  graph->evalOpParm(myViewportLOD, nodeidx, "viewportlod", time, graph->isDirect()?nullptr:depnode);
79  myCreatePath = true;
80  if (true)
81  graph->evalOpParm(myCreatePath, nodeidx, "createpath", time, graph->isDirect()?nullptr:depnode);
82  myPath = ""_UTsh;
83  if (true && ( (getCreatePath()) ) )
84  graph->evalOpParm(myPath, nodeidx, "path", time, graph->isDirect()?nullptr:depnode);
85  myPackByName = false;
86  if (true)
87  graph->evalOpParm(myPackByName, nodeidx, "packbyname", time, graph->isDirect()?nullptr:depnode);
88  myNameAttrib = "name"_UTsh;
89  if (true && ( (getPackByName()) ) )
90  graph->evalOpParm(myNameAttrib, nodeidx, "nameattribute", time, graph->isDirect()?nullptr:depnode);
91  myPackedFragments = true;
92  if (true)
93  graph->evalOpParm(myPackedFragments, nodeidx, "packedfragments", time, graph->isDirect()?nullptr:depnode);
94  myPivot = 1;
95  if (true)
96  graph->evalOpParm(myPivot, nodeidx, "pivot", time, graph->isDirect()?nullptr:depnode);
97  myTransferAttributes = ""_UTsh;
98  if (true)
99  graph->evalOpParm(myTransferAttributes, nodeidx, "transfer_attributes", time, graph->isDirect()?nullptr:depnode);
100  myTransferGroups = ""_UTsh;
101  if (true)
102  graph->evalOpParm(myTransferGroups, nodeidx, "transfer_groups", time, graph->isDirect()?nullptr:depnode);
103 
104  }
105 
106 
107  void loadFromOpSubclass(const LoadParms &loadparms) override
108  {
109  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
110  }
111 
112 
113  void copyFrom(const OP_NodeParms *src) override
114  {
115  *this = *((const SOP_PackParms *)src);
116  }
117 
118  template <typename T>
119  void
120  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
121  {
122  if (idx.size() < 1)
123  return;
124  UT_ASSERT(idx.size() == instance.size()+1);
125  if (idx.size() != instance.size()+1)
126  return;
127  switch (idx[0])
128  {
129  case 0:
130  coerceValue(value, myViewportLOD);
131  break;
132  case 1:
133  coerceValue(value, myCreatePath);
134  break;
135  case 2:
136  coerceValue(value, myPath);
137  break;
138  case 3:
139  coerceValue(value, myPackByName);
140  break;
141  case 4:
142  coerceValue(value, myNameAttrib);
143  break;
144  case 5:
145  coerceValue(value, myPackedFragments);
146  break;
147  case 6:
148  coerceValue(value, myPivot);
149  break;
150  case 7:
151  coerceValue(value, myTransferAttributes);
152  break;
153  case 8:
154  coerceValue(value, myTransferGroups);
155  break;
156 
157  }
158  }
159 
160  bool isParmColorRamp(exint idx) const override
161  {
162  switch (idx)
163  {
164 
165  }
166  return false;
167  }
168 
169  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
190  { doGetParmValue(idx, instance, value); }
191 
192  template <typename T>
193  void
194  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
195  {
196  if (idx.size() < 1)
197  return;
198  UT_ASSERT(idx.size() == instance.size()+1);
199  if (idx.size() != instance.size()+1)
200  return;
201  switch (idx[0])
202  {
203  case 0:
204  coerceValue(myViewportLOD, ( ( value ) ));
205  break;
206  case 1:
207  coerceValue(myCreatePath, ( ( value ) ));
208  break;
209  case 2:
210  coerceValue(myPath, ( ( value ) ));
211  break;
212  case 3:
213  coerceValue(myPackByName, ( ( value ) ));
214  break;
215  case 4:
216  coerceValue(myNameAttrib, ( ( value ) ));
217  break;
218  case 5:
219  coerceValue(myPackedFragments, ( ( value ) ));
220  break;
221  case 6:
222  coerceValue(myPivot, ( ( value ) ));
223  break;
224  case 7:
225  coerceValue(myTransferAttributes, ( ( value ) ));
226  break;
227  case 8:
228  coerceValue(myTransferGroups, ( ( value ) ));
229  break;
230 
231  }
232  }
233 
234  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
255  { doSetParmValue(idx, instance, value); }
256 
257  exint getNestNumParms(TempIndex idx) const override
258  {
259  if (idx.size() == 0)
260  return 9;
261  switch (idx[0])
262  {
263 
264  }
265  // Invalid
266  return 0;
267  }
268 
269  const char *getNestParmName(TempIndex fieldnum) const override
270  {
271  if (fieldnum.size() < 1)
272  return 0;
273  switch (fieldnum[0])
274  {
275  case 0:
276  return "viewportlod";
277  case 1:
278  return "createpath";
279  case 2:
280  return "path";
281  case 3:
282  return "packbyname";
283  case 4:
284  return "nameattribute";
285  case 5:
286  return "packedfragments";
287  case 6:
288  return "pivot";
289  case 7:
290  return "transfer_attributes";
291  case 8:
292  return "transfer_groups";
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_STRING;
306  case 1:
307  return PARM_INTEGER;
308  case 2:
309  return PARM_STRING;
310  case 3:
311  return PARM_INTEGER;
312  case 4:
313  return PARM_STRING;
314  case 5:
315  return PARM_INTEGER;
316  case 6:
317  return PARM_INTEGER;
318  case 7:
319  return PARM_STRING;
320  case 8:
321  return PARM_STRING;
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, myViewportLOD);
437  saveData(os, myCreatePath);
438  saveData(os, myPath);
439  saveData(os, myPackByName);
440  saveData(os, myNameAttrib);
441  saveData(os, myPackedFragments);
442  saveData(os, myPivot);
443  saveData(os, myTransferAttributes);
444  saveData(os, myTransferGroups);
445 
446  }
447 
448  bool load(UT_IStream &is)
449  {
450  int32 v;
451  is.bread(&v, 1);
452  if (version() != v)
453  {
454  // Fail incompatible versions
455  return false;
456  }
457  loadData(is, myViewportLOD);
458  loadData(is, myCreatePath);
459  loadData(is, myPath);
460  loadData(is, myPackByName);
461  loadData(is, myNameAttrib);
462  loadData(is, myPackedFragments);
463  loadData(is, myPivot);
464  loadData(is, myTransferAttributes);
465  loadData(is, myTransferGroups);
466 
467  return true;
468  }
469 
470  const UT_StringHolder & getViewportLOD() const { return myViewportLOD; }
471  void setViewportLOD(const UT_StringHolder & val) { myViewportLOD = val; }
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getViewportLOD();
477  OP_Utils::evalOpParm(result, thissop, "viewportlod", cookparms.getCookTime(), 0);
478  return result;
479  }
480  bool getCreatePath() const { return myCreatePath; }
481  void setCreatePath(bool val) { myCreatePath = val; }
482  bool opCreatePath(const SOP_NodeVerb::CookParms &cookparms) const
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getCreatePath();
486  bool result;
487  OP_Utils::evalOpParm(result, thissop, "createpath", cookparms.getCookTime(), 0);
488  return result;
489  }
490  const UT_StringHolder & getPath() const { return myPath; }
491  void setPath(const UT_StringHolder & val) { myPath = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getPath();
497  OP_Utils::evalOpParm(result, thissop, "path", cookparms.getCookTime(), 0);
498  return result;
499  }
500  bool getPackByName() const { return myPackByName; }
501  void setPackByName(bool val) { myPackByName = val; }
502  bool opPackByName(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getPackByName();
506  bool result;
507  OP_Utils::evalOpParm(result, thissop, "packbyname", cookparms.getCookTime(), 0);
508  return result;
509  }
510  const UT_StringHolder & getNameAttrib() const { return myNameAttrib; }
511  void setNameAttrib(const UT_StringHolder & val) { myNameAttrib = val; }
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getNameAttrib();
517  OP_Utils::evalOpParm(result, thissop, "nameattribute", cookparms.getCookTime(), 0);
518  return result;
519  }
520  bool getPackedFragments() const { return myPackedFragments; }
521  void setPackedFragments(bool val) { myPackedFragments = val; }
522  bool opPackedFragments(const SOP_NodeVerb::CookParms &cookparms) const
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getPackedFragments();
526  bool result;
527  OP_Utils::evalOpParm(result, thissop, "packedfragments", cookparms.getCookTime(), 0);
528  return result;
529  }
530  int64 getPivot() const { return myPivot; }
531  void setPivot(int64 val) { myPivot = val; }
532  int64 opPivot(const SOP_NodeVerb::CookParms &cookparms) const
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getPivot();
536  int64 result;
537  OP_Utils::evalOpParm(result, thissop, "pivot", cookparms.getCookTime(), 0);
538  return result;
539  }
540  const UT_StringHolder & getTransferAttributes() const { return myTransferAttributes; }
541  void setTransferAttributes(const UT_StringHolder & val) { myTransferAttributes = val; }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getTransferAttributes();
547  OP_Utils::evalOpParm(result, thissop, "transfer_attributes", cookparms.getCookTime(), 0);
548  return result;
549  }
550  const UT_StringHolder & getTransferGroups() const { return myTransferGroups; }
551  void setTransferGroups(const UT_StringHolder & val) { myTransferGroups = val; }
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getTransferGroups();
557  OP_Utils::evalOpParm(result, thissop, "transfer_groups", cookparms.getCookTime(), 0);
558  return result;
559  }
560 
561 private:
562  UT_StringHolder myViewportLOD;
563  bool myCreatePath;
564  UT_StringHolder myPath;
565  bool myPackByName;
566  UT_StringHolder myNameAttrib;
567  bool myPackedFragments;
568  int64 myPivot;
569  UT_StringHolder myTransferAttributes;
570  UT_StringHolder myTransferGroups;
571 
572 };
type
Definition: core.h:556
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const UT_StringHolder & getPath() const
void copyFrom(const OP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool opPackedFragments(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Matrix3D &v)
bool operator!=(const SOP_PackParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNameAttrib(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_StringHolder opNameAttrib(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
void save(std::ostream &os) const
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
GLsizei const GLfloat * value
Definition: glcorearb.h:824
void setPackByName(bool val)
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setCreatePath(bool val)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, UT_Matrix4D &v)
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
UT_StringHolder opViewportLOD(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opTransferGroups(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
**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)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool isParmColorRamp(exint idx) const override
static void saveData(std::ostream &os, UT_Vector4D v)
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) 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
bool operator==(const SOP_PackParms &src) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void saveData(std::ostream &os, int64 v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setViewportLOD(const UT_StringHolder &val)
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setTransferAttributes(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector4D &v)
exint getNestNumParms(TempIndex idx) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
bool load(UT_IStream &is)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Matrix3D v)
UT_StringHolder opTransferAttributes(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setPath(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
GT_API const UT_StringHolder version
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getViewportLOD() const
bool opCreatePath(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getNameAttrib() const
bool getPackByName() const
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:310
int64 opPivot(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getTransferGroups() const
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void setTransferGroups(const UT_StringHolder &val)
#define SOP_API
Definition: SOP_API.h:10
static void saveData(std::ostream &os, UT_StringHolder s)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setPackedFragments(bool val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool getCreatePath() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLboolean r
Definition: glcorearb.h:1222
void loadFromOpSubclass(const LoadParms &loadparms) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, int64 &v)
static int version()
static void loadData(UT_IStream &is, UT_Vector2I &v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
bool opPackByName(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setPivot(int64 val)
ParmType getNestParmType(TempIndex fieldnum) const override
UT_StringHolder opPath(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
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)
int64 getPivot() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
bool getPackedFragments() const
const UT_StringHolder & getTransferAttributes() const