HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_GroupDelete.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_GroupDeleteEnums
24 {
25  enum class Grouptype
26  {
27  ANY = 0,
28  POINTS,
29  PRIMS,
30  EDGES,
31  VERTICES
32  };
33  enum class Selectiongrouptype
34  {
35  GUESS = 0,
36  POINTS,
37  PRIMS,
38  EDGES,
39  VERTICES
40  };
41 }
42 
43 
45 {
46 public:
47  static int version() { return 1; }
48  struct Deletions
49  {
50  bool enable;
53 
54 
56  {
57  enable = true;
58  grouptype = 0;
59  group = ""_UTsh;
60 
61  }
62 
63  bool operator==(const Deletions &src) const
64  {
65  if (enable != src.enable) return false;
66  if (grouptype != src.grouptype) return false;
67  if (group != src.group) return false;
68 
69  return true;
70  }
71  bool operator!=(const Deletions &src) const
72  {
73  return !operator==(src);
74  }
75 
76  };
77 
79  {
81 
82  buf.strcat("[ ");
83  for (int i = 0; i < list.entries(); i++)
84  {
85  if (i)
86  buf.strcat(", ");
87  buf.strcat("( ");
88  buf.append("");
89  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
90  buf.append(", ");
91  buf.appendSprintf("%d", (int) list(i).grouptype);
92  buf.append(", ");
93  { UT_String tmp; tmp = UT_StringWrap(list(i).group).makeQuotedString('"'); buf.strcat(tmp); }
94 
95  buf.strcat(" )");
96  }
97  buf.strcat(" ]");
98 
100  return result;
101  }
102 
104  {
105  myDeletions.setSize(1);
106  myRemovegrp = false;
107  mySelectiongroup = ""_UTsh;
108  mySelectiongrouptype = 0;
109 
110  }
111 
112  explicit SOP_GroupDeleteParms(const SOP_GroupDeleteParms &) = default;
114  SOP_GroupDeleteParms(SOP_GroupDeleteParms &&) noexcept = default;
115  SOP_GroupDeleteParms &operator=(SOP_GroupDeleteParms &&) noexcept = default;
116 
117  ~SOP_GroupDeleteParms() override {}
118 
120  {
121  if (myDeletions != src.myDeletions) return false;
122  if (myRemovegrp != src.myRemovegrp) return false;
123  if (mySelectiongroup != src.mySelectiongroup) return false;
124  if (mySelectiongrouptype != src.mySelectiongrouptype) return false;
125 
126  return true;
127  }
129  {
130  return !operator==(src);
131  }
134 
135 
136 
137  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
138  {
139  if (true)
140  {
141  int64 length = 0;
142  graph->evalOpParm(length, nodeidx, "deletions", time, 0);
143  if (length < 0) length = 0;
144  myDeletions.setSize(length);
145  for (exint i = 0; i < length; i++)
146  {
147  int parmidx[1];
148  int offsets[1];
149  parmidx[0] = i+1;
150  offsets[0] = 1;
151  auto && _curentry = myDeletions(i);
152  (void) _curentry;
153  _curentry.enable = true;
154  if (true)
155  graph->evalOpParmInst(_curentry.enable, nodeidx, "enable#", parmidx, offsets, time, 0, 2-1);
156  _curentry.grouptype = 0;
157  if (true && ( (true&&!(((_curentry.enable==0)))) ) )
158  graph->evalOpParmInst(_curentry.grouptype, nodeidx, "grouptype#", parmidx, offsets, time, 0, 2-1);
159  _curentry.group = ""_UTsh;
160  if (true && ( (true&&!(((_curentry.enable==0)))) ) )
161  graph->evalOpParmInst(_curentry.group, nodeidx, "group#", parmidx, offsets, time, 0, 2-1);
162 
163  }
164  }
165  else
166  myDeletions.clear();
167  myRemovegrp = false;
168  if (true)
169  graph->evalOpParm(myRemovegrp, nodeidx, "removegrp", time, 0);
170  mySelectiongroup = ""_UTsh;
171  if (true)
172  graph->evalOpParm(mySelectiongroup, nodeidx, "selectiongroup", time, 0);
173  mySelectiongrouptype = 0;
174  if (true)
175  graph->evalOpParm(mySelectiongrouptype, nodeidx, "selectiongrouptype", time, 0);
176 
177  }
178 
179 
180  void loadFromOpSubclass(const LoadParms &loadparms) override
181  {
182  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
183  }
184 
185 
186  void copyFrom(const OP_NodeParms *src) override
187  {
188  *this = *((const SOP_GroupDeleteParms *)src);
189  }
190 
191  template <typename T>
192  void
193  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
194  {
195  if (idx.size() < 1)
196  return;
197  UT_ASSERT(idx.size() == instance.size()+1);
198  if (idx.size() != instance.size()+1)
199  return;
200  switch (idx[0])
201  {
202  case 0:
203  if (idx.size() == 1)
204  coerceValue(value, myDeletions.entries());
205  else if (instance[0] < myDeletions.entries())
206  {
207  auto && _data = myDeletions(instance[0]);
208  switch (idx[1])
209  {
210  case 0:
211  coerceValue(value, _data.enable);
212  break;
213  case 1:
214  coerceValue(value, _data.grouptype);
215  break;
216  case 2:
217  coerceValue(value, _data.group);
218  break;
219 
220  }
221  }
222  break;
223  case 1:
224  coerceValue(value, myRemovegrp);
225  break;
226  case 2:
227  coerceValue(value, mySelectiongroup);
228  break;
229  case 3:
230  coerceValue(value, mySelectiongrouptype);
231  break;
232 
233  }
234  }
235 
236  bool isParmColorRamp(exint idx) const override
237  {
238  switch (idx)
239  {
240 
241  }
242  return false;
243  }
244 
245  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
246  { doGetParmValue(idx, instance, value); }
247  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
248  { doGetParmValue(idx, instance, value); }
249  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
250  { doGetParmValue(idx, instance, value); }
251  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
252  { doGetParmValue(idx, instance, value); }
253  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
254  { doGetParmValue(idx, instance, value); }
255  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
256  { doGetParmValue(idx, instance, value); }
257  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
258  { doGetParmValue(idx, instance, value); }
259  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
260  { doGetParmValue(idx, instance, value); }
261  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
262  { doGetParmValue(idx, instance, value); }
263  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
264  { doGetParmValue(idx, instance, value); }
265  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
266  { doGetParmValue(idx, instance, value); }
267 
268  template <typename T>
269  void
270  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
271  {
272  if (idx.size() < 1)
273  return;
274  UT_ASSERT(idx.size() == instance.size()+1);
275  if (idx.size() != instance.size()+1)
276  return;
277  switch (idx[0])
278  {
279  case 0:
280  if (idx.size() == 1)
281  {
282  exint newsize;
283  coerceValue(newsize, value);
284  if (newsize < 0) newsize = 0;
285  myDeletions.setSize(newsize);
286  }
287  else
288  {
289  if (instance[0] < 0)
290  return;
291  myDeletions.setSizeIfNeeded(instance[0]+1);
292  auto && _data = myDeletions(instance[0]);
293  switch (idx[1])
294  {
295  case 0:
296  coerceValue(_data.enable, value);
297  break;
298  case 1:
299  coerceValue(_data.grouptype, value);
300  break;
301  case 2:
302  coerceValue(_data.group, value);
303  break;
304 
305  }
306  }
307  break;
308  case 1:
309  coerceValue(myRemovegrp, ( ( value ) ));
310  break;
311  case 2:
312  coerceValue(mySelectiongroup, ( ( value ) ));
313  break;
314  case 3:
315  coerceValue(mySelectiongrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
316  break;
317 
318  }
319  }
320 
321  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
322  { doSetParmValue(idx, instance, value); }
323  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
324  { doSetParmValue(idx, instance, value); }
325  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
326  { doSetParmValue(idx, instance, value); }
327  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
328  { doSetParmValue(idx, instance, value); }
329  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
330  { doSetParmValue(idx, instance, value); }
331  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
332  { doSetParmValue(idx, instance, value); }
333  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
334  { doSetParmValue(idx, instance, value); }
335  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
336  { doSetParmValue(idx, instance, value); }
337  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
338  { doSetParmValue(idx, instance, value); }
339  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
340  { doSetParmValue(idx, instance, value); }
341  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
342  { doSetParmValue(idx, instance, value); }
343 
344  exint getNestNumParms(TempIndex idx) const override
345  {
346  if (idx.size() == 0)
347  return 4;
348  switch (idx[0])
349  {
350  case 0:
351  return 3;
352 
353  }
354  // Invalid
355  return 0;
356  }
357 
358  const char *getNestParmName(TempIndex fieldnum) const override
359  {
360  if (fieldnum.size() < 1)
361  return 0;
362  switch (fieldnum[0])
363  {
364  case 0:
365  if (fieldnum.size() == 1)
366  return "deletions";
367  switch (fieldnum[1])
368  {
369  case 0:
370  return "enable#";
371  case 1:
372  return "grouptype#";
373  case 2:
374  return "group#";
375 
376  }
377  return 0;
378  case 1:
379  return "removegrp";
380  case 2:
381  return "selectiongroup";
382  case 3:
383  return "selectiongrouptype";
384 
385  }
386  return 0;
387  }
388 
389  ParmType getNestParmType(TempIndex fieldnum) const override
390  {
391  if (fieldnum.size() < 1)
392  return PARM_UNSUPPORTED;
393  switch (fieldnum[0])
394  {
395  case 0:
396  if (fieldnum.size() == 1)
397  return PARM_MULTIPARM;
398  switch (fieldnum[1])
399  {
400  case 0:
401  return PARM_INTEGER;
402  case 1:
403  return PARM_INTEGER;
404  case 2:
405  return PARM_STRING;
406 
407  }
408  return PARM_UNSUPPORTED;
409  case 1:
410  return PARM_INTEGER;
411  case 2:
412  return PARM_STRING;
413  case 3:
414  return PARM_INTEGER;
415 
416  }
417  return PARM_UNSUPPORTED;
418  }
419 
420  // Boiler plate to load individual types.
421  static void loadData(UT_IStream &is, int64 &v)
422  { is.bread(&v, 1); }
423  static void loadData(UT_IStream &is, bool &v)
424  { int64 iv; is.bread(&iv, 1); v = iv; }
425  static void loadData(UT_IStream &is, fpreal64 &v)
426  { is.bread<fpreal64>(&v, 1); }
427  static void loadData(UT_IStream &is, UT_Vector2D &v)
428  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
429  static void loadData(UT_IStream &is, UT_Vector3D &v)
430  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
431  is.bread<fpreal64>(&v.z(), 1); }
432  static void loadData(UT_IStream &is, UT_Vector4D &v)
433  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
434  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
435  static void loadData(UT_IStream &is, UT_Matrix2D &v)
436  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
437  static void loadData(UT_IStream &is, UT_Matrix3D &v)
438  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
439  static void loadData(UT_IStream &is, UT_Matrix4D &v)
440  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
441  static void loadData(UT_IStream &is, UT_Vector2I &v)
442  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
443  static void loadData(UT_IStream &is, UT_Vector3I &v)
444  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
445  is.bread<int64>(&v.z(), 1); }
446  static void loadData(UT_IStream &is, UT_Vector4I &v)
447  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
448  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
450  { is.bread(v); }
452  { UT_StringHolder rampdata;
453  loadData(is, rampdata);
454  if (rampdata.isstring())
455  {
456  v.reset(new UT_Ramp());
457  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
458  v->load(istr);
459  }
460  else v.reset();
461  }
464  loadData(is, data);
465  if (data.isstring())
466  {
467  // Find the data type.
468  const char *colon = UT_StringWrap(data).findChar(':');
469  if (colon)
470  {
471  int typelen = colon - data.buffer();
473  type.strncpy(data.buffer(), typelen);
474  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
475 
476  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
477  }
478  }
479  else v.reset();
480  }
481 
482  static void saveData(std::ostream &os, int64 v)
483  { UTwrite(os, &v); }
484  static void saveData(std::ostream &os, bool v)
485  { int64 iv = v; UTwrite(os, &iv); }
486  static void saveData(std::ostream &os, fpreal64 v)
487  { UTwrite<fpreal64>(os, &v); }
488  static void saveData(std::ostream &os, UT_Vector2D v)
489  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
490  static void saveData(std::ostream &os, UT_Vector3D v)
491  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
492  UTwrite<fpreal64>(os, &v.z()); }
493  static void saveData(std::ostream &os, UT_Vector4D v)
494  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
495  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
496  static void saveData(std::ostream &os, UT_Matrix2D v)
498  static void saveData(std::ostream &os, UT_Matrix3D v)
500  static void saveData(std::ostream &os, UT_Matrix4D v)
502  static void saveData(std::ostream &os, UT_StringHolder s)
503  { UT_StringWrap(s).saveBinary(os); }
504  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
506  UT_OStringStream ostr;
507  if (s) s->save(ostr);
508  result = ostr.str();
509  saveData(os, result);
510  }
511  static void saveData(std::ostream &os, PRM_DataItemHandle s)
513  UT_OStringStream ostr;
514  if (s)
515  {
516  ostr << s->getDataTypeToken();
517  ostr << ":";
518  s->saveBinary(ostr);
519  }
520  result = ostr.str();
521  saveData(os, result);
522  }
523 
524 
525  void save(std::ostream &os) const
526  {
527  int32 v = version();
528  UTwrite(os, &v);
529  {
530  int64 length = myDeletions.entries();
531  UTwrite(os, &length);
532  for (exint i = 0; i < length; i++)
533  {
534  auto && _curentry = myDeletions(i);
535  (void) _curentry;
536  saveData(os, _curentry.enable);
537  saveData(os, _curentry.grouptype);
538  saveData(os, _curentry.group);
539 
540  }
541  }
542  saveData(os, myRemovegrp);
543  saveData(os, mySelectiongroup);
544  saveData(os, mySelectiongrouptype);
545 
546  }
547 
548  bool load(UT_IStream &is)
549  {
550  int32 v;
551  is.bread(&v, 1);
552  if (version() != v)
553  {
554  // Fail incompatible versions
555  return false;
556  }
557  {
558  int64 length;
559  is.read(&length, 1);
560  myDeletions.setSize(length);
561  for (exint i = 0; i < length; i++)
562  {
563  auto && _curentry = myDeletions(i);
564  (void) _curentry;
565  loadData(is, _curentry.enable);
566  loadData(is, _curentry.grouptype);
567  loadData(is, _curentry.group);
568 
569  }
570  }
571  loadData(is, myRemovegrp);
572  loadData(is, mySelectiongroup);
573  loadData(is, mySelectiongrouptype);
574 
575  return true;
576  }
577 
578  const UT_Array<Deletions> &getDeletions() const { return myDeletions; }
579 void setDeletions(const UT_Array<Deletions> &val) { myDeletions = val; }
580  exint opDeletions(const SOP_NodeVerb::CookParms &cookparms) const
581  {
582  SOP_Node *thissop = cookparms.getNode();
583  if (!thissop) return getDeletions().entries();
584  exint result;
585  OP_Utils::evalOpParm(result, thissop, "deletions", cookparms.getCookTime(), 0);
586  return result;
587  }
588  bool opDeletions_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
589  { return opinstDeletions_enable(cookparms, &_idx); }
590  bool opinstDeletions_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
591  {
592  SOP_Node *thissop = cookparms.getNode();
593  if (!thissop) return (myDeletions(_idx[0]).enable);
594  int _parmidx[2-1];
595  _parmidx[1-1] = _idx[1-1] + 1;
596 
597  bool result;
598  OP_Utils::evalOpParmInst(result, thissop, "enable#", _parmidx, cookparms.getCookTime(), 0, 2-1);
599  return (result);
600  }
601  int64 opDeletions_grouptype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
602  { return opinstDeletions_grouptype(cookparms, &_idx); }
603  int64 opinstDeletions_grouptype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
604  {
605  SOP_Node *thissop = cookparms.getNode();
606  if (!thissop) return (myDeletions(_idx[0]).grouptype);
607  int _parmidx[2-1];
608  _parmidx[1-1] = _idx[1-1] + 1;
609 
610  int64 result;
611  OP_Utils::evalOpParmInst(result, thissop, "grouptype#", _parmidx, cookparms.getCookTime(), 0, 2-1);
612  return (result);
613  }
615  { return opinstDeletions_group(cookparms, &_idx); }
616  UT_StringHolder opinstDeletions_group(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
617  {
618  SOP_Node *thissop = cookparms.getNode();
619  if (!thissop) return (myDeletions(_idx[0]).group);
620  int _parmidx[2-1];
621  _parmidx[1-1] = _idx[1-1] + 1;
622 
624  OP_Utils::evalOpParmInst(result, thissop, "group#", _parmidx, cookparms.getCookTime(), 0, 2-1);
625  return (result);
626  }
627 
628  bool getRemovegrp() const { return myRemovegrp; }
629  void setRemovegrp(bool val) { myRemovegrp = val; }
630  bool opRemovegrp(const SOP_NodeVerb::CookParms &cookparms) const
631  {
632  SOP_Node *thissop = cookparms.getNode();
633  if (!thissop) return getRemovegrp();
634  bool result;
635  OP_Utils::evalOpParm(result, thissop, "removegrp", cookparms.getCookTime(), 0);
636  return result;
637  }
638  const UT_StringHolder & getSelectiongroup() const { return mySelectiongroup; }
639  void setSelectiongroup(const UT_StringHolder & val) { mySelectiongroup = val; }
641  {
642  SOP_Node *thissop = cookparms.getNode();
643  if (!thissop) return getSelectiongroup();
645  OP_Utils::evalOpParm(result, thissop, "selectiongroup", cookparms.getCookTime(), 0);
646  return result;
647  }
648  Selectiongrouptype getSelectiongrouptype() const { return Selectiongrouptype(mySelectiongrouptype); }
649  void setSelectiongrouptype(Selectiongrouptype val) { mySelectiongrouptype = int64(val); }
651  {
652  SOP_Node *thissop = cookparms.getNode();
653  if (!thissop) return getSelectiongrouptype();
654  int64 result;
655  OP_Utils::evalOpParm(result, thissop, "selectiongrouptype", cookparms.getCookTime(), 0);
656  return Selectiongrouptype(result);
657  }
658 
659 private:
660  UT_Array<Deletions> myDeletions;
661  bool myRemovegrp;
662  UT_StringHolder mySelectiongroup;
663  int64 mySelectiongrouptype;
664 
665 };
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glcorearb.h:2540
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Matrix2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
const UT_Array< Deletions > & getDeletions() const
bool operator==(const Deletions &src) const
void save(std::ostream &os) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void copyFrom(const OP_NodeParms *src) override
void
Definition: png.h:1083
Selectiongrouptype getSelectiongrouptype() const
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
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
bool opRemovegrp(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
UT_String makeQuotedString(char delimiter='\'', bool escape_nonprinting=false) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
UT_StringHolder opinstDeletions_group(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
GLdouble s
Definition: glad.h:3009
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
void setSelectiongroup(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
An output stream object that owns its own string buffer storage.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
**But if you need a result
Definition: thread.h:613
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
UT_StringHolder opSelectiongroup(const SOP_NodeVerb::CookParms &cookparms) const
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
GLuint GLsizei const GLuint const GLintptr * offsets
Definition: glcorearb.h:2621
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
const UT_StringHolder & getSelectiongroup() const
void loadFromOpSubclass(const LoadParms &loadparms) override
static void saveData(std::ostream &os, UT_Matrix3D v)
exint length() const
UT_StringHolder opDeletions_group(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
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 saveData(std::ostream &os, bool v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, int64 &v)
int64 opinstDeletions_grouptype(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:276
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void saveData(std::ostream &os, UT_Vector4D v)
static void saveData(std::ostream &os, UT_Vector3D v)
bool opDeletions_enable(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setDeletions(const UT_Array< Deletions > &val)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, const int *inst, const int *offsets, fpreal time, DEP_MicroNode *depnode, int nestlevel=1) const =0
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
void setSelectiongrouptype(Selectiongrouptype val)
exint getNestNumParms(TempIndex idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, UT_Vector3D &v)
bool load(UT_IStream &is)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator==(const SOP_GroupDeleteParms &src) const
SYS_FORCE_INLINE void strcat(const char *src)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:648
Selectiongrouptype opSelectiongrouptype(const SOP_NodeVerb::CookParms &cookparms) const
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
const char * getNestParmName(TempIndex fieldnum) const override
int64 opDeletions_grouptype(const SOP_NodeVerb::CookParms &cookparms, int _idx) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, bool &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
UT_StringHolder createString(const UT_Array< Deletions > &list) const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
static void saveData(std::ostream &os, fpreal64 v)
bool operator!=(const SOP_GroupDeleteParms &src) const
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
SYS_FORCE_INLINE void append(char character)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
static void loadData(UT_IStream &is, UT_Matrix4D &v)
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
static void saveData(std::ostream &os, UT_Matrix4D v)
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
Definition: core.h:1131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool opinstDeletions_enable(const SOP_NodeVerb::CookParms &cookparms, const int *_idx) const
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
static void loadData(UT_IStream &is, UT_Matrix3D &v)
type
Definition: core.h:1059
static void loadData(UT_IStream &is, fpreal64 &v)
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
bool operator!=(const Deletions &src) const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
bool isParmColorRamp(exint idx) const override
exint opDeletions(const SOP_NodeVerb::CookParms &cookparms) const
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663