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