HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_PolySoup.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myIgnoreattribs = false;
33  myIgnoregroups = false;
34  myMinpolys = 1;
35  myConvex = false;
36  myUsemaxsides = true;
37  myMaxsides = 3;
38  myMergeverts = true;
39 
40  }
41 
42  explicit SOP_PolySoupParms(const SOP_PolySoupParms &) = default;
43  SOP_PolySoupParms &operator=(const SOP_PolySoupParms &) = default;
44  SOP_PolySoupParms(SOP_PolySoupParms &&) noexcept = default;
45  SOP_PolySoupParms &operator=(SOP_PolySoupParms &&) noexcept = default;
46 
47  ~SOP_PolySoupParms() override {}
48 
49  bool operator==(const SOP_PolySoupParms &src) const
50  {
51  if (myGroup != src.myGroup) return false;
52  if (myIgnoreattribs != src.myIgnoreattribs) return false;
53  if (myIgnoregroups != src.myIgnoregroups) return false;
54  if (myMinpolys != src.myMinpolys) return false;
55  if (myConvex != src.myConvex) return false;
56  if (myUsemaxsides != src.myUsemaxsides) return false;
57  if (myMaxsides != src.myMaxsides) return false;
58  if (myMergeverts != src.myMergeverts) return false;
59 
60  return true;
61  }
62  bool operator!=(const SOP_PolySoupParms &src) const
63  {
64  return !operator==(src);
65  }
66 
67 
68 
69  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
70  {
71  myGroup = ""_UTsh;
72  if (true)
73  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
74  myIgnoreattribs = false;
75  if (true)
76  graph->evalOpParm(myIgnoreattribs, nodeidx, "ignoreattribs", time, 0);
77  myIgnoregroups = false;
78  if (true)
79  graph->evalOpParm(myIgnoregroups, nodeidx, "ignoregroups", time, 0);
80  myMinpolys = 1;
81  if (true)
82  graph->evalOpParm(myMinpolys, nodeidx, "minpolys", time, 0);
83  myConvex = false;
84  if (true)
85  graph->evalOpParm(myConvex, nodeidx, "convex", time, 0);
86  myUsemaxsides = true;
87  if (true && ( (true&&!(((getConvex()==0)))) ) )
88  graph->evalOpParm(myUsemaxsides, nodeidx, "usemaxsides", time, 0);
89  myMaxsides = 3;
90  if (true && ( (true&&!(((getConvex()==0))||((getUsemaxsides()==0)))) ) )
91  graph->evalOpParm(myMaxsides, nodeidx, "maxsides", time, 0);
92  myMergeverts = true;
93  if (true)
94  graph->evalOpParm(myMergeverts, nodeidx, "mergeverts", time, 0);
95 
96  }
97 
98 
99  void loadFromOpSubclass(const LoadParms &loadparms) override
100  {
101  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
102  }
103 
104 
105  void copyFrom(const OP_NodeParms *src) override
106  {
107  *this = *((const SOP_PolySoupParms *)src);
108  }
109 
110  template <typename T>
111  void
112  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
113  {
114  if (idx.size() < 1)
115  return;
116  UT_ASSERT(idx.size() == instance.size()+1);
117  if (idx.size() != instance.size()+1)
118  return;
119  switch (idx[0])
120  {
121  case 0:
122  coerceValue(value, myGroup);
123  break;
124  case 1:
125  coerceValue(value, myIgnoreattribs);
126  break;
127  case 2:
128  coerceValue(value, myIgnoregroups);
129  break;
130  case 3:
131  coerceValue(value, myMinpolys);
132  break;
133  case 4:
134  coerceValue(value, myConvex);
135  break;
136  case 5:
137  coerceValue(value, myUsemaxsides);
138  break;
139  case 6:
140  coerceValue(value, myMaxsides);
141  break;
142  case 7:
143  coerceValue(value, myMergeverts);
144  break;
145 
146  }
147  }
148 
149  bool isParmColorRamp(exint idx) const override
150  {
151  switch (idx)
152  {
153 
154  }
155  return false;
156  }
157 
158  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
159  { doGetParmValue(idx, instance, value); }
160  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
161  { doGetParmValue(idx, instance, value); }
162  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
179  { doGetParmValue(idx, instance, value); }
180 
181  template <typename T>
182  void
183  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
184  {
185  if (idx.size() < 1)
186  return;
187  UT_ASSERT(idx.size() == instance.size()+1);
188  if (idx.size() != instance.size()+1)
189  return;
190  switch (idx[0])
191  {
192  case 0:
193  coerceValue(myGroup, ( ( value ) ));
194  break;
195  case 1:
196  coerceValue(myIgnoreattribs, ( ( value ) ));
197  break;
198  case 2:
199  coerceValue(myIgnoregroups, ( ( value ) ));
200  break;
201  case 3:
202  coerceValue(myMinpolys, clampMinValue(1, ( value ) ));
203  break;
204  case 4:
205  coerceValue(myConvex, ( ( value ) ));
206  break;
207  case 5:
208  coerceValue(myUsemaxsides, ( ( value ) ));
209  break;
210  case 6:
211  coerceValue(myMaxsides, clampMinValue(3, ( value ) ));
212  break;
213  case 7:
214  coerceValue(myMergeverts, ( ( value ) ));
215  break;
216 
217  }
218  }
219 
220  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
241  { doSetParmValue(idx, instance, value); }
242 
243  exint getNestNumParms(TempIndex idx) const override
244  {
245  if (idx.size() == 0)
246  return 8;
247  switch (idx[0])
248  {
249 
250  }
251  // Invalid
252  return 0;
253  }
254 
255  const char *getNestParmName(TempIndex fieldnum) const override
256  {
257  if (fieldnum.size() < 1)
258  return 0;
259  switch (fieldnum[0])
260  {
261  case 0:
262  return "group";
263  case 1:
264  return "ignoreattribs";
265  case 2:
266  return "ignoregroups";
267  case 3:
268  return "minpolys";
269  case 4:
270  return "convex";
271  case 5:
272  return "usemaxsides";
273  case 6:
274  return "maxsides";
275  case 7:
276  return "mergeverts";
277 
278  }
279  return 0;
280  }
281 
282  ParmType getNestParmType(TempIndex fieldnum) const override
283  {
284  if (fieldnum.size() < 1)
285  return PARM_UNSUPPORTED;
286  switch (fieldnum[0])
287  {
288  case 0:
289  return PARM_STRING;
290  case 1:
291  return PARM_INTEGER;
292  case 2:
293  return PARM_INTEGER;
294  case 3:
295  return PARM_INTEGER;
296  case 4:
297  return PARM_INTEGER;
298  case 5:
299  return PARM_INTEGER;
300  case 6:
301  return PARM_INTEGER;
302  case 7:
303  return PARM_INTEGER;
304 
305  }
306  return PARM_UNSUPPORTED;
307  }
308 
309  // Boiler plate to load individual types.
310  static void loadData(UT_IStream &is, int64 &v)
311  { is.bread(&v, 1); }
312  static void loadData(UT_IStream &is, bool &v)
313  { int64 iv; is.bread(&iv, 1); v = iv; }
314  static void loadData(UT_IStream &is, fpreal64 &v)
315  { is.bread<fpreal64>(&v, 1); }
316  static void loadData(UT_IStream &is, UT_Vector2D &v)
317  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
318  static void loadData(UT_IStream &is, UT_Vector3D &v)
319  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
320  is.bread<fpreal64>(&v.z(), 1); }
321  static void loadData(UT_IStream &is, UT_Vector4D &v)
322  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
323  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
324  static void loadData(UT_IStream &is, UT_Matrix2D &v)
325  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
326  static void loadData(UT_IStream &is, UT_Matrix3D &v)
327  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
328  static void loadData(UT_IStream &is, UT_Matrix4D &v)
329  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
330  static void loadData(UT_IStream &is, UT_Vector2I &v)
331  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
332  static void loadData(UT_IStream &is, UT_Vector3I &v)
333  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
334  is.bread<int64>(&v.z(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector4I &v)
336  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
337  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
339  { is.bread(v); }
341  { UT_StringHolder rampdata;
342  loadData(is, rampdata);
343  if (rampdata.isstring())
344  {
345  v.reset(new UT_Ramp());
346  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
347  v->load(istr);
348  }
349  else v.reset();
350  }
353  loadData(is, data);
354  if (data.isstring())
355  {
356  // Find the data type.
357  const char *colon = UT_StringWrap(data).findChar(':');
358  if (colon)
359  {
360  int typelen = colon - data.buffer();
362  type.strncpy(data.buffer(), typelen);
363  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
364 
365  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
366  }
367  }
368  else v.reset();
369  }
370 
371  static void saveData(std::ostream &os, int64 v)
372  { UTwrite(os, &v); }
373  static void saveData(std::ostream &os, bool v)
374  { int64 iv = v; UTwrite(os, &iv); }
375  static void saveData(std::ostream &os, fpreal64 v)
376  { UTwrite<fpreal64>(os, &v); }
377  static void saveData(std::ostream &os, UT_Vector2D v)
378  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
379  static void saveData(std::ostream &os, UT_Vector3D v)
380  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
381  UTwrite<fpreal64>(os, &v.z()); }
382  static void saveData(std::ostream &os, UT_Vector4D v)
383  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
384  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
385  static void saveData(std::ostream &os, UT_Matrix2D v)
387  static void saveData(std::ostream &os, UT_Matrix3D v)
389  static void saveData(std::ostream &os, UT_Matrix4D v)
391  static void saveData(std::ostream &os, UT_StringHolder s)
392  { UT_StringWrap(s).saveBinary(os); }
393  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
395  UT_OStringStream ostr;
396  if (s) s->save(ostr);
397  result = ostr.str();
398  saveData(os, result);
399  }
400  static void saveData(std::ostream &os, PRM_DataItemHandle s)
402  UT_OStringStream ostr;
403  if (s)
404  {
405  ostr << s->getDataTypeToken();
406  ostr << ":";
407  s->saveBinary(ostr);
408  }
409  result = ostr.str();
410  saveData(os, result);
411  }
412 
413 
414  void save(std::ostream &os) const
415  {
416  int32 v = version();
417  UTwrite(os, &v);
418  saveData(os, myGroup);
419  saveData(os, myIgnoreattribs);
420  saveData(os, myIgnoregroups);
421  saveData(os, myMinpolys);
422  saveData(os, myConvex);
423  saveData(os, myUsemaxsides);
424  saveData(os, myMaxsides);
425  saveData(os, myMergeverts);
426 
427  }
428 
429  bool load(UT_IStream &is)
430  {
431  int32 v;
432  is.bread(&v, 1);
433  if (version() != v)
434  {
435  // Fail incompatible versions
436  return false;
437  }
438  loadData(is, myGroup);
439  loadData(is, myIgnoreattribs);
440  loadData(is, myIgnoregroups);
441  loadData(is, myMinpolys);
442  loadData(is, myConvex);
443  loadData(is, myUsemaxsides);
444  loadData(is, myMaxsides);
445  loadData(is, myMergeverts);
446 
447  return true;
448  }
449 
450  const UT_StringHolder & getGroup() const { return myGroup; }
451  void setGroup(const UT_StringHolder & val) { myGroup = val; }
453  {
454  SOP_Node *thissop = cookparms.getNode();
455  if (!thissop) return getGroup();
457  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
458  return result;
459  }
460  bool getIgnoreattribs() const { return myIgnoreattribs; }
461  void setIgnoreattribs(bool val) { myIgnoreattribs = val; }
462  bool opIgnoreattribs(const SOP_NodeVerb::CookParms &cookparms) const
463  {
464  SOP_Node *thissop = cookparms.getNode();
465  if (!thissop) return getIgnoreattribs();
466  bool result;
467  OP_Utils::evalOpParm(result, thissop, "ignoreattribs", cookparms.getCookTime(), 0);
468  return result;
469  }
470  bool getIgnoregroups() const { return myIgnoregroups; }
471  void setIgnoregroups(bool val) { myIgnoregroups = val; }
472  bool opIgnoregroups(const SOP_NodeVerb::CookParms &cookparms) const
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getIgnoregroups();
476  bool result;
477  OP_Utils::evalOpParm(result, thissop, "ignoregroups", cookparms.getCookTime(), 0);
478  return result;
479  }
480  int64 getMinpolys() const { return myMinpolys; }
481  void setMinpolys(int64 val) { myMinpolys = val; }
482  int64 opMinpolys(const SOP_NodeVerb::CookParms &cookparms) const
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getMinpolys();
486  int64 result;
487  OP_Utils::evalOpParm(result, thissop, "minpolys", cookparms.getCookTime(), 0);
488  return result;
489  }
490  bool getConvex() const { return myConvex; }
491  void setConvex(bool val) { myConvex = val; }
492  bool opConvex(const SOP_NodeVerb::CookParms &cookparms) const
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getConvex();
496  bool result;
497  OP_Utils::evalOpParm(result, thissop, "convex", cookparms.getCookTime(), 0);
498  return result;
499  }
500  bool getUsemaxsides() const { return myUsemaxsides; }
501  void setUsemaxsides(bool val) { myUsemaxsides = val; }
502  bool opUsemaxsides(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getUsemaxsides();
506  bool result;
507  OP_Utils::evalOpParm(result, thissop, "usemaxsides", cookparms.getCookTime(), 0);
508  return result;
509  }
510  int64 getMaxsides() const { return myMaxsides; }
511  void setMaxsides(int64 val) { myMaxsides = val; }
512  int64 opMaxsides(const SOP_NodeVerb::CookParms &cookparms) const
513  {
514  SOP_Node *thissop = cookparms.getNode();
515  if (!thissop) return getMaxsides();
516  int64 result;
517  OP_Utils::evalOpParm(result, thissop, "maxsides", cookparms.getCookTime(), 0);
518  return result;
519  }
520  bool getMergeverts() const { return myMergeverts; }
521  void setMergeverts(bool val) { myMergeverts = val; }
522  bool opMergeverts(const SOP_NodeVerb::CookParms &cookparms) const
523  {
524  SOP_Node *thissop = cookparms.getNode();
525  if (!thissop) return getMergeverts();
526  bool result;
527  OP_Utils::evalOpParm(result, thissop, "mergeverts", cookparms.getCookTime(), 0);
528  return result;
529  }
530 
531 private:
532  UT_StringHolder myGroup;
533  bool myIgnoreattribs;
534  bool myIgnoregroups;
535  int64 myMinpolys;
536  bool myConvex;
537  bool myUsemaxsides;
538  int64 myMaxsides;
539  bool myMergeverts;
540 
541 };
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
bool operator==(const SOP_PolySoupParms &src) const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
bool opConvex(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint bread(int32 *buffer, exint asize=1)
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
int64 getMaxsides() const
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, bool v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
An output stream object that owns its own string buffer storage.
static void loadData(UT_IStream &is, UT_Vector2I &v)
int64 opMinpolys(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
int64 getMinpolys() const
int64 opMaxsides(const SOP_NodeVerb::CookParms &cookparms) const
void loadFromOpSubclass(const LoadParms &loadparms) override
**But if you need a result
Definition: thread.h:613
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
static void saveData(std::ostream &os, UT_Matrix2D v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
bool operator!=(const SOP_PolySoupParms &src) const
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
bool opIgnoreattribs(const SOP_NodeVerb::CookParms &cookparms) const
bool isParmColorRamp(exint idx) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
exint getNestNumParms(TempIndex idx) const override
void setIgnoregroups(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void copyFrom(const OP_NodeParms *src) override
static void saveData(std::ostream &os, UT_Matrix4D v)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
static void saveData(std::ostream &os, int64 v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
bool getMergeverts() const
bool getConvex() const
exint length() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void loadData(UT_IStream &is, bool &v)
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
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool getIgnoregroups() const
long long int64
Definition: SYS_Types.h:116
void setMinpolys(int64 val)
bool opUsemaxsides(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_StringHolder s)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool getIgnoreattribs() const
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static void saveData(std::ostream &os, fpreal64 v)
bool opIgnoregroups(const SOP_NodeVerb::CookParms &cookparms) const
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setMergeverts(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
bool opMergeverts(const SOP_NodeVerb::CookParms &cookparms) const
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
void setIgnoreattribs(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
static void saveData(std::ostream &os, UT_Vector2D v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setUsemaxsides(bool val)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void loadData(UT_IStream &is, UT_Matrix2D &v)
Definition: core.h:1131
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
GLboolean r
Definition: glcorearb.h:1222
const char * getNestParmName(TempIndex fieldnum) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
bool getUsemaxsides() const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setConvex(bool val)
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void setMaxsides(int64 val)
OP_NodeParms & operator=(const OP_NodeParms &)=default
static void saveData(std::ostream &os, UT_Matrix3D v)
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
const UT_StringHolder & getGroup() const