HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Connectivity.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_ConnectivityEnums
24 {
25  enum class Connecttype
26  {
27  POINT = 0,
28  PRIM
29  };
30  enum class AttribType
31  {
32  INT = 0,
33  STRING
34  };
35 }
36 
37 
39 {
40 public:
41  static int version() { return 1; }
42 
44  {
45  myConnecttype = 0;
46  myPrimitiveIncludeGroup = ""_UTsh;
47  myPointIncludeGroup = ""_UTsh;
48  myAttribname = "class"_UTsh;
49  myAttribType = 0;
50  myPrefix = "piece"_UTsh;
51  myCreatevarmap = false;
52  myVarname = ""_UTsh;
53  mySeamgroup = ""_UTsh;
54  myByuv = false;
55  myUVAttrib = "uv"_UTsh;
56 
57  }
58 
59  explicit SOP_ConnectivityParms(const SOP_ConnectivityParms &) = default;
61  SOP_ConnectivityParms(SOP_ConnectivityParms &&) noexcept = default;
62  SOP_ConnectivityParms &operator=(SOP_ConnectivityParms &&) noexcept = default;
63 
64  ~SOP_ConnectivityParms() override {}
65 
67  {
68  if (myConnecttype != src.myConnecttype) return false;
69  if (myPrimitiveIncludeGroup != src.myPrimitiveIncludeGroup) return false;
70  if (myPointIncludeGroup != src.myPointIncludeGroup) return false;
71  if (myAttribname != src.myAttribname) return false;
72  if (myAttribType != src.myAttribType) return false;
73  if (myPrefix != src.myPrefix) return false;
74  if (myCreatevarmap != src.myCreatevarmap) return false;
75  if (myVarname != src.myVarname) return false;
76  if (mySeamgroup != src.mySeamgroup) return false;
77  if (myByuv != src.myByuv) return false;
78  if (myUVAttrib != src.myUVAttrib) return false;
79 
80  return true;
81  }
83  {
84  return !operator==(src);
85  }
88 
89 
90 
91  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
92  {
93  myConnecttype = 0;
94  if (true)
95  graph->evalOpParm(myConnecttype, nodeidx, "connecttype", time, 0);
96  myPrimitiveIncludeGroup = ""_UTsh;
97  if (true)
98  graph->evalOpParm(myPrimitiveIncludeGroup, nodeidx, "primincgroup", time, 0);
99  myPointIncludeGroup = ""_UTsh;
100  if (true && ( (true&&!(((int64(getConnecttype())!=0)))) ) )
101  graph->evalOpParm(myPointIncludeGroup, nodeidx, "pointincgroup", time, 0);
102  myAttribname = "class"_UTsh;
103  if (true)
104  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, 0);
105  myAttribType = 0;
106  if (true)
107  graph->evalOpParm(myAttribType, nodeidx, "attribtype", time, 0);
108  myPrefix = "piece"_UTsh;
109  if (true && ( (true&&!(((int64(getAttribType())!=1))||((int64(getAttribType())!=1)))) ) )
110  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, 0);
111  myCreatevarmap = false;
112  if (true)
113  graph->evalOpParm(myCreatevarmap, nodeidx, "createvarmap", time, 0);
114  myVarname = ""_UTsh;
115  if (true && ( (true&&!(((getCreatevarmap()==0)))) ) )
116  graph->evalOpParm(myVarname, nodeidx, "varname", time, 0);
117  mySeamgroup = ""_UTsh;
118  if (true && ( (true&&!(((int64(getConnecttype())==0)))) ) )
119  graph->evalOpParm(mySeamgroup, nodeidx, "seamgroup", time, 0);
120  myByuv = false;
121  if (true && ( (true&&!(((int64(getConnecttype())==0))||((getSeamgroup()!="")))) ) )
122  graph->evalOpParm(myByuv, nodeidx, "byuv", time, 0);
123  myUVAttrib = "uv"_UTsh;
124  if (true && ( (true&&!(((int64(getConnecttype())==0))||((getSeamgroup()!=""))||((getByuv()==0)))) ) )
125  graph->evalOpParm(myUVAttrib, nodeidx, "uvattrib", time, 0);
126 
127  }
128 
129 
130  void loadFromOpSubclass(const LoadParms &loadparms) override
131  {
132  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
133  }
134 
135 
136  void copyFrom(const OP_NodeParms *src) override
137  {
138  *this = *((const SOP_ConnectivityParms *)src);
139  }
140 
141  template <typename T>
142  void
143  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
144  {
145  if (idx.size() < 1)
146  return;
147  UT_ASSERT(idx.size() == instance.size()+1);
148  if (idx.size() != instance.size()+1)
149  return;
150  switch (idx[0])
151  {
152  case 0:
153  coerceValue(value, myConnecttype);
154  break;
155  case 1:
156  coerceValue(value, myPrimitiveIncludeGroup);
157  break;
158  case 2:
159  coerceValue(value, myPointIncludeGroup);
160  break;
161  case 3:
162  coerceValue(value, myAttribname);
163  break;
164  case 4:
165  coerceValue(value, myAttribType);
166  break;
167  case 5:
168  coerceValue(value, myPrefix);
169  break;
170  case 6:
171  coerceValue(value, myCreatevarmap);
172  break;
173  case 7:
174  coerceValue(value, myVarname);
175  break;
176  case 8:
177  coerceValue(value, mySeamgroup);
178  break;
179  case 9:
180  coerceValue(value, myByuv);
181  break;
182  case 10:
183  coerceValue(value, myUVAttrib);
184  break;
185 
186  }
187  }
188 
189  bool isParmColorRamp(exint idx) const override
190  {
191  switch (idx)
192  {
193 
194  }
195  return false;
196  }
197 
198  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
209  { doGetParmValue(idx, instance, value); }
210  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
211  { doGetParmValue(idx, instance, value); }
212  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
213  { doGetParmValue(idx, instance, value); }
214  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
215  { doGetParmValue(idx, instance, value); }
216  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
217  { doGetParmValue(idx, instance, value); }
218  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
219  { doGetParmValue(idx, instance, value); }
220 
221  template <typename T>
222  void
223  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
224  {
225  if (idx.size() < 1)
226  return;
227  UT_ASSERT(idx.size() == instance.size()+1);
228  if (idx.size() != instance.size()+1)
229  return;
230  switch (idx[0])
231  {
232  case 0:
233  coerceValue(myConnecttype, clampMinValue(0, clampMaxValue(1, value ) ));
234  break;
235  case 1:
236  coerceValue(myPrimitiveIncludeGroup, ( ( value ) ));
237  break;
238  case 2:
239  coerceValue(myPointIncludeGroup, ( ( value ) ));
240  break;
241  case 3:
242  coerceValue(myAttribname, ( ( value ) ));
243  break;
244  case 4:
245  coerceValue(myAttribType, clampMinValue(0, clampMaxValue(1, value ) ));
246  break;
247  case 5:
248  coerceValue(myPrefix, ( ( value ) ));
249  break;
250  case 6:
251  coerceValue(myCreatevarmap, ( ( value ) ));
252  break;
253  case 7:
254  coerceValue(myVarname, ( ( value ) ));
255  break;
256  case 8:
257  coerceValue(mySeamgroup, ( ( value ) ));
258  break;
259  case 9:
260  coerceValue(myByuv, ( ( value ) ));
261  break;
262  case 10:
263  coerceValue(myUVAttrib, ( ( value ) ));
264  break;
265 
266  }
267  }
268 
269  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
270  { doSetParmValue(idx, instance, value); }
271  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
272  { doSetParmValue(idx, instance, value); }
273  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
274  { doSetParmValue(idx, instance, value); }
275  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
276  { doSetParmValue(idx, instance, value); }
277  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
278  { doSetParmValue(idx, instance, value); }
279  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
280  { doSetParmValue(idx, instance, value); }
281  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
282  { doSetParmValue(idx, instance, value); }
283  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
284  { doSetParmValue(idx, instance, value); }
285  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
286  { doSetParmValue(idx, instance, value); }
287  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
288  { doSetParmValue(idx, instance, value); }
289  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
290  { doSetParmValue(idx, instance, value); }
291 
292  exint getNestNumParms(TempIndex idx) const override
293  {
294  if (idx.size() == 0)
295  return 11;
296  switch (idx[0])
297  {
298 
299  }
300  // Invalid
301  return 0;
302  }
303 
304  const char *getNestParmName(TempIndex fieldnum) const override
305  {
306  if (fieldnum.size() < 1)
307  return 0;
308  switch (fieldnum[0])
309  {
310  case 0:
311  return "connecttype";
312  case 1:
313  return "primincgroup";
314  case 2:
315  return "pointincgroup";
316  case 3:
317  return "attribname";
318  case 4:
319  return "attribtype";
320  case 5:
321  return "prefix";
322  case 6:
323  return "createvarmap";
324  case 7:
325  return "varname";
326  case 8:
327  return "seamgroup";
328  case 9:
329  return "byuv";
330  case 10:
331  return "uvattrib";
332 
333  }
334  return 0;
335  }
336 
337  ParmType getNestParmType(TempIndex fieldnum) const override
338  {
339  if (fieldnum.size() < 1)
340  return PARM_UNSUPPORTED;
341  switch (fieldnum[0])
342  {
343  case 0:
344  return PARM_INTEGER;
345  case 1:
346  return PARM_STRING;
347  case 2:
348  return PARM_STRING;
349  case 3:
350  return PARM_STRING;
351  case 4:
352  return PARM_INTEGER;
353  case 5:
354  return PARM_STRING;
355  case 6:
356  return PARM_INTEGER;
357  case 7:
358  return PARM_STRING;
359  case 8:
360  return PARM_STRING;
361  case 9:
362  return PARM_INTEGER;
363  case 10:
364  return PARM_STRING;
365 
366  }
367  return PARM_UNSUPPORTED;
368  }
369 
370  // Boiler plate to load individual types.
371  static void loadData(UT_IStream &is, int64 &v)
372  { is.bread(&v, 1); }
373  static void loadData(UT_IStream &is, bool &v)
374  { int64 iv; is.bread(&iv, 1); v = iv; }
375  static void loadData(UT_IStream &is, fpreal64 &v)
376  { is.bread<fpreal64>(&v, 1); }
377  static void loadData(UT_IStream &is, UT_Vector2D &v)
378  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
379  static void loadData(UT_IStream &is, UT_Vector3D &v)
380  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
381  is.bread<fpreal64>(&v.z(), 1); }
382  static void loadData(UT_IStream &is, UT_Vector4D &v)
383  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
384  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
385  static void loadData(UT_IStream &is, UT_Matrix2D &v)
386  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
387  static void loadData(UT_IStream &is, UT_Matrix3D &v)
388  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
389  static void loadData(UT_IStream &is, UT_Matrix4D &v)
390  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
391  static void loadData(UT_IStream &is, UT_Vector2I &v)
392  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
393  static void loadData(UT_IStream &is, UT_Vector3I &v)
394  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
395  is.bread<int64>(&v.z(), 1); }
396  static void loadData(UT_IStream &is, UT_Vector4I &v)
397  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
398  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
400  { is.bread(v); }
402  { UT_StringHolder rampdata;
403  loadData(is, rampdata);
404  if (rampdata.isstring())
405  {
406  v.reset(new UT_Ramp());
407  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
408  v->load(istr);
409  }
410  else v.reset();
411  }
414  loadData(is, data);
415  if (data.isstring())
416  {
417  // Find the data type.
418  const char *colon = UT_StringWrap(data).findChar(':');
419  if (colon)
420  {
421  int typelen = colon - data.buffer();
423  type.strncpy(data.buffer(), typelen);
424  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
425 
426  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
427  }
428  }
429  else v.reset();
430  }
431 
432  static void saveData(std::ostream &os, int64 v)
433  { UTwrite(os, &v); }
434  static void saveData(std::ostream &os, bool v)
435  { int64 iv = v; UTwrite(os, &iv); }
436  static void saveData(std::ostream &os, fpreal64 v)
437  { UTwrite<fpreal64>(os, &v); }
438  static void saveData(std::ostream &os, UT_Vector2D v)
439  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
440  static void saveData(std::ostream &os, UT_Vector3D v)
441  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
442  UTwrite<fpreal64>(os, &v.z()); }
443  static void saveData(std::ostream &os, UT_Vector4D v)
444  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
445  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
446  static void saveData(std::ostream &os, UT_Matrix2D v)
448  static void saveData(std::ostream &os, UT_Matrix3D v)
450  static void saveData(std::ostream &os, UT_Matrix4D v)
452  static void saveData(std::ostream &os, UT_StringHolder s)
453  { UT_StringWrap(s).saveBinary(os); }
454  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
456  UT_OStringStream ostr;
457  if (s) s->save(ostr);
458  result = ostr.str();
459  saveData(os, result);
460  }
461  static void saveData(std::ostream &os, PRM_DataItemHandle s)
463  UT_OStringStream ostr;
464  if (s)
465  {
466  ostr << s->getDataTypeToken();
467  ostr << ":";
468  s->saveBinary(ostr);
469  }
470  result = ostr.str();
471  saveData(os, result);
472  }
473 
474 
475  void save(std::ostream &os) const
476  {
477  int32 v = version();
478  UTwrite(os, &v);
479  saveData(os, myConnecttype);
480  saveData(os, myPrimitiveIncludeGroup);
481  saveData(os, myPointIncludeGroup);
482  saveData(os, myAttribname);
483  saveData(os, myAttribType);
484  saveData(os, myPrefix);
485  saveData(os, myCreatevarmap);
486  saveData(os, myVarname);
487  saveData(os, mySeamgroup);
488  saveData(os, myByuv);
489  saveData(os, myUVAttrib);
490 
491  }
492 
493  bool load(UT_IStream &is)
494  {
495  int32 v;
496  is.bread(&v, 1);
497  if (version() != v)
498  {
499  // Fail incompatible versions
500  return false;
501  }
502  loadData(is, myConnecttype);
503  loadData(is, myPrimitiveIncludeGroup);
504  loadData(is, myPointIncludeGroup);
505  loadData(is, myAttribname);
506  loadData(is, myAttribType);
507  loadData(is, myPrefix);
508  loadData(is, myCreatevarmap);
509  loadData(is, myVarname);
510  loadData(is, mySeamgroup);
511  loadData(is, myByuv);
512  loadData(is, myUVAttrib);
513 
514  return true;
515  }
516 
517  Connecttype getConnecttype() const { return Connecttype(myConnecttype); }
518  void setConnecttype(Connecttype val) { myConnecttype = int64(val); }
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getConnecttype();
523  int64 result;
524  OP_Utils::evalOpParm(result, thissop, "connecttype", cookparms.getCookTime(), 0);
525  return Connecttype(result);
526  }
527  const UT_StringHolder & getPrimitiveIncludeGroup() const { return myPrimitiveIncludeGroup; }
528  void setPrimitiveIncludeGroup(const UT_StringHolder & val) { myPrimitiveIncludeGroup = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getPrimitiveIncludeGroup();
534  OP_Utils::evalOpParm(result, thissop, "primincgroup", cookparms.getCookTime(), 0);
535  return result;
536  }
537  const UT_StringHolder & getPointIncludeGroup() const { return myPointIncludeGroup; }
538  void setPointIncludeGroup(const UT_StringHolder & val) { myPointIncludeGroup = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getPointIncludeGroup();
544  OP_Utils::evalOpParm(result, thissop, "pointincgroup", cookparms.getCookTime(), 0);
545  return result;
546  }
547  const UT_StringHolder & getAttribname() const { return myAttribname; }
548  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getAttribname();
554  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
555  return result;
556  }
557  AttribType getAttribType() const { return AttribType(myAttribType); }
558  void setAttribType(AttribType val) { myAttribType = int64(val); }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getAttribType();
563  int64 result;
564  OP_Utils::evalOpParm(result, thissop, "attribtype", cookparms.getCookTime(), 0);
565  return AttribType(result);
566  }
567  const UT_StringHolder & getPrefix() const { return myPrefix; }
568  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getPrefix();
574  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
575  return result;
576  }
577  bool getCreatevarmap() const { return myCreatevarmap; }
578  void setCreatevarmap(bool val) { myCreatevarmap = val; }
579  bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getCreatevarmap();
583  bool result;
584  OP_Utils::evalOpParm(result, thissop, "createvarmap", cookparms.getCookTime(), 0);
585  return result;
586  }
587  const UT_StringHolder & getVarname() const { return myVarname; }
588  void setVarname(const UT_StringHolder & val) { myVarname = val; }
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getVarname();
594  OP_Utils::evalOpParm(result, thissop, "varname", cookparms.getCookTime(), 0);
595  return result;
596  }
597  const UT_StringHolder & getSeamgroup() const { return mySeamgroup; }
598  void setSeamgroup(const UT_StringHolder & val) { mySeamgroup = val; }
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getSeamgroup();
604  OP_Utils::evalOpParm(result, thissop, "seamgroup", cookparms.getCookTime(), 0);
605  return result;
606  }
607  bool getByuv() const { return myByuv; }
608  void setByuv(bool val) { myByuv = val; }
609  bool opByuv(const SOP_NodeVerb::CookParms &cookparms) const
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getByuv();
613  bool result;
614  OP_Utils::evalOpParm(result, thissop, "byuv", cookparms.getCookTime(), 0);
615  return result;
616  }
617  const UT_StringHolder & getUVAttrib() const { return myUVAttrib; }
618  void setUVAttrib(const UT_StringHolder & val) { myUVAttrib = val; }
620  {
621  SOP_Node *thissop = cookparms.getNode();
622  if (!thissop) return getUVAttrib();
624  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
625  return result;
626  }
627 
628 private:
629  int64 myConnecttype;
630  UT_StringHolder myPrimitiveIncludeGroup;
631  UT_StringHolder myPointIncludeGroup;
632  UT_StringHolder myAttribname;
633  int64 myAttribType;
634  UT_StringHolder myPrefix;
635  bool myCreatevarmap;
636  UT_StringHolder myVarname;
637  UT_StringHolder mySeamgroup;
638  bool myByuv;
639  UT_StringHolder myUVAttrib;
640 
641 };
const UT_StringHolder & getAttribname() const
void save(std::ostream &os) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void saveData(std::ostream &os, int64 v)
bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
void setPointIncludeGroup(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Vector3I &v)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
exint bread(int32 *buffer, exint asize=1)
void setConnecttype(Connecttype val)
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
const UT_StringHolder & getPrimitiveIncludeGroup() const
void setPrimitiveIncludeGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool load(UT_IStream &is)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
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
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, fpreal64 v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
**But if you need a result
Definition: thread.h:613
static void loadData(UT_IStream &is, UT_Matrix2D &v)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
static void saveData(std::ostream &os, UT_Matrix4D v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_Vector2D &v)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
Connecttype opConnecttype(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
UT_StringHolder opPointIncludeGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
bool operator==(const SOP_ConnectivityParms &src) const
void setSeamgroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setUVAttrib(const UT_StringHolder &val)
exint length() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
static void saveData(std::ostream &os, UT_Matrix3D v)
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
void setAttribType(AttribType val)
static void loadData(UT_IStream &is, UT_Vector4I &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
const UT_StringHolder & getPointIncludeGroup() const
UT_StringHolder opPrimitiveIncludeGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, bool v)
exint getNestNumParms(TempIndex idx) const override
long long int64
Definition: SYS_Types.h:116
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
const UT_StringHolder & getSeamgroup() const
UT_StringHolder opUVAttrib(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
UT_StringHolder opAttribname(const SOP_NodeVerb::CookParms &cookparms) const
bool operator!=(const SOP_ConnectivityParms &src) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
const UT_StringHolder & getVarname() const
GT_API const UT_StringHolder version
UT_StringHolder opVarname(const SOP_NodeVerb::CookParms &cookparms) const
void loadFromOpSubclass(const LoadParms &loadparms) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
bool opByuv(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
const char * getNestParmName(TempIndex fieldnum) const override
AttribType opAttribType(const SOP_NodeVerb::CookParms &cookparms) const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const UT_StringHolder & getUVAttrib() const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void saveData(std::ostream &os, UT_Vector4D v)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void saveData(std::ostream &os, UT_Vector3D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
#define SOP_API
Definition: SOP_API.h:10
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
AttribType getAttribType() const
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
static void loadData(UT_IStream &is, int64 &v)
void setPrefix(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLboolean r
Definition: glcorearb.h:1222
Connecttype getConnecttype() const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setAttribname(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setVarname(const UT_StringHolder &val)
type
Definition: core.h:1059
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getPrefix() const
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
UT_StringHolder opPrefix(const SOP_NodeVerb::CookParms &cookparms) const
OP_NodeParms & operator=(const OP_NodeParms &)=default
static void loadData(UT_IStream &is, fpreal64 &v)
UT_StringHolder opSeamgroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void copyFrom(const OP_NodeParms *src) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663