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