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_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_GroupDeleteEnums
24 {
25  enum class Grouptype
26  {
27  ANY = 0,
28  POINTS,
29  PRIMS,
30  EDGES,
31  VERTICES
32  };
33 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40  struct Deletions
41  {
42  bool enable;
45 
46 
48  {
49  enable = true;
50  grouptype = 0;
51  group = ""_sh;
52 
53  }
54 
55  bool operator==(const Deletions &src) const
56  {
57  if (enable != src.enable) return false;
58  if (grouptype != src.grouptype) return false;
59  if (group != src.group) return false;
60 
61  return true;
62  }
63  bool operator!=(const Deletions &src) const
64  {
65  return !operator==(src);
66  }
67 
68  };
69 
71  {
73 
74  buf.strcat("[ ");
75  for (int i = 0; i < list.entries(); i++)
76  {
77  if (i)
78  buf.strcat(", ");
79  buf.strcat("( ");
80  buf.append("");
81  buf.appendSprintf("%s", (list(i).enable) ? "true" : "false");
82  buf.append(", ");
83  buf.appendSprintf("%d", (int) list(i).grouptype);
84  buf.append(", ");
85  { UT_String tmp; tmp = UT_StringWrap(list(i).group).makeQuotedString('"'); buf.strcat(tmp); }
86 
87  buf.strcat(" )");
88  }
89  buf.strcat(" ]");
90 
92  return result;
93  }
94 
96  {
97  myRemovegrp = false;
98 
99  }
100 
101  explicit SOP_GroupDeleteParms(const SOP_GroupDeleteParms &) = default;
102 
103  ~SOP_GroupDeleteParms() override {}
104 
106  {
107  if (myDeletions != src.myDeletions) return false;
108  if (myRemovegrp != src.myRemovegrp) return false;
109 
110  return true;
111  }
113  {
114  return !operator==(src);
115  }
117 
118 
119 
120  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
121  {
122  if (true)
123  {
124  int64 length = 0;
125  graph->evalOpParm(length, nodeidx, "deletions", time, 0);
126  myDeletions.entries(length);
127  for (exint i = 0; i < length; i++)
128  {
129  int parmidx = i+1;
130  auto && _curentry = myDeletions(i);
131  (void) _curentry;
132  myDeletions(i).enable = true;
133  if (true)
134  graph->evalOpParmInst(myDeletions(i).enable, nodeidx, "enable#", &parmidx, time, 0);
135  myDeletions(i).grouptype = 0;
136  if (true && ( (!(((_curentry.enable==0)))) ) )
137  graph->evalOpParmInst(myDeletions(i).grouptype, nodeidx, "grouptype#", &parmidx, time, 0);
138  myDeletions(i).group = ""_sh;
139  if (true && ( (!(((_curentry.enable==0)))) ) )
140  graph->evalOpParmInst(myDeletions(i).group, nodeidx, "group#", &parmidx, time, 0);
141 
142  }
143  }
144  else
145  myDeletions.clear();
146  myRemovegrp = false;
147  if (true)
148  graph->evalOpParm(myRemovegrp, nodeidx, "removegrp", time, 0);
149 
150  }
151 
152 
153  void loadFromOpSubclass(const LoadParms &loadparms) override
154  {
155  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
156  }
157 
158 
159  void copyFrom(const SOP_NodeParms *src) override
160  {
161  *this = *((const SOP_GroupDeleteParms *)src);
162  }
163 
164  template <typename T>
165  void
166  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
167  {
168  if (idx.size() < 1)
169  return;
170  UT_ASSERT(idx.size() == instance.size()+1);
171  if (idx.size() != instance.size()+1)
172  return;
173  switch (idx[0])
174  {
175  case 0:
176  if (idx.size() == 1)
177  coerceValue(value, myDeletions.entries());
178  else if (instance[0] < myDeletions.entries())
179  {
180  auto && _data = myDeletions(instance[0]);
181  switch (idx[1])
182  {
183  case 0:
184  coerceValue(value, _data.enable);
185  break;
186  case 1:
187  coerceValue(value, _data.grouptype);
188  break;
189  case 2:
190  coerceValue(value, _data.group);
191  break;
192 
193  }
194  }
195  break;
196  case 1:
197  coerceValue(value, myRemovegrp);
198  break;
199 
200  }
201  }
202 
203  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
220  { doGetParmValue(idx, instance, value); }
221  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
222  { doGetParmValue(idx, instance, value); }
223  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
224  { doGetParmValue(idx, instance, value); }
225 
226  template <typename T>
227  void
228  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
229  {
230  if (idx.size() < 1)
231  return;
232  UT_ASSERT(idx.size() == instance.size()+1);
233  if (idx.size() != instance.size()+1)
234  return;
235  switch (idx[0])
236  {
237  case 0:
238  if (idx.size() == 1)
239  {
240  exint newsize;
241  coerceValue(newsize, value);
242  myDeletions.setSize(newsize);
243  }
244  else
245  {
246  myDeletions.setSizeIfNeeded(instance[0]+1);
247  auto && _data = myDeletions(instance[0]);
248  switch (idx[1])
249  {
250  case 0:
251  coerceValue(_data.enable, value);
252  break;
253  case 1:
254  coerceValue(_data.grouptype, value);
255  break;
256  case 2:
257  coerceValue(_data.group, value);
258  break;
259 
260  }
261  }
262  break;
263  case 1:
264  coerceValue(myRemovegrp, value);
265  break;
266 
267  }
268  }
269 
270  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
279  { doSetParmValue(idx, instance, value); }
280  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
281  { doSetParmValue(idx, instance, value); }
282  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
283  { doSetParmValue(idx, instance, value); }
284  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
285  { doSetParmValue(idx, instance, value); }
286  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
287  { doSetParmValue(idx, instance, value); }
288  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
289  { doSetParmValue(idx, instance, value); }
290  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
291  { doSetParmValue(idx, instance, value); }
292 
293  exint getNestNumParms(TempIndex idx) const override
294  {
295  if (idx.size() == 0)
296  return 2;
297  switch (idx[0])
298  {
299  case 0:
300  return 3;
301 
302  }
303  // Invalid
304  return 0;
305  }
306 
307  const char *getNestParmName(TempIndex fieldnum) const override
308  {
309  if (fieldnum.size() < 1)
310  return 0;
311  switch (fieldnum[0])
312  {
313  case 0:
314  if (fieldnum.size() == 1)
315  return "deletions";
316  switch (fieldnum[1])
317  {
318  case 0:
319  return "enable#";
320  case 1:
321  return "grouptype#";
322  case 2:
323  return "group#";
324 
325  }
326  return 0;
327  case 1:
328  return "removegrp";
329 
330  }
331  return 0;
332  }
333 
334  ParmType getNestParmType(TempIndex fieldnum) const override
335  {
336  if (fieldnum.size() < 1)
337  return PARM_UNSUPPORTED;
338  switch (fieldnum[0])
339  {
340  case 0:
341  if (fieldnum.size() == 1)
342  return PARM_MULTIPARM;
343  switch (fieldnum[1])
344  {
345  case 0:
346  return PARM_INTEGER;
347  case 1:
348  return PARM_INTEGER;
349  case 2:
350  return PARM_STRING;
351 
352  }
353  return PARM_UNSUPPORTED;
354  case 1:
355  return PARM_INTEGER;
356 
357  }
358  return PARM_UNSUPPORTED;
359  }
360 
361  // Boiler plate to load individual types.
362  static void loadData(UT_IStream &is, int64 &v)
363  { is.bread(&v, 1); }
364  static void loadData(UT_IStream &is, bool &v)
365  { int64 iv; is.bread(&iv, 1); v = iv; }
366  static void loadData(UT_IStream &is, fpreal64 &v)
367  { is.bread<fpreal64>(&v, 1); }
368  static void loadData(UT_IStream &is, UT_Vector2D &v)
369  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector3D &v)
371  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
372  is.bread<fpreal64>(&v.z(), 1); }
373  static void loadData(UT_IStream &is, UT_Vector4D &v)
374  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
375  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
376  static void loadData(UT_IStream &is, UT_Matrix2D &v)
377  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
378  static void loadData(UT_IStream &is, UT_Matrix3D &v)
379  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
380  static void loadData(UT_IStream &is, UT_Matrix4D &v)
381  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
382  static void loadData(UT_IStream &is, UT_Vector2I &v)
383  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
384  static void loadData(UT_IStream &is, UT_Vector3I &v)
385  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
386  is.bread<int64>(&v.z(), 1); }
387  static void loadData(UT_IStream &is, UT_Vector4I &v)
388  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
389  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
391  { is.bread(v); }
393  { UT_StringHolder rampdata;
394  loadData(is, rampdata);
395  if (rampdata.isstring())
396  {
397  v.reset(new UT_Ramp());
398  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
399  v->load(istr);
400  }
401  else v.reset();
402  }
405  loadData(is, data);
406  if (data.isstring())
407  {
408  // Find the data type.
409  const char *colon = UT_StringWrap(data).findChar(':');
410  if (colon)
411  {
412  int typelen = colon - data.buffer();
414  type.strncpy(data.buffer(), typelen);
415  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
416 
417  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
418  }
419  }
420  else v.reset();
421  }
422 
423  static void saveData(std::ostream &os, int64 v)
424  { UTwrite(os, &v); }
425  static void saveData(std::ostream &os, bool v)
426  { int64 iv = v; UTwrite(os, &iv); }
427  static void saveData(std::ostream &os, fpreal64 v)
428  { UTwrite<fpreal64>(os, &v); }
429  static void saveData(std::ostream &os, UT_Vector2D v)
430  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
431  static void saveData(std::ostream &os, UT_Vector3D v)
432  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
433  UTwrite<fpreal64>(os, &v.z()); }
434  static void saveData(std::ostream &os, UT_Vector4D v)
435  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
436  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
437  static void saveData(std::ostream &os, UT_Matrix2D v)
439  static void saveData(std::ostream &os, UT_Matrix3D v)
441  static void saveData(std::ostream &os, UT_Matrix4D v)
443  static void saveData(std::ostream &os, UT_StringHolder s)
444  { UT_StringWrap(s).saveBinary(os); }
445  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
447  UT_OStringStream ostr;
448  if (s) s->save(ostr);
449  result = ostr.str();
450  saveData(os, result);
451  }
452  static void saveData(std::ostream &os, PRM_DataItemHandle s)
454  UT_OStringStream ostr;
455  if (s)
456  {
457  ostr << s->getDataTypeToken();
458  ostr << ":";
459  s->saveBinary(ostr);
460  }
461  result = ostr.str();
462  saveData(os, result);
463  }
464 
465 
466  void save(std::ostream &os) const
467  {
468  int32 v = version();
469  UTwrite(os, &v);
470  {
471  int64 length = myDeletions.entries();
472  UTwrite(os, &length);
473  for (exint i = 0; i < length; i++)
474  {
475  saveData(os, myDeletions(i).enable);
476  saveData(os, myDeletions(i).grouptype);
477  saveData(os, myDeletions(i).group);
478 
479  }
480  }
481  saveData(os, myRemovegrp);
482 
483  }
484 
485  bool load(UT_IStream &is)
486  {
487  int32 v;
488  is.bread(&v, 1);
489  if (version() != v)
490  {
491  // Fail incompatible versions
492  return false;
493  }
494  {
495  int64 length;
496  is.read(&length, 1);
497  myDeletions.entries(length);
498  for (exint i = 0; i < length; i++)
499  {
500  loadData(is, myDeletions(i).enable);
501  loadData(is, myDeletions(i).grouptype);
502  loadData(is, myDeletions(i).group);
503 
504  }
505  }
506  loadData(is, myRemovegrp);
507 
508  return true;
509  }
510 
511  const UT_Array<Deletions> &getDeletions() const { return myDeletions; }
512  void setDeletions(const UT_Array<Deletions> &val) { myDeletions = val; }
513  exint opDeletions(const SOP_NodeVerb::CookParms &cookparms) const
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getDeletions().entries();
517  exint result;
518  OP_Utils::evalOpParm(result, thissop, "deletions", cookparms.getCookTime(), 0);
519  return result;
520  }
521  bool opDeletions_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
522  {
523  SOP_Node *thissop = cookparms.getNode();
524  if (!thissop) return (myDeletions(_idx).enable);
525  int _parmidx = _idx + 1;
526  bool result;
527  OP_Utils::evalOpParmInst(result, thissop, "enable#", &_parmidx, cookparms.getCookTime(), 0);
528  return (result);
529  }
531  {
532  SOP_Node *thissop = cookparms.getNode();
533  if (!thissop) return (myDeletions(_idx).grouptype);
534  int _parmidx = _idx + 1;
535  int64 result;
536  OP_Utils::evalOpParmInst(result, thissop, "grouptype#", &_parmidx, cookparms.getCookTime(), 0);
537  return (result);
538  }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return (myDeletions(_idx).group);
543  int _parmidx = _idx + 1;
545  OP_Utils::evalOpParmInst(result, thissop, "group#", &_parmidx, cookparms.getCookTime(), 0);
546  return (result);
547  }
548 
549  bool getRemovegrp() const { return myRemovegrp; }
550  void setRemovegrp(bool val) { myRemovegrp = val; }
551  bool opRemovegrp(const SOP_NodeVerb::CookParms &cookparms) const
552  {
553  SOP_Node *thissop = cookparms.getNode();
554  if (!thissop) return getRemovegrp();
555  bool result;
556  OP_Utils::evalOpParm(result, thissop, "removegrp", cookparms.getCookTime(), 0);
557  return result;
558  }
559 
560 private:
561  UT_Array<Deletions> myDeletions;
562  bool myRemovegrp;
563 
564 };
GLdouble s
Definition: glew.h:1390
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
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
const UT_Array< Deletions > & getDeletions() const
bool operator==(const Deletions &src) const
void save(std::ostream &os) const
UT_StringHolder opDeletions_group(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
virtual void evalOpParmInst(int64 &v, NodeIdx node, const char *parmname, int *inst, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
GLuint const GLfloat * val
Definition: glew.h:2794
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
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
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 copyFrom(const SOP_NodeParms *src) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
const GLdouble * v
Definition: glew.h:1391
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
double fpreal64
Definition: SYS_Types.h:201
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)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
void loadFromOpSubclass(const LoadParms &loadparms) override
bool opDeletions_enable(const SOP_NodeVerb::CookParms &cookparms, exint _idx) const
static void saveData(std::ostream &os, UT_Matrix3D v)
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
static void saveData(std::ostream &os, bool v)
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
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)
exint read(bool *array, exint sz=1)
Definition: UT_IStream.h:284
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
static void saveData(std::ostream &os, UT_Vector4D v)
void
Definition: png.h:1083
static void saveData(std::ostream &os, UT_Vector3D v)
const GLfloat * c
Definition: glew.h:16296
GLuint GLsizei GLsizei * length
Definition: glew.h:1825
int64 opDeletions_grouptype(const SOP_NodeVerb::CookParms &cookparms, exint _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
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
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)
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:294
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
exint entries() const
Alias of size(). size() is preferred.
Definition: UT_Array.h:460
int int appendSprintf(const char *fmt,...) SYS_PRINTF_CHECK_ATTRIBUTE(2
const char * getNestParmName(TempIndex fieldnum) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void loadData(UT_IStream &is, bool &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
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:84
static void saveData(std::ostream &os, fpreal64 v)
bool operator!=(const SOP_GroupDeleteParms &src) const
SYS_FORCE_INLINE void append(char character)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
#define SOP_API
Definition: SOP_API.h:10
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
ParmType getNestParmType(TempIndex fieldnum) const override
GLuint64EXT * result
Definition: glew.h:14007
static void saveData(std::ostream &os, UT_Matrix4D v)
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLenum GLuint GLsizei const GLchar * buf
Definition: glew.h:2580
static void loadData(UT_IStream &is, fpreal64 &v)
GLsizei const GLfloat * value
Definition: glew.h:1849
static void saveData(std::ostream &os, UT_StringHolder s)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
GLboolean enable
Definition: glew.h:2745
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
bool operator!=(const Deletions &src) const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
type
Definition: core.h:528
GLboolean GLuint group
Definition: glew.h:2745
exint opDeletions(const SOP_NodeVerb::CookParms &cookparms) const