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_NodeVerb.h>
7 #include <SOP/SOP_GraphProxy.h>
8 
9 #include <OP/OP_Utils.h>
10 #include <PRM/PRM_Parm.h>
11 #include <UT/UT_IStream.h>
12 #include <UT/UT_NTStreamUtil.h>
13 #include <UT/UT_Ramp.h>
14 #include <UT/UT_SharedPtr.h>
15 #include <UT/UT_StringHolder.h>
16 #include <UT/UT_StringStream.h>
17 #include <UT/UT_VectorTypes.h>
18 #include <SYS/SYS_Types.h>
19 
20 using namespace UT::Literal;
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 = ""_sh;
49  myType = 0;
50  myOverride = false;
51  myAttribname = "area"_sh;
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 
60  ~SOP_MeasureParms() override {}
61 
62  bool operator==(const SOP_MeasureParms &src) const
63  {
64  if (myGroup != src.myGroup) return false;
65  if (myType != src.myType) return false;
66  if (myOverride != src.myOverride) return false;
67  if (myAttribname != src.myAttribname) return false;
68  if (myCurvetype != src.myCurvetype) return false;
69  if (myCurve != src.myCurve) return false;
70  if (myT != src.myT) return false;
71 
72  return true;
73  }
74  bool operator!=(const SOP_MeasureParms &src) const
75  {
76  return !operator==(src);
77  }
80 
81 
82 
83  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
84  {
85  myGroup = ""_sh;
86  if (true)
87  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
88  myType = 0;
89  if (true)
90  graph->evalOpParm(myType, nodeidx, "type", time, 0);
91  myOverride = false;
92  if (true)
93  graph->evalOpParm(myOverride, nodeidx, "override", time, 0);
94  myAttribname = "area"_sh;
95  if (true && ( (!(((getOverride()==0)))) ) )
96  graph->evalOpParm(myAttribname, nodeidx, "attribname", time, 0);
97  myCurvetype = 0;
98  if (true && ( (!(((int64(getType())!=2)))) ) )
99  graph->evalOpParm(myCurvetype, nodeidx, "curvetype", time, 0);
100  myCurve = UT_Vector2D(0,1000);
101  if (true && ( (!(((int64(getType())!=2)))) ) )
102  graph->evalOpParm(myCurve, nodeidx, "curve", time, 0);
103  myT = UT_Vector3D(0,0,0);
104  if (true && ( (!(((int64(getType())!=3)))) ) )
105  graph->evalOpParm(myT, nodeidx, "t", time, 0);
106 
107  }
108 
109 
110  void loadFromOpSubclass(const LoadParms &loadparms) override
111  {
112  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
113  }
114 
115 
116  void copyFrom(const SOP_NodeParms *src) override
117  {
118  *this = *((const SOP_MeasureParms *)src);
119  }
120 
121  template <typename T>
122  void
123  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
124  {
125  if (idx.size() < 1)
126  return;
127  UT_ASSERT(idx.size() == instance.size()+1);
128  if (idx.size() != instance.size()+1)
129  return;
130  switch (idx[0])
131  {
132  case 0:
133  coerceValue(value, myGroup);
134  break;
135  case 1:
136  coerceValue(value, myType);
137  break;
138  case 2:
139  coerceValue(value, myOverride);
140  break;
141  case 3:
142  coerceValue(value, myAttribname);
143  break;
144  case 4:
145  coerceValue(value, myCurvetype);
146  break;
147  case 5:
148  coerceValue(value, myCurve);
149  break;
150  case 6:
151  coerceValue(value, myT);
152  break;
153 
154  }
155  }
156 
157  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
158  { doGetParmValue(idx, instance, value); }
159  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
160  { doGetParmValue(idx, instance, value); }
161  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
162  { doGetParmValue(idx, instance, value); }
163  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
164  { doGetParmValue(idx, instance, value); }
165  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
166  { doGetParmValue(idx, instance, value); }
167  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
168  { doGetParmValue(idx, instance, value); }
169  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
170  { doGetParmValue(idx, instance, value); }
171  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
172  { doGetParmValue(idx, instance, value); }
173  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
178  { doGetParmValue(idx, instance, value); }
179 
180  template <typename T>
181  void
182  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
183  {
184  if (idx.size() < 1)
185  return;
186  UT_ASSERT(idx.size() == instance.size()+1);
187  if (idx.size() != instance.size()+1)
188  return;
189  switch (idx[0])
190  {
191  case 0:
192  coerceValue(myGroup, value);
193  break;
194  case 1:
195  coerceValue(myType, value);
196  break;
197  case 2:
198  coerceValue(myOverride, value);
199  break;
200  case 3:
201  coerceValue(myAttribname, value);
202  break;
203  case 4:
204  coerceValue(myCurvetype, value);
205  break;
206  case 5:
207  coerceValue(myCurve, value);
208  break;
209  case 6:
210  coerceValue(myT, value);
211  break;
212 
213  }
214  }
215 
216  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
217  { doSetParmValue(idx, instance, value); }
218  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
219  { doSetParmValue(idx, instance, value); }
220  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
221  { doSetParmValue(idx, instance, value); }
222  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
223  { doSetParmValue(idx, instance, value); }
224  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
225  { doSetParmValue(idx, instance, value); }
226  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
227  { doSetParmValue(idx, instance, value); }
228  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
229  { doSetParmValue(idx, instance, value); }
230  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
231  { doSetParmValue(idx, instance, value); }
232  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
237  { doSetParmValue(idx, instance, value); }
238 
239  exint getNestNumParms(TempIndex idx) const override
240  {
241  if (idx.size() == 0)
242  return 7;
243  switch (idx[0])
244  {
245 
246  }
247  // Invalid
248  return 0;
249  }
250 
251  const char *getNestParmName(TempIndex fieldnum) const override
252  {
253  if (fieldnum.size() < 1)
254  return 0;
255  switch (fieldnum[0])
256  {
257  case 0:
258  return "group";
259  case 1:
260  return "type";
261  case 2:
262  return "override";
263  case 3:
264  return "attribname";
265  case 4:
266  return "curvetype";
267  case 5:
268  return "curve";
269  case 6:
270  return "t";
271 
272  }
273  return 0;
274  }
275 
276  ParmType getNestParmType(TempIndex fieldnum) const override
277  {
278  if (fieldnum.size() < 1)
279  return PARM_UNSUPPORTED;
280  switch (fieldnum[0])
281  {
282  case 0:
283  return PARM_STRING;
284  case 1:
285  return PARM_INTEGER;
286  case 2:
287  return PARM_INTEGER;
288  case 3:
289  return PARM_STRING;
290  case 4:
291  return PARM_INTEGER;
292  case 5:
293  return PARM_VECTOR2;
294  case 6:
295  return PARM_VECTOR3;
296 
297  }
298  return PARM_UNSUPPORTED;
299  }
300 
301  // Boiler plate to load individual types.
302  static void loadData(UT_IStream &is, int64 &v)
303  { is.bread(&v, 1); }
304  static void loadData(UT_IStream &is, bool &v)
305  { int64 iv; is.bread(&iv, 1); v = iv; }
306  static void loadData(UT_IStream &is, fpreal64 &v)
307  { is.bread<fpreal64>(&v, 1); }
308  static void loadData(UT_IStream &is, UT_Vector2D &v)
309  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
310  static void loadData(UT_IStream &is, UT_Vector3D &v)
311  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
312  is.bread<fpreal64>(&v.z(), 1); }
313  static void loadData(UT_IStream &is, UT_Vector4D &v)
314  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
315  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
316  static void loadData(UT_IStream &is, UT_Matrix2D &v)
317  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
318  static void loadData(UT_IStream &is, UT_Matrix3D &v)
319  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
320  static void loadData(UT_IStream &is, UT_Matrix4D &v)
321  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
322  static void loadData(UT_IStream &is, UT_Vector2I &v)
323  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
324  static void loadData(UT_IStream &is, UT_Vector3I &v)
325  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
326  is.bread<int64>(&v.z(), 1); }
327  static void loadData(UT_IStream &is, UT_Vector4I &v)
328  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
329  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
331  { is.bread(v); }
333  { UT_StringHolder rampdata;
334  loadData(is, rampdata);
335  if (rampdata.isstring())
336  {
337  v.reset(new UT_Ramp());
338  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
339  v->load(istr);
340  }
341  else v.reset();
342  }
345  loadData(is, data);
346  if (data.isstring())
347  {
348  // Find the data type.
349  const char *colon = UT_StringWrap(data).findChar(':');
350  if (colon)
351  {
352  int typelen = colon - data.buffer();
354  type.strncpy(data.buffer(), typelen);
355  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
356 
357  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
358  }
359  }
360  else v.reset();
361  }
362 
363  static void saveData(std::ostream &os, int64 v)
364  { UTwrite(os, &v); }
365  static void saveData(std::ostream &os, bool v)
366  { int64 iv = v; UTwrite(os, &iv); }
367  static void saveData(std::ostream &os, fpreal64 v)
368  { UTwrite<fpreal64>(os, &v); }
369  static void saveData(std::ostream &os, UT_Vector2D v)
370  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
371  static void saveData(std::ostream &os, UT_Vector3D v)
372  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
373  UTwrite<fpreal64>(os, &v.z()); }
374  static void saveData(std::ostream &os, UT_Vector4D v)
375  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
376  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
377  static void saveData(std::ostream &os, UT_Matrix2D v)
379  static void saveData(std::ostream &os, UT_Matrix3D v)
381  static void saveData(std::ostream &os, UT_Matrix4D v)
383  static void saveData(std::ostream &os, UT_StringHolder s)
384  { UT_StringWrap(s).saveBinary(os); }
385  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
387  UT_OStringStream ostr;
388  if (s) s->save(ostr);
389  result = ostr.str();
390  saveData(os, result);
391  }
392  static void saveData(std::ostream &os, PRM_DataItemHandle s)
394  UT_OStringStream ostr;
395  if (s)
396  {
397  ostr << s->getDataTypeToken();
398  ostr << ":";
399  s->saveBinary(ostr);
400  }
401  result = ostr.str();
402  saveData(os, result);
403  }
404 
405 
406  void save(std::ostream &os) const
407  {
408  int32 v = version();
409  UTwrite(os, &v);
410  saveData(os, myGroup);
411  saveData(os, myType);
412  saveData(os, myOverride);
413  saveData(os, myAttribname);
414  saveData(os, myCurvetype);
415  saveData(os, myCurve);
416  saveData(os, myT);
417 
418  }
419 
420  bool load(UT_IStream &is)
421  {
422  int32 v;
423  is.bread(&v, 1);
424  if (version() != v)
425  {
426  // Fail incompatible versions
427  return false;
428  }
429  loadData(is, myGroup);
430  loadData(is, myType);
431  loadData(is, myOverride);
432  loadData(is, myAttribname);
433  loadData(is, myCurvetype);
434  loadData(is, myCurve);
435  loadData(is, myT);
436 
437  return true;
438  }
439 
440  const UT_StringHolder & getGroup() const { return myGroup; }
441  void setGroup(const UT_StringHolder & val) { myGroup = val; }
443  {
444  SOP_Node *thissop = cookparms.getNode();
445  if (!thissop) return getGroup();
447  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
448  return result;
449  }
450  Type getType() const { return Type(myType); }
451  void setType(Type val) { myType = int64(val); }
452  Type opType(const SOP_NodeVerb::CookParms &cookparms) const
453  {
454  SOP_Node *thissop = cookparms.getNode();
455  if (!thissop) return getType();
456  int64 result;
457  OP_Utils::evalOpParm(result, thissop, "type", cookparms.getCookTime(), 0);
458  return Type(result);
459  }
460  bool getOverride() const { return myOverride; }
461  void setOverride(bool val) { myOverride = val; }
462  bool opOverride(const SOP_NodeVerb::CookParms &cookparms) const
463  {
464  SOP_Node *thissop = cookparms.getNode();
465  if (!thissop) return getOverride();
466  bool result;
467  OP_Utils::evalOpParm(result, thissop, "override", cookparms.getCookTime(), 0);
468  return result;
469  }
470  const UT_StringHolder & getAttribname() const { return myAttribname; }
471  void setAttribname(const UT_StringHolder & val) { myAttribname = val; }
473  {
474  SOP_Node *thissop = cookparms.getNode();
475  if (!thissop) return getAttribname();
477  OP_Utils::evalOpParm(result, thissop, "attribname", cookparms.getCookTime(), 0);
478  return result;
479  }
480  Curvetype getCurvetype() const { return Curvetype(myCurvetype); }
481  void setCurvetype(Curvetype val) { myCurvetype = int64(val); }
483  {
484  SOP_Node *thissop = cookparms.getNode();
485  if (!thissop) return getCurvetype();
486  int64 result;
487  OP_Utils::evalOpParm(result, thissop, "curvetype", cookparms.getCookTime(), 0);
488  return Curvetype(result);
489  }
490  UT_Vector2D getCurve() const { return myCurve; }
491  void setCurve(UT_Vector2D val) { myCurve = val; }
493  {
494  SOP_Node *thissop = cookparms.getNode();
495  if (!thissop) return getCurve();
497  OP_Utils::evalOpParm(result, thissop, "curve", cookparms.getCookTime(), 0);
498  return result;
499  }
500  UT_Vector3D getT() const { return myT; }
501  void setT(UT_Vector3D val) { myT = val; }
502  UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
503  {
504  SOP_Node *thissop = cookparms.getNode();
505  if (!thissop) return getT();
507  OP_Utils::evalOpParm(result, thissop, "t", cookparms.getCookTime(), 0);
508  return result;
509  }
510 
511 private:
512  UT_StringHolder myGroup;
513  int64 myType;
514  bool myOverride;
515  UT_StringHolder myAttribname;
516  int64 myCurvetype;
517  UT_Vector2D myCurve;
518  UT_Vector3D myT;
519 
520 };
GLdouble s
Definition: glew.h:1390
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)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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)
GT_API const UT_StringHolder time
void setT(UT_Vector3D val)
fpreal getTime() const
Definition: OP_Context.h:60
static void loadData(UT_IStream &is, UT_Matrix3D &v)
UT_Vector2T< fpreal64 > UT_Vector2D
GLuint const GLfloat * val
Definition: glew.h:2794
void save(std::ostream &os) const
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void setType(Type val)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
Type getType() const
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:113
static void loadData(UT_IStream &is, UT_Vector4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
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
const GLdouble * v
Definition: glew.h:1391
static void loadData(UT_IStream &is, bool &v)
void setAttribname(const UT_StringHolder &val)
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
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
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
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
~SOP_MeasureParms() override
static void saveData(std::ostream &os, int64 v)
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void copyFrom(const SOP_NodeParms *src) override
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
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
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
Curvetype getCurvetype() const
static void loadData(UT_IStream &is, UT_Vector3I &v)
static void saveData(std::ostream &os, UT_Vector4D v)
const GLfloat * c
Definition: glew.h:16296
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)
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
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:294
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:121
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
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
static void loadData(UT_IStream &is, UT_Vector3D &v)
UT_Vector2D getCurve() const
#define SOP_API
Definition: SOP_API.h:10
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
static void loadData(UT_IStream &is, UT_StringHolder &v)
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:511
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:654
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
GLuint64EXT * result
Definition: glew.h:14007
const char * findChar(int c) const
Definition: UT_String.h:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
Curvetype opCurvetype(const SOP_NodeVerb::CookParms &cookparms) const
const char * getNestParmName(TempIndex fieldnum) const override
const UT_StringHolder & getAttribname() const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
GLsizei const GLfloat * value
Definition: glew.h:1849
UT_Vector3D opT(const SOP_NodeVerb::CookParms &cookparms) const
UT_Vector2D opCurve(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
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)
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)
type
Definition: core.h:528
static void loadData(UT_IStream &is, UT_Vector2I &v)
static int version()
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override