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