HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  }
80  bool operator!=(const SOP_PolyCutParms &src) const
81  {
82  return !operator==(src);
83  }
87 
88 
89 
90  void buildFromOp(const OP_Node *node, fpreal time, DEP_MicroNode *depnode)
91  {
92  if (true)
93  OP_Utils::evalOpParm(myPolygons, node, "polygons", time, 0);
94  else myPolygons = ""_sh;
95  if (true)
96  OP_Utils::evalOpParm(myType, node, "type", time, 0);
97  else myType = 0;
98  if (true && ( (!(((int64(getType())!=0)))) ) )
99  OP_Utils::evalOpParm(myCutPoints, node, "cutpoints", time, 0);
100  else myCutPoints = ""_sh;
101  if (true && ( (!(((int64(getType())!=1)))) ) )
102  OP_Utils::evalOpParm(myCutEdges, node, "cutedges", time, 0);
103  else myCutEdges = ""_sh;
104  if (true)
105  OP_Utils::evalOpParm(myStrategy, node, "strategy", time, 0);
106  else myStrategy = 0;
107  if (true)
108  OP_Utils::evalOpParm(myDetectEdgeChanges, node, "detectedgechanges", time, 0);
109  else myDetectEdgeChanges = 0;
110  if (true)
111  OP_Utils::evalOpParm(myCutAttrib, node, "cutattrib", time, 0);
112  else myCutAttrib = ""_sh;
113  if (true && ( (!(((int64(getDetectEdgeChanges())!=0))||((getCutAttrib()=="")))) ) )
114  OP_Utils::evalOpParm(myCutValue, node, "cutvalue", time, 0);
115  else myCutValue = 0;
116  if (true && ( (!(((int64(getDetectEdgeChanges())!=1))||((getCutAttrib()=="")))) ) )
117  OP_Utils::evalOpParm(myCutThreshold, node, "cutthreshold", time, 0);
118  else myCutThreshold = 1;
119  if (true)
120  OP_Utils::evalOpParm(myKeepClosed, node, "keepclosed", time, 0);
121  else myKeepClosed = false;
122 
123  }
124 
125 
126  virtual void loadFromOpSubclass(const LoadParms &loadparms)
127  {
128  buildFromOp(loadparms.node(), loadparms.context().getTime(), loadparms.depnode());
129  }
130 
131 
132  virtual void copyFrom(const SOP_NodeParms *src)
133  {
134  *this = *((const SOP_PolyCutParms *)src);
135  }
136 
137  template <typename T>
138  void
139  doGetParmValue(exint idx, T &value) const
140  {
141  switch (idx)
142  {
143  case 0:
144  coerceValue(value, myPolygons);
145  break;
146  case 1:
147  coerceValue(value, myType);
148  break;
149  case 2:
150  coerceValue(value, myCutPoints);
151  break;
152  case 3:
153  coerceValue(value, myCutEdges);
154  break;
155  case 4:
156  coerceValue(value, myStrategy);
157  break;
158  case 5:
159  coerceValue(value, myDetectEdgeChanges);
160  break;
161  case 6:
162  coerceValue(value, myCutAttrib);
163  break;
164  case 7:
165  coerceValue(value, myCutValue);
166  break;
167  case 8:
168  coerceValue(value, myCutThreshold);
169  break;
170  case 9:
171  coerceValue(value, myKeepClosed);
172  break;
173 
174  }
175  }
176 
177  void getParmValue(exint idx, exint &value) const
178  { doGetParmValue(idx, value); }
179  void getParmValue(exint idx, fpreal &value) const
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); }
196  { doGetParmValue(idx, value); }
198  { doGetParmValue(idx, value); }
199 
200  template <typename T>
201  void
202  doSetParmValue(exint idx, const T &value)
203  {
204  switch (idx)
205  {
206  case 0:
207  coerceValue(myPolygons, value);
208  break;
209  case 1:
210  coerceValue(myType, value);
211  break;
212  case 2:
213  coerceValue(myCutPoints, value);
214  break;
215  case 3:
216  coerceValue(myCutEdges, value);
217  break;
218  case 4:
219  coerceValue(myStrategy, value);
220  break;
221  case 5:
222  coerceValue(myDetectEdgeChanges, value);
223  break;
224  case 6:
225  coerceValue(myCutAttrib, value);
226  break;
227  case 7:
228  coerceValue(myCutValue, value);
229  break;
230  case 8:
231  coerceValue(myCutThreshold, value);
232  break;
233  case 9:
234  coerceValue(myKeepClosed, value);
235  break;
236 
237  }
238  }
239 
240  void setParmValue(exint idx, const exint &value)
241  { doSetParmValue(idx, value); }
242  void setParmValue(exint idx, const fpreal &value)
243  { doSetParmValue(idx, value); }
244  void setParmValue(exint idx, const UT_Vector2D &value)
245  { doSetParmValue(idx, value); }
246  void setParmValue(exint idx, const UT_Vector3D &value)
247  { doSetParmValue(idx, value); }
248  void setParmValue(exint idx, const UT_Vector4D &value)
249  { doSetParmValue(idx, value); }
250  void setParmValue(exint idx, const UT_Matrix2D &value)
251  { doSetParmValue(idx, value); }
252  void setParmValue(exint idx, const UT_Matrix3D &value)
253  { doSetParmValue(idx, value); }
254  void setParmValue(exint idx, const UT_Matrix4D &value)
255  { doSetParmValue(idx, value); }
257  { doSetParmValue(idx, value); }
259  { doSetParmValue(idx, value); }
261  { doSetParmValue(idx, value); }
262 
263  virtual exint getNumParms() const
264  {
265  return 10;
266  }
267 
268  virtual const char *getParmName(exint fieldnum) const
269  {
270  switch (fieldnum)
271  {
272  case 0:
273  return "polygons";
274  case 1:
275  return "type";
276  case 2:
277  return "cutpoints";
278  case 3:
279  return "cutedges";
280  case 4:
281  return "strategy";
282  case 5:
283  return "detectedgechanges";
284  case 6:
285  return "cutattrib";
286  case 7:
287  return "cutvalue";
288  case 8:
289  return "cutthreshold";
290  case 9:
291  return "keepclosed";
292 
293  }
294  return 0;
295  }
296 
297  virtual ParmType getParmType(exint fieldnum) const
298  {
299  switch (fieldnum)
300  {
301  case 0:
302  return PARM_STRING;
303  case 1:
304  return PARM_INTEGER;
305  case 2:
306  return PARM_STRING;
307  case 3:
308  return PARM_STRING;
309  case 4:
310  return PARM_INTEGER;
311  case 5:
312  return PARM_INTEGER;
313  case 6:
314  return PARM_STRING;
315  case 7:
316  return PARM_FLOAT;
317  case 8:
318  return PARM_FLOAT;
319  case 9:
320  return PARM_INTEGER;
321 
322  }
323  return PARM_UNSUPPORTED;
324  }
325 
326  // Boiler plate to load individual types.
327  static void loadData(UT_IStream &is, int64 &v)
328  { is.bread(&v, 1); }
329  static void loadData(UT_IStream &is, bool &v)
330  { int64 iv; is.bread(&iv, 1); v = iv; }
331  static void loadData(UT_IStream &is, fpreal64 &v)
332  { is.bread<fpreal64>(&v, 1); }
333  static void loadData(UT_IStream &is, UT_Vector2D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
335  static void loadData(UT_IStream &is, UT_Vector3D &v)
336  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
337  is.bread<fpreal64>(&v.z(), 1); }
338  static void loadData(UT_IStream &is, UT_Vector4D &v)
339  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
340  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
341  static void loadData(UT_IStream &is, UT_Matrix2D &v)
342  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
343  static void loadData(UT_IStream &is, UT_Matrix3D &v)
344  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
345  static void loadData(UT_IStream &is, UT_Matrix4D &v)
346  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
347  static void loadData(UT_IStream &is, UT_Vector2I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
349  static void loadData(UT_IStream &is, UT_Vector3I &v)
350  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
351  is.bread<int64>(&v.z(), 1); }
352  static void loadData(UT_IStream &is, UT_Vector4I &v)
353  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
354  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
356  { is.bread(v); }
358  { UT_StringHolder rampdata;
359  loadData(is, rampdata);
360  if (rampdata.isstring())
361  {
362  v.reset(new UT_Ramp());
363  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
364  v->load(istr);
365  }
366  else v.reset();
367  }
370  loadData(is, data);
371  if (data.isstring())
372  {
373  // Find the data type.
374  char *colon = UT_StringWrap(data).findChar(':');
375  if (colon)
376  {
377  int typelen = colon - data.buffer();
379  type.strncpy(data.buffer(), typelen);
380  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
381 
382  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
383  }
384  }
385  else v.reset();
386  }
387 
388  static void saveData(std::ostream &os, int64 v)
389  { UTwrite(os, &v); }
390  static void saveData(std::ostream &os, bool v)
391  { int64 iv = v; UTwrite(os, &iv); }
392  static void saveData(std::ostream &os, fpreal64 v)
393  { UTwrite<fpreal64>(os, &v); }
394  static void saveData(std::ostream &os, UT_Vector2D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
396  static void saveData(std::ostream &os, UT_Vector3D v)
397  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
398  UTwrite<fpreal64>(os, &v.z()); }
399  static void saveData(std::ostream &os, UT_Vector4D v)
400  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
401  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
402  static void saveData(std::ostream &os, UT_Matrix2D v)
404  static void saveData(std::ostream &os, UT_Matrix3D v)
406  static void saveData(std::ostream &os, UT_Matrix4D v)
408  static void saveData(std::ostream &os, UT_StringHolder s)
409  { UT_StringWrap(s).saveBinary(os); }
410  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
411  { UT_StringHolder result;
412  UT_OStringStream ostr;
413  if (s) s->save(ostr);
414  result = ostr.str();
415  saveData(os, result);
416  }
417  static void saveData(std::ostream &os, PRM_DataItemHandle s)
418  { UT_StringHolder result;
419  UT_OStringStream ostr;
420  if (s)
421  {
422  ostr << s->getDataTypeToken();
423  ostr << ":";
424  s->saveBinary(ostr);
425  }
426  result = ostr.str();
427  saveData(os, result);
428  }
429 
430 
431  void save(std::ostream &os) const
432  {
433  int32 v = version();
434  UTwrite(os, &v);
435  saveData(os, myPolygons);
436  saveData(os, myType);
437  saveData(os, myCutPoints);
438  saveData(os, myCutEdges);
439  saveData(os, myStrategy);
440  saveData(os, myDetectEdgeChanges);
441  saveData(os, myCutAttrib);
442  saveData(os, myCutValue);
443  saveData(os, myCutThreshold);
444  saveData(os, myKeepClosed);
445 
446  }
447 
448  bool load(UT_IStream &is)
449  {
450  int32 v;
451  is.bread(&v, 1);
452  if (version() != v)
453  {
454  // Fail incompatible versions
455  return false;
456  }
457  loadData(is, myPolygons);
458  loadData(is, myType);
459  loadData(is, myCutPoints);
460  loadData(is, myCutEdges);
461  loadData(is, myStrategy);
462  loadData(is, myDetectEdgeChanges);
463  loadData(is, myCutAttrib);
464  loadData(is, myCutValue);
465  loadData(is, myCutThreshold);
466  loadData(is, myKeepClosed);
467 
468  return true;
469  }
470 
471  const UT_StringHolder & getPolygons() const { return myPolygons; }
472  void setPolygons(const UT_StringHolder & val) { myPolygons = val; }
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return getPolygons();
477  UT_StringHolder result;
478  OP_Utils::evalOpParm(result, thissop, "polygons", cookparms.getCookTime(), 0);
479  return result;
480  }
481  Type getType() const { return Type(myType); }
482  void setType(Type val) { myType = int64(val); }
483  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getType();
487  int64 result;
488  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
489  return Type(result);
490  }
491  const UT_StringHolder & getCutPoints() const { return myCutPoints; }
492  void setCutPoints(const UT_StringHolder & val) { myCutPoints = val; }
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return getCutPoints();
497  UT_StringHolder result;
498  OP_Utils::evalOpParm(result, thissop, "cutpoints", cookparms.getCookTime(), 0);
499  return result;
500  }
501  const UT_StringHolder & getCutEdges() const { return myCutEdges; }
502  void setCutEdges(const UT_StringHolder & val) { myCutEdges = val; }
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getCutEdges();
507  UT_StringHolder result;
508  OP_Utils::evalOpParm(result, thissop, "cutedges", cookparms.getCookTime(), 0);
509  return result;
510  }
511  Strategy getStrategy() const { return Strategy(myStrategy); }
512  void setStrategy(Strategy val) { myStrategy = int64(val); }
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getStrategy();
517  int64 result;
518  OP_Utils::evalOpParm(result, thissop, "strategy", cookparms.getCookTime(), 0);
519  return Strategy(result);
520  }
521  DetectEdgeChanges getDetectEdgeChanges() const { return DetectEdgeChanges(myDetectEdgeChanges); }
522  void setDetectEdgeChanges(DetectEdgeChanges val) { myDetectEdgeChanges = int64(val); }
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getDetectEdgeChanges();
527  int64 result;
528  OP_Utils::evalOpParm(result, thissop, "detectedgechanges", cookparms.getCookTime(), 0);
529  return DetectEdgeChanges(result);
530  }
531  const UT_StringHolder & getCutAttrib() const { return myCutAttrib; }
532  void setCutAttrib(const UT_StringHolder & val) { myCutAttrib = val; }
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getCutAttrib();
537  UT_StringHolder result;
538  OP_Utils::evalOpParm(result, thissop, "cutattrib", cookparms.getCookTime(), 0);
539  return result;
540  }
541  fpreal64 getCutValue() const { return myCutValue; }
542  void setCutValue(fpreal64 val) { myCutValue = val; }
544  {
545  SOP_Node *thissop = cookparms.getNode();
546  if (!thissop) return getCutValue();
547  fpreal64 result;
548  OP_Utils::evalOpParm(result, thissop, "cutvalue", cookparms.getCookTime(), 0);
549  return result;
550  }
551  fpreal64 getCutThreshold() const { return myCutThreshold; }
552  void setCutThreshold(fpreal64 val) { myCutThreshold = val; }
554  {
555  SOP_Node *thissop = cookparms.getNode();
556  if (!thissop) return getCutThreshold();
557  fpreal64 result;
558  OP_Utils::evalOpParm(result, thissop, "cutthreshold", cookparms.getCookTime(), 0);
559  return result;
560  }
561  bool getKeepClosed() const { return myKeepClosed; }
562  void setKeepClosed(bool val) { myKeepClosed = val; }
563  bool opKeepClosed(const SOP_NodeVerb::CookParms &cookparms) const
564  {
565  SOP_Node *thissop = cookparms.getNode();
566  if (!thissop) return getKeepClosed();
567  bool result;
568  OP_Utils::evalOpParm(result, thissop, "keepclosed", cookparms.getCookTime(), 0);
569  return result;
570  }
571 
572 private:
573  UT_StringHolder myPolygons;
574  int64 myType;
575  UT_StringHolder myCutPoints;
576  UT_StringHolder myCutEdges;
577  int64 myStrategy;
578  int64 myDetectEdgeChanges;
579  UT_StringHolder myCutAttrib;
580  fpreal64 myCutValue;
581  fpreal64 myCutThreshold;
582  bool myKeepClosed;
583 
584 };
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:494
T & z(void)
Definition: UT_Vector4.h:379
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
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_StringHolder &v)
virtual ParmType getParmType(exint fieldnum) const
fpreal getTime() const
Definition: OP_Context.h:60
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)
SYS_FORCE_INLINE const char * buffer() const
T & x(void)
Definition: UT_Vector2.h:285
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:498
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)
bool operator!=(const SOP_PolyCutParms &src) const
void setCutEdges(const UT_StringHolder &val)
SYS_FORCE_INLINE T & z(void)
Definition: UT_Vector3.h:502
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setParmValue(exint idx, const fpreal &value)
long long int64
Definition: SYS_Types.h:107
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
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:28
int64 exint
Definition: SYS_Types.h:116
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:192
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:35
T & y(void)
Definition: UT_Vector4.h:377
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
GT_API const UT_StringHolder version
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:500
GLsizei const GLfloat * value
Definition: glcorearb.h:823
double fpreal
Definition: SYS_Types.h:270
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
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:501
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
T & x(void)
Definition: UT_Vector4.h:375
virtual void loadFromOpSubclass(const LoadParms &loadparms)
T & y(void)
Definition: UT_Vector2.h:287
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:381
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)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:88
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()
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
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