HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_AttribVopParms.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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
21 
22 class DEP_MicroNode;
23 
25 {
26 public:
27  static int version() { return 1; }
28  struct Bindings
29  {
32 
33 
35  {
36  bindname = ""_sh;
37  bindparm = ""_sh;
38 
39  }
40 
41  bool operator==(const Bindings &src) const
42  {
43  if (bindname != src.bindname) return false;
44  if (bindparm != src.bindparm) return false;
45 
46  return true;
47  }
48  bool operator!=(const Bindings &src) const
49  {
50  return !operator==(src);
51  }
52 
53  };
54 
56  {
58 
59  buf.strcat("[ ");
60  for (int i = 0; i < list.entries(); i++)
61  {
62  if (i)
63  buf.strcat(", ");
64  buf.strcat("( ");
65  buf.append("");
66  { UT_String tmp; tmp = UT_StringWrap(list(i).bindname).makeQuotedString('"'); buf.strcat(tmp); }
67  buf.append(", ");
68  { UT_String tmp; tmp = UT_StringWrap(list(i).bindparm).makeQuotedString('"'); buf.strcat(tmp); }
69 
70  buf.strcat(" )");
71  }
72  buf.strcat(" ]");
73 
75  return result;
76  }
78  {
81 
82 
84  {
85  bindgroupname = ""_sh;
86  bindgroupparm = ""_sh;
87 
88  }
89 
90  bool operator==(const GroupBindings &src) const
91  {
92  if (bindgroupname != src.bindgroupname) return false;
93  if (bindgroupparm != src.bindgroupparm) return false;
94 
95  return true;
96  }
97  bool operator!=(const GroupBindings &src) const
98  {
99  return !operator==(src);
100  }
101 
102  };
103 
105  {
107 
108  buf.strcat("[ ");
109  for (int i = 0; i < list.entries(); i++)
110  {
111  if (i)
112  buf.strcat(", ");
113  buf.strcat("( ");
114  buf.append("");
115  { UT_String tmp; tmp = UT_StringWrap(list(i).bindgroupname).makeQuotedString('"'); buf.strcat(tmp); }
116  buf.append(", ");
117  { UT_String tmp; tmp = UT_StringWrap(list(i).bindgroupparm).makeQuotedString('"'); buf.strcat(tmp); }
118 
119  buf.strcat(" )");
120  }
121  buf.strcat(" ]");
122 
124  return result;
125  }
126 
128  {
129  myVexCWD = ""_sh;
130  myVexOutputMask = "*"_sh;
131  myAutobind = true;
132  myGroupAutobind = true;
133  myBindClass = 2;
134  myBindGroup = ""_sh;
135  myBindGroupType = 0;
136  myMultiThread = true;
137  myUpdateNormals = false;
138  myNumCount = 10;
139  myThreadJobSize = 1024;
140  myMatchAttrib = "id"_sh;
141  mySelectionGroup = ""_sh;
142  myCookInPlace = false;
143  myVexPrecision = "auto"_sh;
144 
145  }
146 
147  explicit SOP_AttribVopParms(const SOP_AttribVopParms &) = default;
148 
150 
151  bool operator==(const SOP_AttribVopParms &src) const
152  {
153  if (myVexCWD != src.myVexCWD) return false;
154  if (myVexOutputMask != src.myVexOutputMask) return false;
155  if (myBindings != src.myBindings) return false;
156  if (myGroupBindings != src.myGroupBindings) return false;
157  if (myAutobind != src.myAutobind) return false;
158  if (myGroupAutobind != src.myGroupAutobind) return false;
159  if (myBindClass != src.myBindClass) return false;
160  if (myBindGroup != src.myBindGroup) return false;
161  if (myBindGroupType != src.myBindGroupType) return false;
162  if (myMultiThread != src.myMultiThread) return false;
163  if (myUpdateNormals != src.myUpdateNormals) return false;
164  if (myNumCount != src.myNumCount) return false;
165  if (myThreadJobSize != src.myThreadJobSize) return false;
166  if (myMatchAttrib != src.myMatchAttrib) return false;
167  if (mySelectionGroup != src.mySelectionGroup) return false;
168  if (myCookInPlace != src.myCookInPlace) return false;
169  if (myVexPrecision != src.myVexPrecision) return false;
170 
171  return true;
172  }
173  bool operator!=(const SOP_AttribVopParms &src) const
174  {
175  return !operator==(src);
176  }
177 
178 
179 
180  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
181  {
182  myVexCWD = ""_sh;
183  if (true)
184  graph->evalOpParm(myVexCWD, nodeidx, "vex_cwdpath", time, 0);
185  myVexOutputMask = "*"_sh;
186  if (true)
187  graph->evalOpParm(myVexOutputMask, nodeidx, "vex_outputmask", time, 0);
188  if (true)
189  {
190  int64 length = 0;
191  graph->evalOpParm(length, nodeidx, "bindings", time, 0);
192  myBindings.entries(length);
193  for (exint i = 0; i < length; i++)
194  {
195  int parmidx = i+1;
196  auto && _curentry = myBindings(i);
197  (void) _curentry;
198  myBindings(i).bindname = ""_sh;
199  if (true)
200  graph->evalOpParmInst(myBindings(i).bindname, nodeidx, "bindname#", &parmidx, time, 0);
201  myBindings(i).bindparm = ""_sh;
202  if (true)
203  graph->evalOpParmInst(myBindings(i).bindparm, nodeidx, "bindparm#", &parmidx, time, 0);
204 
205  }
206  }
207  else
208  myBindings.clear();
209  if (true)
210  {
211  int64 length = 0;
212  graph->evalOpParm(length, nodeidx, "groupbindings", time, 0);
213  myGroupBindings.entries(length);
214  for (exint i = 0; i < length; i++)
215  {
216  int parmidx = i+1;
217  auto && _curentry = myGroupBindings(i);
218  (void) _curentry;
219  myGroupBindings(i).bindgroupname = ""_sh;
220  if (true)
221  graph->evalOpParmInst(myGroupBindings(i).bindgroupname, nodeidx, "bindgroupname#", &parmidx, time, 0);
222  myGroupBindings(i).bindgroupparm = ""_sh;
223  if (true)
224  graph->evalOpParmInst(myGroupBindings(i).bindgroupparm, nodeidx, "bindgroupparm#", &parmidx, time, 0);
225 
226  }
227  }
228  else
229  myGroupBindings.clear();
230  myAutobind = true;
231  if (true)
232  graph->evalOpParm(myAutobind, nodeidx, "autobind", time, 0);
233  myGroupAutobind = true;
234  if (true)
235  graph->evalOpParm(myGroupAutobind, nodeidx, "groupautobind", time, 0);
236  myBindClass = 2;
237  if (true)
238  graph->evalOpParm(myBindClass, nodeidx, "bindclass", time, 0);
239  myBindGroup = ""_sh;
240  if (true)
241  graph->evalOpParm(myBindGroup, nodeidx, "bindgroup", time, 0);
242  myBindGroupType = 0;
243  if (true)
244  graph->evalOpParm(myBindGroupType, nodeidx, "bindgrouptype", time, 0);
245  myMultiThread = true;
246  if (true)
247  graph->evalOpParm(myMultiThread, nodeidx, "vex_multithread", time, 0);
248  myUpdateNormals = false;
249  if (true)
250  graph->evalOpParm(myUpdateNormals, nodeidx, "vex_updatenmls", time, 0);
251  myNumCount = 10;
252  if (true && ( (getBindClass()==4) ) )
253  graph->evalOpParm(myNumCount, nodeidx, "vex_numcount", time, 0);
254  myThreadJobSize = 1024;
255  if (true && ( (getBindClass()==4) ) )
256  graph->evalOpParm(myThreadJobSize, nodeidx, "vex_threadjobsize", time, 0);
257  myMatchAttrib = "id"_sh;
258  if (true)
259  graph->evalOpParm(myMatchAttrib, nodeidx, "vex_matchattrib", time, 0);
260  mySelectionGroup = ""_sh;
261  if (true)
262  graph->evalOpParm(mySelectionGroup, nodeidx, "vex_selectiongroup", time, 0);
263  myCookInPlace = false;
264  if (true)
265  graph->evalOpParm(myCookInPlace, nodeidx, "vex_inplace", time, 0);
266  myVexPrecision = "auto"_sh;
267  if (true)
268  graph->evalOpParm(myVexPrecision, nodeidx, "vex_precision", time, 0);
269 
270  }
271 
272 
273 
274  // Boiler plate to load individual types.
275  static void loadData(UT_IStream &is, int64 &v)
276  { is.bread(&v, 1); }
277  static void loadData(UT_IStream &is, bool &v)
278  { int64 iv; is.bread(&iv, 1); v = iv; }
279  static void loadData(UT_IStream &is, fpreal64 &v)
280  { is.bread<fpreal64>(&v, 1); }
281  static void loadData(UT_IStream &is, UT_Vector2D &v)
282  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
283  static void loadData(UT_IStream &is, UT_Vector3D &v)
284  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
285  is.bread<fpreal64>(&v.z(), 1); }
286  static void loadData(UT_IStream &is, UT_Vector4D &v)
287  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
288  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
289  static void loadData(UT_IStream &is, UT_Matrix2D &v)
290  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
291  static void loadData(UT_IStream &is, UT_Matrix3D &v)
292  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
293  static void loadData(UT_IStream &is, UT_Matrix4D &v)
294  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
295  static void loadData(UT_IStream &is, UT_Vector2I &v)
296  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
297  static void loadData(UT_IStream &is, UT_Vector3I &v)
298  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
299  is.bread<int64>(&v.z(), 1); }
300  static void loadData(UT_IStream &is, UT_Vector4I &v)
301  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
302  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
304  { is.bread(v); }
306  { UT_StringHolder rampdata;
307  loadData(is, rampdata);
308  if (rampdata.isstring())
309  {
310  v.reset(new UT_Ramp());
311  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
312  v->load(istr);
313  }
314  else v.reset();
315  }
318  loadData(is, data);
319  if (data.isstring())
320  {
321  // Find the data type.
322  const char *colon = UT_StringWrap(data).findChar(':');
323  if (colon)
324  {
325  int typelen = colon - data.buffer();
327  type.strncpy(data.buffer(), typelen);
328  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
329 
330  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
331  }
332  }
333  else v.reset();
334  }
335 
336  static void saveData(std::ostream &os, int64 v)
337  { UTwrite(os, &v); }
338  static void saveData(std::ostream &os, bool v)
339  { int64 iv = v; UTwrite(os, &iv); }
340  static void saveData(std::ostream &os, fpreal64 v)
341  { UTwrite<fpreal64>(os, &v); }
342  static void saveData(std::ostream &os, UT_Vector2D v)
343  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
344  static void saveData(std::ostream &os, UT_Vector3D v)
345  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
346  UTwrite<fpreal64>(os, &v.z()); }
347  static void saveData(std::ostream &os, UT_Vector4D v)
348  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
349  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
350  static void saveData(std::ostream &os, UT_Matrix2D v)
352  static void saveData(std::ostream &os, UT_Matrix3D v)
354  static void saveData(std::ostream &os, UT_Matrix4D v)
356  static void saveData(std::ostream &os, UT_StringHolder s)
357  { UT_StringWrap(s).saveBinary(os); }
358  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
360  UT_OStringStream ostr;
361  if (s) s->save(ostr);
362  result = ostr.str();
363  saveData(os, result);
364  }
365  static void saveData(std::ostream &os, PRM_DataItemHandle s)
367  UT_OStringStream ostr;
368  if (s)
369  {
370  ostr << s->getDataTypeToken();
371  ostr << ":";
372  s->saveBinary(ostr);
373  }
374  result = ostr.str();
375  saveData(os, result);
376  }
377 
378 
379  void save(std::ostream &os) const
380  {
381  int32 v = version();
382  UTwrite(os, &v);
383  saveData(os, myVexCWD);
384  saveData(os, myVexOutputMask);
385  {
386  int64 length = myBindings.entries();
387  UTwrite(os, &length);
388  for (exint i = 0; i < length; i++)
389  {
390  saveData(os, myBindings(i).bindname);
391  saveData(os, myBindings(i).bindparm);
392 
393  }
394  }
395  {
396  int64 length = myGroupBindings.entries();
397  UTwrite(os, &length);
398  for (exint i = 0; i < length; i++)
399  {
400  saveData(os, myGroupBindings(i).bindgroupname);
401  saveData(os, myGroupBindings(i).bindgroupparm);
402 
403  }
404  }
405  saveData(os, myAutobind);
406  saveData(os, myGroupAutobind);
407  saveData(os, myBindClass);
408  saveData(os, myBindGroup);
409  saveData(os, myBindGroupType);
410  saveData(os, myMultiThread);
411  saveData(os, myUpdateNormals);
412  saveData(os, myNumCount);
413  saveData(os, myThreadJobSize);
414  saveData(os, myMatchAttrib);
415  saveData(os, mySelectionGroup);
416  saveData(os, myCookInPlace);
417  saveData(os, myVexPrecision);
418 
419  }
420 
421  bool load(UT_IStream &is)
422  {
423  int32 v;
424  is.bread(&v, 1);
425  if (version() != v)
426  {
427  // Fail incompatible versions
428  return false;
429  }
430  loadData(is, myVexCWD);
431  loadData(is, myVexOutputMask);
432  {
433  int64 length;
434  is.read(&length, 1);
435  myBindings.entries(length);
436  for (exint i = 0; i < length; i++)
437  {
438  loadData(is, myBindings(i).bindname);
439  loadData(is, myBindings(i).bindparm);
440 
441  }
442  }
443  {
444  int64 length;
445  is.read(&length, 1);
446  myGroupBindings.entries(length);
447  for (exint i = 0; i < length; i++)
448  {
449  loadData(is, myGroupBindings(i).bindgroupname);
450  loadData(is, myGroupBindings(i).bindgroupparm);
451 
452  }
453  }
454  loadData(is, myAutobind);
455  loadData(is, myGroupAutobind);
456  loadData(is, myBindClass);
457  loadData(is, myBindGroup);
458  loadData(is, myBindGroupType);
459  loadData(is, myMultiThread);
460  loadData(is, myUpdateNormals);
461  loadData(is, myNumCount);
462  loadData(is, myThreadJobSize);
463  loadData(is, myMatchAttrib);
464  loadData(is, mySelectionGroup);
465  loadData(is, myCookInPlace);
466  loadData(is, myVexPrecision);
467 
468  return true;
469  }
470 
471  const UT_StringHolder & getVexCWD() const { return myVexCWD; }
472  void setVexCWD(const UT_StringHolder & val) { myVexCWD = val; }
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return getVexCWD();
478  OP_Utils::evalOpParm(result, thissop, "vex_cwdpath", cookparms.getCookTime(), 0);
479  return result;
480  }
481  const UT_StringHolder & getVexOutputMask() const { return myVexOutputMask; }
482  void setVexOutputMask(const UT_StringHolder & val) { myVexOutputMask = val; }
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getVexOutputMask();
488  OP_Utils::evalOpParm(result, thissop, "vex_outputmask", cookparms.getCookTime(), 0);
489  return result;
490  }
491  const UT_Array<Bindings> &getBindings() const { return myBindings; }
492  void setBindings(const UT_Array<Bindings> &val) { myBindings = val; }
493  exint opBindings(const SOP_NodeVerb::CookParms &cookparms) const
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return getBindings().entries();
497  exint result;
498  OP_Utils::evalOpParm(result, thissop, "bindings", cookparms.getCookTime(), 0);
499  return result;
500  }
502  {
503  SOP_Node *thissop = cookparms.getNode();
504  if (!thissop) return (myBindings(_idx).bindname);
505  int _parmidx = _idx + 1;
507  OP_Utils::evalOpParmInst(result, thissop, "bindname#", &_parmidx, cookparms.getCookTime(), 0);
508  return (result);
509  }
511  {
512  SOP_Node *thissop = cookparms.getNode();
513  if (!thissop) return (myBindings(_idx).bindparm);
514  int _parmidx = _idx + 1;
516  OP_Utils::evalOpParmInst(result, thissop, "bindparm#", &_parmidx, cookparms.getCookTime(), 0);
517  return (result);
518  }
519 
520  const UT_Array<GroupBindings> &getGroupBindings() const { return myGroupBindings; }
521  void setGroupBindings(const UT_Array<GroupBindings> &val) { myGroupBindings = val; }
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getGroupBindings().entries();
526  exint result;
527  OP_Utils::evalOpParm(result, thissop, "groupbindings", cookparms.getCookTime(), 0);
528  return result;
529  }
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return (myGroupBindings(_idx).bindgroupname);
534  int _parmidx = _idx + 1;
536  OP_Utils::evalOpParmInst(result, thissop, "bindgroupname#", &_parmidx, cookparms.getCookTime(), 0);
537  return (result);
538  }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return (myGroupBindings(_idx).bindgroupparm);
543  int _parmidx = _idx + 1;
545  OP_Utils::evalOpParmInst(result, thissop, "bindgroupparm#", &_parmidx, cookparms.getCookTime(), 0);
546  return (result);
547  }
548 
549  bool getAutobind() const { return myAutobind; }
550  void setAutobind(bool val) { myAutobind = val; }
551  bool opAutobind(const SOP_NodeVerb::CookParms &cookparms) const
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getAutobind();
555  bool result;
556  OP_Utils::evalOpParm(result, thissop, "autobind", cookparms.getCookTime(), 0);
557  return result;
558  }
559  bool getGroupAutobind() const { return myGroupAutobind; }
560  void setGroupAutobind(bool val) { myGroupAutobind = val; }
561  bool opGroupAutobind(const SOP_NodeVerb::CookParms &cookparms) const
562  {
563  SOP_Node *thissop = cookparms.getNode();
564  if (!thissop) return getGroupAutobind();
565  bool result;
566  OP_Utils::evalOpParm(result, thissop, "groupautobind", cookparms.getCookTime(), 0);
567  return result;
568  }
569  int64 getBindClass() const { return myBindClass; }
570  void setBindClass(int64 val) { myBindClass = val; }
571  int64 opBindClass(const SOP_NodeVerb::CookParms &cookparms) const
572  {
573  SOP_Node *thissop = cookparms.getNode();
574  if (!thissop) return getBindClass();
575  int64 result;
576  OP_Utils::evalOpParm(result, thissop, "bindclass", cookparms.getCookTime(), 0);
577  return result;
578  }
579  const UT_StringHolder & getBindGroup() const { return myBindGroup; }
580  void setBindGroup(const UT_StringHolder & val) { myBindGroup = val; }
582  {
583  SOP_Node *thissop = cookparms.getNode();
584  if (!thissop) return getBindGroup();
586  OP_Utils::evalOpParm(result, thissop, "bindgroup", cookparms.getCookTime(), 0);
587  return result;
588  }
589  int64 getBindGroupType() const { return myBindGroupType; }
590  void setBindGroupType(int64 val) { myBindGroupType = val; }
592  {
593  SOP_Node *thissop = cookparms.getNode();
594  if (!thissop) return getBindGroupType();
595  int64 result;
596  OP_Utils::evalOpParm(result, thissop, "bindgrouptype", cookparms.getCookTime(), 0);
597  return result;
598  }
599  bool getMultiThread() const { return myMultiThread; }
600  void setMultiThread(bool val) { myMultiThread = val; }
601  bool opMultiThread(const SOP_NodeVerb::CookParms &cookparms) const
602  {
603  SOP_Node *thissop = cookparms.getNode();
604  if (!thissop) return getMultiThread();
605  bool result;
606  OP_Utils::evalOpParm(result, thissop, "vex_multithread", cookparms.getCookTime(), 0);
607  return result;
608  }
609  bool getUpdateNormals() const { return myUpdateNormals; }
610  void setUpdateNormals(bool val) { myUpdateNormals = val; }
611  bool opUpdateNormals(const SOP_NodeVerb::CookParms &cookparms) const
612  {
613  SOP_Node *thissop = cookparms.getNode();
614  if (!thissop) return getUpdateNormals();
615  bool result;
616  OP_Utils::evalOpParm(result, thissop, "vex_updatenmls", cookparms.getCookTime(), 0);
617  return result;
618  }
619  int64 getNumCount() const { return myNumCount; }
620  void setNumCount(int64 val) { myNumCount = val; }
621  int64 opNumCount(const SOP_NodeVerb::CookParms &cookparms) const
622  {
623  SOP_Node *thissop = cookparms.getNode();
624  if (!thissop) return getNumCount();
625  int64 result;
626  OP_Utils::evalOpParm(result, thissop, "vex_numcount", cookparms.getCookTime(), 0);
627  return result;
628  }
629  int64 getThreadJobSize() const { return myThreadJobSize; }
630  void setThreadJobSize(int64 val) { myThreadJobSize = val; }
632  {
633  SOP_Node *thissop = cookparms.getNode();
634  if (!thissop) return getThreadJobSize();
635  int64 result;
636  OP_Utils::evalOpParm(result, thissop, "vex_threadjobsize", cookparms.getCookTime(), 0);
637  return result;
638  }
639  const UT_StringHolder & getMatchAttrib() const { return myMatchAttrib; }
640  void setMatchAttrib(const UT_StringHolder & val) { myMatchAttrib = val; }
642  {
643  SOP_Node *thissop = cookparms.getNode();
644  if (!thissop) return getMatchAttrib();
646  OP_Utils::evalOpParm(result, thissop, "vex_matchattrib", cookparms.getCookTime(), 0);
647  return result;
648  }
649  const UT_StringHolder & getSelectionGroup() const { return mySelectionGroup; }
650  void setSelectionGroup(const UT_StringHolder & val) { mySelectionGroup = val; }
652  {
653  SOP_Node *thissop = cookparms.getNode();
654  if (!thissop) return getSelectionGroup();
656  OP_Utils::evalOpParm(result, thissop, "vex_selectiongroup", cookparms.getCookTime(), 0);
657  return result;
658  }
659  bool getCookInPlace() const { return myCookInPlace; }
660  void setCookInPlace(bool val) { myCookInPlace = val; }
661  bool opCookInPlace(const SOP_NodeVerb::CookParms &cookparms) const
662  {
663  SOP_Node *thissop = cookparms.getNode();
664  if (!thissop) return getCookInPlace();
665  bool result;
666  OP_Utils::evalOpParm(result, thissop, "vex_inplace", cookparms.getCookTime(), 0);
667  return result;
668  }
669  const UT_StringHolder & getVexPrecision() const { return myVexPrecision; }
670  void setVexPrecision(const UT_StringHolder & val) { myVexPrecision = val; }
672  {
673  SOP_Node *thissop = cookparms.getNode();
674  if (!thissop) return getVexPrecision();
676  OP_Utils::evalOpParm(result, thissop, "vex_precision", cookparms.getCookTime(), 0);
677  return result;
678  }
679 
680 private:
681  UT_StringHolder myVexCWD;
682  UT_StringHolder myVexOutputMask;
683  UT_Array<Bindings> myBindings;
684  UT_Array<GroupBindings> myGroupBindings;
685  bool myAutobind;
686  bool myGroupAutobind;
687  int64 myBindClass;
688  UT_StringHolder myBindGroup;
689  int64 myBindGroupType;
690  bool myMultiThread;
691  bool myUpdateNormals;
692  int64 myNumCount;
693  int64 myThreadJobSize;
694  UT_StringHolder myMatchAttrib;
695  UT_StringHolder mySelectionGroup;
696  bool myCookInPlace;
697  UT_StringHolder myVexPrecision;
698 
699 };
GLdouble s
Definition: glew.h:1390
UT_StringHolder opBindings_bindname(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void loadData(UT_IStream &is, fpreal64 &v)
const UT_Array< GroupBindings > & getGroupBindings() const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Vector3D &v)
exint opGroupBindings(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
const UT_StringHolder & getMatchAttrib() const
bool operator==(const GroupBindings &src) const
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, int *inst, fpreal time, DEP_MicroNode *depnode) const =0
UT_StringHolder opVexOutputMask(const SOP_NodeVerb::CookParms &cookparms) const
exint opBindings(const SOP_NodeVerb::CookParms &cookparms) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
UT_StringHolder opVexCWD(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getVexPrecision() const
GLuint const GLfloat * val
Definition: glew.h:2794
UT_StringHolder opMatchAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
void setVexCWD(const UT_StringHolder &val)
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
An output stream object that owns its own string buffer storage.
void setMatchAttrib(const UT_StringHolder &val)
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, UT_Vector4I &v)
bool operator!=(const Bindings &src) const
static void saveData(std::ostream &os, fpreal64 v)
UT_StringHolder createString(const UT_Array< Bindings > &list) const
int64 opNumCount(const SOP_NodeVerb::CookParms &cookparms) const
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 loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_Matrix3D v)
void setBindGroupType(int64 val)
void setBindGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Matrix4D v)
double fpreal64
Definition: SYS_Types.h:201
UT_StringHolder createString(const UT_Array< GroupBindings > &list) const
bool opMultiThread(const SOP_NodeVerb::CookParms &cookparms) const
void setThreadJobSize(int64 val)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Vector2D v)
const UT_StringHolder & getBindGroup() const
void setGroupBindings(const UT_Array< GroupBindings > &val)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
const UT_StringHolder & getSelectionGroup() const
bool opGroupAutobind(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
const UT_StringHolder & getVexCWD() 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:28
UT_StringHolder opVexPrecision(const SOP_NodeVerb::CookParms &cookparms) const
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator!=(const GroupBindings &src) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:284
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_StringHolder s)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void
Definition: png.h:1083
static void loadData(UT_IStream &is, UT_Vector2D &v)
const GLfloat * c
Definition: glew.h:16296
GLuint GLsizei GLsizei * length
Definition: glew.h:1825
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void saveData(std::ostream &os, UT_Vector4D v)
const UT_Array< Bindings > & getBindings() const
bool operator==(const SOP_AttribVopParms &src) const
long long int64
Definition: SYS_Types.h:116
bool load(UT_IStream &is)
bool operator==(const Bindings &src) const
static void loadData(UT_IStream &is, int64 &v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
static void loadData(UT_IStream &is, UT_Vector2I &v)
UT_StringHolder opBindGroup(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opSelectionGroup(const SOP_NodeVerb::CookParms &cookparms) const
GT_API const UT_StringHolder version
void setBindings(const UT_Array< Bindings > &val)
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:460
int64 opBindGroupType(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opBindings_bindparm(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
bool opUpdateNormals(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, bool v)
fpreal64 fpreal
Definition: SYS_Types.h:277
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
bool operator!=(const SOP_AttribVopParms &src) const
UT_StringHolder opGroupBindings_bindgroupparm(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
SYS_FORCE_INLINE void append(char character)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
bool opAutobind(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getVexOutputMask() const
#define SOP_API
Definition: SOP_API.h:10
void setSelectionGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
bool opCookInPlace(const SOP_NodeVerb::CookParms &cookparms) const
int64 opBindClass(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Matrix2D v)
void setVexOutputMask(const UT_StringHolder &val)
int64 opThreadJobSize(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
GLenum GLuint GLsizei const GLchar * buf
Definition: glew.h:2580
void setVexPrecision(const UT_StringHolder &val)
UT_StringHolder opGroupBindings_bindgroupname(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, int64 v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528