HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_Ends.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_EndsEnums
24 {
25  enum class Closeu
26  {
27  SAMECLOSURE = 0,
28  OPEN,
29  CLOSESHARP,
30  CLOSEROUND,
31  UNROLL,
33  };
34  enum class Closev
35  {
36  SAMECLOSURE = 0,
37  OPEN,
38  CLOSESHARP,
39  CLOSEROUND,
40  UNROLL,
42  };
43  enum class Clampu
44  {
45  SAMECLAMP = 0,
46  CLAMP,
47  UNCLAMP
48  };
49  enum class Clampv
50  {
51  SAMECLAMP = 0,
52  CLAMP,
53  UNCLAMP
54  };
55 }
56 
57 
59 {
60 public:
61  static int version() { return 1; }
62 
64  {
65  myGroup = ""_UTsh;
66  myCloseu = 0;
67  myClosev = 0;
68  myClampu = 0;
69  myClampv = 0;
70  myPshapeu = false;
71  myPshapev = false;
72 
73  }
74 
75  explicit SOP_EndsParms(const SOP_EndsParms &) = default;
76  SOP_EndsParms &operator=(const SOP_EndsParms &) = default;
77  SOP_EndsParms(SOP_EndsParms &&) noexcept = default;
78  SOP_EndsParms &operator=(SOP_EndsParms &&) noexcept = default;
79 
80  ~SOP_EndsParms() override {}
81 
82  bool operator==(const SOP_EndsParms &src) const
83  {
84  if (myGroup != src.myGroup) return false;
85  if (myCloseu != src.myCloseu) return false;
86  if (myClosev != src.myClosev) return false;
87  if (myClampu != src.myClampu) return false;
88  if (myClampv != src.myClampv) return false;
89  if (myPshapeu != src.myPshapeu) return false;
90  if (myPshapev != src.myPshapev) return false;
91 
92  return true;
93  }
94  bool operator!=(const SOP_EndsParms &src) const
95  {
96  return !operator==(src);
97  }
102 
103 
104 
105  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
106  {
107  myGroup = ""_UTsh;
108  if (true)
109  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
110  myCloseu = 0;
111  if (true)
112  graph->evalOpParm(myCloseu, nodeidx, "closeu", time, 0);
113  myClosev = 0;
114  if (true)
115  graph->evalOpParm(myClosev, nodeidx, "closev", time, 0);
116  myClampu = 0;
117  if (true)
118  graph->evalOpParm(myClampu, nodeidx, "clampu", time, 0);
119  myClampv = 0;
120  if (true)
121  graph->evalOpParm(myClampv, nodeidx, "clampv", time, 0);
122  myPshapeu = false;
123  if (true && ( (true&&!(((int64(getCloseu())==0)&&(int64(getClampu())==0)))) ) )
124  graph->evalOpParm(myPshapeu, nodeidx, "pshapeu", time, 0);
125  myPshapev = false;
126  if (true && ( (true&&!(((int64(getClosev())==0)&&(int64(getClampv())==0)))) ) )
127  graph->evalOpParm(myPshapev, nodeidx, "pshapev", time, 0);
128 
129  }
130 
131 
132  void loadFromOpSubclass(const LoadParms &loadparms) override
133  {
134  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
135  }
136 
137 
138  void copyFrom(const OP_NodeParms *src) override
139  {
140  *this = *((const SOP_EndsParms *)src);
141  }
142 
143  template <typename T>
144  void
145  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
146  {
147  if (idx.size() < 1)
148  return;
149  UT_ASSERT(idx.size() == instance.size()+1);
150  if (idx.size() != instance.size()+1)
151  return;
152  switch (idx[0])
153  {
154  case 0:
155  coerceValue(value, myGroup);
156  break;
157  case 1:
158  coerceValue(value, myCloseu);
159  break;
160  case 2:
161  coerceValue(value, myClosev);
162  break;
163  case 3:
164  coerceValue(value, myClampu);
165  break;
166  case 4:
167  coerceValue(value, myClampv);
168  break;
169  case 5:
170  coerceValue(value, myPshapeu);
171  break;
172  case 6:
173  coerceValue(value, myPshapev);
174  break;
175 
176  }
177  }
178 
179  bool isParmColorRamp(exint idx) const override
180  {
181  switch (idx)
182  {
183 
184  }
185  return false;
186  }
187 
188  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
189  { doGetParmValue(idx, instance, value); }
190  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
191  { doGetParmValue(idx, instance, value); }
192  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
193  { doGetParmValue(idx, instance, value); }
194  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
195  { doGetParmValue(idx, instance, value); }
196  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
197  { doGetParmValue(idx, instance, value); }
198  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
199  { doGetParmValue(idx, instance, value); }
200  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
201  { doGetParmValue(idx, instance, value); }
202  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
203  { doGetParmValue(idx, instance, value); }
204  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
205  { doGetParmValue(idx, instance, value); }
206  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
207  { doGetParmValue(idx, instance, value); }
208  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
209  { doGetParmValue(idx, instance, value); }
210 
211  template <typename T>
212  void
213  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
214  {
215  if (idx.size() < 1)
216  return;
217  UT_ASSERT(idx.size() == instance.size()+1);
218  if (idx.size() != instance.size()+1)
219  return;
220  switch (idx[0])
221  {
222  case 0:
223  coerceValue(myGroup, ( ( value ) ));
224  break;
225  case 1:
226  coerceValue(myCloseu, clampMinValue(0, clampMaxValue(5, value ) ));
227  break;
228  case 2:
229  coerceValue(myClosev, clampMinValue(0, clampMaxValue(5, value ) ));
230  break;
231  case 3:
232  coerceValue(myClampu, clampMinValue(0, clampMaxValue(2, value ) ));
233  break;
234  case 4:
235  coerceValue(myClampv, clampMinValue(0, clampMaxValue(2, value ) ));
236  break;
237  case 5:
238  coerceValue(myPshapeu, ( ( value ) ));
239  break;
240  case 6:
241  coerceValue(myPshapev, ( ( value ) ));
242  break;
243 
244  }
245  }
246 
247  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
248  { doSetParmValue(idx, instance, value); }
249  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
250  { doSetParmValue(idx, instance, value); }
251  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
252  { doSetParmValue(idx, instance, value); }
253  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
254  { doSetParmValue(idx, instance, value); }
255  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
256  { doSetParmValue(idx, instance, value); }
257  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
258  { doSetParmValue(idx, instance, value); }
259  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
260  { doSetParmValue(idx, instance, value); }
261  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
262  { doSetParmValue(idx, instance, value); }
263  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
264  { doSetParmValue(idx, instance, value); }
265  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
266  { doSetParmValue(idx, instance, value); }
267  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
268  { doSetParmValue(idx, instance, value); }
269 
270  exint getNestNumParms(TempIndex idx) const override
271  {
272  if (idx.size() == 0)
273  return 7;
274  switch (idx[0])
275  {
276 
277  }
278  // Invalid
279  return 0;
280  }
281 
282  const char *getNestParmName(TempIndex fieldnum) const override
283  {
284  if (fieldnum.size() < 1)
285  return 0;
286  switch (fieldnum[0])
287  {
288  case 0:
289  return "group";
290  case 1:
291  return "closeu";
292  case 2:
293  return "closev";
294  case 3:
295  return "clampu";
296  case 4:
297  return "clampv";
298  case 5:
299  return "pshapeu";
300  case 6:
301  return "pshapev";
302 
303  }
304  return 0;
305  }
306 
307  ParmType getNestParmType(TempIndex fieldnum) const override
308  {
309  if (fieldnum.size() < 1)
310  return PARM_UNSUPPORTED;
311  switch (fieldnum[0])
312  {
313  case 0:
314  return PARM_STRING;
315  case 1:
316  return PARM_INTEGER;
317  case 2:
318  return PARM_INTEGER;
319  case 3:
320  return PARM_INTEGER;
321  case 4:
322  return PARM_INTEGER;
323  case 5:
324  return PARM_INTEGER;
325  case 6:
326  return PARM_INTEGER;
327 
328  }
329  return PARM_UNSUPPORTED;
330  }
331 
332  // Boiler plate to load individual types.
333  static void loadData(UT_IStream &is, int64 &v)
334  { is.bread(&v, 1); }
335  static void loadData(UT_IStream &is, bool &v)
336  { int64 iv; is.bread(&iv, 1); v = iv; }
337  static void loadData(UT_IStream &is, fpreal64 &v)
338  { is.bread<fpreal64>(&v, 1); }
339  static void loadData(UT_IStream &is, UT_Vector2D &v)
340  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
341  static void loadData(UT_IStream &is, UT_Vector3D &v)
342  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
343  is.bread<fpreal64>(&v.z(), 1); }
344  static void loadData(UT_IStream &is, UT_Vector4D &v)
345  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
346  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
347  static void loadData(UT_IStream &is, UT_Matrix2D &v)
348  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
349  static void loadData(UT_IStream &is, UT_Matrix3D &v)
350  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
351  static void loadData(UT_IStream &is, UT_Matrix4D &v)
352  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
353  static void loadData(UT_IStream &is, UT_Vector2I &v)
354  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
355  static void loadData(UT_IStream &is, UT_Vector3I &v)
356  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
357  is.bread<int64>(&v.z(), 1); }
358  static void loadData(UT_IStream &is, UT_Vector4I &v)
359  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
360  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
362  { is.bread(v); }
364  { UT_StringHolder rampdata;
365  loadData(is, rampdata);
366  if (rampdata.isstring())
367  {
368  v.reset(new UT_Ramp());
369  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
370  v->load(istr);
371  }
372  else v.reset();
373  }
376  loadData(is, data);
377  if (data.isstring())
378  {
379  // Find the data type.
380  const char *colon = UT_StringWrap(data).findChar(':');
381  if (colon)
382  {
383  int typelen = colon - data.buffer();
385  type.strncpy(data.buffer(), typelen);
386  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
387 
388  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
389  }
390  }
391  else v.reset();
392  }
393 
394  static void saveData(std::ostream &os, int64 v)
395  { UTwrite(os, &v); }
396  static void saveData(std::ostream &os, bool v)
397  { int64 iv = v; UTwrite(os, &iv); }
398  static void saveData(std::ostream &os, fpreal64 v)
399  { UTwrite<fpreal64>(os, &v); }
400  static void saveData(std::ostream &os, UT_Vector2D v)
401  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
402  static void saveData(std::ostream &os, UT_Vector3D v)
403  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
404  UTwrite<fpreal64>(os, &v.z()); }
405  static void saveData(std::ostream &os, UT_Vector4D v)
406  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
407  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
408  static void saveData(std::ostream &os, UT_Matrix2D v)
410  static void saveData(std::ostream &os, UT_Matrix3D v)
412  static void saveData(std::ostream &os, UT_Matrix4D v)
414  static void saveData(std::ostream &os, UT_StringHolder s)
415  { UT_StringWrap(s).saveBinary(os); }
416  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
418  UT_OStringStream ostr;
419  if (s) s->save(ostr);
420  result = ostr.str();
421  saveData(os, result);
422  }
423  static void saveData(std::ostream &os, PRM_DataItemHandle s)
425  UT_OStringStream ostr;
426  if (s)
427  {
428  ostr << s->getDataTypeToken();
429  ostr << ":";
430  s->saveBinary(ostr);
431  }
432  result = ostr.str();
433  saveData(os, result);
434  }
435 
436 
437  void save(std::ostream &os) const
438  {
439  int32 v = version();
440  UTwrite(os, &v);
441  saveData(os, myGroup);
442  saveData(os, myCloseu);
443  saveData(os, myClosev);
444  saveData(os, myClampu);
445  saveData(os, myClampv);
446  saveData(os, myPshapeu);
447  saveData(os, myPshapev);
448 
449  }
450 
451  bool load(UT_IStream &is)
452  {
453  int32 v;
454  is.bread(&v, 1);
455  if (version() != v)
456  {
457  // Fail incompatible versions
458  return false;
459  }
460  loadData(is, myGroup);
461  loadData(is, myCloseu);
462  loadData(is, myClosev);
463  loadData(is, myClampu);
464  loadData(is, myClampv);
465  loadData(is, myPshapeu);
466  loadData(is, myPshapev);
467 
468  return true;
469  }
470 
471  const UT_StringHolder & getGroup() const { return myGroup; }
472  void setGroup(const UT_StringHolder & val) { myGroup = val; }
474  {
475  SOP_Node *thissop = cookparms.getNode();
476  if (!thissop) return getGroup();
478  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
479  return result;
480  }
481  Closeu getCloseu() const { return Closeu(myCloseu); }
482  void setCloseu(Closeu val) { myCloseu = int64(val); }
483  Closeu opCloseu(const SOP_NodeVerb::CookParms &cookparms) const
484  {
485  SOP_Node *thissop = cookparms.getNode();
486  if (!thissop) return getCloseu();
487  int64 result;
488  OP_Utils::evalOpParm(result, thissop, "closeu", cookparms.getCookTime(), 0);
489  return Closeu(result);
490  }
491  Closev getClosev() const { return Closev(myClosev); }
492  void setClosev(Closev val) { myClosev = int64(val); }
493  Closev opClosev(const SOP_NodeVerb::CookParms &cookparms) const
494  {
495  SOP_Node *thissop = cookparms.getNode();
496  if (!thissop) return getClosev();
497  int64 result;
498  OP_Utils::evalOpParm(result, thissop, "closev", cookparms.getCookTime(), 0);
499  return Closev(result);
500  }
501  Clampu getClampu() const { return Clampu(myClampu); }
502  void setClampu(Clampu val) { myClampu = int64(val); }
503  Clampu opClampu(const SOP_NodeVerb::CookParms &cookparms) const
504  {
505  SOP_Node *thissop = cookparms.getNode();
506  if (!thissop) return getClampu();
507  int64 result;
508  OP_Utils::evalOpParm(result, thissop, "clampu", cookparms.getCookTime(), 0);
509  return Clampu(result);
510  }
511  Clampv getClampv() const { return Clampv(myClampv); }
512  void setClampv(Clampv val) { myClampv = int64(val); }
513  Clampv opClampv(const SOP_NodeVerb::CookParms &cookparms) const
514  {
515  SOP_Node *thissop = cookparms.getNode();
516  if (!thissop) return getClampv();
517  int64 result;
518  OP_Utils::evalOpParm(result, thissop, "clampv", cookparms.getCookTime(), 0);
519  return Clampv(result);
520  }
521  bool getPshapeu() const { return myPshapeu; }
522  void setPshapeu(bool val) { myPshapeu = val; }
523  bool opPshapeu(const SOP_NodeVerb::CookParms &cookparms) const
524  {
525  SOP_Node *thissop = cookparms.getNode();
526  if (!thissop) return getPshapeu();
527  bool result;
528  OP_Utils::evalOpParm(result, thissop, "pshapeu", cookparms.getCookTime(), 0);
529  return result;
530  }
531  bool getPshapev() const { return myPshapev; }
532  void setPshapev(bool val) { myPshapev = val; }
533  bool opPshapev(const SOP_NodeVerb::CookParms &cookparms) const
534  {
535  SOP_Node *thissop = cookparms.getNode();
536  if (!thissop) return getPshapev();
537  bool result;
538  OP_Utils::evalOpParm(result, thissop, "pshapev", cookparms.getCookTime(), 0);
539  return result;
540  }
541 
542 private:
543  UT_StringHolder myGroup;
544  int64 myCloseu;
545  int64 myClosev;
546  int64 myClampu;
547  int64 myClampv;
548  bool myPshapeu;
549  bool myPshapev;
550 
551 };
bool getPshapeu() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
bool isParmColorRamp(exint idx) const override
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void setGroup(const UT_StringHolder &val)
Closeu opCloseu(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
Clampv getClampv() const
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
void save(std::ostream &os) const
Closev opClosev(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
void setClosev(Closev val)
const char * getNestParmName(TempIndex fieldnum) const override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
static void loadData(UT_IStream &is, UT_Vector3D &v)
exint bread(int32 *buffer, exint asize=1)
GLboolean * data
Definition: glcorearb.h:131
GT_API const UT_StringHolder time
static void loadData(UT_IStream &is, UT_Matrix3D &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector4.h:493
const GLdouble * v
Definition: glcorearb.h:837
void loadFromOpSubclass(const LoadParms &loadparms) override
fpreal getTime() const
Definition: OP_Context.h:62
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
static void saveData(std::ostream &os, UT_Vector4D v)
const OP_Context & context() const
Definition: OP_NodeParms.h:97
static void saveData(std::ostream &os, PRM_DataItemHandle s)
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
exint getNestNumParms(TempIndex idx) const override
An output stream object that owns its own string buffer storage.
void setPshapeu(bool val)
static void loadData(UT_IStream &is, UT_StringHolder &v)
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, UT_Matrix2D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
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)
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setCloseu(Closeu val)
Clampu getClampu() const
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool opPshapeu(const SOP_NodeVerb::CookParms &cookparms) const
Closev getClosev() const
double fpreal64
Definition: SYS_Types.h:201
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
static void loadData(UT_IStream &is, UT_Matrix2D &v)
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
static void loadData(UT_IStream &is, int64 &v)
static void loadData(UT_IStream &is, UT_Vector4D &v)
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
exint length() const
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, int64 v)
ParmType getNestParmType(TempIndex fieldnum) const override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
static void saveData(std::ostream &os, fpreal64 v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
static void saveData(std::ostream &os, bool v)
long long int64
Definition: SYS_Types.h:116
static void saveData(std::ostream &os, UT_Matrix3D v)
static void loadData(UT_IStream &is, UT_Vector4I &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void saveData(std::ostream &os, UT_Vector3D v)
bool getPshapev() const
static void saveData(std::ostream &os, UT_Matrix4D v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
GT_API const UT_StringHolder version
bool operator!=(const SOP_EndsParms &src) const
static int version()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
void setClampu(Clampu val)
bool opPshapev(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
bool operator==(const SOP_EndsParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void copyFrom(const OP_NodeParms *src) override
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void setPshapev(bool val)
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
void setClampv(Clampv val)
GLuint GLfloat * val
Definition: glcorearb.h:1608
Closeu getCloseu() const
#define SOP_API
Definition: SOP_API.h:10
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
const UT_StringHolder & getGroup() const
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 loadData(UT_IStream &is, bool &v)
GLboolean r
Definition: glcorearb.h:1222
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_Vector3I &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_StringHolder s)
Clampv opClampv(const SOP_NodeVerb::CookParms &cookparms) const
Clampu opClampu(const SOP_NodeVerb::CookParms &cookparms) const
static void saveData(std::ostream &os, UT_Vector2D v)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)