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 
34  getToken(Type enum_value)
35  {
36  using namespace UT::Literal;
37  switch (enum_value) {
38  case Type::XYZ: return "xyz"_sh;
39  case Type::XY: return "xy"_sh;
40  case Type::YZ: return "yz"_sh;
41  case Type::ZX: return "zx"_sh;
42  default: UT_ASSERT(false); return ""_sh;
43  }
44  }
45 
46 }
47 
48 
50 {
51 public:
52  static int version() { return 1; }
53 
55  {
56  myQueryPoints = ""_UTsh;
57  myMeshPrims = ""_UTsh;
58  myType = 0;
59  myAttrib = "winding_number"_UTsh;
60  myAsSolidAngle = false;
61  myNegate = false;
62  myFullAccuracy = false;
63  myAccuracyScale = 2;
64 
65  }
66 
67  explicit SOP_WindingNumberParms(const SOP_WindingNumberParms &) = default;
69  SOP_WindingNumberParms(SOP_WindingNumberParms &&) noexcept = default;
70  SOP_WindingNumberParms &operator=(SOP_WindingNumberParms &&) noexcept = default;
71 
72  ~SOP_WindingNumberParms() override {}
73 
75  {
76  if (myQueryPoints != src.myQueryPoints) return false;
77  if (myMeshPrims != src.myMeshPrims) return false;
78  if (myType != src.myType) return false;
79  if (myAttrib != src.myAttrib) return false;
80  if (myAsSolidAngle != src.myAsSolidAngle) return false;
81  if (myNegate != src.myNegate) return false;
82  if (myFullAccuracy != src.myFullAccuracy) return false;
83  if (myAccuracyScale != src.myAccuracyScale) return false;
84 
85  return true;
86  }
88  {
89  return !operator==(src);
90  }
92 
93 
94 
95  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
96  {
97  myQueryPoints = ""_UTsh;
98  if (true)
99  graph->evalOpParm(myQueryPoints, nodeidx, "querypoints", time, 0);
100  myMeshPrims = ""_UTsh;
101  if (true)
102  graph->evalOpParm(myMeshPrims, nodeidx, "meshprims", time, 0);
103  myType = 0;
104  if (true)
105  graph->evalOpParm(myType, nodeidx, "type", time, 0);
106  myAttrib = "winding_number"_UTsh;
107  if (true)
108  graph->evalOpParm(myAttrib, nodeidx, "attrib", time, 0);
109  myAsSolidAngle = false;
110  if (true)
111  graph->evalOpParm(myAsSolidAngle, nodeidx, "assolidangle", time, 0);
112  myNegate = false;
113  if (true)
114  graph->evalOpParm(myNegate, nodeidx, "negate", time, 0);
115  myFullAccuracy = false;
116  if (true)
117  graph->evalOpParm(myFullAccuracy, nodeidx, "fullaccuracy", time, 0);
118  myAccuracyScale = 2;
119  if (true && ( (true&&!(((getFullAccuracy()==1)))) ) )
120  graph->evalOpParm(myAccuracyScale, nodeidx, "accuracyscale", time, 0);
121 
122  }
123 
124 
125  void loadFromOpSubclass(const LoadParms &loadparms) override
126  {
127  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
128  }
129 
130 
131  void copyFrom(const OP_NodeParms *src) override
132  {
133  *this = *((const SOP_WindingNumberParms *)src);
134  }
135 
136  template <typename T>
137  void
138  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
139  {
140  if (idx.size() < 1)
141  return;
142  UT_ASSERT(idx.size() == instance.size()+1);
143  if (idx.size() != instance.size()+1)
144  return;
145  switch (idx[0])
146  {
147  case 0:
148  coerceValue(value, myQueryPoints);
149  break;
150  case 1:
151  coerceValue(value, myMeshPrims);
152  break;
153  case 2:
154  coerceValue(value, myType);
155  break;
156  case 3:
157  coerceValue(value, myAttrib);
158  break;
159  case 4:
160  coerceValue(value, myAsSolidAngle);
161  break;
162  case 5:
163  coerceValue(value, myNegate);
164  break;
165  case 6:
166  coerceValue(value, myFullAccuracy);
167  break;
168  case 7:
169  coerceValue(value, myAccuracyScale);
170  break;
171 
172  }
173  }
174 
175  bool isParmColorRamp(exint idx) const override
176  {
177  switch (idx)
178  {
179 
180  }
181  return false;
182  }
183 
184  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
185  { doGetParmValue(idx, instance, value); }
186  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
187  { doGetParmValue(idx, instance, value); }
188  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
205  { doGetParmValue(idx, instance, value); }
206 
207  template <typename T>
208  void
209  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
210  {
211  if (idx.size() < 1)
212  return;
213  UT_ASSERT(idx.size() == instance.size()+1);
214  if (idx.size() != instance.size()+1)
215  return;
216  switch (idx[0])
217  {
218  case 0:
219  coerceValue(myQueryPoints, ( ( value ) ));
220  break;
221  case 1:
222  coerceValue(myMeshPrims, ( ( value ) ));
223  break;
224  case 2:
225  coerceValue(myType, clampMinValue(0, clampMaxValue(3, value ) ));
226  break;
227  case 3:
228  coerceValue(myAttrib, ( ( value ) ));
229  break;
230  case 4:
231  coerceValue(myAsSolidAngle, ( ( value ) ));
232  break;
233  case 5:
234  coerceValue(myNegate, ( ( value ) ));
235  break;
236  case 6:
237  coerceValue(myFullAccuracy, ( ( value ) ));
238  break;
239  case 7:
240  coerceValue(myAccuracyScale, clampMinValue(1, ( value ) ));
241  break;
242 
243  }
244  }
245 
246  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
253  { doSetParmValue(idx, instance, value); }
254  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
255  { doSetParmValue(idx, instance, value); }
256  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
257  { doSetParmValue(idx, instance, value); }
258  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
267  { doSetParmValue(idx, instance, value); }
268 
269  exint getNestNumParms(TempIndex idx) const override
270  {
271  if (idx.size() == 0)
272  return 8;
273  switch (idx[0])
274  {
275 
276  }
277  // Invalid
278  return 0;
279  }
280 
281  const char *getNestParmName(TempIndex fieldnum) const override
282  {
283  if (fieldnum.size() < 1)
284  return 0;
285  switch (fieldnum[0])
286  {
287  case 0:
288  return "querypoints";
289  case 1:
290  return "meshprims";
291  case 2:
292  return "type";
293  case 3:
294  return "attrib";
295  case 4:
296  return "assolidangle";
297  case 5:
298  return "negate";
299  case 6:
300  return "fullaccuracy";
301  case 7:
302  return "accuracyscale";
303 
304  }
305  return 0;
306  }
307 
308  ParmType getNestParmType(TempIndex fieldnum) const override
309  {
310  if (fieldnum.size() < 1)
311  return PARM_UNSUPPORTED;
312  switch (fieldnum[0])
313  {
314  case 0:
315  return PARM_STRING;
316  case 1:
317  return PARM_STRING;
318  case 2:
319  return PARM_INTEGER;
320  case 3:
321  return PARM_STRING;
322  case 4:
323  return PARM_INTEGER;
324  case 5:
325  return PARM_INTEGER;
326  case 6:
327  return PARM_INTEGER;
328  case 7:
329  return PARM_FLOAT;
330 
331  }
332  return PARM_UNSUPPORTED;
333  }
334 
335  // Boiler plate to load individual types.
336  static void loadData(UT_IStream &is, int64 &v)
337  { is.bread(&v, 1); }
338  static void loadData(UT_IStream &is, bool &v)
339  { int64 iv; is.bread(&iv, 1); v = iv; }
340  static void loadData(UT_IStream &is, fpreal64 &v)
341  { is.bread<fpreal64>(&v, 1); }
342  static void loadData(UT_IStream &is, UT_Vector2D &v)
343  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
344  static void loadData(UT_IStream &is, UT_Vector3D &v)
345  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
346  is.bread<fpreal64>(&v.z(), 1); }
347  static void loadData(UT_IStream &is, UT_Vector4D &v)
348  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
349  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
350  static void loadData(UT_IStream &is, UT_Matrix2D &v)
351  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
352  static void loadData(UT_IStream &is, UT_Matrix3D &v)
353  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
354  static void loadData(UT_IStream &is, UT_Matrix4D &v)
355  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
356  static void loadData(UT_IStream &is, UT_Vector2I &v)
357  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
358  static void loadData(UT_IStream &is, UT_Vector3I &v)
359  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
360  is.bread<int64>(&v.z(), 1); }
361  static void loadData(UT_IStream &is, UT_Vector4I &v)
362  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
363  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
365  { is.bread(v); }
367  { UT_StringHolder rampdata;
368  loadData(is, rampdata);
369  if (rampdata.isstring())
370  {
371  v.reset(new UT_Ramp());
372  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
373  v->load(istr);
374  }
375  else v.reset();
376  }
379  loadData(is, data);
380  if (data.isstring())
381  {
382  // Find the data type.
383  const char *colon = UT_StringWrap(data).findChar(':');
384  if (colon)
385  {
386  int typelen = colon - data.buffer();
388  type.strncpy(data.buffer(), typelen);
389  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
390 
391  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
392  }
393  }
394  else v.reset();
395  }
396 
397  static void saveData(std::ostream &os, int64 v)
398  { UTwrite(os, &v); }
399  static void saveData(std::ostream &os, bool v)
400  { int64 iv = v; UTwrite(os, &iv); }
401  static void saveData(std::ostream &os, fpreal64 v)
402  { UTwrite<fpreal64>(os, &v); }
403  static void saveData(std::ostream &os, UT_Vector2D v)
404  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
405  static void saveData(std::ostream &os, UT_Vector3D v)
406  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
407  UTwrite<fpreal64>(os, &v.z()); }
408  static void saveData(std::ostream &os, UT_Vector4D v)
409  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
410  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
411  static void saveData(std::ostream &os, UT_Matrix2D v)
413  static void saveData(std::ostream &os, UT_Matrix3D v)
415  static void saveData(std::ostream &os, UT_Matrix4D v)
417  static void saveData(std::ostream &os, UT_StringHolder s)
418  { UT_StringWrap(s).saveBinary(os); }
419  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
421  UT_OStringStream ostr;
422  if (s) s->save(ostr);
423  result = ostr.str();
424  saveData(os, result);
425  }
426  static void saveData(std::ostream &os, PRM_DataItemHandle s)
428  UT_OStringStream ostr;
429  if (s)
430  {
431  ostr << s->getDataTypeToken();
432  ostr << ":";
433  s->saveBinary(ostr);
434  }
435  result = ostr.str();
436  saveData(os, result);
437  }
438 
439 
440  void save(std::ostream &os) const
441  {
442  int32 v = version();
443  UTwrite(os, &v);
444  saveData(os, myQueryPoints);
445  saveData(os, myMeshPrims);
446  saveData(os, myType);
447  saveData(os, myAttrib);
448  saveData(os, myAsSolidAngle);
449  saveData(os, myNegate);
450  saveData(os, myFullAccuracy);
451  saveData(os, myAccuracyScale);
452 
453  }
454 
455  bool load(UT_IStream &is)
456  {
457  int32 v;
458  is.bread(&v, 1);
459  if (version() != v)
460  {
461  // Fail incompatible versions
462  return false;
463  }
464  loadData(is, myQueryPoints);
465  loadData(is, myMeshPrims);
466  loadData(is, myType);
467  loadData(is, myAttrib);
468  loadData(is, myAsSolidAngle);
469  loadData(is, myNegate);
470  loadData(is, myFullAccuracy);
471  loadData(is, myAccuracyScale);
472 
473  return true;
474  }
475 
476  const UT_StringHolder & getQueryPoints() const { return myQueryPoints; }
477  void setQueryPoints(const UT_StringHolder & val) { myQueryPoints = val; }
479  {
480  SOP_Node *thissop = cookparms.getNode();
481  if (!thissop) return getQueryPoints();
483  OP_Utils::evalOpParm(result, thissop, "querypoints", cookparms.getCookTime(), 0);
484  return result;
485  }
486  const UT_StringHolder & getMeshPrims() const { return myMeshPrims; }
487  void setMeshPrims(const UT_StringHolder & val) { myMeshPrims = val; }
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getMeshPrims();
493  OP_Utils::evalOpParm(result, thissop, "meshprims", cookparms.getCookTime(), 0);
494  return result;
495  }
496  Type getType() const { return Type(myType); }
497  void setType(Type val) { myType = int64(val); }
498  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getType();
502  int64 result;
503  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
504  return Type(result);
505  }
506  const UT_StringHolder & getAttrib() const { return myAttrib; }
507  void setAttrib(const UT_StringHolder & val) { myAttrib = val; }
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getAttrib();
513  OP_Utils::evalOpParm(result, thissop, "attrib", cookparms.getCookTime(), 0);
514  return result;
515  }
516  bool getAsSolidAngle() const { return myAsSolidAngle; }
517  void setAsSolidAngle(bool val) { myAsSolidAngle = val; }
518  bool opAsSolidAngle(const SOP_NodeVerb::CookParms &cookparms) const
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return getAsSolidAngle();
522  bool result;
523  OP_Utils::evalOpParm(result, thissop, "assolidangle", cookparms.getCookTime(), 0);
524  return result;
525  }
526  bool getNegate() const { return myNegate; }
527  void setNegate(bool val) { myNegate = val; }
528  bool opNegate(const SOP_NodeVerb::CookParms &cookparms) const
529  {
530  SOP_Node *thissop = cookparms.getNode();
531  if (!thissop) return getNegate();
532  bool result;
533  OP_Utils::evalOpParm(result, thissop, "negate", cookparms.getCookTime(), 0);
534  return result;
535  }
536  bool getFullAccuracy() const { return myFullAccuracy; }
537  void setFullAccuracy(bool val) { myFullAccuracy = val; }
538  bool opFullAccuracy(const SOP_NodeVerb::CookParms &cookparms) const
539  {
540  SOP_Node *thissop = cookparms.getNode();
541  if (!thissop) return getFullAccuracy();
542  bool result;
543  OP_Utils::evalOpParm(result, thissop, "fullaccuracy", cookparms.getCookTime(), 0);
544  return result;
545  }
546  fpreal64 getAccuracyScale() const { return myAccuracyScale; }
547  void setAccuracyScale(fpreal64 val) { myAccuracyScale = val; }
549  {
550  SOP_Node *thissop = cookparms.getNode();
551  if (!thissop) return getAccuracyScale();
553  OP_Utils::evalOpParm(result, thissop, "accuracyscale", cookparms.getCookTime(), 0);
554  return result;
555  }
556 
557 private:
558  UT_StringHolder myQueryPoints;
559  UT_StringHolder myMeshPrims;
560  int64 myType;
561  UT_StringHolder myAttrib;
562  bool myAsSolidAngle;
563  bool myNegate;
564  bool myFullAccuracy;
565  fpreal64 myAccuracyScale;
566 
567 };
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
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)
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
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
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 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)
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
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:1395
#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)
SYS_FORCE_INLINE UT_StringHolder getToken(Type enum_value)
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:97
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
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