HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Rewire.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_RewireEnums
24 {
25  enum class Grouptype
26  {
27  GUESS = 0,
28  VERTICES,
29  EDGES,
30  POINTS,
31  PRIMS
32  };
33 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGroup = ""_sh;
44  myGrouptype = 0;
45  myAttrib = "rewire_to"_sh;
46  myRecurse = false;
47  myKeepunusedpoints = false;
48  myCreateorigattrib = false;
49  myOrigattrib = "rewired_from"_sh;
50 
51  }
52 
53  explicit SOP_RewireParms(const SOP_RewireParms &) = default;
54 
55  ~SOP_RewireParms() override {}
56 
57  bool operator==(const SOP_RewireParms &src) const
58  {
59  if (myGroup != src.myGroup) return false;
60  if (myGrouptype != src.myGrouptype) return false;
61  if (myAttrib != src.myAttrib) return false;
62  if (myRecurse != src.myRecurse) return false;
63  if (myKeepunusedpoints != src.myKeepunusedpoints) return false;
64  if (myCreateorigattrib != src.myCreateorigattrib) return false;
65  if (myOrigattrib != src.myOrigattrib) return false;
66 
67  return true;
68  }
69  bool operator!=(const SOP_RewireParms &src) const
70  {
71  return !operator==(src);
72  }
74 
75 
76 
77  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
78  {
79  myGroup = ""_sh;
80  if (true)
81  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
82  myGrouptype = 0;
83  if (true)
84  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
85  myAttrib = "rewire_to"_sh;
86  if (true)
87  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, 0);
88  myRecurse = false;
89  if (true)
90  graph->evalOpParm(myRecurse, nodeidx, "recurse", time, 0);
91  myKeepunusedpoints = false;
92  if (true)
93  graph->evalOpParm(myKeepunusedpoints, nodeidx, "keepunusedpoints", time, 0);
94  myCreateorigattrib = false;
95  if (true)
96  graph->evalOpParm(myCreateorigattrib, nodeidx, "createorigattrib", time, 0);
97  myOrigattrib = "rewired_from"_sh;
98  if (true && ( (!(((getCreateorigattrib()==0)))) ) )
99  graph->evalOpParm(myOrigattrib, nodeidx, "origattrib", time, 0);
100 
101  }
102 
103 
104  void loadFromOpSubclass(const LoadParms &loadparms) override
105  {
106  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
107  }
108 
109 
110  void copyFrom(const SOP_NodeParms *src) override
111  {
112  *this = *((const SOP_RewireParms *)src);
113  }
114 
115  template <typename T>
116  void
117  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
118  {
119  if (idx.size() < 1)
120  return;
121  UT_ASSERT(idx.size() == instance.size()+1);
122  if (idx.size() != instance.size()+1)
123  return;
124  switch (idx[0])
125  {
126  case 0:
127  coerceValue(value, myGroup);
128  break;
129  case 1:
130  coerceValue(value, myGrouptype);
131  break;
132  case 2:
133  coerceValue(value, myAttrib);
134  break;
135  case 3:
136  coerceValue(value, myRecurse);
137  break;
138  case 4:
139  coerceValue(value, myKeepunusedpoints);
140  break;
141  case 5:
142  coerceValue(value, myCreateorigattrib);
143  break;
144  case 6:
145  coerceValue(value, myOrigattrib);
146  break;
147 
148  }
149  }
150 
151  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
152  { doGetParmValue(idx, instance, value); }
153  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
154  { doGetParmValue(idx, instance, value); }
155  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
172  { doGetParmValue(idx, instance, value); }
173 
174  template <typename T>
175  void
176  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
177  {
178  if (idx.size() < 1)
179  return;
180  UT_ASSERT(idx.size() == instance.size()+1);
181  if (idx.size() != instance.size()+1)
182  return;
183  switch (idx[0])
184  {
185  case 0:
186  coerceValue(myGroup, value);
187  break;
188  case 1:
189  coerceValue(myGrouptype, value);
190  break;
191  case 2:
192  coerceValue(myAttrib, value);
193  break;
194  case 3:
195  coerceValue(myRecurse, value);
196  break;
197  case 4:
198  coerceValue(myKeepunusedpoints, value);
199  break;
200  case 5:
201  coerceValue(myCreateorigattrib, value);
202  break;
203  case 6:
204  coerceValue(myOrigattrib, value);
205  break;
206 
207  }
208  }
209 
210  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
211  { doSetParmValue(idx, instance, value); }
212  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
213  { doSetParmValue(idx, instance, value); }
214  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
215  { doSetParmValue(idx, instance, value); }
216  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
217  { doSetParmValue(idx, instance, value); }
218  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
219  { doSetParmValue(idx, instance, value); }
220  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
231  { doSetParmValue(idx, instance, value); }
232 
233  exint getNestNumParms(TempIndex idx) const override
234  {
235  if (idx.size() == 0)
236  return 7;
237  switch (idx[0])
238  {
239 
240  }
241  // Invalid
242  return 0;
243  }
244 
245  const char *getNestParmName(TempIndex fieldnum) const override
246  {
247  if (fieldnum.size() < 1)
248  return 0;
249  switch (fieldnum[0])
250  {
251  case 0:
252  return "group";
253  case 1:
254  return "grouptype";
255  case 2:
256  return "attrib";
257  case 3:
258  return "recurse";
259  case 4:
260  return "keepunusedpoints";
261  case 5:
262  return "createorigattrib";
263  case 6:
264  return "origattrib";
265 
266  }
267  return 0;
268  }
269 
270  ParmType getNestParmType(TempIndex fieldnum) const override
271  {
272  if (fieldnum.size() < 1)
273  return PARM_UNSUPPORTED;
274  switch (fieldnum[0])
275  {
276  case 0:
277  return PARM_STRING;
278  case 1:
279  return PARM_INTEGER;
280  case 2:
281  return PARM_STRING;
282  case 3:
283  return PARM_INTEGER;
284  case 4:
285  return PARM_INTEGER;
286  case 5:
287  return PARM_INTEGER;
288  case 6:
289  return PARM_STRING;
290 
291  }
292  return PARM_UNSUPPORTED;
293  }
294 
295  // Boiler plate to load individual types.
296  static void loadData(UT_IStream &is, int64 &v)
297  { is.bread(&v, 1); }
298  static void loadData(UT_IStream &is, bool &v)
299  { int64 iv; is.bread(&iv, 1); v = iv; }
300  static void loadData(UT_IStream &is, fpreal64 &v)
301  { is.bread<fpreal64>(&v, 1); }
302  static void loadData(UT_IStream &is, UT_Vector2D &v)
303  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
304  static void loadData(UT_IStream &is, UT_Vector3D &v)
305  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
306  is.bread<fpreal64>(&v.z(), 1); }
307  static void loadData(UT_IStream &is, UT_Vector4D &v)
308  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
309  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
310  static void loadData(UT_IStream &is, UT_Matrix2D &v)
311  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
312  static void loadData(UT_IStream &is, UT_Matrix3D &v)
313  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
314  static void loadData(UT_IStream &is, UT_Matrix4D &v)
315  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
316  static void loadData(UT_IStream &is, UT_Vector2I &v)
317  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector3I &v)
319  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
320  is.bread<int64>(&v.z(), 1); }
321  static void loadData(UT_IStream &is, UT_Vector4I &v)
322  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
323  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
325  { is.bread(v); }
327  { UT_StringHolder rampdata;
328  loadData(is, rampdata);
329  if (rampdata.isstring())
330  {
331  v.reset(new UT_Ramp());
332  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
333  v->load(istr);
334  }
335  else v.reset();
336  }
339  loadData(is, data);
340  if (data.isstring())
341  {
342  // Find the data type.
343  const char *colon = UT_StringWrap(data).findChar(':');
344  if (colon)
345  {
346  int typelen = colon - data.buffer();
348  type.strncpy(data.buffer(), typelen);
349  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
350 
351  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
352  }
353  }
354  else v.reset();
355  }
356 
357  static void saveData(std::ostream &os, int64 v)
358  { UTwrite(os, &v); }
359  static void saveData(std::ostream &os, bool v)
360  { int64 iv = v; UTwrite(os, &iv); }
361  static void saveData(std::ostream &os, fpreal64 v)
362  { UTwrite<fpreal64>(os, &v); }
363  static void saveData(std::ostream &os, UT_Vector2D v)
364  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
365  static void saveData(std::ostream &os, UT_Vector3D v)
366  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
367  UTwrite<fpreal64>(os, &v.z()); }
368  static void saveData(std::ostream &os, UT_Vector4D v)
369  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
370  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
371  static void saveData(std::ostream &os, UT_Matrix2D v)
373  static void saveData(std::ostream &os, UT_Matrix3D v)
375  static void saveData(std::ostream &os, UT_Matrix4D v)
377  static void saveData(std::ostream &os, UT_StringHolder s)
378  { UT_StringWrap(s).saveBinary(os); }
379  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
381  UT_OStringStream ostr;
382  if (s) s->save(ostr);
383  result = ostr.str();
384  saveData(os, result);
385  }
386  static void saveData(std::ostream &os, PRM_DataItemHandle s)
388  UT_OStringStream ostr;
389  if (s)
390  {
391  ostr << s->getDataTypeToken();
392  ostr << ":";
393  s->saveBinary(ostr);
394  }
395  result = ostr.str();
396  saveData(os, result);
397  }
398 
399 
400  void save(std::ostream &os) const
401  {
402  int32 v = version();
403  UTwrite(os, &v);
404  saveData(os, myGroup);
405  saveData(os, myGrouptype);
406  saveData(os, myAttrib);
407  saveData(os, myRecurse);
408  saveData(os, myKeepunusedpoints);
409  saveData(os, myCreateorigattrib);
410  saveData(os, myOrigattrib);
411 
412  }
413 
414  bool load(UT_IStream &is)
415  {
416  int32 v;
417  is.bread(&v, 1);
418  if (version() != v)
419  {
420  // Fail incompatible versions
421  return false;
422  }
423  loadData(is, myGroup);
424  loadData(is, myGrouptype);
425  loadData(is, myAttrib);
426  loadData(is, myRecurse);
427  loadData(is, myKeepunusedpoints);
428  loadData(is, myCreateorigattrib);
429  loadData(is, myOrigattrib);
430 
431  return true;
432  }
433 
434  const UT_StringHolder & getGroup() const { return myGroup; }
435  void setGroup(const UT_StringHolder & val) { myGroup = val; }
437  {
438  SOP_Node *thissop = cookparms.getNode();
439  if (!thissop) return getGroup();
441  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
442  return result;
443  }
444  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
445  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
447  {
448  SOP_Node *thissop = cookparms.getNode();
449  if (!thissop) return getGrouptype();
450  int64 result;
451  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
452  return Grouptype(result);
453  }
454  const UT_StringHolder & getAttrib() const { return myAttrib; }
455  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
457  {
458  SOP_Node *thissop = cookparms.getNode();
459  if (!thissop) return getAttrib();
461  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
462  return result;
463  }
464  bool getRecurse() const { return myRecurse; }
465  void setRecurse(bool val) { myRecurse = val; }
466  bool opRecurse(const SOP_NodeVerb::CookParms &cookparms) const
467  {
468  SOP_Node *thissop = cookparms.getNode();
469  if (!thissop) return getRecurse();
470  bool result;
471  OP_Utils::evalOpParm(result, thissop, "recurse", cookparms.getCookTime(), 0);
472  return result;
473  }
474  bool getKeepunusedpoints() const { return myKeepunusedpoints; }
475  void setKeepunusedpoints(bool val) { myKeepunusedpoints = val; }
476  bool opKeepunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
477  {
478  SOP_Node *thissop = cookparms.getNode();
479  if (!thissop) return getKeepunusedpoints();
480  bool result;
481  OP_Utils::evalOpParm(result, thissop, "keepunusedpoints", cookparms.getCookTime(), 0);
482  return result;
483  }
484  bool getCreateorigattrib() const { return myCreateorigattrib; }
485  void setCreateorigattrib(bool val) { myCreateorigattrib = val; }
486  bool opCreateorigattrib(const SOP_NodeVerb::CookParms &cookparms) const
487  {
488  SOP_Node *thissop = cookparms.getNode();
489  if (!thissop) return getCreateorigattrib();
490  bool result;
491  OP_Utils::evalOpParm(result, thissop, "createorigattrib", cookparms.getCookTime(), 0);
492  return result;
493  }
494  const UT_StringHolder & getOrigattrib() const { return myOrigattrib; }
495  void setOrigattrib(const UT_StringHolder & val) { myOrigattrib = val; }
497  {
498  SOP_Node *thissop = cookparms.getNode();
499  if (!thissop) return getOrigattrib();
501  OP_Utils::evalOpParm(result, thissop, "origattrib", cookparms.getCookTime(), 0);
502  return result;
503  }
504 
505 private:
506  UT_StringHolder myGroup;
507  int64 myGrouptype;
508  UT_StringHolder myAttrib;
509  bool myRecurse;
510  bool myKeepunusedpoints;
511  bool myCreateorigattrib;
512  UT_StringHolder myOrigattrib;
513 
514 };
GLdouble s
Definition: glew.h:1390
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_StringHolder opOrigattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool opKeepunusedpoints(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
void setAttrib(const UT_StringHolder &val)
void setKeepunusedpoints(bool val)
bool operator==(const SOP_RewireParms &src) const
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, fpreal64 &v)
fpreal getTime() const
Definition: OP_Context.h:60
bool load(UT_IStream &is)
GLuint const GLfloat * val
Definition: glew.h:2794
void setGrouptype(Grouptype val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
exint getNestNumParms(TempIndex idx) const override
bool opRecurse(const SOP_NodeVerb::CookParms &cookparms) const
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
~SOP_RewireParms() override
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
const GLdouble * v
Definition: glew.h:1391
bool getCreateorigattrib() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Vector4D v)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool opCreateorigattrib(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
double fpreal64
Definition: SYS_Types.h:201
static void saveData(std::ostream &os, UT_StringHolder s)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
const UT_StringHolder & getAttrib() 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
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void loadData(UT_IStream &is, int64 &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
const char * getNestParmName(TempIndex fieldnum) const override
const GLfloat * c
Definition: glew.h:16296
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
Grouptype opGrouptype(const SOP_NodeVerb::CookParms &cookparms) const
void copyFrom(const SOP_NodeParms *src) override
long long int64
Definition: SYS_Types.h:116
static int version()
bool getKeepunusedpoints() const
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
void setCreateorigattrib(bool val)
static void saveData(std::ostream &os, int64 v)
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
static void saveData(std::ostream &os, UT_Vector2D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
Grouptype getGrouptype() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setOrigattrib(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
#define SOP_API
Definition: SOP_API.h:10
void setRecurse(bool val)
static void saveData(std::ostream &os, UT_Vector3D v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
const UT_StringHolder & getOrigattrib() const
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
bool getRecurse() const
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void save(std::ostream &os) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, fpreal64 v)
static void saveData(std::ostream &os, UT_Matrix4D v)
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
bool operator!=(const SOP_RewireParms &src) 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
static void loadData(UT_IStream &is, UT_Vector3I &v)
SYS_FORCE_INLINE bool isstring() const
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528