HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_FeatherRayCore.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 
25 {
26 public:
27  static int version() { return 1; }
28 
30  {
31  myGroup = ""_UTsh;
32  myVertexattribs = ""_UTsh;
33  myPointattribs = ""_UTsh;
34  myCreateprimnumattribs = false;
35  myPrimnumattrib = "prim"_UTsh;
36  myCreateprimuvattribs = false;
37  myPrimuvattrib = "primuv"_UTsh;
38 
39  }
40 
41  explicit SOP_FeatherRayCoreParms(const SOP_FeatherRayCoreParms &) = default;
43  SOP_FeatherRayCoreParms(SOP_FeatherRayCoreParms &&) noexcept = default;
44  SOP_FeatherRayCoreParms &operator=(SOP_FeatherRayCoreParms &&) noexcept = default;
45 
46  ~SOP_FeatherRayCoreParms() override {}
47 
49  {
50  if (myGroup != src.myGroup) return false;
51  if (myVertexattribs != src.myVertexattribs) return false;
52  if (myPointattribs != src.myPointattribs) return false;
53  if (myCreateprimnumattribs != src.myCreateprimnumattribs) return false;
54  if (myPrimnumattrib != src.myPrimnumattrib) return false;
55  if (myCreateprimuvattribs != src.myCreateprimuvattribs) return false;
56  if (myPrimuvattrib != src.myPrimuvattrib) return false;
57 
58  return true;
59  }
61  {
62  return !operator==(src);
63  }
64 
65 
66 
67  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
68  {
69  myGroup = ""_UTsh;
70  if (true)
71  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
72  myVertexattribs = ""_UTsh;
73  if (true)
74  graph->evalOpParm(myVertexattribs, nodeidx, "vertexattribs", time, 0);
75  myPointattribs = ""_UTsh;
76  if (true)
77  graph->evalOpParm(myPointattribs, nodeidx, "pointattribs", time, 0);
78  myCreateprimnumattribs = false;
79  if (true)
80  graph->evalOpParm(myCreateprimnumattribs, nodeidx, "createprimnumattribs", time, 0);
81  myPrimnumattrib = "prim"_UTsh;
82  if (true)
83  graph->evalOpParm(myPrimnumattrib, nodeidx, "primnumattrib", time, 0);
84  myCreateprimuvattribs = false;
85  if (true)
86  graph->evalOpParm(myCreateprimuvattribs, nodeidx, "createprimuvattribs", time, 0);
87  myPrimuvattrib = "primuv"_UTsh;
88  if (true)
89  graph->evalOpParm(myPrimuvattrib, nodeidx, "primuvattrib", time, 0);
90 
91  }
92 
93 
94  void loadFromOpSubclass(const LoadParms &loadparms) override
95  {
96  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
97  }
98 
99 
100  void copyFrom(const OP_NodeParms *src) override
101  {
102  *this = *((const SOP_FeatherRayCoreParms *)src);
103  }
104 
105  template <typename T>
106  void
107  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
108  {
109  if (idx.size() < 1)
110  return;
111  UT_ASSERT(idx.size() == instance.size()+1);
112  if (idx.size() != instance.size()+1)
113  return;
114  switch (idx[0])
115  {
116  case 0:
117  coerceValue(value, myGroup);
118  break;
119  case 1:
120  coerceValue(value, myVertexattribs);
121  break;
122  case 2:
123  coerceValue(value, myPointattribs);
124  break;
125  case 3:
126  coerceValue(value, myCreateprimnumattribs);
127  break;
128  case 4:
129  coerceValue(value, myPrimnumattrib);
130  break;
131  case 5:
132  coerceValue(value, myCreateprimuvattribs);
133  break;
134  case 6:
135  coerceValue(value, myPrimuvattrib);
136  break;
137 
138  }
139  }
140 
141  bool isParmColorRamp(exint idx) const override
142  {
143  switch (idx)
144  {
145 
146  }
147  return false;
148  }
149 
150  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
151  { doGetParmValue(idx, instance, value); }
152  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
153  { doGetParmValue(idx, instance, value); }
154  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
155  { doGetParmValue(idx, instance, value); }
156  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
157  { doGetParmValue(idx, instance, value); }
158  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
159  { doGetParmValue(idx, instance, value); }
160  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
161  { doGetParmValue(idx, instance, value); }
162  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
163  { doGetParmValue(idx, instance, value); }
164  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
165  { doGetParmValue(idx, instance, value); }
166  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
167  { doGetParmValue(idx, instance, value); }
168  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
169  { doGetParmValue(idx, instance, value); }
170  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
171  { doGetParmValue(idx, instance, value); }
172 
173  template <typename T>
174  void
175  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
176  {
177  if (idx.size() < 1)
178  return;
179  UT_ASSERT(idx.size() == instance.size()+1);
180  if (idx.size() != instance.size()+1)
181  return;
182  switch (idx[0])
183  {
184  case 0:
185  coerceValue(myGroup, ( ( value ) ));
186  break;
187  case 1:
188  coerceValue(myVertexattribs, ( ( value ) ));
189  break;
190  case 2:
191  coerceValue(myPointattribs, ( ( value ) ));
192  break;
193  case 3:
194  coerceValue(myCreateprimnumattribs, ( ( value ) ));
195  break;
196  case 4:
197  coerceValue(myPrimnumattrib, ( ( value ) ));
198  break;
199  case 5:
200  coerceValue(myCreateprimuvattribs, ( ( value ) ));
201  break;
202  case 6:
203  coerceValue(myPrimuvattrib, ( ( value ) ));
204  break;
205 
206  }
207  }
208 
209  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
210  { doSetParmValue(idx, instance, value); }
211  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
212  { doSetParmValue(idx, instance, value); }
213  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
214  { doSetParmValue(idx, instance, value); }
215  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
216  { doSetParmValue(idx, instance, value); }
217  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
218  { doSetParmValue(idx, instance, value); }
219  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
220  { doSetParmValue(idx, instance, value); }
221  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
222  { doSetParmValue(idx, instance, value); }
223  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
224  { doSetParmValue(idx, instance, value); }
225  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
226  { doSetParmValue(idx, instance, value); }
227  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
228  { doSetParmValue(idx, instance, value); }
229  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
230  { doSetParmValue(idx, instance, value); }
231 
232  exint getNestNumParms(TempIndex idx) const override
233  {
234  if (idx.size() == 0)
235  return 7;
236  switch (idx[0])
237  {
238 
239  }
240  // Invalid
241  return 0;
242  }
243 
244  const char *getNestParmName(TempIndex fieldnum) const override
245  {
246  if (fieldnum.size() < 1)
247  return 0;
248  switch (fieldnum[0])
249  {
250  case 0:
251  return "group";
252  case 1:
253  return "vertexattribs";
254  case 2:
255  return "pointattribs";
256  case 3:
257  return "createprimnumattribs";
258  case 4:
259  return "primnumattrib";
260  case 5:
261  return "createprimuvattribs";
262  case 6:
263  return "primuvattrib";
264 
265  }
266  return 0;
267  }
268 
269  ParmType getNestParmType(TempIndex fieldnum) const override
270  {
271  if (fieldnum.size() < 1)
272  return PARM_UNSUPPORTED;
273  switch (fieldnum[0])
274  {
275  case 0:
276  return PARM_STRING;
277  case 1:
278  return PARM_STRING;
279  case 2:
280  return PARM_STRING;
281  case 3:
282  return PARM_INTEGER;
283  case 4:
284  return PARM_STRING;
285  case 5:
286  return PARM_INTEGER;
287  case 6:
288  return PARM_STRING;
289 
290  }
291  return PARM_UNSUPPORTED;
292  }
293 
294  // Boiler plate to load individual types.
295  static void loadData(UT_IStream &is, int64 &v)
296  { is.bread(&v, 1); }
297  static void loadData(UT_IStream &is, bool &v)
298  { int64 iv; is.bread(&iv, 1); v = iv; }
299  static void loadData(UT_IStream &is, fpreal64 &v)
300  { is.bread<fpreal64>(&v, 1); }
301  static void loadData(UT_IStream &is, UT_Vector2D &v)
302  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
303  static void loadData(UT_IStream &is, UT_Vector3D &v)
304  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
305  is.bread<fpreal64>(&v.z(), 1); }
306  static void loadData(UT_IStream &is, UT_Vector4D &v)
307  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
308  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
309  static void loadData(UT_IStream &is, UT_Matrix2D &v)
310  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
311  static void loadData(UT_IStream &is, UT_Matrix3D &v)
312  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
313  static void loadData(UT_IStream &is, UT_Matrix4D &v)
314  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
315  static void loadData(UT_IStream &is, UT_Vector2I &v)
316  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
317  static void loadData(UT_IStream &is, UT_Vector3I &v)
318  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
319  is.bread<int64>(&v.z(), 1); }
320  static void loadData(UT_IStream &is, UT_Vector4I &v)
321  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
322  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
324  { is.bread(v); }
326  { UT_StringHolder rampdata;
327  loadData(is, rampdata);
328  if (rampdata.isstring())
329  {
330  v.reset(new UT_Ramp());
331  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
332  v->load(istr);
333  }
334  else v.reset();
335  }
338  loadData(is, data);
339  if (data.isstring())
340  {
341  // Find the data type.
342  const char *colon = UT_StringWrap(data).findChar(':');
343  if (colon)
344  {
345  int typelen = colon - data.buffer();
347  type.strncpy(data.buffer(), typelen);
348  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
349 
350  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
351  }
352  }
353  else v.reset();
354  }
355 
356  static void saveData(std::ostream &os, int64 v)
357  { UTwrite(os, &v); }
358  static void saveData(std::ostream &os, bool v)
359  { int64 iv = v; UTwrite(os, &iv); }
360  static void saveData(std::ostream &os, fpreal64 v)
361  { UTwrite<fpreal64>(os, &v); }
362  static void saveData(std::ostream &os, UT_Vector2D v)
363  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
364  static void saveData(std::ostream &os, UT_Vector3D v)
365  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
366  UTwrite<fpreal64>(os, &v.z()); }
367  static void saveData(std::ostream &os, UT_Vector4D v)
368  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
369  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
370  static void saveData(std::ostream &os, UT_Matrix2D v)
372  static void saveData(std::ostream &os, UT_Matrix3D v)
374  static void saveData(std::ostream &os, UT_Matrix4D v)
376  static void saveData(std::ostream &os, UT_StringHolder s)
377  { UT_StringWrap(s).saveBinary(os); }
378  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
380  UT_OStringStream ostr;
381  if (s) s->save(ostr);
382  result = ostr.str();
383  saveData(os, result);
384  }
385  static void saveData(std::ostream &os, PRM_DataItemHandle s)
387  UT_OStringStream ostr;
388  if (s)
389  {
390  ostr << s->getDataTypeToken();
391  ostr << ":";
392  s->saveBinary(ostr);
393  }
394  result = ostr.str();
395  saveData(os, result);
396  }
397 
398 
399  void save(std::ostream &os) const
400  {
401  int32 v = version();
402  UTwrite(os, &v);
403  saveData(os, myGroup);
404  saveData(os, myVertexattribs);
405  saveData(os, myPointattribs);
406  saveData(os, myCreateprimnumattribs);
407  saveData(os, myPrimnumattrib);
408  saveData(os, myCreateprimuvattribs);
409  saveData(os, myPrimuvattrib);
410 
411  }
412 
413  bool load(UT_IStream &is)
414  {
415  int32 v;
416  is.bread(&v, 1);
417  if (version() != v)
418  {
419  // Fail incompatible versions
420  return false;
421  }
422  loadData(is, myGroup);
423  loadData(is, myVertexattribs);
424  loadData(is, myPointattribs);
425  loadData(is, myCreateprimnumattribs);
426  loadData(is, myPrimnumattrib);
427  loadData(is, myCreateprimuvattribs);
428  loadData(is, myPrimuvattrib);
429 
430  return true;
431  }
432 
433  const UT_StringHolder & getGroup() const { return myGroup; }
434  void setGroup(const UT_StringHolder & val) { myGroup = val; }
436  {
437  SOP_Node *thissop = cookparms.getNode();
438  if (!thissop) return getGroup();
440  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
441  return result;
442  }
443  const UT_StringHolder & getVertexattribs() const { return myVertexattribs; }
444  void setVertexattribs(const UT_StringHolder & val) { myVertexattribs = val; }
446  {
447  SOP_Node *thissop = cookparms.getNode();
448  if (!thissop) return getVertexattribs();
450  OP_Utils::evalOpParm(result, thissop, "vertexattribs", cookparms.getCookTime(), 0);
451  return result;
452  }
453  const UT_StringHolder & getPointattribs() const { return myPointattribs; }
454  void setPointattribs(const UT_StringHolder & val) { myPointattribs = val; }
456  {
457  SOP_Node *thissop = cookparms.getNode();
458  if (!thissop) return getPointattribs();
460  OP_Utils::evalOpParm(result, thissop, "pointattribs", cookparms.getCookTime(), 0);
461  return result;
462  }
463  bool getCreateprimnumattribs() const { return myCreateprimnumattribs; }
464  void setCreateprimnumattribs(bool val) { myCreateprimnumattribs = val; }
465  bool opCreateprimnumattribs(const SOP_NodeVerb::CookParms &cookparms) const
466  {
467  SOP_Node *thissop = cookparms.getNode();
468  if (!thissop) return getCreateprimnumattribs();
469  bool result;
470  OP_Utils::evalOpParm(result, thissop, "createprimnumattribs", cookparms.getCookTime(), 0);
471  return result;
472  }
473  const UT_StringHolder & getPrimnumattrib() const { return myPrimnumattrib; }
474  void setPrimnumattrib(const UT_StringHolder & val) { myPrimnumattrib = val; }
476  {
477  SOP_Node *thissop = cookparms.getNode();
478  if (!thissop) return getPrimnumattrib();
480  OP_Utils::evalOpParm(result, thissop, "primnumattrib", cookparms.getCookTime(), 0);
481  return result;
482  }
483  bool getCreateprimuvattribs() const { return myCreateprimuvattribs; }
484  void setCreateprimuvattribs(bool val) { myCreateprimuvattribs = val; }
485  bool opCreateprimuvattribs(const SOP_NodeVerb::CookParms &cookparms) const
486  {
487  SOP_Node *thissop = cookparms.getNode();
488  if (!thissop) return getCreateprimuvattribs();
489  bool result;
490  OP_Utils::evalOpParm(result, thissop, "createprimuvattribs", cookparms.getCookTime(), 0);
491  return result;
492  }
493  const UT_StringHolder & getPrimuvattrib() const { return myPrimuvattrib; }
494  void setPrimuvattrib(const UT_StringHolder & val) { myPrimuvattrib = val; }
496  {
497  SOP_Node *thissop = cookparms.getNode();
498  if (!thissop) return getPrimuvattrib();
500  OP_Utils::evalOpParm(result, thissop, "primuvattrib", cookparms.getCookTime(), 0);
501  return result;
502  }
503 
504 private:
505  UT_StringHolder myGroup;
506  UT_StringHolder myVertexattribs;
507  UT_StringHolder myPointattribs;
508  bool myCreateprimnumattribs;
509  UT_StringHolder myPrimnumattrib;
510  bool myCreateprimuvattribs;
511  UT_StringHolder myPrimuvattrib;
512 
513 };
static void loadData(UT_IStream &is, UT_Vector2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void saveData(std::ostream &os, UT_Vector2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void setGroup(const UT_StringHolder &val)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void setPrimnumattrib(const UT_StringHolder &val)
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
bool opCreateprimuvattribs(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void setPrimuvattrib(const UT_StringHolder &val)
exint getNestNumParms(TempIndex idx) const override
SYS_FORCE_INLINE const char * buffer() const
static void loadData(UT_IStream &is, UT_Matrix2D &v)
GLdouble s
Definition: glad.h:3009
static void saveData(std::ostream &os, UT_Matrix2D v)
static void saveData(std::ostream &os, UT_Vector4D v)
An output stream object that owns its own string buffer storage.
bool opCreateprimnumattribs(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, int64 &v)
**But if you need a result
Definition: thread.h:613
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
exint nodeIdx() const
Definition: OP_NodeParms.h:95
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
UT_StringHolder opVertexattribs(const SOP_NodeVerb::CookParms &cookparms) const
UT_StringHolder opPointattribs(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
static void loadData(UT_IStream &is, UT_Matrix3D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
double fpreal64
Definition: SYS_Types.h:201
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void saveData(std::ostream &os, UT_Matrix4D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, bool &v)
exint length() const
static void saveData(std::ostream &os, PRM_DataItemHandle s)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
void copyFrom(const OP_NodeParms *src) override
const UT_StringHolder & getGroup() const
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void saveData(std::ostream &os, UT_StringHolder s)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getPointattribs() const
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, int64 v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
static void loadData(UT_IStream &is, UT_Vector3I &v)
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
GT_API const UT_StringHolder version
static void loadData(UT_IStream &is, UT_Vector3D &v)
void setPointattribs(const UT_StringHolder &val)
bool operator==(const SOP_FeatherRayCoreParms &src) const
UT_StringHolder opPrimnumattrib(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void loadFromOpSubclass(const LoadParms &loadparms) override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
fpreal64 fpreal
Definition: SYS_Types.h:277
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
static void loadData(UT_IStream &is, UT_Vector2I &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:92
static void loadData(UT_IStream &is, UT_Matrix4D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void saveData(std::ostream &os, UT_Vector3D v)
void setVertexattribs(const UT_StringHolder &val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
UT_StringHolder opPrimuvattrib(const SOP_NodeVerb::CookParms &cookparms) const
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
bool operator!=(const SOP_FeatherRayCoreParms &src) const
const UT_StringHolder & getPrimnumattrib() const
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
const char * findChar(int c) const
Definition: UT_String.h:1395
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void saveData(std::ostream &os, UT_Matrix3D v)
Definition: core.h:1131
bool isParmColorRamp(exint idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GLboolean r
Definition: glcorearb.h:1222
const UT_StringHolder & getPrimuvattrib() const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, bool v)
ParmType getNestParmType(TempIndex fieldnum) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
const UT_StringHolder & getVertexattribs() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
type
Definition: core.h:1059
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:97
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void saveData(std::ostream &os, fpreal64 v)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
void save(std::ostream &os) const