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