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