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 <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 
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 
59  if (baseGetSignature() != src.baseGetSignature()) return false;
60 
61  return true;
62  }
64  {
65  return !operator==(src);
66  }
67 
68 
69 
70  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
71  {
72  myGroup = ""_UTsh;
73  if (true)
74  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
75  myVertexattribs = ""_UTsh;
76  if (true)
77  graph->evalOpParm(myVertexattribs, nodeidx, "vertexattribs", time, graph->isDirect()?nullptr:depnode);
78  myPointattribs = ""_UTsh;
79  if (true)
80  graph->evalOpParm(myPointattribs, nodeidx, "pointattribs", time, graph->isDirect()?nullptr:depnode);
81  myCreateprimnumattribs = false;
82  if (true)
83  graph->evalOpParm(myCreateprimnumattribs, nodeidx, "createprimnumattribs", time, graph->isDirect()?nullptr:depnode);
84  myPrimnumattrib = "prim"_UTsh;
85  if (true)
86  graph->evalOpParm(myPrimnumattrib, nodeidx, "primnumattrib", time, graph->isDirect()?nullptr:depnode);
87  myCreateprimuvattribs = false;
88  if (true)
89  graph->evalOpParm(myCreateprimuvattribs, nodeidx, "createprimuvattribs", time, graph->isDirect()?nullptr:depnode);
90  myPrimuvattrib = "primuv"_UTsh;
91  if (true)
92  graph->evalOpParm(myPrimuvattrib, nodeidx, "primuvattrib", time, graph->isDirect()?nullptr:depnode);
93 
94  }
95 
96 
97  void loadFromOpSubclass(const LoadParms &loadparms) override
98  {
99  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
100  }
101 
102 
103  void copyFrom(const OP_NodeParms *src) override
104  {
105  *this = *((const SOP_FeatherRayCoreParms *)src);
106  }
107 
108  template <typename T>
109  void
110  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
111  {
112  if (idx.size() < 1)
113  return;
114  UT_ASSERT(idx.size() == instance.size()+1);
115  if (idx.size() != instance.size()+1)
116  return;
117  switch (idx[0])
118  {
119  case 0:
120  coerceValue(value, myGroup);
121  break;
122  case 1:
123  coerceValue(value, myVertexattribs);
124  break;
125  case 2:
126  coerceValue(value, myPointattribs);
127  break;
128  case 3:
129  coerceValue(value, myCreateprimnumattribs);
130  break;
131  case 4:
132  coerceValue(value, myPrimnumattrib);
133  break;
134  case 5:
135  coerceValue(value, myCreateprimuvattribs);
136  break;
137  case 6:
138  coerceValue(value, myPrimuvattrib);
139  break;
140 
141  }
142  }
143 
144  bool isParmColorRamp(exint idx) const override
145  {
146  switch (idx)
147  {
148 
149  }
150  return false;
151  }
152 
153  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
154  { doGetParmValue(idx, instance, value); }
155  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
174  { doGetParmValue(idx, instance, value); }
175 
176  template <typename T>
177  void
178  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
179  {
180  if (idx.size() < 1)
181  return;
182  UT_ASSERT(idx.size() == instance.size()+1);
183  if (idx.size() != instance.size()+1)
184  return;
185  switch (idx[0])
186  {
187  case 0:
188  coerceValue(myGroup, ( ( value ) ));
189  break;
190  case 1:
191  coerceValue(myVertexattribs, ( ( value ) ));
192  break;
193  case 2:
194  coerceValue(myPointattribs, ( ( value ) ));
195  break;
196  case 3:
197  coerceValue(myCreateprimnumattribs, ( ( value ) ));
198  break;
199  case 4:
200  coerceValue(myPrimnumattrib, ( ( value ) ));
201  break;
202  case 5:
203  coerceValue(myCreateprimuvattribs, ( ( value ) ));
204  break;
205  case 6:
206  coerceValue(myPrimuvattrib, ( ( value ) ));
207  break;
208 
209  }
210  }
211 
212  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
213  { doSetParmValue(idx, instance, value); }
214  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
215  { doSetParmValue(idx, instance, value); }
216  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
217  { doSetParmValue(idx, instance, value); }
218  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
219  { doSetParmValue(idx, instance, value); }
220  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
233  { doSetParmValue(idx, instance, value); }
234 
235  exint getNestNumParms(TempIndex idx) const override
236  {
237  if (idx.size() == 0)
238  return 7;
239  switch (idx[0])
240  {
241 
242  }
243  // Invalid
244  return 0;
245  }
246 
247  const char *getNestParmName(TempIndex fieldnum) const override
248  {
249  if (fieldnum.size() < 1)
250  return 0;
251  switch (fieldnum[0])
252  {
253  case 0:
254  return "group";
255  case 1:
256  return "vertexattribs";
257  case 2:
258  return "pointattribs";
259  case 3:
260  return "createprimnumattribs";
261  case 4:
262  return "primnumattrib";
263  case 5:
264  return "createprimuvattribs";
265  case 6:
266  return "primuvattrib";
267 
268  }
269  return 0;
270  }
271 
272  ParmType getNestParmType(TempIndex fieldnum) const override
273  {
274  if (fieldnum.size() < 1)
275  return PARM_UNSUPPORTED;
276  switch (fieldnum[0])
277  {
278  case 0:
279  return PARM_STRING;
280  case 1:
281  return PARM_STRING;
282  case 2:
283  return PARM_STRING;
284  case 3:
285  return PARM_INTEGER;
286  case 4:
287  return PARM_STRING;
288  case 5:
289  return PARM_INTEGER;
290  case 6:
291  return PARM_STRING;
292 
293  }
294  return PARM_UNSUPPORTED;
295  }
296 
297  // Boiler plate to load individual types.
298  static void loadData(UT_IStream &is, int64 &v)
299  { is.bread(&v, 1); }
300  static void loadData(UT_IStream &is, bool &v)
301  { int64 iv; is.bread(&iv, 1); v = iv; }
302  static void loadData(UT_IStream &is, fpreal64 &v)
303  { is.bread<fpreal64>(&v, 1); }
304  static void loadData(UT_IStream &is, UT_Vector2D &v)
305  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
306  static void loadData(UT_IStream &is, UT_Vector3D &v)
307  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
308  is.bread<fpreal64>(&v.z(), 1); }
309  static void loadData(UT_IStream &is, UT_Vector4D &v)
310  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
311  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
312  static void loadData(UT_IStream &is, UT_Matrix2D &v)
313  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
314  static void loadData(UT_IStream &is, UT_Matrix3D &v)
315  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
316  static void loadData(UT_IStream &is, UT_Matrix4D &v)
317  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
318  static void loadData(UT_IStream &is, UT_Vector2I &v)
319  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
320  static void loadData(UT_IStream &is, UT_Vector3I &v)
321  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
322  is.bread<int64>(&v.z(), 1); }
323  static void loadData(UT_IStream &is, UT_Vector4I &v)
324  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
325  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
327  { is.bread(v); }
329  { UT_StringHolder rampdata;
330  loadData(is, rampdata);
331  if (rampdata.isstring())
332  {
333  v.reset(new UT_Ramp());
334  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
335  v->load(istr);
336  }
337  else v.reset();
338  }
341  loadData(is, data);
342  if (data.isstring())
343  {
344  // Find the data type.
345  const char *colon = UT_StringWrap(data).findChar(':');
346  if (colon)
347  {
348  int typelen = colon - data.buffer();
350  type.strncpy(data.buffer(), typelen);
351  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
352 
353  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
354  }
355  }
356  else v.reset();
357  }
358 
359  static void saveData(std::ostream &os, int64 v)
360  { UTwrite(os, &v); }
361  static void saveData(std::ostream &os, bool v)
362  { int64 iv = v; UTwrite(os, &iv); }
363  static void saveData(std::ostream &os, fpreal64 v)
364  { UTwrite<fpreal64>(os, &v); }
365  static void saveData(std::ostream &os, UT_Vector2D v)
366  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
367  static void saveData(std::ostream &os, UT_Vector3D v)
368  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
369  UTwrite<fpreal64>(os, &v.z()); }
370  static void saveData(std::ostream &os, UT_Vector4D v)
371  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
372  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
373  static void saveData(std::ostream &os, UT_Matrix2D v)
375  static void saveData(std::ostream &os, UT_Matrix3D v)
377  static void saveData(std::ostream &os, UT_Matrix4D v)
379  static void saveData(std::ostream &os, UT_StringHolder s)
380  { UT_StringWrap(s).saveBinary(os); }
381  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
383  UT_OStringStream ostr;
384  if (s) s->save(ostr);
385  result = ostr.str();
386  saveData(os, result);
387  }
388  static void saveData(std::ostream &os, PRM_DataItemHandle s)
390  UT_OStringStream ostr;
391  if (s)
392  {
393  ostr << s->getDataTypeToken();
394  ostr << ":";
395  s->saveBinary(ostr);
396  }
397  result = ostr.str();
398  saveData(os, result);
399  }
400 
401 
402  void save(std::ostream &os) const
403  {
404  int32 v = version();
405  UTwrite(os, &v);
406  saveData(os, myGroup);
407  saveData(os, myVertexattribs);
408  saveData(os, myPointattribs);
409  saveData(os, myCreateprimnumattribs);
410  saveData(os, myPrimnumattrib);
411  saveData(os, myCreateprimuvattribs);
412  saveData(os, myPrimuvattrib);
413 
414  }
415 
416  bool load(UT_IStream &is)
417  {
418  int32 v;
419  is.bread(&v, 1);
420  if (version() != v)
421  {
422  // Fail incompatible versions
423  return false;
424  }
425  loadData(is, myGroup);
426  loadData(is, myVertexattribs);
427  loadData(is, myPointattribs);
428  loadData(is, myCreateprimnumattribs);
429  loadData(is, myPrimnumattrib);
430  loadData(is, myCreateprimuvattribs);
431  loadData(is, myPrimuvattrib);
432 
433  return true;
434  }
435 
436  const UT_StringHolder & getGroup() const { return myGroup; }
437  void setGroup(const UT_StringHolder & val) { myGroup = val; }
439  {
440  SOP_Node *thissop = cookparms.getNode();
441  if (!thissop) return getGroup();
443  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
444  return result;
445  }
446  const UT_StringHolder & getVertexattribs() const { return myVertexattribs; }
447  void setVertexattribs(const UT_StringHolder & val) { myVertexattribs = val; }
449  {
450  SOP_Node *thissop = cookparms.getNode();
451  if (!thissop) return getVertexattribs();
453  OP_Utils::evalOpParm(result, thissop, "vertexattribs", cookparms.getCookTime(), 0);
454  return result;
455  }
456  const UT_StringHolder & getPointattribs() const { return myPointattribs; }
457  void setPointattribs(const UT_StringHolder & val) { myPointattribs = val; }
459  {
460  SOP_Node *thissop = cookparms.getNode();
461  if (!thissop) return getPointattribs();
463  OP_Utils::evalOpParm(result, thissop, "pointattribs", cookparms.getCookTime(), 0);
464  return result;
465  }
466  bool getCreateprimnumattribs() const { return myCreateprimnumattribs; }
467  void setCreateprimnumattribs(bool val) { myCreateprimnumattribs = val; }
468  bool opCreateprimnumattribs(const SOP_NodeVerb::CookParms &cookparms) const
469  {
470  SOP_Node *thissop = cookparms.getNode();
471  if (!thissop) return getCreateprimnumattribs();
472  bool result;
473  OP_Utils::evalOpParm(result, thissop, "createprimnumattribs", cookparms.getCookTime(), 0);
474  return result;
475  }
476  const UT_StringHolder & getPrimnumattrib() const { return myPrimnumattrib; }
477  void setPrimnumattrib(const UT_StringHolder & val) { myPrimnumattrib = val; }
479  {
480  SOP_Node *thissop = cookparms.getNode();
481  if (!thissop) return getPrimnumattrib();
483  OP_Utils::evalOpParm(result, thissop, "primnumattrib", cookparms.getCookTime(), 0);
484  return result;
485  }
486  bool getCreateprimuvattribs() const { return myCreateprimuvattribs; }
487  void setCreateprimuvattribs(bool val) { myCreateprimuvattribs = val; }
488  bool opCreateprimuvattribs(const SOP_NodeVerb::CookParms &cookparms) const
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getCreateprimuvattribs();
492  bool result;
493  OP_Utils::evalOpParm(result, thissop, "createprimuvattribs", cookparms.getCookTime(), 0);
494  return result;
495  }
496  const UT_StringHolder & getPrimuvattrib() const { return myPrimuvattrib; }
497  void setPrimuvattrib(const UT_StringHolder & val) { myPrimuvattrib = val; }
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getPrimuvattrib();
503  OP_Utils::evalOpParm(result, thissop, "primuvattrib", cookparms.getCookTime(), 0);
504  return result;
505  }
506 
507 private:
508  UT_StringHolder myGroup;
509  UT_StringHolder myVertexattribs;
510  UT_StringHolder myPointattribs;
511  bool myCreateprimnumattribs;
512  UT_StringHolder myPrimnumattrib;
513  bool myCreateprimuvattribs;
514  UT_StringHolder myPrimuvattrib;
515 
516 };
static void loadData(UT_IStream &is, UT_Vector2D &v)
type
Definition: core.h:556
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:403
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)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:495
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:63
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
GLsizei const GLfloat * value
Definition: glcorearb.h:824
bool opCreateprimuvattribs(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:105
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:669
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:622
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
exint nodeIdx() const
Definition: OP_NodeParms.h:103
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:493
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:426
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:497
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:102
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:306
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:318
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:283
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:107
static void loadData(UT_IStream &is, UT_Vector2I &v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
static void loadData(UT_IStream &is, UT_Matrix4D &v)
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:499
static void saveData(std::ostream &os, UT_Vector3D v)
void setVertexattribs(const UT_StringHolder &val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:302
#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:432
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:1421
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:165
static void saveData(std::ostream &os, UT_Matrix3D v)
bool isParmColorRamp(exint idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
GLboolean r
Definition: glcorearb.h:1222
exint bread(uint8 *buffer, exint asize=1)
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:667
const UT_StringHolder & getVertexattribs() const
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:428
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:665
void save(std::ostream &os) const