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