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