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