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