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