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