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