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