HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SOP_PolyCut.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 <OP/OP_Utils.h>
8 #include <PRM/PRM_Parm.h>
9 #include <UT/UT_IStream.h>
10 #include <UT/UT_NTStreamUtil.h>
11 #include <UT/UT_Ramp.h>
12 #include <UT/UT_SharedPtr.h>
13 #include <UT/UT_StringHolder.h>
14 #include <UT/UT_StringStream.h>
15 #include <UT/UT_VectorTypes.h>
16 #include <SYS/SYS_Types.h>
17 
18 using namespace UT::Literal;
19 
20 class DEP_MicroNode;
21 namespace SOP_PolyCutEnums
22 {
23  enum class Type
24  {
25  POINTS = 0,
26  EDGES
27  };
28  enum class Strategy
29  {
30  REMOVE = 0,
31  CUT
32  };
33  enum class DetectEdgeChanges
34  {
35  ATTRIBCROSSING = 0,
37  };
38 }
39 
40 
42 {
43 public:
44  static int version() { return 1; }
45 
47  {
48  myPolygons = ""_sh;
49  myType = 0;
50  myCutPoints = ""_sh;
51  myCutEdges = ""_sh;
52  myStrategy = 0;
53  myDetectEdgeChanges = 0;
54  myCutAttrib = ""_sh;
55  myCutValue = 0;
56  myCutThreshold = 1;
57  myKeepClosed = false;
58 
59  }
60 
61  explicit SOP_PolyCutParms(const SOP_PolyCutParms &) = default;
62 
63  virtual ~SOP_PolyCutParms() {}
64 
65  bool operator==(const SOP_PolyCutParms &src) const
66  {
67  if (myPolygons != src.myPolygons) return false;
68  if (myType != src.myType) return false;
69  if (myCutPoints != src.myCutPoints) return false;
70  if (myCutEdges != src.myCutEdges) return false;
71  if (myStrategy != src.myStrategy) return false;
72  if (myDetectEdgeChanges != src.myDetectEdgeChanges) return false;
73  if (myCutAttrib != src.myCutAttrib) return false;
74  if (myCutValue != src.myCutValue) return false;
75  if (myCutThreshold != src.myCutThreshold) return false;
76  if (myKeepClosed != src.myKeepClosed) return false;
77 
78  return true;
79  }
83 
84 
85 
86  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
87  {
88  if (true)
89  OP_Utils::evalOpParm(myPolygons, node, "polygons", time, 0);
90  else myPolygons = ""_sh;
91  if (true)
92  OP_Utils::evalOpParm(myType, node, "type", time, 0);
93  else myType = 0;
94  if (true && ( (!(((int64(getType())!=0)))) ) )
95  OP_Utils::evalOpParm(myCutPoints, node, "cutpoints", time, 0);
96  else myCutPoints = ""_sh;
97  if (true && ( (!(((int64(getType())!=1)))) ) )
98  OP_Utils::evalOpParm(myCutEdges, node, "cutedges", time, 0);
99  else myCutEdges = ""_sh;
100  if (true)
101  OP_Utils::evalOpParm(myStrategy, node, "strategy", time, 0);
102  else myStrategy = 0;
103  if (true)
104  OP_Utils::evalOpParm(myDetectEdgeChanges, node, "detectedgechanges", time, 0);
105  else myDetectEdgeChanges = 0;
106  if (true)
107  OP_Utils::evalOpParm(myCutAttrib, node, "cutattrib", time, 0);
108  else myCutAttrib = ""_sh;
109  if (true && ( (!(((int64(getDetectEdgeChanges())!=0))||((getCutAttrib()=="")))) ) )
110  OP_Utils::evalOpParm(myCutValue, node, "cutvalue", time, 0);
111  else myCutValue = 0;
112  if (true && ( (!(((int64(getDetectEdgeChanges())!=1))||((getCutAttrib()=="")))) ) )
113  OP_Utils::evalOpParm(myCutThreshold, node, "cutthreshold", time, 0);
114  else myCutThreshold = 1;
115  if (true)
116  OP_Utils::evalOpParm(myKeepClosed, node, "keepclosed", time, 0);
117  else myKeepClosed = false;
118 
119  }
120 
121 
122  virtual void loadFromOpSubclass(const LoadParms &loadparms)
123  {
124  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
125  }
126 
127 
128  virtual void copyFrom(const SOP_NodeParms *src)
129  {
130  *this = *((const SOP_PolyCutParms *)src);
131  }
132 
133  template <typename T>
134  void
135  doGetParmValue(exint idx, T &value) const
136  {
137  switch (idx)
138  {
139  case 0:
140  coerceValue(value, myPolygons);
141  break;
142  case 1:
143  coerceValue(value, myType);
144  break;
145  case 2:
146  coerceValue(value, myCutPoints);
147  break;
148  case 3:
149  coerceValue(value, myCutEdges);
150  break;
151  case 4:
152  coerceValue(value, myStrategy);
153  break;
154  case 5:
155  coerceValue(value, myDetectEdgeChanges);
156  break;
157  case 6:
158  coerceValue(value, myCutAttrib);
159  break;
160  case 7:
161  coerceValue(value, myCutValue);
162  break;
163  case 8:
164  coerceValue(value, myCutThreshold);
165  break;
166  case 9:
167  coerceValue(value, myKeepClosed);
168  break;
169 
170  }
171  }
172 
173  void getParmValue(exint idx, exint &value) const
174  { doGetParmValue(idx, value); }
175  void getParmValue(exint idx, fpreal &value) const
176  { doGetParmValue(idx, value); }
178  { doGetParmValue(idx, value); }
180  { doGetParmValue(idx, value); }
182  { doGetParmValue(idx, value); }
184  { doGetParmValue(idx, value); }
186  { doGetParmValue(idx, value); }
188  { doGetParmValue(idx, value); }
190  { doGetParmValue(idx, value); }
192  { doGetParmValue(idx, value); }
194  { doGetParmValue(idx, value); }
195 
196  template <typename T>
197  void
198  doSetParmValue(exint idx, const T &value)
199  {
200  switch (idx)
201  {
202  case 0:
203  coerceValue(myPolygons, value);
204  break;
205  case 1:
206  coerceValue(myType, value);
207  break;
208  case 2:
209  coerceValue(myCutPoints, value);
210  break;
211  case 3:
212  coerceValue(myCutEdges, value);
213  break;
214  case 4:
215  coerceValue(myStrategy, value);
216  break;
217  case 5:
218  coerceValue(myDetectEdgeChanges, value);
219  break;
220  case 6:
221  coerceValue(myCutAttrib, value);
222  break;
223  case 7:
224  coerceValue(myCutValue, value);
225  break;
226  case 8:
227  coerceValue(myCutThreshold, value);
228  break;
229  case 9:
230  coerceValue(myKeepClosed, value);
231  break;
232 
233  }
234  }
235 
236  void setParmValue(exint idx, const exint &value)
237  { doSetParmValue(idx, value); }
238  void setParmValue(exint idx, const fpreal &value)
239  { doSetParmValue(idx, value); }
240  void setParmValue(exint idx, const UT_Vector2D &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const UT_Vector3D &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Vector4D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Matrix2D &value)
247  { doSetParmValue(idx, value); }
248  void setParmValue(exint idx, const UT_Matrix3D &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const UT_Matrix4D &value)
251  { doSetParmValue(idx, value); }
253  { doSetParmValue(idx, value); }
255  { doSetParmValue(idx, value); }
257  { doSetParmValue(idx, value); }
258 
259  virtual exint getNumParms() const
260  {
261  return 10;
262  }
263 
264  virtual const char *getParmName(exint fieldnum) const
265  {
266  switch (fieldnum)
267  {
268  case 0:
269  return "polygons";
270  case 1:
271  return "type";
272  case 2:
273  return "cutpoints";
274  case 3:
275  return "cutedges";
276  case 4:
277  return "strategy";
278  case 5:
279  return "detectedgechanges";
280  case 6:
281  return "cutattrib";
282  case 7:
283  return "cutvalue";
284  case 8:
285  return "cutthreshold";
286  case 9:
287  return "keepclosed";
288 
289  }
290  return 0;
291  }
292 
293  virtual ParmType getParmType(exint fieldnum) const
294  {
295  switch (fieldnum)
296  {
297  case 0:
298  return PARM_STRING;
299  case 1:
300  return PARM_INTEGER;
301  case 2:
302  return PARM_STRING;
303  case 3:
304  return PARM_STRING;
305  case 4:
306  return PARM_INTEGER;
307  case 5:
308  return PARM_INTEGER;
309  case 6:
310  return PARM_STRING;
311  case 7:
312  return PARM_FLOAT;
313  case 8:
314  return PARM_FLOAT;
315  case 9:
316  return PARM_INTEGER;
317 
318  }
319  return PARM_UNSUPPORTED;
320  }
321 
322  // Boiler plate to load individual types.
323  static void loadData(UT_IStream &is, int64 &v)
324  { is.bread(&v, 1); }
325  static void loadData(UT_IStream &is, bool &v)
326  { int64 iv; is.bread(&iv, 1); v = iv; }
327  static void loadData(UT_IStream &is, fpreal64 &v)
328  { is.bread<fpreal64>(&v, 1); }
329  static void loadData(UT_IStream &is, UT_Vector2D &v)
330  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
331  static void loadData(UT_IStream &is, UT_Vector3D &v)
332  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
333  is.bread<fpreal64>(&v.z(), 1); }
334  static void loadData(UT_IStream &is, UT_Vector4D &v)
335  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
336  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
337  static void loadData(UT_IStream &is, UT_Matrix2D &v)
338  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
339  static void loadData(UT_IStream &is, UT_Matrix3D &v)
340  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix4D &v)
342  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Vector2I &v)
344  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
345  static void loadData(UT_IStream &is, UT_Vector3I &v)
346  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
347  is.bread<int64>(&v.z(), 1); }
348  static void loadData(UT_IStream &is, UT_Vector4I &v)
349  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
350  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
352  { is.bread(v); }
354  { UT_StringHolder rampdata;
355  loadData(is, rampdata);
356  if (rampdata.isstring())
357  {
358  v.reset(new UT_Ramp());
359  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
360  v->load(istr);
361  }
362  else v.reset();
363  }
366  loadData(is, data);
367  if (data.isstring())
368  {
369  // Find the data type.
370  char *colon = UT_StringWrap(data).findChar(':');
371  if (colon)
372  {
373  int typelen = colon - data.buffer();
375  type.strncpy(data.buffer(), typelen);
376  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
377 
378  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
379  }
380  }
381  else v.reset();
382  }
383 
384  static void saveData(std::ostream &os, int64 v)
385  { UTwrite(os, &v); }
386  static void saveData(std::ostream &os, bool v)
387  { int64 iv = v; UTwrite(os, &iv); }
388  static void saveData(std::ostream &os, fpreal64 v)
389  { UTwrite<fpreal64>(os, &v); }
390  static void saveData(std::ostream &os, UT_Vector2D v)
391  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
392  static void saveData(std::ostream &os, UT_Vector3D v)
393  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
394  UTwrite<fpreal64>(os, &v.z()); }
395  static void saveData(std::ostream &os, UT_Vector4D v)
396  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
397  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
398  static void saveData(std::ostream &os, UT_Matrix2D v)
400  static void saveData(std::ostream &os, UT_Matrix3D v)
402  static void saveData(std::ostream &os, UT_Matrix4D v)
404  static void saveData(std::ostream &os, UT_StringHolder s)
405  { UT_StringWrap(s).saveBinary(os); }
406  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
407  { UT_StringHolder result;
408  UT_OStringStream ostr;
409  if (s) s->save(ostr);
410  result = ostr.str();
411  saveData(os, result);
412  }
413  static void saveData(std::ostream &os, PRM_DataItemHandle s)
414  { UT_StringHolder result;
415  UT_OStringStream ostr;
416  if (s)
417  {
418  ostr << s->getDataTypeToken();
419  ostr << ":";
420  s->saveBinary(ostr);
421  }
422  result = ostr.str();
423  saveData(os, result);
424  }
425 
426 
427  void save(std::ostream &os) const
428  {
429  int32 v = version();
430  UTwrite(os, &v);
431  saveData(os, myPolygons);
432  saveData(os, myType);
433  saveData(os, myCutPoints);
434  saveData(os, myCutEdges);
435  saveData(os, myStrategy);
436  saveData(os, myDetectEdgeChanges);
437  saveData(os, myCutAttrib);
438  saveData(os, myCutValue);
439  saveData(os, myCutThreshold);
440  saveData(os, myKeepClosed);
441 
442  }
443 
444  bool load(UT_IStream &is)
445  {
446  int32 v;
447  is.bread(&v, 1);
448  if (version() != v)
449  {
450  // Fail incompatible versions
451  return false;
452  }
453  loadData(is, myPolygons);
454  loadData(is, myType);
455  loadData(is, myCutPoints);
456  loadData(is, myCutEdges);
457  loadData(is, myStrategy);
458  loadData(is, myDetectEdgeChanges);
459  loadData(is, myCutAttrib);
460  loadData(is, myCutValue);
461  loadData(is, myCutThreshold);
462  loadData(is, myKeepClosed);
463 
464  return true;
465  }
466 
467  const UT_StringHolder & getPolygons() const { return myPolygons; }
468  void setPolygons(const UT_StringHolder & val) { myPolygons = val; }
470  {
471  SOP_Node *thissop = cookparms.getNode();
472  if (!thissop) return getPolygons();
473  UT_StringHolder result;
474  OP_Utils::evalOpParm(result, thissop, "polygons", cookparms.getCookTime(), 0);
475  return result;
476  }
477  Type getType() const { return Type(myType); }
478  void setType(Type val) { myType = int64(val); }
479  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
480  {
481  SOP_Node *thissop = cookparms.getNode();
482  if (!thissop) return getType();
483  int64 result;
484  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
485  return Type(result);
486  }
487  const UT_StringHolder & getCutPoints() const { return myCutPoints; }
488  void setCutPoints(const UT_StringHolder & val) { myCutPoints = val; }
490  {
491  SOP_Node *thissop = cookparms.getNode();
492  if (!thissop) return getCutPoints();
493  UT_StringHolder result;
494  OP_Utils::evalOpParm(result, thissop, "cutpoints", cookparms.getCookTime(), 0);
495  return result;
496  }
497  const UT_StringHolder & getCutEdges() const { return myCutEdges; }
498  void setCutEdges(const UT_StringHolder & val) { myCutEdges = val; }
500  {
501  SOP_Node *thissop = cookparms.getNode();
502  if (!thissop) return getCutEdges();
503  UT_StringHolder result;
504  OP_Utils::evalOpParm(result, thissop, "cutedges", cookparms.getCookTime(), 0);
505  return result;
506  }
507  Strategy getStrategy() const { return Strategy(myStrategy); }
508  void setStrategy(Strategy val) { myStrategy = int64(val); }
510  {
511  SOP_Node *thissop = cookparms.getNode();
512  if (!thissop) return getStrategy();
513  int64 result;
514  OP_Utils::evalOpParm(result, thissop, "strategy", cookparms.getCookTime(), 0);
515  return Strategy(result);
516  }
517  DetectEdgeChanges getDetectEdgeChanges() const { return DetectEdgeChanges(myDetectEdgeChanges); }
518  void setDetectEdgeChanges(DetectEdgeChanges val) { myDetectEdgeChanges = int64(val); }
520  {
521  SOP_Node *thissop = cookparms.getNode();
522  if (!thissop) return getDetectEdgeChanges();
523  int64 result;
524  OP_Utils::evalOpParm(result, thissop, "detectedgechanges", cookparms.getCookTime(), 0);
525  return DetectEdgeChanges(result);
526  }
527  const UT_StringHolder & getCutAttrib() const { return myCutAttrib; }
528  void setCutAttrib(const UT_StringHolder & val) { myCutAttrib = val; }
530  {
531  SOP_Node *thissop = cookparms.getNode();
532  if (!thissop) return getCutAttrib();
533  UT_StringHolder result;
534  OP_Utils::evalOpParm(result, thissop, "cutattrib", cookparms.getCookTime(), 0);
535  return result;
536  }
537  fpreal64 getCutValue() const { return myCutValue; }
538  void setCutValue(fpreal64 val) { myCutValue = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getCutValue();
543  fpreal64 result;
544  OP_Utils::evalOpParm(result, thissop, "cutvalue", cookparms.getCookTime(), 0);
545  return result;
546  }
547  fpreal64 getCutThreshold() const { return myCutThreshold; }
548  void setCutThreshold(fpreal64 val) { myCutThreshold = val; }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getCutThreshold();
553  fpreal64 result;
554  OP_Utils::evalOpParm(result, thissop, "cutthreshold", cookparms.getCookTime(), 0);
555  return result;
556  }
557  bool getKeepClosed() const { return myKeepClosed; }
558  void setKeepClosed(bool val) { myKeepClosed = val; }
559  bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getKeepClosed();
563  bool result;
564  OP_Utils::evalOpParm(result, thissop, "keepclosed", cookparms.getCookTime(), 0);
565  return result;
566  }
567 
568 private:
569  UT_StringHolder myPolygons;
570  int64 myType;
571  UT_StringHolder myCutPoints;
572  UT_StringHolder myCutEdges;
573  int64 myStrategy;
574  int64 myDetectEdgeChanges;
575  UT_StringHolder myCutAttrib;
576  fpreal64 myCutValue;
577  fpreal64 myCutThreshold;
578  bool myKeepClosed;
579 
580 };
void setKeepClosed(bool val)
void setType(Type val)
void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
const UT_StringHolder & getCutEdges() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setCutThreshold(fpreal64 val)
void setPolygons(const UT_StringHolder &val)
static void loadData(UT_IStream &is, UT_Matrix4D &v)
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:492
T & z(void)
Definition: UT_Vector4.h:372
bool load(UT_IStream &is)
void getParmValue(exint idx, UT_Vector3D &value) const
exint bread(int32 *buffer, exint asize=1)
void getParmValue(exint idx, UT_Matrix3D &value) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
virtual ParmType getParmType(exint fieldnum) const
fpreal getTime() const
Definition: OP_Context.h:34
const GLdouble * v
Definition: glcorearb.h:836
static void loadData(UT_IStream &is, int64 &v)
fpreal64 opCutValue(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opCutEdges(const SOP_NodeVerb::CookParms &cookparms) const
void setDetectEdgeChanges(DetectEdgeChanges val)
bool getKeepClosed() const
bool operator==(const SOP_PolyCutParms &src) const
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, fpreal64 v)
T & x(void)
Definition: UT_Vector2.h:284
void doGetParmValue(exint idx, T &value) const
const UT_StringHolder & getPolygons() const
An output stream object that owns its own string buffer storage.
Strategy opStrategy(const SOP_NodeVerb::CookParms &cookparms) const
void setParmValue(exint idx, const UT_Vector2D &value)
const UT_WorkBuffer & str() const
Returns a read-only reference to the underlying UT_WorkBuffer.
Type getType() const
void setParmValue(exint idx, const UT_Matrix2D &value)
SYS_FORCE_INLINE T & x(void)
Definition: UT_Vector3.h:581
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setParmValue(exint idx, const UT_Vector3D &value)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setParmValue(exint idx, const UT_Vector4D &value)
UT_StringHolder opCutPoints(const SOP_NodeVerb::CookParms &cookparms) const
void setStrategy(Strategy val)
void setCutEdges(const UT_StringHolder &val)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:585
void setParmValue(exint idx, const fpreal &value)
long long int64
Definition: SYS_Types.h:100
void setParmValue(exint idx, const exint &value)
void getParmValue(exint idx, UT_Matrix4D &value) const
exint length() const
char * findChar(int c) const
Find first occurrance of character. Returns NULL upon failure.
Definition: UT_String.h:550
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
void getParmValue(exint idx, fpreal &value) const
void setParmValue(exint idx, const UT_SharedPtr< UT_Ramp > &value)
virtual exint getNumParms() const
SYS_FORCE_INLINE const char * buffer() const
int64 exint
Definition: SYS_Types.h:109
virtual ~SOP_PolyCutParms()
void doSetParmValue(exint idx, const T &value)
static void loadData(UT_IStream &is, fpreal64 &v)
const OP_Node * node() const
Definition: SOP_NodeVerb.h:104
double fpreal64
Definition: SYS_Types.h:185
void getParmValue(exint idx, UT_Matrix2D &value) const
DetectEdgeChanges opDetectEdgeChanges(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getCutAttrib() const
void getParmValue(exint idx, UT_Vector2D &value) const
bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
GLboolean * data
Definition: glcorearb.h:130
int int32
Definition: SYS_Types.h:28
T & y(void)
Definition: UT_Vector4.h:370
static void saveData(std::ostream &os, int64 v)
void setCutAttrib(const UT_StringHolder &val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:111
void getParmValue(exint idx, UT_Vector4D &value) const
void setParmValue(exint idx, const UT_Matrix3D &value)
SYS_FORCE_INLINE T & y(void)
Definition: UT_Vector3.h:583
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:263
void strncpy(const char *src, exint maxlen)
void getParmValue(exint idx, PRM_DataItemHandle &value) const
void setParmValue(exint idx, const UT_Matrix4D &value)
static void saveData(std::ostream &os, UT_Vector2D v)
void setCutValue(fpreal64 val)
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setParmValue(exint idx, const PRM_DataItemHandle &value)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
UT_StringHolder opCutAttrib(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opPolygons(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector3D v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
static void saveData(std::ostream &os, UT_Matrix4D v)
fpreal64 getCutValue() const
#define SOP_API
Definition: SOP_API.h:10
virtual const char * getParmName(exint fieldnum) const
const char * buffer() const
void setCutPoints(const UT_StringHolder &val)
static void saveData(std::ostream &os, UT_Vector4D v)
void getParmValue(exint idx, UT_StringHolder &value) const
GLint GLint GLsizei GLint GLenum GLenum type
Definition: glcorearb.h:107
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:499
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
T & x(void)
Definition: UT_Vector4.h:368
virtual void loadFromOpSubclass(const LoadParms &loadparms)
T & y(void)
Definition: UT_Vector2.h:286
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Matrix3D v)
GLboolean r
Definition: glcorearb.h:1221
fpreal64 opCutThreshold(const SOP_NodeVerb::CookParms &cookparms) const
const UT_StringHolder & getCutPoints() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
T & w(void)
Definition: UT_Vector4.h:374
void save(std::ostream &os) const
virtual void copyFrom(const SOP_NodeParms *src)
fpreal64 getCutThreshold() const
static void saveData(std::ostream &os, bool v)
DetectEdgeChanges getDetectEdgeChanges() const
void setParmValue(exint idx, const UT_StringHolder &value)
void getParmValue(exint idx, exint &value) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:109
static void saveData(std::ostream &os, UT_Matrix2D v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
SYS_FORCE_INLINE bool isstring() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static int version()
static void loadData(UT_IStream &is, UT_Vector2I &v)
void getParmValue(exint idx, UT_SharedPtr< UT_Ramp > &value) const
Strategy getStrategy() const
GLenum src
Definition: glcorearb.h:1792