HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_WindingNumber.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 class DEP_MicroNode;
23 namespace SOP_WindingNumberEnums
24 {
25  enum class Type
26  {
27  XYZ = 0,
28  XY,
29  YZ,
30  ZX
31  };
32 }
33 
34 
36 {
37 public:
38  static int version() { return 1; }
39 
41  {
42  myQueryPoints = ""_UTsh;
43  myMeshPrims = ""_UTsh;
44  myType = 0;
45  myAttrib = "winding_number"_UTsh;
46  myAsSolidAngle = false;
47  myNegate = false;
48  myFullAccuracy = false;
49  myAccuracyScale = 2;
50 
51  }
52 
53  explicit SOP_WindingNumberParms(const SOP_WindingNumberParms &) = default;
55  SOP_WindingNumberParms(SOP_WindingNumberParms &&) noexcept = default;
56  SOP_WindingNumberParms &operator=(SOP_WindingNumberParms &&) noexcept = default;
57 
58  ~SOP_WindingNumberParms() override {}
59 
61  {
62  if (myQueryPoints != src.myQueryPoints) return false;
63  if (myMeshPrims != src.myMeshPrims) return false;
64  if (myType != src.myType) return false;
65  if (myAttrib != src.myAttrib) return false;
66  if (myAsSolidAngle != src.myAsSolidAngle) return false;
67  if (myNegate != src.myNegate) return false;
68  if (myFullAccuracy != src.myFullAccuracy) return false;
69  if (myAccuracyScale != src.myAccuracyScale) return false;
70 
71  return true;
72  }
74  {
75  return !operator==(src);
76  }
78 
79 
80 
81  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
82  {
83  myQueryPoints = ""_UTsh;
84  if (true)
85  graph->evalOpParm(myQueryPoints, nodeidx, "querypoints", time, 0);
86  myMeshPrims = ""_UTsh;
87  if (true)
88  graph->evalOpParm(myMeshPrims, nodeidx, "meshprims", time, 0);
89  myType = 0;
90  if (true)
91  graph->evalOpParm(myType, nodeidx, "type", time, 0);
92  myAttrib = "winding_number"_UTsh;
93  if (true)
94  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, 0);
95  myAsSolidAngle = false;
96  if (true)
97  graph->evalOpParm(myAsSolidAngle, nodeidx, "assolidangle", time, 0);
98  myNegate = false;
99  if (true)
100  graph->evalOpParm(myNegate, nodeidx, "negate", time, 0);
101  myFullAccuracy = false;
102  if (true)
103  graph->evalOpParm(myFullAccuracy, nodeidx, "fullaccuracy", time, 0);
104  myAccuracyScale = 2;
105  if (true && ( (true&&!(((getFullAccuracy()==1)))) ) )
106  graph->evalOpParm(myAccuracyScale, nodeidx, "accuracyscale", time, 0);
107 
108  }
109 
110 
111  void loadFromOpSubclass(const LoadParms &loadparms) override
112  {
113  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
114  }
115 
116 
117  void copyFrom(const OP_NodeParms *src) override
118  {
119  *this = *((const SOP_WindingNumberParms *)src);
120  }
121 
122  template <typename T>
123  void
124  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
125  {
126  if (idx.size() < 1)
127  return;
128  UT_ASSERT(idx.size() == instance.size()+1);
129  if (idx.size() != instance.size()+1)
130  return;
131  switch (idx[0])
132  {
133  case 0:
134  coerceValue(value, myQueryPoints);
135  break;
136  case 1:
137  coerceValue(value, myMeshPrims);
138  break;
139  case 2:
140  coerceValue(value, myType);
141  break;
142  case 3:
143  coerceValue(value, myAttrib);
144  break;
145  case 4:
146  coerceValue(value, myAsSolidAngle);
147  break;
148  case 5:
149  coerceValue(value, myNegate);
150  break;
151  case 6:
152  coerceValue(value, myFullAccuracy);
153  break;
154  case 7:
155  coerceValue(value, myAccuracyScale);
156  break;
157 
158  }
159  }
160 
161  bool isParmColorRamp(exint idx) const override
162  {
163  switch (idx)
164  {
165 
166  }
167  return false;
168  }
169 
170  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
171  { doGetParmValue(idx, instance, value); }
172  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
173  { doGetParmValue(idx, instance, value); }
174  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
175  { doGetParmValue(idx, instance, value); }
176  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
177  { doGetParmValue(idx, instance, value); }
178  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
179  { doGetParmValue(idx, instance, value); }
180  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
181  { doGetParmValue(idx, instance, value); }
182  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
183  { doGetParmValue(idx, instance, value); }
184  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
191  { doGetParmValue(idx, instance, value); }
192 
193  template <typename T>
194  void
195  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
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(myQueryPoints, ( ( value ) ));
206  break;
207  case 1:
208  coerceValue(myMeshPrims, ( ( value ) ));
209  break;
210  case 2:
211  coerceValue(myType, clampMinValue(0, clampMaxValue(3, value ) ));
212  break;
213  case 3:
214  coerceValue(myAttrib, ( ( value ) ));
215  break;
216  case 4:
217  coerceValue(myAsSolidAngle, ( ( value ) ));
218  break;
219  case 5:
220  coerceValue(myNegate, ( ( value ) ));
221  break;
222  case 6:
223  coerceValue(myFullAccuracy, ( ( value ) ));
224  break;
225  case 7:
226  coerceValue(myAccuracyScale, clampMinValue(1, ( value ) ));
227  break;
228 
229  }
230  }
231 
232  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
253  { doSetParmValue(idx, instance, value); }
254 
255  exint getNestNumParms(TempIndex idx) const override
256  {
257  if (idx.size() == 0)
258  return 8;
259  switch (idx[0])
260  {
261 
262  }
263  // Invalid
264  return 0;
265  }
266 
267  const char *getNestParmName(TempIndex fieldnum) const override
268  {
269  if (fieldnum.size() < 1)
270  return 0;
271  switch (fieldnum[0])
272  {
273  case 0:
274  return "querypoints";
275  case 1:
276  return "meshprims";
277  case 2:
278  return "type";
279  case 3:
280  return "attrib";
281  case 4:
282  return "assolidangle";
283  case 5:
284  return "negate";
285  case 6:
286  return "fullaccuracy";
287  case 7:
288  return "accuracyscale";
289 
290  }
291  return 0;
292  }
293 
294  ParmType getNestParmType(TempIndex fieldnum) const override
295  {
296  if (fieldnum.size() < 1)
297  return PARM_UNSUPPORTED;
298  switch (fieldnum[0])
299  {
300  case 0:
301  return PARM_STRING;
302  case 1:
303  return PARM_STRING;
304  case 2:
305  return PARM_INTEGER;
306  case 3:
307  return PARM_STRING;
308  case 4:
309  return PARM_INTEGER;
310  case 5:
311  return PARM_INTEGER;
312  case 6:
313  return PARM_INTEGER;
314  case 7:
315  return PARM_FLOAT;
316 
317  }
318  return PARM_UNSUPPORTED;
319  }
320 
321  // Boiler plate to load individual types.
322  static void loadData(UT_IStream &is, int64 &v)
323  { is.bread(&v, 1); }
324  static void loadData(UT_IStream &is, bool &v)
325  { int64 iv; is.bread(&iv, 1); v = iv; }
326  static void loadData(UT_IStream &is, fpreal64 &v)
327  { is.bread<fpreal64>(&v, 1); }
328  static void loadData(UT_IStream &is, UT_Vector2D &v)
329  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
330  static void loadData(UT_IStream &is, UT_Vector3D &v)
331  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
332  is.bread<fpreal64>(&v.z(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector4D &v)
334  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
335  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
336  static void loadData(UT_IStream &is, UT_Matrix2D &v)
337  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
338  static void loadData(UT_IStream &is, UT_Matrix3D &v)
339  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
340  static void loadData(UT_IStream &is, UT_Matrix4D &v)
341  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
342  static void loadData(UT_IStream &is, UT_Vector2I &v)
343  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
344  static void loadData(UT_IStream &is, UT_Vector3I &v)
345  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
346  is.bread<int64>(&v.z(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector4I &v)
348  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
349  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
351  { is.bread(v); }
353  { UT_StringHolder rampdata;
354  loadData(is, rampdata);
355  if (rampdata.isstring())
356  {
357  v.reset(new UT_Ramp());
358  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
359  v->load(istr);
360  }
361  else v.reset();
362  }
365  loadData(is, data);
366  if (data.isstring())
367  {
368  // Find the data type.
369  const char *colon = UT_StringWrap(data).findChar(':');
370  if (colon)
371  {
372  int typelen = colon - data.buffer();
374  type.strncpy(data.buffer(), typelen);
375  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
376 
377  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
378  }
379  }
380  else v.reset();
381  }
382 
383  static void saveData(std::ostream &os, int64 v)
384  { UTwrite(os, &v); }
385  static void saveData(std::ostream &os, bool v)
386  { int64 iv = v; UTwrite(os, &iv); }
387  static void saveData(std::ostream &os, fpreal64 v)
388  { UTwrite<fpreal64>(os, &v); }
389  static void saveData(std::ostream &os, UT_Vector2D v)
390  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
391  static void saveData(std::ostream &os, UT_Vector3D v)
392  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
393  UTwrite<fpreal64>(os, &v.z()); }
394  static void saveData(std::ostream &os, UT_Vector4D v)
395  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
396  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
397  static void saveData(std::ostream &os, UT_Matrix2D v)
399  static void saveData(std::ostream &os, UT_Matrix3D v)
401  static void saveData(std::ostream &os, UT_Matrix4D v)
403  static void saveData(std::ostream &os, UT_StringHolder s)
404  { UT_StringWrap(s).saveBinary(os); }
405  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
407  UT_OStringStream ostr;
408  if (s) s->save(ostr);
409  result = ostr.str();
410  saveData(os, result);
411  }
412  static void saveData(std::ostream &os, PRM_DataItemHandle s)
414  UT_OStringStream ostr;
415  if (s)
416  {
417  ostr << s->getDataTypeToken();
418  ostr << ":";
419  s->saveBinary(ostr);
420  }
421  result = ostr.str();
422  saveData(os, result);
423  }
424 
425 
426  void save(std::ostream &os) const
427  {
428  int32 v = version();
429  UTwrite(os, &v);
430  saveData(os, myQueryPoints);
431  saveData(os, myMeshPrims);
432  saveData(os, myType);
433  saveData(os, myAttrib);
434  saveData(os, myAsSolidAngle);
435  saveData(os, myNegate);
436  saveData(os, myFullAccuracy);
437  saveData(os, myAccuracyScale);
438 
439  }
440 
441  bool load(UT_IStream &is)
442  {
443  int32 v;
444  is.bread(&v, 1);
445  if (version() != v)
446  {
447  // Fail incompatible versions
448  return false;
449  }
450  loadData(is, myQueryPoints);
451  loadData(is, myMeshPrims);
452  loadData(is, myType);
453  loadData(is, myAttrib);
454  loadData(is, myAsSolidAngle);
455  loadData(is, myNegate);
456  loadData(is, myFullAccuracy);
457  loadData(is, myAccuracyScale);
458 
459  return true;
460  }
461 
462  const UT_StringHolder & getQueryPoints() const { return myQueryPoints; }
463  void setQueryPoints(const UT_StringHolder & val) { myQueryPoints = val; }
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getQueryPoints();
469  OP_Utils::evalOpParm(result, thissop, "querypoints", cookparms.getCookTime(), 0);
470  return result;
471  }
472  const UT_StringHolder & getMeshPrims() const { return myMeshPrims; }
473  void setMeshPrims(const UT_StringHolder & val) { myMeshPrims = val; }
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getMeshPrims();
479  OP_Utils::evalOpParm(result, thissop, "meshprims", cookparms.getCookTime(), 0);
480  return result;
481  }
482  Type getType() const { return Type(myType); }
483  void setType(Type val) { myType = int64(val); }
484  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getType();
488  int64 result;
489  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
490  return Type(result);
491  }
492  const UT_StringHolder & getAttrib() const { return myAttrib; }
493  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getAttrib();
499  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
500  return result;
501  }
502  bool getAsSolidAngle() const { return myAsSolidAngle; }
503  void setAsSolidAngle(bool val) { myAsSolidAngle = val; }
504  bool opAsSolidAngle(const SOP_NodeVerb::CookParms &cookparms) const
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getAsSolidAngle();
508  bool result;
509  OP_Utils::evalOpParm(result, thissop, "assolidangle", cookparms.getCookTime(), 0);
510  return result;
511  }
512  bool getNegate() const { return myNegate; }
513  void setNegate(bool val) { myNegate = val; }
514  bool opNegate(const SOP_NodeVerb::CookParms &cookparms) const
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getNegate();
518  bool result;
519  OP_Utils::evalOpParm(result, thissop, "negate", cookparms.getCookTime(), 0);
520  return result;
521  }
522  bool getFullAccuracy() const { return myFullAccuracy; }
523  void setFullAccuracy(bool val) { myFullAccuracy = val; }
524  bool opFullAccuracy(const SOP_NodeVerb::CookParms &cookparms) const
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getFullAccuracy();
528  bool result;
529  OP_Utils::evalOpParm(result, thissop, "fullaccuracy", cookparms.getCookTime(), 0);
530  return result;
531  }
532  fpreal64 getAccuracyScale() const { return myAccuracyScale; }
533  void setAccuracyScale(fpreal64 val) { myAccuracyScale = val; }
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return getAccuracyScale();
539  OP_Utils::evalOpParm(result, thissop, "accuracyscale", cookparms.getCookTime(), 0);
540  return result;
541  }
542 
543 private:
544  UT_StringHolder myQueryPoints;
545  UT_StringHolder myMeshPrims;
546  int64 myType;
547  UT_StringHolder myAttrib;
548  bool myAsSolidAngle;
549  bool myNegate;
550  bool myFullAccuracy;
551  fpreal64 myAccuracyScale;
552 
553 };
static void saveData(std::ostream &os, UT_Matrix2D v)
void copyFrom(const OP_NodeParms *src) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
fpreal64 getAccuracyScale() const
const UT_StringHolder & getAttrib() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
exint bread(int32 *buffer, exint asize=1)
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
fpreal getTime() const
Definition: OP_Context.h:62
const UT_StringHolder & getMeshPrims() const
void setAttrib(const UT_StringHolder &val)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
UT_StringHolder opQueryPoints(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
void loadFromOpSubclass(const LoadParms &loadparms) override
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, UT_Vector4D &v)
An output stream object that owns its own string buffer storage.
const UT_StringHolder & getQueryPoints() const
static void loadData(UT_IStream &is, UT_Vector3D &v)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
**But if you need a result
Definition: thread.h:613
bool operator==(const SOP_WindingNumberParms &src) const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
static void loadData(UT_IStream &is, UT_Vector3I &v)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void saveData(std::ostream &os, int64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
bool operator!=(const SOP_WindingNumberParms &src) const
static void saveData(std::ostream &os, UT_Matrix3D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
void save(std::ostream &os) const
exint length() const
static void saveData(std::ostream &os, UT_StringHolder s)
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
static void loadData(UT_IStream &is, UT_Matrix2D &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
UT_StringHolder opMeshPrims(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
long long int64
Definition: SYS_Types.h:116
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setAccuracyScale(fpreal64 val)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
fpreal64 opAccuracyScale(const SOP_NodeVerb::CookParms &cookparms) const
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
bool opAsSolidAngle(const SOP_NodeVerb::CookParms &cookparms) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, bool &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
ParmType getNestParmType(TempIndex fieldnum) const override
UT_StringHolder opAttrib(const SOP_NodeVerb::CookParms &cookparms) const
Type opType(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
GLuint GLfloat * val
Definition: glcorearb.h:1608
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
static void saveData(std::ostream &os, UT_Vector4D v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
GLboolean r
Definition: glcorearb.h:1222
const char * getNestParmName(TempIndex fieldnum) const override
static void saveData(std::ostream &os, bool v)
void setQueryPoints(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
bool opNegate(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, int64 &v)
bool opFullAccuracy(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
static void loadData(UT_IStream &is, UT_Vector2D &v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
void setMeshPrims(const UT_StringHolder &val)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
exint getNestNumParms(TempIndex idx) const override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override