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