HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_MLExampleSerializePoint.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  myInputDimensionAttribute = "inputdimension"_UTsh;
32  myTargetDimensionAttribute = "targetdimension"_UTsh;
33  mySerialAttribute = "value"_UTsh;
34  myInputPointAttributes = "value"_UTsh;
35  myTargetPointAttributes = "value"_UTsh;
36 
37  }
38 
43 
45 
47  {
48  if (myInputDimensionAttribute != src.myInputDimensionAttribute) return false;
49  if (myTargetDimensionAttribute != src.myTargetDimensionAttribute) return false;
50  if (mySerialAttribute != src.mySerialAttribute) return false;
51  if (myInputPointAttributes != src.myInputPointAttributes) return false;
52  if (myTargetPointAttributes != src.myTargetPointAttributes) return false;
53 
54 
55  if (baseGetSignature() != src.baseGetSignature()) return false;
56 
57  return true;
58  }
60  {
61  return !operator==(src);
62  }
63 
64 
65 
66  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
67  {
68  myInputDimensionAttribute = "inputdimension"_UTsh;
69  if (true)
70  graph->evalOpParm(myInputDimensionAttribute, nodeidx, "inputdimensionattribute", time, graph->isDirect()?nullptr:depnode);
71  myTargetDimensionAttribute = "targetdimension"_UTsh;
72  if (true)
73  graph->evalOpParm(myTargetDimensionAttribute, nodeidx, "targetdimensionattribute", time, graph->isDirect()?nullptr:depnode);
74  mySerialAttribute = "value"_UTsh;
75  if (true)
76  graph->evalOpParm(mySerialAttribute, nodeidx, "serialattribute", time, graph->isDirect()?nullptr:depnode);
77  myInputPointAttributes = "value"_UTsh;
78  if (true)
79  graph->evalOpParm(myInputPointAttributes, nodeidx, "inputpointattributes", time, graph->isDirect()?nullptr:depnode);
80  myTargetPointAttributes = "value"_UTsh;
81  if (true)
82  graph->evalOpParm(myTargetPointAttributes, nodeidx, "targetpointattributes", time, graph->isDirect()?nullptr:depnode);
83 
84  }
85 
86 
87  void loadFromOpSubclass(const LoadParms &loadparms) override
88  {
89  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
90  }
91 
92 
93  void copyFrom(const OP_NodeParms *src) override
94  {
95  *this = *((const SOP_MLExampleSerializePointParms *)src);
96  }
97 
98  template <typename T>
99  void
100  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
101  {
102  if (idx.size() < 1)
103  return;
104  UT_ASSERT(idx.size() == instance.size()+1);
105  if (idx.size() != instance.size()+1)
106  return;
107  switch (idx[0])
108  {
109  case 0:
110  coerceValue(value, myInputDimensionAttribute);
111  break;
112  case 1:
113  coerceValue(value, myTargetDimensionAttribute);
114  break;
115  case 2:
116  coerceValue(value, mySerialAttribute);
117  break;
118  case 3:
119  coerceValue(value, myInputPointAttributes);
120  break;
121  case 4:
122  coerceValue(value, myTargetPointAttributes);
123  break;
124 
125  }
126  }
127 
128  bool isParmColorRamp(exint idx) const override
129  {
130  switch (idx)
131  {
132 
133  }
134  return false;
135  }
136 
137  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
138  { doGetParmValue(idx, instance, value); }
139  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
140  { doGetParmValue(idx, instance, value); }
141  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
142  { doGetParmValue(idx, instance, value); }
143  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
144  { doGetParmValue(idx, instance, value); }
145  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
146  { doGetParmValue(idx, instance, value); }
147  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
148  { doGetParmValue(idx, instance, value); }
149  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
150  { doGetParmValue(idx, instance, value); }
151  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
152  { doGetParmValue(idx, instance, value); }
153  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
154  { doGetParmValue(idx, instance, value); }
155  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
156  { doGetParmValue(idx, instance, value); }
157  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
158  { doGetParmValue(idx, instance, value); }
159 
160  template <typename T>
161  void
162  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
163  {
164  if (idx.size() < 1)
165  return;
166  UT_ASSERT(idx.size() == instance.size()+1);
167  if (idx.size() != instance.size()+1)
168  return;
169  switch (idx[0])
170  {
171  case 0:
172  coerceValue(myInputDimensionAttribute, ( ( value ) ));
173  break;
174  case 1:
175  coerceValue(myTargetDimensionAttribute, ( ( value ) ));
176  break;
177  case 2:
178  coerceValue(mySerialAttribute, ( ( value ) ));
179  break;
180  case 3:
181  coerceValue(myInputPointAttributes, ( ( value ) ));
182  break;
183  case 4:
184  coerceValue(myTargetPointAttributes, ( ( value ) ));
185  break;
186 
187  }
188  }
189 
190  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
191  { doSetParmValue(idx, instance, value); }
192  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
193  { doSetParmValue(idx, instance, value); }
194  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
195  { doSetParmValue(idx, instance, value); }
196  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
197  { doSetParmValue(idx, instance, value); }
198  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
199  { doSetParmValue(idx, instance, value); }
200  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
201  { doSetParmValue(idx, instance, value); }
202  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
203  { doSetParmValue(idx, instance, value); }
204  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
205  { doSetParmValue(idx, instance, value); }
206  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
207  { doSetParmValue(idx, instance, value); }
208  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
209  { doSetParmValue(idx, instance, value); }
210  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
211  { doSetParmValue(idx, instance, value); }
212 
213  exint getNestNumParms(TempIndex idx) const override
214  {
215  if (idx.size() == 0)
216  return 5;
217  switch (idx[0])
218  {
219 
220  }
221  // Invalid
222  return 0;
223  }
224 
225  const char *getNestParmName(TempIndex fieldnum) const override
226  {
227  if (fieldnum.size() < 1)
228  return 0;
229  switch (fieldnum[0])
230  {
231  case 0:
232  return "inputdimensionattribute";
233  case 1:
234  return "targetdimensionattribute";
235  case 2:
236  return "serialattribute";
237  case 3:
238  return "inputpointattributes";
239  case 4:
240  return "targetpointattributes";
241 
242  }
243  return 0;
244  }
245 
246  ParmType getNestParmType(TempIndex fieldnum) const override
247  {
248  if (fieldnum.size() < 1)
249  return PARM_UNSUPPORTED;
250  switch (fieldnum[0])
251  {
252  case 0:
253  return PARM_STRING;
254  case 1:
255  return PARM_STRING;
256  case 2:
257  return PARM_STRING;
258  case 3:
259  return PARM_STRING;
260  case 4:
261  return PARM_STRING;
262 
263  }
264  return PARM_UNSUPPORTED;
265  }
266 
267  // Boiler plate to load individual types.
268  static void loadData(UT_IStream &is, int64 &v)
269  { is.bread(&v, 1); }
270  static void loadData(UT_IStream &is, bool &v)
271  { int64 iv; is.bread(&iv, 1); v = iv; }
272  static void loadData(UT_IStream &is, fpreal64 &v)
273  { is.bread<fpreal64>(&v, 1); }
274  static void loadData(UT_IStream &is, UT_Vector2D &v)
275  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
276  static void loadData(UT_IStream &is, UT_Vector3D &v)
277  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
278  is.bread<fpreal64>(&v.z(), 1); }
279  static void loadData(UT_IStream &is, UT_Vector4D &v)
280  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
281  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
282  static void loadData(UT_IStream &is, UT_Matrix2D &v)
283  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
284  static void loadData(UT_IStream &is, UT_Matrix3D &v)
285  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
286  static void loadData(UT_IStream &is, UT_Matrix4D &v)
287  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
288  static void loadData(UT_IStream &is, UT_Vector2I &v)
289  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
290  static void loadData(UT_IStream &is, UT_Vector3I &v)
291  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
292  is.bread<int64>(&v.z(), 1); }
293  static void loadData(UT_IStream &is, UT_Vector4I &v)
294  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
295  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
297  { is.bread(v); }
299  { UT_StringHolder rampdata;
300  loadData(is, rampdata);
301  if (rampdata.isstring())
302  {
303  v.reset(new UT_Ramp());
304  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
305  v->load(istr);
306  }
307  else v.reset();
308  }
311  loadData(is, data);
312  if (data.isstring())
313  {
314  // Find the data type.
315  const char *colon = UT_StringWrap(data).findChar(':');
316  if (colon)
317  {
318  int typelen = colon - data.buffer();
320  type.strncpy(data.buffer(), typelen);
321  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
322 
323  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
324  }
325  }
326  else v.reset();
327  }
328 
329  static void saveData(std::ostream &os, int64 v)
330  { UTwrite(os, &v); }
331  static void saveData(std::ostream &os, bool v)
332  { int64 iv = v; UTwrite(os, &iv); }
333  static void saveData(std::ostream &os, fpreal64 v)
334  { UTwrite<fpreal64>(os, &v); }
335  static void saveData(std::ostream &os, UT_Vector2D v)
336  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
337  static void saveData(std::ostream &os, UT_Vector3D v)
338  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
339  UTwrite<fpreal64>(os, &v.z()); }
340  static void saveData(std::ostream &os, UT_Vector4D v)
341  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
342  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
343  static void saveData(std::ostream &os, UT_Matrix2D v)
345  static void saveData(std::ostream &os, UT_Matrix3D v)
347  static void saveData(std::ostream &os, UT_Matrix4D v)
349  static void saveData(std::ostream &os, UT_StringHolder s)
350  { UT_StringWrap(s).saveBinary(os); }
351  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
353  UT_OStringStream ostr;
354  if (s) s->save(ostr);
355  result = ostr.str();
356  saveData(os, result);
357  }
358  static void saveData(std::ostream &os, PRM_DataItemHandle s)
360  UT_OStringStream ostr;
361  if (s)
362  {
363  ostr << s->getDataTypeToken();
364  ostr << ":";
365  s->saveBinary(ostr);
366  }
367  result = ostr.str();
368  saveData(os, result);
369  }
370 
371 
372  void save(std::ostream &os) const
373  {
374  int32 v = version();
375  UTwrite(os, &v);
376  saveData(os, myInputDimensionAttribute);
377  saveData(os, myTargetDimensionAttribute);
378  saveData(os, mySerialAttribute);
379  saveData(os, myInputPointAttributes);
380  saveData(os, myTargetPointAttributes);
381 
382  }
383 
384  bool load(UT_IStream &is)
385  {
386  int32 v;
387  is.bread(&v, 1);
388  if (version() != v)
389  {
390  // Fail incompatible versions
391  return false;
392  }
393  loadData(is, myInputDimensionAttribute);
394  loadData(is, myTargetDimensionAttribute);
395  loadData(is, mySerialAttribute);
396  loadData(is, myInputPointAttributes);
397  loadData(is, myTargetPointAttributes);
398 
399  return true;
400  }
401 
402  const UT_StringHolder & getInputDimensionAttribute() const { return myInputDimensionAttribute; }
403  void setInputDimensionAttribute(const UT_StringHolder & val) { myInputDimensionAttribute = val; }
405  {
406  SOP_Node *thissop = cookparms.getNode();
407  if (!thissop) return getInputDimensionAttribute();
409  OP_Utils::evalOpParm(result, thissop, "inputdimensionattribute", cookparms.getCookTime(), 0);
410  return result;
411  }
412  const UT_StringHolder & getTargetDimensionAttribute() const { return myTargetDimensionAttribute; }
413  void setTargetDimensionAttribute(const UT_StringHolder & val) { myTargetDimensionAttribute = val; }
415  {
416  SOP_Node *thissop = cookparms.getNode();
417  if (!thissop) return getTargetDimensionAttribute();
419  OP_Utils::evalOpParm(result, thissop, "targetdimensionattribute", cookparms.getCookTime(), 0);
420  return result;
421  }
422  const UT_StringHolder & getSerialAttribute() const { return mySerialAttribute; }
423  void setSerialAttribute(const UT_StringHolder & val) { mySerialAttribute = val; }
425  {
426  SOP_Node *thissop = cookparms.getNode();
427  if (!thissop) return getSerialAttribute();
429  OP_Utils::evalOpParm(result, thissop, "serialattribute", cookparms.getCookTime(), 0);
430  return result;
431  }
432  const UT_StringHolder & getInputPointAttributes() const { return myInputPointAttributes; }
433  void setInputPointAttributes(const UT_StringHolder & val) { myInputPointAttributes = val; }
435  {
436  SOP_Node *thissop = cookparms.getNode();
437  if (!thissop) return getInputPointAttributes();
439  OP_Utils::evalOpParm(result, thissop, "inputpointattributes", cookparms.getCookTime(), 0);
440  return result;
441  }
442  const UT_StringHolder & getTargetPointAttributes() const { return myTargetPointAttributes; }
443  void setTargetPointAttributes(const UT_StringHolder & val) { myTargetPointAttributes = val; }
445  {
446  SOP_Node *thissop = cookparms.getNode();
447  if (!thissop) return getTargetPointAttributes();
449  OP_Utils::evalOpParm(result, thissop, "targetpointattributes", cookparms.getCookTime(), 0);
450  return result;
451  }
452 
453 private:
454  UT_StringHolder myInputDimensionAttribute;
455  UT_StringHolder myTargetDimensionAttribute;
456  UT_StringHolder mySerialAttribute;
457  UT_StringHolder myInputPointAttributes;
458  UT_StringHolder myTargetPointAttributes;
459 
460 };
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
type
Definition: core.h:556
void setTargetPointAttributes(const UT_StringHolder &val)
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
UT_StringHolder opTargetDimensionAttribute(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
static void loadData(UT_IStream &is, UT_Vector4I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
exint getNestNumParms(TempIndex idx) const override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
GT_API const UT_StringHolder time
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
fpreal getTime() const
Definition: OP_Context.h:63
const UT_StringHolder & getInputPointAttributes() const
GLsizei const GLfloat * value
Definition: glcorearb.h:824
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
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
static void saveData(std::ostream &os, UT_Matrix2D v)
SYS_FORCE_INLINE const char * buffer() const
static void saveData(std::ostream &os, int64 v)
GLdouble s
Definition: glad.h:3009
void setInputPointAttributes(const UT_StringHolder &val)
static void saveData(std::ostream &os, fpreal64 v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
An output stream object that owns its own string buffer storage.
static void saveData(std::ostream &os, UT_Vector4D v)
const UT_StringHolder & getInputDimensionAttribute() const
static void loadData(UT_IStream &is, bool &v)
**But if you need a result
Definition: thread.h:622
static void loadData(UT_IStream &is, UT_Vector2D &v)
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
static void loadData(UT_IStream &is, fpreal64 &v)
exint nodeIdx() const
Definition: OP_NodeParms.h:95
UT_StringHolder opSerialAttribute(const SOP_NodeVerb::CookParms &cookparms) const
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
double fpreal64
Definition: SYS_Types.h:201
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
UT_StringHolder opInputDimensionAttribute(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void saveData(std::ostream &os, UT_Vector2D v)
const UT_StringHolder & getSerialAttribute() const
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
static void saveData(std::ostream &os, bool v)
void setInputDimensionAttribute(const UT_StringHolder &val)
exint length() const
static void saveData(std::ostream &os, UT_StringHolder s)
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > 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 setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void loadData(UT_IStream &is, UT_Vector2I &v)
void setTargetDimensionAttribute(const UT_StringHolder &val)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
bool operator!=(const SOP_MLExampleSerializePointParms &src) const
static void saveData(std::ostream &os, UT_Matrix3D v)
void loadFromOpSubclass(const LoadParms &loadparms) override
const UT_StringHolder & getTargetDimensionAttribute() const
long long int64
Definition: SYS_Types.h:116
const UT_StringHolder & getTargetPointAttributes() const
static void loadData(UT_IStream &is, int64 &v)
UT_StringHolder opTargetPointAttributes(const SOP_NodeVerb::CookParms &cookparms) const
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
bool operator==(const SOP_MLExampleSerializePointParms &src) const
static void loadData(UT_IStream &is, UT_Vector3D &v)
void copyFrom(const OP_NodeParms *src) override
UT_StringHolder opInputPointAttributes(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:303
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
GT_API const UT_StringHolder version
const char * getNestParmName(TempIndex fieldnum) const override
void setSerialAttribute(const UT_StringHolder &val)
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:310
fpreal64 fpreal
Definition: SYS_Types.h:278
DEP_MicroNode * depnode() const
Definition: OP_NodeParms.h:99
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GLuint GLfloat * val
Definition: glcorearb.h:1608
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
#define SOP_API
Definition: SOP_API.h:10
static void loadData(UT_IStream &is, UT_Vector3I &v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
const char * findChar(int c) const
Definition: UT_String.h:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
GLboolean r
Definition: glcorearb.h:1222
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
static void loadData(UT_IStream &is, UT_Matrix3D &v)
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)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663