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