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 <OP/OP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 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 
137  if (baseGetSignature() != src.baseGetSignature()) return false;
138 
139  return true;
140  }
142  {
143  return !operator==(src);
144  }
149 
150 
151 
152  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
153  {
154  myPartitionType = 1;
155  if (true)
156  graph->evalOpParm(myPartitionType, nodeidx, "partitiontype", time, graph->isDirect()?nullptr:depnode);
157  myPieceAttrib = "name"_UTsh;
158  if (true && ( (true&&!(((int64(getPartitionType())!=1))||((int64(getPartitionType())!=1)))) ) )
159  graph->evalOpParm(myPieceAttrib, nodeidx, "pieceattrib", time, graph->isDirect()?nullptr:depnode);
160  myAttribClass = 0;
161  if (true && ( (true&&!(((int64(getPartitionType())!=1))||((int64(getPartitionType())!=1)))) ) )
162  graph->evalOpParm(myAttribClass, nodeidx, "class", time, graph->isDirect()?nullptr:depnode);
163  myMethod = 0;
164  if (true)
165  graph->evalOpParm(myMethod, nodeidx, "method", time, graph->isDirect()?nullptr:depnode);
166  myOutput = 0;
167  if (true)
168  graph->evalOpParm(myOutput, nodeidx, "output", time, graph->isDirect()?nullptr:depnode);
169  myCentroidAttrib = "centroid"_UTsh;
170  if (true && ( (true&&!(((int64(getOutput())!=1))||((int64(getOutput())!=1)))) ) )
171  graph->evalOpParm(myCentroidAttrib, nodeidx, "centroidattrib", time, graph->isDirect()?nullptr:depnode);
172  myTransferAttributes = ""_UTsh;
173  if (true && ( (true&&!(((int64(getOutput())!=0))||((int64(getOutput())!=0)))) ) )
174  graph->evalOpParm(myTransferAttributes, nodeidx, "transferattributes", time, graph->isDirect()?nullptr:depnode);
175  myTransferGroups = ""_UTsh;
176  if (true && ( (true&&!(((int64(getOutput())!=0))||((int64(getOutput())!=0)))) ) )
177  graph->evalOpParm(myTransferGroups, nodeidx, "transfergroups", time, graph->isDirect()?nullptr:depnode);
178 
179  }
180 
181 
182  void loadFromOpSubclass(const LoadParms &loadparms) override
183  {
184  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
185  }
186 
187 
188  void copyFrom(const OP_NodeParms *src) override
189  {
190  *this = *((const SOP_ExtractCentroidParms *)src);
191  }
192 
193  template <typename T>
194  void
195  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
196  {
197  if (idx.size() < 1)
198  return;
199  UT_ASSERT(idx.size() == instance.size()+1);
200  if (idx.size() != instance.size()+1)
201  return;
202  switch (idx[0])
203  {
204  case 0:
205  coerceValue(value, myPartitionType);
206  break;
207  case 1:
208  coerceValue(value, myPieceAttrib);
209  break;
210  case 2:
211  coerceValue(value, myAttribClass);
212  break;
213  case 3:
214  coerceValue(value, myMethod);
215  break;
216  case 4:
217  coerceValue(value, myOutput);
218  break;
219  case 5:
220  coerceValue(value, myCentroidAttrib);
221  break;
222  case 6:
223  coerceValue(value, myTransferAttributes);
224  break;
225  case 7:
226  coerceValue(value, myTransferGroups);
227  break;
228 
229  }
230  }
231 
232  bool isParmColorRamp(exint idx) const override
233  {
234  switch (idx)
235  {
236 
237  }
238  return false;
239  }
240 
241  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
242  { doGetParmValue(idx, instance, value); }
243  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
244  { doGetParmValue(idx, instance, value); }
245  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
246  { doGetParmValue(idx, instance, value); }
247  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
248  { doGetParmValue(idx, instance, value); }
249  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
250  { doGetParmValue(idx, instance, value); }
251  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
252  { doGetParmValue(idx, instance, value); }
253  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
254  { doGetParmValue(idx, instance, value); }
255  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
256  { doGetParmValue(idx, instance, value); }
257  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
258  { doGetParmValue(idx, instance, value); }
259  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
260  { doGetParmValue(idx, instance, value); }
261  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
262  { doGetParmValue(idx, instance, value); }
263 
264  template <typename T>
265  void
266  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
267  {
268  if (idx.size() < 1)
269  return;
270  UT_ASSERT(idx.size() == instance.size()+1);
271  if (idx.size() != instance.size()+1)
272  return;
273  switch (idx[0])
274  {
275  case 0:
276  coerceValue(myPartitionType, clampMinValue(0, clampMaxValue(2, value ) ));
277  break;
278  case 1:
279  coerceValue(myPieceAttrib, ( ( value ) ));
280  break;
281  case 2:
282  coerceValue(myAttribClass, clampMinValue(0, clampMaxValue(1, value ) ));
283  break;
284  case 3:
285  coerceValue(myMethod, clampMinValue(0, clampMaxValue(2, value ) ));
286  break;
287  case 4:
288  coerceValue(myOutput, clampMinValue(0, clampMaxValue(1, value ) ));
289  break;
290  case 5:
291  coerceValue(myCentroidAttrib, ( ( value ) ));
292  break;
293  case 6:
294  coerceValue(myTransferAttributes, ( ( value ) ));
295  break;
296  case 7:
297  coerceValue(myTransferGroups, ( ( value ) ));
298  break;
299 
300  }
301  }
302 
303  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
304  { doSetParmValue(idx, instance, value); }
305  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
306  { doSetParmValue(idx, instance, value); }
307  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
308  { doSetParmValue(idx, instance, value); }
309  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
310  { doSetParmValue(idx, instance, value); }
311  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
312  { doSetParmValue(idx, instance, value); }
313  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
314  { doSetParmValue(idx, instance, value); }
315  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
316  { doSetParmValue(idx, instance, value); }
317  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
318  { doSetParmValue(idx, instance, value); }
319  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
320  { doSetParmValue(idx, instance, value); }
321  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
322  { doSetParmValue(idx, instance, value); }
323  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
324  { doSetParmValue(idx, instance, value); }
325 
326  exint getNestNumParms(TempIndex idx) const override
327  {
328  if (idx.size() == 0)
329  return 8;
330  switch (idx[0])
331  {
332 
333  }
334  // Invalid
335  return 0;
336  }
337 
338  const char *getNestParmName(TempIndex fieldnum) const override
339  {
340  if (fieldnum.size() < 1)
341  return 0;
342  switch (fieldnum[0])
343  {
344  case 0:
345  return "partitiontype";
346  case 1:
347  return "pieceattrib";
348  case 2:
349  return "class";
350  case 3:
351  return "method";
352  case 4:
353  return "output";
354  case 5:
355  return "centroidattrib";
356  case 6:
357  return "transferattributes";
358  case 7:
359  return "transfergroups";
360 
361  }
362  return 0;
363  }
364 
365  ParmType getNestParmType(TempIndex fieldnum) const override
366  {
367  if (fieldnum.size() < 1)
368  return PARM_UNSUPPORTED;
369  switch (fieldnum[0])
370  {
371  case 0:
372  return PARM_INTEGER;
373  case 1:
374  return PARM_STRING;
375  case 2:
376  return PARM_INTEGER;
377  case 3:
378  return PARM_INTEGER;
379  case 4:
380  return PARM_INTEGER;
381  case 5:
382  return PARM_STRING;
383  case 6:
384  return PARM_STRING;
385  case 7:
386  return PARM_STRING;
387 
388  }
389  return PARM_UNSUPPORTED;
390  }
391 
392  // Boiler plate to load individual types.
393  static void loadData(UT_IStream &is, int64 &v)
394  { is.bread(&v, 1); }
395  static void loadData(UT_IStream &is, bool &v)
396  { int64 iv; is.bread(&iv, 1); v = iv; }
397  static void loadData(UT_IStream &is, fpreal64 &v)
398  { is.bread<fpreal64>(&v, 1); }
399  static void loadData(UT_IStream &is, UT_Vector2D &v)
400  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
401  static void loadData(UT_IStream &is, UT_Vector3D &v)
402  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
403  is.bread<fpreal64>(&v.z(), 1); }
404  static void loadData(UT_IStream &is, UT_Vector4D &v)
405  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
406  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
407  static void loadData(UT_IStream &is, UT_Matrix2D &v)
408  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
409  static void loadData(UT_IStream &is, UT_Matrix3D &v)
410  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
411  static void loadData(UT_IStream &is, UT_Matrix4D &v)
412  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
413  static void loadData(UT_IStream &is, UT_Vector2I &v)
414  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
415  static void loadData(UT_IStream &is, UT_Vector3I &v)
416  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
417  is.bread<int64>(&v.z(), 1); }
418  static void loadData(UT_IStream &is, UT_Vector4I &v)
419  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
420  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
422  { is.bread(v); }
424  { UT_StringHolder rampdata;
425  loadData(is, rampdata);
426  if (rampdata.isstring())
427  {
428  v.reset(new UT_Ramp());
429  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
430  v->load(istr);
431  }
432  else v.reset();
433  }
436  loadData(is, data);
437  if (data.isstring())
438  {
439  // Find the data type.
440  const char *colon = UT_StringWrap(data).findChar(':');
441  if (colon)
442  {
443  int typelen = colon - data.buffer();
445  type.strncpy(data.buffer(), typelen);
446  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
447 
448  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
449  }
450  }
451  else v.reset();
452  }
453 
454  static void saveData(std::ostream &os, int64 v)
455  { UTwrite(os, &v); }
456  static void saveData(std::ostream &os, bool v)
457  { int64 iv = v; UTwrite(os, &iv); }
458  static void saveData(std::ostream &os, fpreal64 v)
459  { UTwrite<fpreal64>(os, &v); }
460  static void saveData(std::ostream &os, UT_Vector2D v)
461  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
462  static void saveData(std::ostream &os, UT_Vector3D v)
463  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
464  UTwrite<fpreal64>(os, &v.z()); }
465  static void saveData(std::ostream &os, UT_Vector4D v)
466  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
467  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
468  static void saveData(std::ostream &os, UT_Matrix2D v)
470  static void saveData(std::ostream &os, UT_Matrix3D v)
472  static void saveData(std::ostream &os, UT_Matrix4D v)
474  static void saveData(std::ostream &os, UT_StringHolder s)
475  { UT_StringWrap(s).saveBinary(os); }
476  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
478  UT_OStringStream ostr;
479  if (s) s->save(ostr);
480  result = ostr.str();
481  saveData(os, result);
482  }
483  static void saveData(std::ostream &os, PRM_DataItemHandle s)
485  UT_OStringStream ostr;
486  if (s)
487  {
488  ostr << s->getDataTypeToken();
489  ostr << ":";
490  s->saveBinary(ostr);
491  }
492  result = ostr.str();
493  saveData(os, result);
494  }
495 
496 
497  void save(std::ostream &os) const
498  {
499  int32 v = version();
500  UTwrite(os, &v);
501  saveData(os, myPartitionType);
502  saveData(os, myPieceAttrib);
503  saveData(os, myAttribClass);
504  saveData(os, myMethod);
505  saveData(os, myOutput);
506  saveData(os, myCentroidAttrib);
507  saveData(os, myTransferAttributes);
508  saveData(os, myTransferGroups);
509 
510  }
511 
512  bool load(UT_IStream &is)
513  {
514  int32 v;
515  is.bread(&v, 1);
516  if (version() != v)
517  {
518  // Fail incompatible versions
519  return false;
520  }
521  loadData(is, myPartitionType);
522  loadData(is, myPieceAttrib);
523  loadData(is, myAttribClass);
524  loadData(is, myMethod);
525  loadData(is, myOutput);
526  loadData(is, myCentroidAttrib);
527  loadData(is, myTransferAttributes);
528  loadData(is, myTransferGroups);
529 
530  return true;
531  }
532 
533  PartitionType getPartitionType() const { return PartitionType(myPartitionType); }
534  void setPartitionType(PartitionType val) { myPartitionType = int64(val); }
536  {
537  SOP_Node *thissop = cookparms.getNode();
538  if (!thissop) return getPartitionType();
539  int64 result;
540  OP_Utils::evalOpParm(result, thissop, "partitiontype", cookparms.getCookTime(), 0);
541  return PartitionType(result);
542  }
543  const UT_StringHolder & getPieceAttrib() const { return myPieceAttrib; }
544  void setPieceAttrib(const UT_StringHolder & val) { myPieceAttrib = val; }
546  {
547  SOP_Node *thissop = cookparms.getNode();
548  if (!thissop) return getPieceAttrib();
550  OP_Utils::evalOpParm(result, thissop, "pieceattrib", cookparms.getCookTime(), 0);
551  return result;
552  }
553  AttribClass getAttribClass() const { return AttribClass(myAttribClass); }
554  void setAttribClass(AttribClass val) { myAttribClass = int64(val); }
556  {
557  SOP_Node *thissop = cookparms.getNode();
558  if (!thissop) return getAttribClass();
559  int64 result;
560  OP_Utils::evalOpParm(result, thissop, "class", cookparms.getCookTime(), 0);
561  return AttribClass(result);
562  }
563  Method getMethod() const { return Method(myMethod); }
564  void setMethod(Method val) { myMethod = int64(val); }
565  Method opMethod(const SOP_NodeVerb::CookParms &cookparms) const
566  {
567  SOP_Node *thissop = cookparms.getNode();
568  if (!thissop) return getMethod();
569  int64 result;
570  OP_Utils::evalOpParm(result, thissop, "method", cookparms.getCookTime(), 0);
571  return Method(result);
572  }
573  Output getOutput() const { return Output(myOutput); }
574  void setOutput(Output val) { myOutput = int64(val); }
575  Output opOutput(const SOP_NodeVerb::CookParms &cookparms) const
576  {
577  SOP_Node *thissop = cookparms.getNode();
578  if (!thissop) return getOutput();
579  int64 result;
580  OP_Utils::evalOpParm(result, thissop, "output", cookparms.getCookTime(), 0);
581  return Output(result);
582  }
583  const UT_StringHolder & getCentroidAttrib() const { return myCentroidAttrib; }
584  void setCentroidAttrib(const UT_StringHolder & val) { myCentroidAttrib = val; }
586  {
587  SOP_Node *thissop = cookparms.getNode();
588  if (!thissop) return getCentroidAttrib();
590  OP_Utils::evalOpParm(result, thissop, "centroidattrib", cookparms.getCookTime(), 0);
591  return result;
592  }
593  const UT_StringHolder & getTransferAttributes() const { return myTransferAttributes; }
594  void setTransferAttributes(const UT_StringHolder & val) { myTransferAttributes = val; }
596  {
597  SOP_Node *thissop = cookparms.getNode();
598  if (!thissop) return getTransferAttributes();
600  OP_Utils::evalOpParm(result, thissop, "transferattributes", cookparms.getCookTime(), 0);
601  return result;
602  }
603  const UT_StringHolder & getTransferGroups() const { return myTransferGroups; }
604  void setTransferGroups(const UT_StringHolder & val) { myTransferGroups = val; }
606  {
607  SOP_Node *thissop = cookparms.getNode();
608  if (!thissop) return getTransferGroups();
610  OP_Utils::evalOpParm(result, thissop, "transfergroups", cookparms.getCookTime(), 0);
611  return result;
612  }
613 
614 private:
615  int64 myPartitionType;
616  UT_StringHolder myPieceAttrib;
617  int64 myAttribClass;
618  int64 myMethod;
619  int64 myOutput;
620  UT_StringHolder myCentroidAttrib;
621  UT_StringHolder myTransferAttributes;
622  UT_StringHolder myTransferGroups;
623 
624 };
type
Definition: core.h:556
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:63
static void saveData(std::ostream &os, PRM_DataItemHandle s)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void saveData(std::ostream &os, UT_Vector2D v)
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
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
UT_StringHolder opTransferGroups(const SOP_NodeVerb::CookParms &cookparms) const
bool isParmColorRamp(exint idx) const override
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)