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