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