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