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_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 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  myAttribname = "class"_sh;
47  myAttribType = 0;
48  myPrefix = "piece"_sh;
49  myCreatevarmap = false;
50  myVarname = ""_sh;
51  mySeamgroup = ""_sh;
52  myByuv = false;
53  myUVAttrib = "uv"_sh;
54 
55  }
56 
57  explicit SOP_ConnectivityParms(const SOP_ConnectivityParms &) = default;
58 
59  ~SOP_ConnectivityParms() override {}
60 
62  {
63  if (myConnecttype != src.myConnecttype) return false;
64  if (myAttribname != src.myAttribname) return false;
65  if (myAttribType != src.myAttribType) return false;
66  if (myPrefix != src.myPrefix) return false;
67  if (myCreatevarmap != src.myCreatevarmap) return false;
68  if (myVarname != src.myVarname) return false;
69  if (mySeamgroup != src.mySeamgroup) return false;
70  if (myByuv != src.myByuv) return false;
71  if (myUVAttrib != src.myUVAttrib) return false;
72 
73  return true;
74  }
76  {
77  return !operator==(src);
78  }
81 
82 
83 
84  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
85  {
86  myConnecttype = 0;
87  if (true)
88  graph->evalOpParm(myConnecttype, nodeidx, "connecttype", time, 0);
89  myAttribname = "class"_sh;
90  if (true)
91  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, 0);
92  myAttribType = 0;
93  if (true)
94  graph->evalOpParm(myAttribType, nodeidx, "attribtype", time, 0);
95  myPrefix = "piece"_sh;
96  if (true && ( (!(((int64(getAttribType())!=1))||((int64(getAttribType())!=1)))) ) )
97  graph->evalOpParm(myPrefix, nodeidx, "prefix", time, 0);
98  myCreatevarmap = false;
99  if (true)
100  graph->evalOpParm(myCreatevarmap, nodeidx, "createvarmap", time, 0);
101  myVarname = ""_sh;
102  if (true && ( (!(((getCreatevarmap()==0)))) ) )
103  graph->evalOpParm(myVarname, nodeidx, "varname", time, 0);
104  mySeamgroup = ""_sh;
105  if (true && ( (!(((int64(getConnecttype())==0)))) ) )
106  graph->evalOpParm(mySeamgroup, nodeidx, "seamgroup", time, 0);
107  myByuv = false;
108  if (true && ( (!(((int64(getConnecttype())==0))||((getSeamgroup()!="")))) ) )
109  graph->evalOpParm(myByuv, nodeidx, "byuv", time, 0);
110  myUVAttrib = "uv"_sh;
111  if (true && ( (!(((int64(getConnecttype())==0))||((getSeamgroup()!=""))||((getByuv()==0)))) ) )
112  graph->evalOpParm(myUVAttrib, nodeidx, "uvattrib", time, 0);
113 
114  }
115 
116 
117  void loadFromOpSubclass(const LoadParms &loadparms) override
118  {
119  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
120  }
121 
122 
123  void copyFrom(const SOP_NodeParms *src) override
124  {
125  *this = *((const SOP_ConnectivityParms *)src);
126  }
127 
128  template <typename T>
129  void
130  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
131  {
132  if (idx.size() < 1)
133  return;
134  UT_ASSERT(idx.size() == instance.size()+1);
135  if (idx.size() != instance.size()+1)
136  return;
137  switch (idx[0])
138  {
139  case 0:
140  coerceValue(value, myConnecttype);
141  break;
142  case 1:
143  coerceValue(value, myAttribname);
144  break;
145  case 2:
146  coerceValue(value, myAttribType);
147  break;
148  case 3:
149  coerceValue(value, myPrefix);
150  break;
151  case 4:
152  coerceValue(value, myCreatevarmap);
153  break;
154  case 5:
155  coerceValue(value, myVarname);
156  break;
157  case 6:
158  coerceValue(value, mySeamgroup);
159  break;
160  case 7:
161  coerceValue(value, myByuv);
162  break;
163  case 8:
164  coerceValue(value, myUVAttrib);
165  break;
166 
167  }
168  }
169 
170  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
191  { doGetParmValue(idx, instance, value); }
192 
193  template <typename T>
194  void
195  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
196  {
197  if (idx.size() < 1)
198  return;
199  UT_ASSERT(idx.size() == instance.size()+1);
200  if (idx.size() != instance.size()+1)
201  return;
202  switch (idx[0])
203  {
204  case 0:
205  coerceValue(myConnecttype, value);
206  break;
207  case 1:
208  coerceValue(myAttribname, value);
209  break;
210  case 2:
211  coerceValue(myAttribType, value);
212  break;
213  case 3:
214  coerceValue(myPrefix, value);
215  break;
216  case 4:
217  coerceValue(myCreatevarmap, value);
218  break;
219  case 5:
220  coerceValue(myVarname, value);
221  break;
222  case 6:
223  coerceValue(mySeamgroup, value);
224  break;
225  case 7:
226  coerceValue(myByuv, value);
227  break;
228  case 8:
229  coerceValue(myUVAttrib, value);
230  break;
231 
232  }
233  }
234 
235  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
236  { doSetParmValue(idx, instance, value); }
237  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
238  { doSetParmValue(idx, instance, value); }
239  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
240  { doSetParmValue(idx, instance, value); }
241  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
242  { doSetParmValue(idx, instance, value); }
243  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
244  { doSetParmValue(idx, instance, value); }
245  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
246  { doSetParmValue(idx, instance, value); }
247  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
256  { doSetParmValue(idx, instance, value); }
257 
258  exint getNestNumParms(TempIndex idx) const override
259  {
260  if (idx.size() == 0)
261  return 9;
262  switch (idx[0])
263  {
264 
265  }
266  // Invalid
267  return 0;
268  }
269 
270  const char *getNestParmName(TempIndex fieldnum) const override
271  {
272  if (fieldnum.size() < 1)
273  return 0;
274  switch (fieldnum[0])
275  {
276  case 0:
277  return "connecttype";
278  case 1:
279  return "attribname";
280  case 2:
281  return "attribtype";
282  case 3:
283  return "prefix";
284  case 4:
285  return "createvarmap";
286  case 5:
287  return "varname";
288  case 6:
289  return "seamgroup";
290  case 7:
291  return "byuv";
292  case 8:
293  return "uvattrib";
294 
295  }
296  return 0;
297  }
298 
299  ParmType getNestParmType(TempIndex fieldnum) const override
300  {
301  if (fieldnum.size() < 1)
302  return PARM_UNSUPPORTED;
303  switch (fieldnum[0])
304  {
305  case 0:
306  return PARM_INTEGER;
307  case 1:
308  return PARM_STRING;
309  case 2:
310  return PARM_INTEGER;
311  case 3:
312  return PARM_STRING;
313  case 4:
314  return PARM_INTEGER;
315  case 5:
316  return PARM_STRING;
317  case 6:
318  return PARM_STRING;
319  case 7:
320  return PARM_INTEGER;
321  case 8:
322  return PARM_STRING;
323 
324  }
325  return PARM_UNSUPPORTED;
326  }
327 
328  // Boiler plate to load individual types.
329  static void loadData(UT_IStream &is, int64 &v)
330  { is.bread(&v, 1); }
331  static void loadData(UT_IStream &is, bool &v)
332  { int64 iv; is.bread(&iv, 1); v = iv; }
333  static void loadData(UT_IStream &is, fpreal64 &v)
334  { is.bread<fpreal64>(&v, 1); }
335  static void loadData(UT_IStream &is, UT_Vector2D &v)
336  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
337  static void loadData(UT_IStream &is, UT_Vector3D &v)
338  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
339  is.bread<fpreal64>(&v.z(), 1); }
340  static void loadData(UT_IStream &is, UT_Vector4D &v)
341  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
342  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix2D &v)
344  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Matrix3D &v)
346  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
347  static void loadData(UT_IStream &is, UT_Matrix4D &v)
348  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
349  static void loadData(UT_IStream &is, UT_Vector2I &v)
350  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
351  static void loadData(UT_IStream &is, UT_Vector3I &v)
352  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
353  is.bread<int64>(&v.z(), 1); }
354  static void loadData(UT_IStream &is, UT_Vector4I &v)
355  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
356  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
358  { is.bread(v); }
360  { UT_StringHolder rampdata;
361  loadData(is, rampdata);
362  if (rampdata.isstring())
363  {
364  v.reset(new UT_Ramp());
365  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
366  v->load(istr);
367  }
368  else v.reset();
369  }
372  loadData(is, data);
373  if (data.isstring())
374  {
375  // Find the data type.
376  const char *colon = UT_StringWrap(data).findChar(':');
377  if (colon)
378  {
379  int typelen = colon - data.buffer();
381  type.strncpy(data.buffer(), typelen);
382  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
383 
384  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
385  }
386  }
387  else v.reset();
388  }
389 
390  static void saveData(std::ostream &os, int64 v)
391  { UTwrite(os, &v); }
392  static void saveData(std::ostream &os, bool v)
393  { int64 iv = v; UTwrite(os, &iv); }
394  static void saveData(std::ostream &os, fpreal64 v)
395  { UTwrite<fpreal64>(os, &v); }
396  static void saveData(std::ostream &os, UT_Vector2D v)
397  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
398  static void saveData(std::ostream &os, UT_Vector3D v)
399  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
400  UTwrite<fpreal64>(os, &v.z()); }
401  static void saveData(std::ostream &os, UT_Vector4D v)
402  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
403  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
404  static void saveData(std::ostream &os, UT_Matrix2D v)
406  static void saveData(std::ostream &os, UT_Matrix3D v)
408  static void saveData(std::ostream &os, UT_Matrix4D v)
410  static void saveData(std::ostream &os, UT_StringHolder s)
411  { UT_StringWrap(s).saveBinary(os); }
412  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
414  UT_OStringStream ostr;
415  if (s) s->save(ostr);
416  result = ostr.str();
417  saveData(os, result);
418  }
419  static void saveData(std::ostream &os, PRM_DataItemHandle s)
421  UT_OStringStream ostr;
422  if (s)
423  {
424  ostr << s->getDataTypeToken();
425  ostr << ":";
426  s->saveBinary(ostr);
427  }
428  result = ostr.str();
429  saveData(os, result);
430  }
431 
432 
433  void save(std::ostream &os) const
434  {
435  int32 v = version();
436  UTwrite(os, &v);
437  saveData(os, myConnecttype);
438  saveData(os, myAttribname);
439  saveData(os, myAttribType);
440  saveData(os, myPrefix);
441  saveData(os, myCreatevarmap);
442  saveData(os, myVarname);
443  saveData(os, mySeamgroup);
444  saveData(os, myByuv);
445  saveData(os, myUVAttrib);
446 
447  }
448 
449  bool load(UT_IStream &is)
450  {
451  int32 v;
452  is.bread(&v, 1);
453  if (version() != v)
454  {
455  // Fail incompatible versions
456  return false;
457  }
458  loadData(is, myConnecttype);
459  loadData(is, myAttribname);
460  loadData(is, myAttribType);
461  loadData(is, myPrefix);
462  loadData(is, myCreatevarmap);
463  loadData(is, myVarname);
464  loadData(is, mySeamgroup);
465  loadData(is, myByuv);
466  loadData(is, myUVAttrib);
467 
468  return true;
469  }
470 
471  Connecttype getConnecttype() const { return Connecttype(myConnecttype); }
472  void setConnecttype(Connecttype val) { myConnecttype = int64(val); }
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return getConnecttype();
477  int64 result;
478  OP_Utils::evalOpParm(result, thissop, "connecttype", cookparms.getCookTime(), 0);
479  return Connecttype(result);
480  }
481  const UT_StringHolder & getAttribname() const { return myAttribname; }
482  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getAttribname();
488  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
489  return result;
490  }
491  AttribType getAttribType() const { return AttribType(myAttribType); }
492  void setAttribType(AttribType val) { myAttribType = int64(val); }
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return getAttribType();
497  int64 result;
498  OP_Utils::evalOpParm(result, thissop, "attribtype", cookparms.getCookTime(), 0);
499  return AttribType(result);
500  }
501  const UT_StringHolder & getPrefix() const { return myPrefix; }
502  void setPrefix(const UT_StringHolder & val) { myPrefix = val; }
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getPrefix();
508  OP_Utils::evalOpParm(result, thissop, "prefix", cookparms.getCookTime(), 0);
509  return result;
510  }
511  bool getCreatevarmap() const { return myCreatevarmap; }
512  void setCreatevarmap(bool val) { myCreatevarmap = val; }
513  bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getCreatevarmap();
517  bool result;
518  OP_Utils::evalOpParm(result, thissop, "createvarmap", cookparms.getCookTime(), 0);
519  return result;
520  }
521  const UT_StringHolder & getVarname() const { return myVarname; }
522  void setVarname(const UT_StringHolder & val) { myVarname = val; }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getVarname();
528  OP_Utils::evalOpParm(result, thissop, "varname", cookparms.getCookTime(), 0);
529  return result;
530  }
531  const UT_StringHolder & getSeamgroup() const { return mySeamgroup; }
532  void setSeamgroup(const UT_StringHolder & val) { mySeamgroup = val; }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getSeamgroup();
538  OP_Utils::evalOpParm(result, thissop, "seamgroup", cookparms.getCookTime(), 0);
539  return result;
540  }
541  bool getByuv() const { return myByuv; }
542  void setByuv(bool val) { myByuv = val; }
543  bool opByuv(const SOP_NodeVerb::CookParms &cookparms) const
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getByuv();
547  bool result;
548  OP_Utils::evalOpParm(result, thissop, "byuv", cookparms.getCookTime(), 0);
549  return result;
550  }
551  const UT_StringHolder & getUVAttrib() const { return myUVAttrib; }
552  void setUVAttrib(const UT_StringHolder & val) { myUVAttrib = val; }
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getUVAttrib();
558  OP_Utils::evalOpParm(result, thissop, "uvattrib", cookparms.getCookTime(), 0);
559  return result;
560  }
561 
562 private:
563  int64 myConnecttype;
564  UT_StringHolder myAttribname;
565  int64 myAttribType;
566  UT_StringHolder myPrefix;
567  bool myCreatevarmap;
568  UT_StringHolder myVarname;
569  UT_StringHolder mySeamgroup;
570  bool myByuv;
571  UT_StringHolder myUVAttrib;
572 
573 };
GLdouble s
Definition: glew.h:1390
const UT_StringHolder & getAttribname() const
void save(std::ostream &os) const
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
static void saveData(std::ostream &os, int64 v)
bool opCreatevarmap(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
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)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
GLuint const GLfloat * val
Definition: glew.h:2794
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
bool load(UT_IStream &is)
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
double fpreal64
Definition: SYS_Types.h:201
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
typedef INT(WINAPI *PFNWGLGETGPUINFOAMDPROC)(UINT id
bool operator==(const SOP_ConnectivityParms &src) const
void setSeamgroup(const UT_StringHolder &val)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
void setAttribType(AttribType val)
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void loadData(UT_IStream &is, UT_Vector4I &v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
static void saveData(std::ostream &os, UT_StringHolder s)
const GLfloat * c
Definition: glew.h:16296
static void saveData(std::ostream &os, bool v)
exint getNestNumParms(TempIndex idx) const override
long long int64
Definition: SYS_Types.h:116
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
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
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:294
const UT_StringHolder & getVarname() const
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
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
void copyFrom(const SOP_NodeParms *src) 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)
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
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)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
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
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
AttribType getAttribType() const
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
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
Connecttype getConnecttype() const
void setAttribname(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setVarname(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const UT_StringHolder & getPrefix() const
GLsizei const GLfloat * value
Definition: glew.h:1849
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
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)
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
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)
type
Definition: core.h:528