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 
33  getToken(PartitionType enum_value)
34  {
35  using namespace UT::Literal;
36  switch (enum_value) {
37  case PartitionType::PRIMITIVES: return "primitives"_sh;
38  case PartitionType::PIECES: return "pieces"_sh;
39  case PartitionType::DETAIL: return "detail"_sh;
40  default: UT_ASSERT(false); return ""_sh;
41  }
42  }
43 
44  enum class AttribClass
45  {
46  PRIM = 0,
47  POINT
48  };
49 
51  getToken(AttribClass enum_value)
52  {
53  using namespace UT::Literal;
54  switch (enum_value) {
55  case AttribClass::PRIM: return "prim"_sh;
56  case AttribClass::POINT: return "point"_sh;
57  default: UT_ASSERT(false); return ""_sh;
58  }
59  }
60 
61  enum class Method
62  {
63  COM = 0,
64  BBOX,
66  };
67 
69  getToken(Method enum_value)
70  {
71  using namespace UT::Literal;
72  switch (enum_value) {
73  case Method::COM: return "com"_sh;
74  case Method::BBOX: return "bbox"_sh;
75  case Method::CONVEXHULL: return "convexhull"_sh;
76  default: UT_ASSERT(false); return ""_sh;
77  }
78  }
79 
80  enum class Output
81  {
82  POINTS = 0,
83  ATTRIB
84  };
85 
87  getToken(Output enum_value)
88  {
89  using namespace UT::Literal;
90  switch (enum_value) {
91  case Output::POINTS: return "points"_sh;
92  case Output::ATTRIB: return "attrib"_sh;
93  default: UT_ASSERT(false); return ""_sh;
94  }
95  }
96 
97 }
98 
99 
101 {
102 public:
103  static int version() { return 1; }
104 
106  {
107  myPartitionType = 1;
108  myPieceAttrib = "name"_UTsh;
109  myAttribClass = 0;
110  myMethod = 0;
111  myOutput = 0;
112  myCentroidAttrib = "centroid"_UTsh;
113  myTransferAttributes = ""_UTsh;
114  myTransferGroups = ""_UTsh;
115 
116  }
117 
118  explicit SOP_ExtractCentroidParms(const SOP_ExtractCentroidParms &) = default;
120  SOP_ExtractCentroidParms(SOP_ExtractCentroidParms &&) noexcept = default;
121  SOP_ExtractCentroidParms &operator=(SOP_ExtractCentroidParms &&) noexcept = default;
122 
124 
126  {
127  if (myPartitionType != src.myPartitionType) return false;
128  if (myPieceAttrib != src.myPieceAttrib) return false;
129  if (myAttribClass != src.myAttribClass) return false;
130  if (myMethod != src.myMethod) return false;
131  if (myOutput != src.myOutput) return false;
132  if (myCentroidAttrib != src.myCentroidAttrib) return false;
133  if (myTransferAttributes != src.myTransferAttributes) return false;
134  if (myTransferGroups != src.myTransferGroups) return false;
135 
136  return true;
137  }
139  {
140  return !operator==(src);
141  }
146 
147 
148 
149  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
150  {
151  myPartitionType = 1;
152  if (true)
153  graph->evalOpParm(myPartitionType, nodeidx, "partitiontype", time, 0);
154  myPieceAttrib = "name"_UTsh;
155  if (true && ( (true&&!(((int64(getPartitionType())!=1))||((int64(getPartitionType())!=1)))) ) )
156  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, 0);
157  myAttribClass = 0;
158  if (true && ( (true&&!(((int64(getPartitionType())!=1))||((int64(getPartitionType())!=1)))) ) )
159  graph->evalOpParm(myAttribClass, nodeidx, "class", time, 0);
160  myMethod = 0;
161  if (true)
162  graph->evalOpParm(myMethod, nodeidx, "method", time, 0);
163  myOutput = 0;
164  if (true)
165  graph->evalOpParm(myOutput, nodeidx, "output", time, 0);
166  myCentroidAttrib = "centroid"_UTsh;
167  if (true && ( (true&&!(((int64(getOutput())!=1))||((int64(getOutput())!=1)))) ) )
168  graph->evalOpParm(myCentroidAttrib, nodeidx, "centroidattrib", time, 0);
169  myTransferAttributes = ""_UTsh;
170  if (true && ( (true&&!(((int64(getOutput())!=0))||((int64(getOutput())!=0)))) ) )
171  graph->evalOpParm(myTransferAttributes, nodeidx, "transferattributes", time, 0);
172  myTransferGroups = ""_UTsh;
173  if (true && ( (true&&!(((int64(getOutput())!=0))||((int64(getOutput())!=0)))) ) )
174  graph->evalOpParm(myTransferGroups, nodeidx, "transfergroups", time, 0);
175 
176  }
177 
178 
179  void loadFromOpSubclass(const LoadParms &loadparms) override
180  {
181  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
182  }
183 
184 
185  void copyFrom(const OP_NodeParms *src) override
186  {
187  *this = *((const SOP_ExtractCentroidParms *)src);
188  }
189 
190  template <typename T>
191  void
192  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
193  {
194  if (idx.size() < 1)
195  return;
196  UT_ASSERT(idx.size() == instance.size()+1);
197  if (idx.size() != instance.size()+1)
198  return;
199  switch (idx[0])
200  {
201  case 0:
202  coerceValue(value, myPartitionType);
203  break;
204  case 1:
205  coerceValue(value, myPieceAttrib);
206  break;
207  case 2:
208  coerceValue(value, myAttribClass);
209  break;
210  case 3:
211  coerceValue(value, myMethod);
212  break;
213  case 4:
214  coerceValue(value, myOutput);
215  break;
216  case 5:
217  coerceValue(value, myCentroidAttrib);
218  break;
219  case 6:
220  coerceValue(value, myTransferAttributes);
221  break;
222  case 7:
223  coerceValue(value, myTransferGroups);
224  break;
225 
226  }
227  }
228 
229  bool isParmColorRamp(exint idx) const override
230  {
231  switch (idx)
232  {
233 
234  }
235  return false;
236  }
237 
238  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
239  { doGetParmValue(idx, instance, value); }
240  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
241  { doGetParmValue(idx, instance, value); }
242  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
243  { doGetParmValue(idx, instance, value); }
244  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
245  { doGetParmValue(idx, instance, value); }
246  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
247  { doGetParmValue(idx, instance, value); }
248  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
249  { doGetParmValue(idx, instance, value); }
250  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
251  { doGetParmValue(idx, instance, value); }
252  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
253  { doGetParmValue(idx, instance, value); }
254  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
255  { doGetParmValue(idx, instance, value); }
256  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
257  { doGetParmValue(idx, instance, value); }
258  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
259  { doGetParmValue(idx, instance, value); }
260 
261  template <typename T>
262  void
263  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
264  {
265  if (idx.size() < 1)
266  return;
267  UT_ASSERT(idx.size() == instance.size()+1);
268  if (idx.size() != instance.size()+1)
269  return;
270  switch (idx[0])
271  {
272  case 0:
273  coerceValue(myPartitionType, clampMinValue(0, clampMaxValue(2, value ) ));
274  break;
275  case 1:
276  coerceValue(myPieceAttrib, ( ( value ) ));
277  break;
278  case 2:
279  coerceValue(myAttribClass, clampMinValue(0, clampMaxValue(1, value ) ));
280  break;
281  case 3:
282  coerceValue(myMethod, clampMinValue(0, clampMaxValue(2, value ) ));
283  break;
284  case 4:
285  coerceValue(myOutput, clampMinValue(0, clampMaxValue(1, value ) ));
286  break;
287  case 5:
288  coerceValue(myCentroidAttrib, ( ( value ) ));
289  break;
290  case 6:
291  coerceValue(myTransferAttributes, ( ( value ) ));
292  break;
293  case 7:
294  coerceValue(myTransferGroups, ( ( value ) ));
295  break;
296 
297  }
298  }
299 
300  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
301  { doSetParmValue(idx, instance, value); }
302  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
303  { doSetParmValue(idx, instance, value); }
304  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
305  { doSetParmValue(idx, instance, value); }
306  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
307  { doSetParmValue(idx, instance, value); }
308  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
309  { doSetParmValue(idx, instance, value); }
310  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
311  { doSetParmValue(idx, instance, value); }
312  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
313  { doSetParmValue(idx, instance, value); }
314  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
315  { doSetParmValue(idx, instance, value); }
316  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
317  { doSetParmValue(idx, instance, value); }
318  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
319  { doSetParmValue(idx, instance, value); }
320  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
321  { doSetParmValue(idx, instance, value); }
322 
323  exint getNestNumParms(TempIndex idx) const override
324  {
325  if (idx.size() == 0)
326  return 8;
327  switch (idx[0])
328  {
329 
330  }
331  // Invalid
332  return 0;
333  }
334 
335  const char *getNestParmName(TempIndex fieldnum) const override
336  {
337  if (fieldnum.size() < 1)
338  return 0;
339  switch (fieldnum[0])
340  {
341  case 0:
342  return "partitiontype";
343  case 1:
344  return "pieceattrib";
345  case 2:
346  return "class";
347  case 3:
348  return "method";
349  case 4:
350  return "output";
351  case 5:
352  return "centroidattrib";
353  case 6:
354  return "transferattributes";
355  case 7:
356  return "transfergroups";
357 
358  }
359  return 0;
360  }
361 
362  ParmType getNestParmType(TempIndex fieldnum) const override
363  {
364  if (fieldnum.size() < 1)
365  return PARM_UNSUPPORTED;
366  switch (fieldnum[0])
367  {
368  case 0:
369  return PARM_INTEGER;
370  case 1:
371  return PARM_STRING;
372  case 2:
373  return PARM_INTEGER;
374  case 3:
375  return PARM_INTEGER;
376  case 4:
377  return PARM_INTEGER;
378  case 5:
379  return PARM_STRING;
380  case 6:
381  return PARM_STRING;
382  case 7:
383  return PARM_STRING;
384 
385  }
386  return PARM_UNSUPPORTED;
387  }
388 
389  // Boiler plate to load individual types.
390  static void loadData(UT_IStream &is, int64 &v)
391  { is.bread(&v, 1); }
392  static void loadData(UT_IStream &is, bool &v)
393  { int64 iv; is.bread(&iv, 1); v = iv; }
394  static void loadData(UT_IStream &is, fpreal64 &v)
395  { is.bread<fpreal64>(&v, 1); }
396  static void loadData(UT_IStream &is, UT_Vector2D &v)
397  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
398  static void loadData(UT_IStream &is, UT_Vector3D &v)
399  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
400  is.bread<fpreal64>(&v.z(), 1); }
401  static void loadData(UT_IStream &is, UT_Vector4D &v)
402  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
403  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
404  static void loadData(UT_IStream &is, UT_Matrix2D &v)
405  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
406  static void loadData(UT_IStream &is, UT_Matrix3D &v)
407  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
408  static void loadData(UT_IStream &is, UT_Matrix4D &v)
409  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
410  static void loadData(UT_IStream &is, UT_Vector2I &v)
411  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
412  static void loadData(UT_IStream &is, UT_Vector3I &v)
413  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
414  is.bread<int64>(&v.z(), 1); }
415  static void loadData(UT_IStream &is, UT_Vector4I &v)
416  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
417  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
419  { is.bread(v); }
421  { UT_StringHolder rampdata;
422  loadData(is, rampdata);
423  if (rampdata.isstring())
424  {
425  v.reset(new UT_Ramp());
426  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
427  v->load(istr);
428  }
429  else v.reset();
430  }
433  loadData(is, data);
434  if (data.isstring())
435  {
436  // Find the data type.
437  const char *colon = UT_StringWrap(data).findChar(':');
438  if (colon)
439  {
440  int typelen = colon - data.buffer();
442  type.strncpy(data.buffer(), typelen);
443  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
444 
445  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
446  }
447  }
448  else v.reset();
449  }
450 
451  static void saveData(std::ostream &os, int64 v)
452  { UTwrite(os, &v); }
453  static void saveData(std::ostream &os, bool v)
454  { int64 iv = v; UTwrite(os, &iv); }
455  static void saveData(std::ostream &os, fpreal64 v)
456  { UTwrite<fpreal64>(os, &v); }
457  static void saveData(std::ostream &os, UT_Vector2D v)
458  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
459  static void saveData(std::ostream &os, UT_Vector3D v)
460  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
461  UTwrite<fpreal64>(os, &v.z()); }
462  static void saveData(std::ostream &os, UT_Vector4D v)
463  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
464  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
465  static void saveData(std::ostream &os, UT_Matrix2D v)
467  static void saveData(std::ostream &os, UT_Matrix3D v)
469  static void saveData(std::ostream &os, UT_Matrix4D v)
471  static void saveData(std::ostream &os, UT_StringHolder s)
472  { UT_StringWrap(s).saveBinary(os); }
473  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
475  UT_OStringStream ostr;
476  if (s) s->save(ostr);
477  result = ostr.str();
478  saveData(os, result);
479  }
480  static void saveData(std::ostream &os, PRM_DataItemHandle s)
482  UT_OStringStream ostr;
483  if (s)
484  {
485  ostr << s->getDataTypeToken();
486  ostr << ":";
487  s->saveBinary(ostr);
488  }
489  result = ostr.str();
490  saveData(os, result);
491  }
492 
493 
494  void save(std::ostream &os) const
495  {
496  int32 v = version();
497  UTwrite(os, &v);
498  saveData(os, myPartitionType);
499  saveData(os, myPieceAttrib);
500  saveData(os, myAttribClass);
501  saveData(os, myMethod);
502  saveData(os, myOutput);
503  saveData(os, myCentroidAttrib);
504  saveData(os, myTransferAttributes);
505  saveData(os, myTransferGroups);
506 
507  }
508 
509  bool load(UT_IStream &is)
510  {
511  int32 v;
512  is.bread(&v, 1);
513  if (version() != v)
514  {
515  // Fail incompatible versions
516  return false;
517  }
518  loadData(is, myPartitionType);
519  loadData(is, myPieceAttrib);
520  loadData(is, myAttribClass);
521  loadData(is, myMethod);
522  loadData(is, myOutput);
523  loadData(is, myCentroidAttrib);
524  loadData(is, myTransferAttributes);
525  loadData(is, myTransferGroups);
526 
527  return true;
528  }
529 
530  PartitionType getPartitionType() const { return PartitionType(myPartitionType); }
531  void setPartitionType(PartitionType val) { myPartitionType = int64(val); }
533  {
534  SOP_Node *thissop = cookparms.getNode();
535  if (!thissop) return getPartitionType();
536  int64 result;
537  OP_Utils::evalOpParm(result, thissop, "partitiontype", cookparms.getCookTime(), 0);
538  return PartitionType(result);
539  }
540  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
541  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
543  {
544  SOP_Node *thissop = cookparms.getNode();
545  if (!thissop) return getPieceAttrib();
547  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
548  return result;
549  }
550  AttribClass getAttribClass() const { return AttribClass(myAttribClass); }
551  void setAttribClass(AttribClass val) { myAttribClass = int64(val); }
553  {
554  SOP_Node *thissop = cookparms.getNode();
555  if (!thissop) return getAttribClass();
556  int64 result;
557  OP_Utils::evalOpParm(result, thissop, "class", cookparms.getCookTime(), 0);
558  return AttribClass(result);
559  }
560  Method getMethod() const { return Method(myMethod); }
561  void setMethod(Method val) { myMethod = int64(val); }
562  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
563  {
564  SOP_Node *thissop = cookparms.getNode();
565  if (!thissop) return getMethod();
566  int64 result;
567  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
568  return Method(result);
569  }
570  Output getOutput() const { return Output(myOutput); }
571  void setOutput(Output val) { myOutput = int64(val); }
572  Output opOutput(const SOP_NodeVerb::CookParms &cookparms) const
573  {
574  SOP_Node *thissop = cookparms.getNode();
575  if (!thissop) return getOutput();
576  int64 result;
577  OP_Utils::evalOpParm(result, thissop, "output", cookparms.getCookTime(), 0);
578  return Output(result);
579  }
580  const UT_StringHolder & getCentroidAttrib() const { return myCentroidAttrib; }
581  void setCentroidAttrib(const UT_StringHolder & val) { myCentroidAttrib = val; }
583  {
584  SOP_Node *thissop = cookparms.getNode();
585  if (!thissop) return getCentroidAttrib();
587  OP_Utils::evalOpParm(result, thissop, "centroidattrib", cookparms.getCookTime(), 0);
588  return result;
589  }
590  const UT_StringHolder & getTransferAttributes() const { return myTransferAttributes; }
591  void setTransferAttributes(const UT_StringHolder & val) { myTransferAttributes = val; }
593  {
594  SOP_Node *thissop = cookparms.getNode();
595  if (!thissop) return getTransferAttributes();
597  OP_Utils::evalOpParm(result, thissop, "transferattributes", cookparms.getCookTime(), 0);
598  return result;
599  }
600  const UT_StringHolder & getTransferGroups() const { return myTransferGroups; }
601  void setTransferGroups(const UT_StringHolder & val) { myTransferGroups = val; }
603  {
604  SOP_Node *thissop = cookparms.getNode();
605  if (!thissop) return getTransferGroups();
607  OP_Utils::evalOpParm(result, thissop, "transfergroups", cookparms.getCookTime(), 0);
608  return result;
609  }
610 
611 private:
612  int64 myPartitionType;
613  UT_StringHolder myPieceAttrib;
614  int64 myAttribClass;
615  int64 myMethod;
616  int64 myOutput;
617  UT_StringHolder myCentroidAttrib;
618  UT_StringHolder myTransferAttributes;
619  UT_StringHolder myTransferGroups;
620 
621 };
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
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
SYS_FORCE_INLINE UT_StringHolder getToken(PartitionType enum_value)
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)
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
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
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)
bool operator!=(const SOP_ExtractCentroidParms &src) const
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
LeafData & operator=(const LeafData &)=delete
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
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:1395
#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:97
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
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)