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 }
34 
35 
37 {
38 public:
39  static int version() { return 1; }
40 
42  {
43  myGroup = ""_UTsh;
44  myGrouptype = 0;
45  myGetboundary = true;
46  myExplicitradius = false;
47  myRadius = 1;
48  myScale = 1;
49  myOutputedgegroup = ""_UTsh;
50 
51  }
52 
53  explicit SOP_CircleFromEdgesParms(const SOP_CircleFromEdgesParms &) = default;
56  SOP_CircleFromEdgesParms &operator=(SOP_CircleFromEdgesParms &&) noexcept = default;
57 
58  ~SOP_CircleFromEdgesParms() override {}
59 
61  {
62  if (myGroup != src.myGroup) return false;
63  if (myGrouptype != src.myGrouptype) return false;
64  if (myGetboundary != src.myGetboundary) return false;
65  if (myExplicitradius != src.myExplicitradius) return false;
66  if (myRadius != src.myRadius) return false;
67  if (myScale != src.myScale) return false;
68  if (myOutputedgegroup != src.myOutputedgegroup) return false;
69 
70  return true;
71  }
73  {
74  return !operator==(src);
75  }
77 
78 
79 
80  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
81  {
82  myGroup = ""_UTsh;
83  if (true)
84  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
85  myGrouptype = 0;
86  if (true)
87  graph->evalOpParm(myGrouptype, nodeidx, "grouptype", time, 0);
88  myGetboundary = true;
89  if (true && ( (true&&!(((int64(getGrouptype())==4)))) ) )
90  graph->evalOpParm(myGetboundary, nodeidx, "getboundary", time, 0);
91  myExplicitradius = false;
92  if (true)
93  graph->evalOpParm(myExplicitradius, nodeidx, "explicitradius", time, 0);
94  myRadius = 1;
95  if (true && ( (true&&!(((getExplicitradius()==0)))) ) )
96  graph->evalOpParm(myRadius, nodeidx, "radius", time, 0);
97  myScale = 1;
98  if (true)
99  graph->evalOpParm(myScale, nodeidx, "scale", time, 0);
100  myOutputedgegroup = ""_UTsh;
101  if (true)
102  graph->evalOpParm(myOutputedgegroup, nodeidx, "outputedgegroup", time, 0);
103 
104  }
105 
106 
107  void loadFromOpSubclass(const LoadParms &loadparms) override
108  {
109  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
110  }
111 
112 
113  void copyFrom(const OP_NodeParms *src) override
114  {
115  *this = *((const SOP_CircleFromEdgesParms *)src);
116  }
117 
118  template <typename T>
119  void
120  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
121  {
122  if (idx.size() < 1)
123  return;
124  UT_ASSERT(idx.size() == instance.size()+1);
125  if (idx.size() != instance.size()+1)
126  return;
127  switch (idx[0])
128  {
129  case 0:
130  coerceValue(value, myGroup);
131  break;
132  case 1:
133  coerceValue(value, myGrouptype);
134  break;
135  case 2:
136  coerceValue(value, myGetboundary);
137  break;
138  case 3:
139  coerceValue(value, myExplicitradius);
140  break;
141  case 4:
142  coerceValue(value, myRadius);
143  break;
144  case 5:
145  coerceValue(value, myScale);
146  break;
147  case 6:
148  coerceValue(value, myOutputedgegroup);
149  break;
150 
151  }
152  }
153 
154  bool isParmColorRamp(exint idx) const override
155  {
156  switch (idx)
157  {
158 
159  }
160  return false;
161  }
162 
163  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
184  { doGetParmValue(idx, instance, value); }
185 
186  template <typename T>
187  void
188  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
189  {
190  if (idx.size() < 1)
191  return;
192  UT_ASSERT(idx.size() == instance.size()+1);
193  if (idx.size() != instance.size()+1)
194  return;
195  switch (idx[0])
196  {
197  case 0:
198  coerceValue(myGroup, ( ( value ) ));
199  break;
200  case 1:
201  coerceValue(myGrouptype, clampMinValue(0, clampMaxValue(4, value ) ));
202  break;
203  case 2:
204  coerceValue(myGetboundary, ( ( value ) ));
205  break;
206  case 3:
207  coerceValue(myExplicitradius, ( ( value ) ));
208  break;
209  case 4:
210  coerceValue(myRadius, ( ( value ) ));
211  break;
212  case 5:
213  coerceValue(myScale, ( ( value ) ));
214  break;
215  case 6:
216  coerceValue(myOutputedgegroup, ( ( value ) ));
217  break;
218 
219  }
220  }
221 
222  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
243  { doSetParmValue(idx, instance, value); }
244 
245  exint getNestNumParms(TempIndex idx) const override
246  {
247  if (idx.size() == 0)
248  return 7;
249  switch (idx[0])
250  {
251 
252  }
253  // Invalid
254  return 0;
255  }
256 
257  const char *getNestParmName(TempIndex fieldnum) const override
258  {
259  if (fieldnum.size() < 1)
260  return 0;
261  switch (fieldnum[0])
262  {
263  case 0:
264  return "group";
265  case 1:
266  return "grouptype";
267  case 2:
268  return "getboundary";
269  case 3:
270  return "explicitradius";
271  case 4:
272  return "radius";
273  case 5:
274  return "scale";
275  case 6:
276  return "outputedgegroup";
277 
278  }
279  return 0;
280  }
281 
282  ParmType getNestParmType(TempIndex fieldnum) const override
283  {
284  if (fieldnum.size() < 1)
285  return PARM_UNSUPPORTED;
286  switch (fieldnum[0])
287  {
288  case 0:
289  return PARM_STRING;
290  case 1:
291  return PARM_INTEGER;
292  case 2:
293  return PARM_INTEGER;
294  case 3:
295  return PARM_INTEGER;
296  case 4:
297  return PARM_FLOAT;
298  case 5:
299  return PARM_FLOAT;
300  case 6:
301  return PARM_STRING;
302 
303  }
304  return PARM_UNSUPPORTED;
305  }
306 
307  // Boiler plate to load individual types.
308  static void loadData(UT_IStream &is, int64 &v)
309  { is.bread(&v, 1); }
310  static void loadData(UT_IStream &is, bool &v)
311  { int64 iv; is.bread(&iv, 1); v = iv; }
312  static void loadData(UT_IStream &is, fpreal64 &v)
313  { is.bread<fpreal64>(&v, 1); }
314  static void loadData(UT_IStream &is, UT_Vector2D &v)
315  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
316  static void loadData(UT_IStream &is, UT_Vector3D &v)
317  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
318  is.bread<fpreal64>(&v.z(), 1); }
319  static void loadData(UT_IStream &is, UT_Vector4D &v)
320  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
321  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
322  static void loadData(UT_IStream &is, UT_Matrix2D &v)
323  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
324  static void loadData(UT_IStream &is, UT_Matrix3D &v)
325  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
326  static void loadData(UT_IStream &is, UT_Matrix4D &v)
327  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
328  static void loadData(UT_IStream &is, UT_Vector2I &v)
329  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
330  static void loadData(UT_IStream &is, UT_Vector3I &v)
331  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
332  is.bread<int64>(&v.z(), 1); }
333  static void loadData(UT_IStream &is, UT_Vector4I &v)
334  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
335  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
337  { is.bread(v); }
339  { UT_StringHolder rampdata;
340  loadData(is, rampdata);
341  if (rampdata.isstring())
342  {
343  v.reset(new UT_Ramp());
344  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
345  v->load(istr);
346  }
347  else v.reset();
348  }
351  loadData(is, data);
352  if (data.isstring())
353  {
354  // Find the data type.
355  const char *colon = UT_StringWrap(data).findChar(':');
356  if (colon)
357  {
358  int typelen = colon - data.buffer();
360  type.strncpy(data.buffer(), typelen);
361  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
362 
363  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
364  }
365  }
366  else v.reset();
367  }
368 
369  static void saveData(std::ostream &os, int64 v)
370  { UTwrite(os, &v); }
371  static void saveData(std::ostream &os, bool v)
372  { int64 iv = v; UTwrite(os, &iv); }
373  static void saveData(std::ostream &os, fpreal64 v)
374  { UTwrite<fpreal64>(os, &v); }
375  static void saveData(std::ostream &os, UT_Vector2D v)
376  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
377  static void saveData(std::ostream &os, UT_Vector3D v)
378  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
379  UTwrite<fpreal64>(os, &v.z()); }
380  static void saveData(std::ostream &os, UT_Vector4D v)
381  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
382  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
383  static void saveData(std::ostream &os, UT_Matrix2D v)
385  static void saveData(std::ostream &os, UT_Matrix3D v)
387  static void saveData(std::ostream &os, UT_Matrix4D v)
389  static void saveData(std::ostream &os, UT_StringHolder s)
390  { UT_StringWrap(s).saveBinary(os); }
391  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
393  UT_OStringStream ostr;
394  if (s) s->save(ostr);
395  result = ostr.str();
396  saveData(os, result);
397  }
398  static void saveData(std::ostream &os, PRM_DataItemHandle s)
400  UT_OStringStream ostr;
401  if (s)
402  {
403  ostr << s->getDataTypeToken();
404  ostr << ":";
405  s->saveBinary(ostr);
406  }
407  result = ostr.str();
408  saveData(os, result);
409  }
410 
411 
412  void save(std::ostream &os) const
413  {
414  int32 v = version();
415  UTwrite(os, &v);
416  saveData(os, myGroup);
417  saveData(os, myGrouptype);
418  saveData(os, myGetboundary);
419  saveData(os, myExplicitradius);
420  saveData(os, myRadius);
421  saveData(os, myScale);
422  saveData(os, myOutputedgegroup);
423 
424  }
425 
426  bool load(UT_IStream &is)
427  {
428  int32 v;
429  is.bread(&v, 1);
430  if (version() != v)
431  {
432  // Fail incompatible versions
433  return false;
434  }
435  loadData(is, myGroup);
436  loadData(is, myGrouptype);
437  loadData(is, myGetboundary);
438  loadData(is, myExplicitradius);
439  loadData(is, myRadius);
440  loadData(is, myScale);
441  loadData(is, myOutputedgegroup);
442 
443  return true;
444  }
445 
446  const UT_StringHolder & getGroup() const { return myGroup; }
447  void setGroup(const UT_StringHolder & val) { myGroup = val; }
449  {
450  SOP_Node *thissop = cookparms.getNode();
451  if (!thissop) return getGroup();
453  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
454  return result;
455  }
456  Grouptype getGrouptype() const { return Grouptype(myGrouptype); }
457  void setGrouptype(Grouptype val) { myGrouptype = int64(val); }
459  {
460  SOP_Node *thissop = cookparms.getNode();
461  if (!thissop) return getGrouptype();
462  int64 result;
463  OP_Utils::evalOpParm(result, thissop, "grouptype", cookparms.getCookTime(), 0);
464  return Grouptype(result);
465  }
466  bool getGetboundary() const { return myGetboundary; }
467  void setGetboundary(bool val) { myGetboundary = val; }
468  bool opGetboundary(const SOP_NodeVerb::CookParms &cookparms) const
469  {
470  SOP_Node *thissop = cookparms.getNode();
471  if (!thissop) return getGetboundary();
472  bool result;
473  OP_Utils::evalOpParm(result, thissop, "getboundary", cookparms.getCookTime(), 0);
474  return result;
475  }
476  bool getExplicitradius() const { return myExplicitradius; }
477  void setExplicitradius(bool val) { myExplicitradius = val; }
478  bool opExplicitradius(const SOP_NodeVerb::CookParms &cookparms) const
479  {
480  SOP_Node *thissop = cookparms.getNode();
481  if (!thissop) return getExplicitradius();
482  bool result;
483  OP_Utils::evalOpParm(result, thissop, "explicitradius", cookparms.getCookTime(), 0);
484  return result;
485  }
486  fpreal64 getRadius() const { return myRadius; }
487  void setRadius(fpreal64 val) { myRadius = val; }
488  fpreal64 opRadius(const SOP_NodeVerb::CookParms &cookparms) const
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getRadius();
493  OP_Utils::evalOpParm(result, thissop, "radius", cookparms.getCookTime(), 0);
494  return result;
495  }
496  fpreal64 getScale() const { return myScale; }
497  void setScale(fpreal64 val) { myScale = val; }
498  fpreal64 opScale(const SOP_NodeVerb::CookParms &cookparms) const
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getScale();
503  OP_Utils::evalOpParm(result, thissop, "scale", cookparms.getCookTime(), 0);
504  return result;
505  }
506  const UT_StringHolder & getOutputedgegroup() const { return myOutputedgegroup; }
507  void setOutputedgegroup(const UT_StringHolder & val) { myOutputedgegroup = val; }
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getOutputedgegroup();
513  OP_Utils::evalOpParm(result, thissop, "outputedgegroup", cookparms.getCookTime(), 0);
514  return result;
515  }
516 
517 private:
518  UT_StringHolder myGroup;
519  int64 myGrouptype;
520  bool myGetboundary;
521  bool myExplicitradius;
522  fpreal64 myRadius;
523  fpreal64 myScale;
524  UT_StringHolder myOutputedgegroup;
525 
526 };
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)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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