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 <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_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 
103  if (baseGetSignature() != src.baseGetSignature()) return false;
104 
105  return true;
106  }
107  bool operator!=(const SOP_MeasureParms &src) const
108  {
109  return !operator==(src);
110  }
113 
114 
115 
116  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
117  {
118  myGroup = ""_UTsh;
119  if (true)
120  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
121  myType = 0;
122  if (true)
123  graph->evalOpParm(myType, nodeidx, "type", time, graph->isDirect()?nullptr:depnode);
124  myOverride = false;
125  if (true)
126  graph->evalOpParm(myOverride, nodeidx, "override", time, graph->isDirect()?nullptr:depnode);
127  myAttribname = "area"_UTsh;
128  if (true && ( (true&&!(((getOverride()==0)))) ) )
129  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, graph->isDirect()?nullptr:depnode);
130  myCurvetype = 0;
131  if (true && ( (true&&!(((int64(getType())!=2)))) ) )
132  graph->evalOpParm(myCurvetype, nodeidx, "curvetype", time, graph->isDirect()?nullptr:depnode);
133  myCurve = UT_Vector2D(0,1000);
134  if (true && ( (true&&!(((int64(getType())!=2)))) ) )
135  graph->evalOpParm(myCurve, nodeidx, "curve", time, graph->isDirect()?nullptr:depnode);
136  myT = UT_Vector3D(0,0,0);
137  if (true && ( (true&&!(((int64(getType())!=3)))) ) )
138  graph->evalOpParm(myT, nodeidx, "t", time, graph->isDirect()?nullptr:depnode);
139 
140  }
141 
142 
143  void loadFromOpSubclass(const LoadParms &loadparms) override
144  {
145  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
146  }
147 
148 
149  void copyFrom(const OP_NodeParms *src) override
150  {
151  *this = *((const SOP_MeasureParms *)src);
152  }
153 
154  template <typename T>
155  void
156  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
157  {
158  if (idx.size() < 1)
159  return;
160  UT_ASSERT(idx.size() == instance.size()+1);
161  if (idx.size() != instance.size()+1)
162  return;
163  switch (idx[0])
164  {
165  case 0:
166  coerceValue(value, myGroup);
167  break;
168  case 1:
169  coerceValue(value, myType);
170  break;
171  case 2:
172  coerceValue(value, myOverride);
173  break;
174  case 3:
175  coerceValue(value, myAttribname);
176  break;
177  case 4:
178  coerceValue(value, myCurvetype);
179  break;
180  case 5:
181  coerceValue(value, myCurve);
182  break;
183  case 6:
184  coerceValue(value, myT);
185  break;
186 
187  }
188  }
189 
190  bool isParmColorRamp(exint idx) const override
191  {
192  switch (idx)
193  {
194 
195  }
196  return false;
197  }
198 
199  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
214  { doGetParmValue(idx, instance, value); }
215  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
216  { doGetParmValue(idx, instance, value); }
217  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
218  { doGetParmValue(idx, instance, value); }
219  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
220  { doGetParmValue(idx, instance, value); }
221 
222  template <typename T>
223  void
224  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
225  {
226  if (idx.size() < 1)
227  return;
228  UT_ASSERT(idx.size() == instance.size()+1);
229  if (idx.size() != instance.size()+1)
230  return;
231  switch (idx[0])
232  {
233  case 0:
234  coerceValue(myGroup, ( ( value ) ));
235  break;
236  case 1:
237  coerceValue(myType, clampMinValue(0, clampMaxValue(3, value ) ));
238  break;
239  case 2:
240  coerceValue(myOverride, ( ( value ) ));
241  break;
242  case 3:
243  coerceValue(myAttribname, ( ( value ) ));
244  break;
245  case 4:
246  coerceValue(myCurvetype, clampMinValue(0, clampMaxValue(2, value ) ));
247  break;
248  case 5:
249  coerceValue(myCurve, ( ( value ) ));
250  break;
251  case 6:
252  coerceValue(myT, ( ( value ) ));
253  break;
254 
255  }
256  }
257 
258  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
259  { doSetParmValue(idx, instance, value); }
260  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
261  { doSetParmValue(idx, instance, value); }
262  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
263  { doSetParmValue(idx, instance, value); }
264  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
265  { doSetParmValue(idx, instance, value); }
266  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
267  { doSetParmValue(idx, instance, value); }
268  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
269  { doSetParmValue(idx, instance, value); }
270  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
271  { doSetParmValue(idx, instance, value); }
272  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
273  { doSetParmValue(idx, instance, value); }
274  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
275  { doSetParmValue(idx, instance, value); }
276  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
277  { doSetParmValue(idx, instance, value); }
278  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
279  { doSetParmValue(idx, instance, value); }
280 
281  exint getNestNumParms(TempIndex idx) const override
282  {
283  if (idx.size() == 0)
284  return 7;
285  switch (idx[0])
286  {
287 
288  }
289  // Invalid
290  return 0;
291  }
292 
293  const char *getNestParmName(TempIndex fieldnum) const override
294  {
295  if (fieldnum.size() < 1)
296  return 0;
297  switch (fieldnum[0])
298  {
299  case 0:
300  return "group";
301  case 1:
302  return "type";
303  case 2:
304  return "override";
305  case 3:
306  return "attribname";
307  case 4:
308  return "curvetype";
309  case 5:
310  return "curve";
311  case 6:
312  return "t";
313 
314  }
315  return 0;
316  }
317 
318  ParmType getNestParmType(TempIndex fieldnum) const override
319  {
320  if (fieldnum.size() < 1)
321  return PARM_UNSUPPORTED;
322  switch (fieldnum[0])
323  {
324  case 0:
325  return PARM_STRING;
326  case 1:
327  return PARM_INTEGER;
328  case 2:
329  return PARM_INTEGER;
330  case 3:
331  return PARM_STRING;
332  case 4:
333  return PARM_INTEGER;
334  case 5:
335  return PARM_VECTOR2;
336  case 6:
337  return PARM_VECTOR3;
338 
339  }
340  return PARM_UNSUPPORTED;
341  }
342 
343  // Boiler plate to load individual types.
344  static void loadData(UT_IStream &is, int64 &v)
345  { is.bread(&v, 1); }
346  static void loadData(UT_IStream &is, bool &v)
347  { int64 iv; is.bread(&iv, 1); v = iv; }
348  static void loadData(UT_IStream &is, fpreal64 &v)
349  { is.bread<fpreal64>(&v, 1); }
350  static void loadData(UT_IStream &is, UT_Vector2D &v)
351  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
352  static void loadData(UT_IStream &is, UT_Vector3D &v)
353  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
354  is.bread<fpreal64>(&v.z(), 1); }
355  static void loadData(UT_IStream &is, UT_Vector4D &v)
356  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
357  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
358  static void loadData(UT_IStream &is, UT_Matrix2D &v)
359  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
360  static void loadData(UT_IStream &is, UT_Matrix3D &v)
361  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
362  static void loadData(UT_IStream &is, UT_Matrix4D &v)
363  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
364  static void loadData(UT_IStream &is, UT_Vector2I &v)
365  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
366  static void loadData(UT_IStream &is, UT_Vector3I &v)
367  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
368  is.bread<int64>(&v.z(), 1); }
369  static void loadData(UT_IStream &is, UT_Vector4I &v)
370  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
371  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
373  { is.bread(v); }
375  { UT_StringHolder rampdata;
376  loadData(is, rampdata);
377  if (rampdata.isstring())
378  {
379  v.reset(new UT_Ramp());
380  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
381  v->load(istr);
382  }
383  else v.reset();
384  }
387  loadData(is, data);
388  if (data.isstring())
389  {
390  // Find the data type.
391  const char *colon = UT_StringWrap(data).findChar(':');
392  if (colon)
393  {
394  int typelen = colon - data.buffer();
396  type.strncpy(data.buffer(), typelen);
397  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
398 
399  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
400  }
401  }
402  else v.reset();
403  }
404 
405  static void saveData(std::ostream &os, int64 v)
406  { UTwrite(os, &v); }
407  static void saveData(std::ostream &os, bool v)
408  { int64 iv = v; UTwrite(os, &iv); }
409  static void saveData(std::ostream &os, fpreal64 v)
410  { UTwrite<fpreal64>(os, &v); }
411  static void saveData(std::ostream &os, UT_Vector2D v)
412  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
413  static void saveData(std::ostream &os, UT_Vector3D v)
414  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
415  UTwrite<fpreal64>(os, &v.z()); }
416  static void saveData(std::ostream &os, UT_Vector4D v)
417  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
418  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
419  static void saveData(std::ostream &os, UT_Matrix2D v)
421  static void saveData(std::ostream &os, UT_Matrix3D v)
423  static void saveData(std::ostream &os, UT_Matrix4D v)
425  static void saveData(std::ostream &os, UT_StringHolder s)
426  { UT_StringWrap(s).saveBinary(os); }
427  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
429  UT_OStringStream ostr;
430  if (s) s->save(ostr);
431  result = ostr.str();
432  saveData(os, result);
433  }
434  static void saveData(std::ostream &os, PRM_DataItemHandle s)
436  UT_OStringStream ostr;
437  if (s)
438  {
439  ostr << s->getDataTypeToken();
440  ostr << ":";
441  s->saveBinary(ostr);
442  }
443  result = ostr.str();
444  saveData(os, result);
445  }
446 
447 
448  void save(std::ostream &os) const
449  {
450  int32 v = version();
451  UTwrite(os, &v);
452  saveData(os, myGroup);
453  saveData(os, myType);
454  saveData(os, myOverride);
455  saveData(os, myAttribname);
456  saveData(os, myCurvetype);
457  saveData(os, myCurve);
458  saveData(os, myT);
459 
460  }
461 
462  bool load(UT_IStream &is)
463  {
464  int32 v;
465  is.bread(&v, 1);
466  if (version() != v)
467  {
468  // Fail incompatible versions
469  return false;
470  }
471  loadData(is, myGroup);
472  loadData(is, myType);
473  loadData(is, myOverride);
474  loadData(is, myAttribname);
475  loadData(is, myCurvetype);
476  loadData(is, myCurve);
477  loadData(is, myT);
478 
479  return true;
480  }
481 
482  const UT_StringHolder & getGroup() const { return myGroup; }
483  void setGroup(const UT_StringHolder & val) { myGroup = val; }
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getGroup();
489  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
490  return result;
491  }
492  Type getType() const { return Type(myType); }
493  void setType(Type val) { myType = int64(val); }
494  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getType();
498  int64 result;
499  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
500  return Type(result);
501  }
502  bool getOverride() const { return myOverride; }
503  void setOverride(bool val) { myOverride = val; }
504  bool opOverride(const SOP_NodeVerb::CookParms &cookparms) const
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getOverride();
508  bool result;
509  OP_Utils::evalOpParm(result, thissop, "override", cookparms.getCookTime(), 0);
510  return result;
511  }
512  const UT_StringHolder & getAttribname() const { return myAttribname; }
513  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getAttribname();
519  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
520  return result;
521  }
522  Curvetype getCurvetype() const { return Curvetype(myCurvetype); }
523  void setCurvetype(Curvetype val) { myCurvetype = int64(val); }
525  {
526  SOP_Node *thissop = cookparms.getNode();
527  if (!thissop) return getCurvetype();
528  int64 result;
529  OP_Utils::evalOpParm(result, thissop, "curvetype", cookparms.getCookTime(), 0);
530  return Curvetype(result);
531  }
532  UT_Vector2D getCurve() const { return myCurve; }
533  void setCurve(UT_Vector2D val) { myCurve = val; }
535  {
536  SOP_Node *thissop = cookparms.getNode();
537  if (!thissop) return getCurve();
539  OP_Utils::evalOpParm(result, thissop, "curve", cookparms.getCookTime(), 0);
540  return result;
541  }
542  UT_Vector3D getT() const { return myT; }
543  void setT(UT_Vector3D val) { myT = val; }
544  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
545  {
546  SOP_Node *thissop = cookparms.getNode();
547  if (!thissop) return getT();
549  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
550  return result;
551  }
552 
553 private:
554  UT_StringHolder myGroup;
555  int64 myType;
556  bool myOverride;
557  UT_StringHolder myAttribname;
558  int64 myCurvetype;
559  UT_Vector2D myCurve;
560  UT_Vector3D myT;
561 
562 };
void loadFromOpSubclass(const LoadParms &loadparms) override
type
Definition: core.h:556
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:63
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_Vector2T< fpreal64 > UT_Vector2D
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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:303
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:278
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:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
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:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector2D opCurve(const SOP_NodeVerb::CookParms &cookparms) const
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