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