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  enum class Curvetype
33  {
34  ALL = 0,
35  CONCAVE,
36  CONEX
37  };
38 }
39 
40 
42 {
43 public:
44  static int version() { return 1; }
45 
47  {
48  myGroup = ""_UTsh;
49  myType = 0;
50  myOverride = false;
51  myAttribname = "area"_UTsh;
52  myCurvetype = 0;
53  myCurve = UT_Vector2D(0,1000);
54  myT = UT_Vector3D(0,0,0);
55 
56  }
57 
58  explicit SOP_MeasureParms(const SOP_MeasureParms &) = default;
59  SOP_MeasureParms &operator=(const SOP_MeasureParms &) = default;
60  SOP_MeasureParms(SOP_MeasureParms &&) noexcept = default;
61  SOP_MeasureParms &operator=(SOP_MeasureParms &&) noexcept = default;
62 
63  ~SOP_MeasureParms() override {}
64 
65  bool operator==(const SOP_MeasureParms &src) const
66  {
67  if (myGroup != src.myGroup) return false;
68  if (myType != src.myType) return false;
69  if (myOverride != src.myOverride) return false;
70  if (myAttribname != src.myAttribname) return false;
71  if (myCurvetype != src.myCurvetype) return false;
72  if (myCurve != src.myCurve) return false;
73  if (myT != src.myT) return false;
74 
75  return true;
76  }
77  bool operator!=(const SOP_MeasureParms &src) const
78  {
79  return !operator==(src);
80  }
83 
84 
85 
86  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
87  {
88  myGroup = ""_UTsh;
89  if (true)
90  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
91  myType = 0;
92  if (true)
93  graph->evalOpParm(myType, nodeidx, "type", time, 0);
94  myOverride = false;
95  if (true)
96  graph->evalOpParm(myOverride, nodeidx, "override", time, 0);
97  myAttribname = "area"_UTsh;
98  if (true && ( (true&&!(((getOverride()==0)))) ) )
99  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, 0);
100  myCurvetype = 0;
101  if (true && ( (true&&!(((int64(getType())!=2)))) ) )
102  graph->evalOpParm(myCurvetype, nodeidx, "curvetype", time, 0);
103  myCurve = UT_Vector2D(0,1000);
104  if (true && ( (true&&!(((int64(getType())!=2)))) ) )
105  graph->evalOpParm(myCurve, nodeidx, "curve", time, 0);
106  myT = UT_Vector3D(0,0,0);
107  if (true && ( (true&&!(((int64(getType())!=3)))) ) )
108  graph->evalOpParm(myT, nodeidx, "t", time, 0);
109 
110  }
111 
112 
113  void loadFromOpSubclass(const LoadParms &loadparms) override
114  {
115  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
116  }
117 
118 
119  void copyFrom(const OP_NodeParms *src) override
120  {
121  *this = *((const SOP_MeasureParms *)src);
122  }
123 
124  template <typename T>
125  void
126  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
127  {
128  if (idx.size() < 1)
129  return;
130  UT_ASSERT(idx.size() == instance.size()+1);
131  if (idx.size() != instance.size()+1)
132  return;
133  switch (idx[0])
134  {
135  case 0:
136  coerceValue(value, myGroup);
137  break;
138  case 1:
139  coerceValue(value, myType);
140  break;
141  case 2:
142  coerceValue(value, myOverride);
143  break;
144  case 3:
145  coerceValue(value, myAttribname);
146  break;
147  case 4:
148  coerceValue(value, myCurvetype);
149  break;
150  case 5:
151  coerceValue(value, myCurve);
152  break;
153  case 6:
154  coerceValue(value, myT);
155  break;
156 
157  }
158  }
159 
160  bool isParmColorRamp(exint idx) const override
161  {
162  switch (idx)
163  {
164 
165  }
166  return false;
167  }
168 
169  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
190  { doGetParmValue(idx, instance, value); }
191 
192  template <typename T>
193  void
194  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
195  {
196  if (idx.size() < 1)
197  return;
198  UT_ASSERT(idx.size() == instance.size()+1);
199  if (idx.size() != instance.size()+1)
200  return;
201  switch (idx[0])
202  {
203  case 0:
204  coerceValue(myGroup, ( ( value ) ));
205  break;
206  case 1:
207  coerceValue(myType, clampMinValue(0, clampMaxValue(3, value ) ));
208  break;
209  case 2:
210  coerceValue(myOverride, ( ( value ) ));
211  break;
212  case 3:
213  coerceValue(myAttribname, ( ( value ) ));
214  break;
215  case 4:
216  coerceValue(myCurvetype, clampMinValue(0, clampMaxValue(2, value ) ));
217  break;
218  case 5:
219  coerceValue(myCurve, ( ( value ) ));
220  break;
221  case 6:
222  coerceValue(myT, ( ( value ) ));
223  break;
224 
225  }
226  }
227 
228  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
249  { doSetParmValue(idx, instance, value); }
250 
251  exint getNestNumParms(TempIndex idx) const override
252  {
253  if (idx.size() == 0)
254  return 7;
255  switch (idx[0])
256  {
257 
258  }
259  // Invalid
260  return 0;
261  }
262 
263  const char *getNestParmName(TempIndex fieldnum) const override
264  {
265  if (fieldnum.size() < 1)
266  return 0;
267  switch (fieldnum[0])
268  {
269  case 0:
270  return "group";
271  case 1:
272  return "type";
273  case 2:
274  return "override";
275  case 3:
276  return "attribname";
277  case 4:
278  return "curvetype";
279  case 5:
280  return "curve";
281  case 6:
282  return "t";
283 
284  }
285  return 0;
286  }
287 
288  ParmType getNestParmType(TempIndex fieldnum) const override
289  {
290  if (fieldnum.size() < 1)
291  return PARM_UNSUPPORTED;
292  switch (fieldnum[0])
293  {
294  case 0:
295  return PARM_STRING;
296  case 1:
297  return PARM_INTEGER;
298  case 2:
299  return PARM_INTEGER;
300  case 3:
301  return PARM_STRING;
302  case 4:
303  return PARM_INTEGER;
304  case 5:
305  return PARM_VECTOR2;
306  case 6:
307  return PARM_VECTOR3;
308 
309  }
310  return PARM_UNSUPPORTED;
311  }
312 
313  // Boiler plate to load individual types.
314  static void loadData(UT_IStream &is, int64 &v)
315  { is.bread(&v, 1); }
316  static void loadData(UT_IStream &is, bool &v)
317  { int64 iv; is.bread(&iv, 1); v = iv; }
318  static void loadData(UT_IStream &is, fpreal64 &v)
319  { is.bread<fpreal64>(&v, 1); }
320  static void loadData(UT_IStream &is, UT_Vector2D &v)
321  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
322  static void loadData(UT_IStream &is, UT_Vector3D &v)
323  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
324  is.bread<fpreal64>(&v.z(), 1); }
325  static void loadData(UT_IStream &is, UT_Vector4D &v)
326  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
327  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
328  static void loadData(UT_IStream &is, UT_Matrix2D &v)
329  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
330  static void loadData(UT_IStream &is, UT_Matrix3D &v)
331  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
332  static void loadData(UT_IStream &is, UT_Matrix4D &v)
333  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
334  static void loadData(UT_IStream &is, UT_Vector2I &v)
335  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
336  static void loadData(UT_IStream &is, UT_Vector3I &v)
337  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
338  is.bread<int64>(&v.z(), 1); }
339  static void loadData(UT_IStream &is, UT_Vector4I &v)
340  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
341  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
343  { is.bread(v); }
345  { UT_StringHolder rampdata;
346  loadData(is, rampdata);
347  if (rampdata.isstring())
348  {
349  v.reset(new UT_Ramp());
350  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
351  v->load(istr);
352  }
353  else v.reset();
354  }
357  loadData(is, data);
358  if (data.isstring())
359  {
360  // Find the data type.
361  const char *colon = UT_StringWrap(data).findChar(':');
362  if (colon)
363  {
364  int typelen = colon - data.buffer();
366  type.strncpy(data.buffer(), typelen);
367  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
368 
369  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
370  }
371  }
372  else v.reset();
373  }
374 
375  static void saveData(std::ostream &os, int64 v)
376  { UTwrite(os, &v); }
377  static void saveData(std::ostream &os, bool v)
378  { int64 iv = v; UTwrite(os, &iv); }
379  static void saveData(std::ostream &os, fpreal64 v)
380  { UTwrite<fpreal64>(os, &v); }
381  static void saveData(std::ostream &os, UT_Vector2D v)
382  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
383  static void saveData(std::ostream &os, UT_Vector3D v)
384  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
385  UTwrite<fpreal64>(os, &v.z()); }
386  static void saveData(std::ostream &os, UT_Vector4D v)
387  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
388  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
389  static void saveData(std::ostream &os, UT_Matrix2D v)
391  static void saveData(std::ostream &os, UT_Matrix3D v)
393  static void saveData(std::ostream &os, UT_Matrix4D v)
395  static void saveData(std::ostream &os, UT_StringHolder s)
396  { UT_StringWrap(s).saveBinary(os); }
397  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
399  UT_OStringStream ostr;
400  if (s) s->save(ostr);
401  result = ostr.str();
402  saveData(os, result);
403  }
404  static void saveData(std::ostream &os, PRM_DataItemHandle s)
406  UT_OStringStream ostr;
407  if (s)
408  {
409  ostr << s->getDataTypeToken();
410  ostr << ":";
411  s->saveBinary(ostr);
412  }
413  result = ostr.str();
414  saveData(os, result);
415  }
416 
417 
418  void save(std::ostream &os) const
419  {
420  int32 v = version();
421  UTwrite(os, &v);
422  saveData(os, myGroup);
423  saveData(os, myType);
424  saveData(os, myOverride);
425  saveData(os, myAttribname);
426  saveData(os, myCurvetype);
427  saveData(os, myCurve);
428  saveData(os, myT);
429 
430  }
431 
432  bool load(UT_IStream &is)
433  {
434  int32 v;
435  is.bread(&v, 1);
436  if (version() != v)
437  {
438  // Fail incompatible versions
439  return false;
440  }
441  loadData(is, myGroup);
442  loadData(is, myType);
443  loadData(is, myOverride);
444  loadData(is, myAttribname);
445  loadData(is, myCurvetype);
446  loadData(is, myCurve);
447  loadData(is, myT);
448 
449  return true;
450  }
451 
452  const UT_StringHolder & getGroup() const { return myGroup; }
453  void setGroup(const UT_StringHolder & val) { myGroup = val; }
455  {
456  SOP_Node *thissop = cookparms.getNode();
457  if (!thissop) return getGroup();
459  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
460  return result;
461  }
462  Type getType() const { return Type(myType); }
463  void setType(Type val) { myType = int64(val); }
464  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
465  {
466  SOP_Node *thissop = cookparms.getNode();
467  if (!thissop) return getType();
468  int64 result;
469  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
470  return Type(result);
471  }
472  bool getOverride() const { return myOverride; }
473  void setOverride(bool val) { myOverride = val; }
474  bool opOverride(const SOP_NodeVerb::CookParms &cookparms) const
475  {
476  SOP_Node *thissop = cookparms.getNode();
477  if (!thissop) return getOverride();
478  bool result;
479  OP_Utils::evalOpParm(result, thissop, "override", cookparms.getCookTime(), 0);
480  return result;
481  }
482  const UT_StringHolder & getAttribname() const { return myAttribname; }
483  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
485  {
486  SOP_Node *thissop = cookparms.getNode();
487  if (!thissop) return getAttribname();
489  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
490  return result;
491  }
492  Curvetype getCurvetype() const { return Curvetype(myCurvetype); }
493  void setCurvetype(Curvetype val) { myCurvetype = int64(val); }
495  {
496  SOP_Node *thissop = cookparms.getNode();
497  if (!thissop) return getCurvetype();
498  int64 result;
499  OP_Utils::evalOpParm(result, thissop, "curvetype", cookparms.getCookTime(), 0);
500  return Curvetype(result);
501  }
502  UT_Vector2D getCurve() const { return myCurve; }
503  void setCurve(UT_Vector2D val) { myCurve = val; }
505  {
506  SOP_Node *thissop = cookparms.getNode();
507  if (!thissop) return getCurve();
509  OP_Utils::evalOpParm(result, thissop, "curve", cookparms.getCookTime(), 0);
510  return result;
511  }
512  UT_Vector3D getT() const { return myT; }
513  void setT(UT_Vector3D val) { myT = val; }
514  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
515  {
516  SOP_Node *thissop = cookparms.getNode();
517  if (!thissop) return getT();
519  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
520  return result;
521  }
522 
523 private:
524  UT_StringHolder myGroup;
525  int64 myType;
526  bool myOverride;
527  UT_StringHolder myAttribname;
528  int64 myCurvetype;
529  UT_Vector2D myCurve;
530  UT_Vector3D myT;
531 
532 };
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
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
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
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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
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 coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
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
Utility class for containing a color ramp.
Definition: UT_Ramp.h:88
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:1385
#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:89
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
OP_NodeParms & operator=(const OP_NodeParms &)=default
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