HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeReduce.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_VolumeReduceEnums
24 {
25  enum class Reduction
26  {
27  MAX = 0,
28  MIN,
29  MAXABS,
30  MINABS,
31  AVERAGE,
32  MEDIAN,
33  SUM,
34  SUMABS,
35  SUMSQUARE,
36  RMS
37  };
38  enum class Scaleby
39  {
40  NONE = 0,
41  LENGTH,
42  AREA,
43  VOLUME
44  };
45  enum class Result
46  {
47  VOLUME = 0,
48  VERTEX,
49  POINT,
50  PRIM,
51  DETAIL
52  };
53 }
54 
55 
57 {
58 public:
59  static int version() { return 1; }
60 
62  {
63  myGroup = ""_UTsh;
64  myReduction = 0;
65  myPercentile = 50;
66  myScaleby = 0;
67  myResult = 0;
68  myResultattrib = "density"_UTsh;
69  myCreateVarMap = false;
70  myResultlvar = ""_UTsh;
71 
72  }
73 
74  explicit SOP_VolumeReduceParms(const SOP_VolumeReduceParms &) = default;
76  SOP_VolumeReduceParms(SOP_VolumeReduceParms &&) noexcept = default;
77  SOP_VolumeReduceParms &operator=(SOP_VolumeReduceParms &&) noexcept = default;
78 
79  ~SOP_VolumeReduceParms() override {}
80 
82  {
83  if (myGroup != src.myGroup) return false;
84  if (myReduction != src.myReduction) return false;
85  if (myPercentile != src.myPercentile) return false;
86  if (myScaleby != src.myScaleby) return false;
87  if (myResult != src.myResult) return false;
88  if (myResultattrib != src.myResultattrib) return false;
89  if (myCreateVarMap != src.myCreateVarMap) return false;
90  if (myResultlvar != src.myResultlvar) return false;
91 
92  return true;
93  }
95  {
96  return !operator==(src);
97  }
101 
102 
103 
104  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
105  {
106  myGroup = ""_UTsh;
107  if (true)
108  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
109  myReduction = 0;
110  if (true)
111  graph->evalOpParm(myReduction, nodeidx, "reduction", time, 0);
112  myPercentile = 50;
113  if (true && ( (true&&!(((int64(getReduction())!=5)))) ) )
114  graph->evalOpParm(myPercentile, nodeidx, "percentile", time, 0);
115  myScaleby = 0;
116  if (true)
117  graph->evalOpParm(myScaleby, nodeidx, "scaleby", time, 0);
118  myResult = 0;
119  if (true)
120  graph->evalOpParm(myResult, nodeidx, "result", time, 0);
121  myResultattrib = "density"_UTsh;
122  if (true && ( (true&&!(((int64(getResult())==0)))) ) )
123  graph->evalOpParm(myResultattrib, nodeidx, "resultattrib", time, 0);
124  myCreateVarMap = false;
125  if (true)
126  graph->evalOpParm(myCreateVarMap, nodeidx, "createvarmap", time, 0);
127  myResultlvar = ""_UTsh;
128  if (true && ( (true&&!(((getCreateVarMap()==0))||((int64(getResult())==0)))) ) )
129  graph->evalOpParm(myResultlvar, nodeidx, "resultlvar", time, 0);
130 
131  }
132 
133 
134  void loadFromOpSubclass(const LoadParms &loadparms) override
135  {
136  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
137  }
138 
139 
140  void copyFrom(const OP_NodeParms *src) override
141  {
142  *this = *((const SOP_VolumeReduceParms *)src);
143  }
144 
145  template <typename T>
146  void
147  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
148  {
149  if (idx.size() < 1)
150  return;
151  UT_ASSERT(idx.size() == instance.size()+1);
152  if (idx.size() != instance.size()+1)
153  return;
154  switch (idx[0])
155  {
156  case 0:
157  coerceValue(value, myGroup);
158  break;
159  case 1:
160  coerceValue(value, myReduction);
161  break;
162  case 2:
163  coerceValue(value, myPercentile);
164  break;
165  case 3:
166  coerceValue(value, myScaleby);
167  break;
168  case 4:
169  coerceValue(value, myResult);
170  break;
171  case 5:
172  coerceValue(value, myResultattrib);
173  break;
174  case 6:
175  coerceValue(value, myCreateVarMap);
176  break;
177  case 7:
178  coerceValue(value, myResultlvar);
179  break;
180 
181  }
182  }
183 
184  bool isParmColorRamp(exint idx) const override
185  {
186  switch (idx)
187  {
188 
189  }
190  return false;
191  }
192 
193  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
194  { doGetParmValue(idx, instance, value); }
195  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
196  { doGetParmValue(idx, instance, value); }
197  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
198  { doGetParmValue(idx, instance, value); }
199  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
200  { doGetParmValue(idx, instance, value); }
201  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
202  { doGetParmValue(idx, instance, value); }
203  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
204  { doGetParmValue(idx, instance, value); }
205  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
206  { doGetParmValue(idx, instance, value); }
207  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
208  { doGetParmValue(idx, instance, value); }
209  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
210  { doGetParmValue(idx, instance, value); }
211  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
212  { doGetParmValue(idx, instance, value); }
213  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
214  { doGetParmValue(idx, instance, value); }
215 
216  template <typename T>
217  void
218  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
219  {
220  if (idx.size() < 1)
221  return;
222  UT_ASSERT(idx.size() == instance.size()+1);
223  if (idx.size() != instance.size()+1)
224  return;
225  switch (idx[0])
226  {
227  case 0:
228  coerceValue(myGroup, ( ( value ) ));
229  break;
230  case 1:
231  coerceValue(myReduction, clampMinValue(0, clampMaxValue(9, value ) ));
232  break;
233  case 2:
234  coerceValue(myPercentile, clampMinValue(0, clampMaxValue(100, value ) ));
235  break;
236  case 3:
237  coerceValue(myScaleby, clampMinValue(0, clampMaxValue(3, value ) ));
238  break;
239  case 4:
240  coerceValue(myResult, clampMinValue(0, clampMaxValue(4, value ) ));
241  break;
242  case 5:
243  coerceValue(myResultattrib, ( ( value ) ));
244  break;
245  case 6:
246  coerceValue(myCreateVarMap, ( ( value ) ));
247  break;
248  case 7:
249  coerceValue(myResultlvar, ( ( 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 8;
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 "reduction";
300  case 2:
301  return "percentile";
302  case 3:
303  return "scaleby";
304  case 4:
305  return "result";
306  case 5:
307  return "resultattrib";
308  case 6:
309  return "createvarmap";
310  case 7:
311  return "resultlvar";
312 
313  }
314  return 0;
315  }
316 
317  ParmType getNestParmType(TempIndex fieldnum) const override
318  {
319  if (fieldnum.size() < 1)
320  return PARM_UNSUPPORTED;
321  switch (fieldnum[0])
322  {
323  case 0:
324  return PARM_STRING;
325  case 1:
326  return PARM_INTEGER;
327  case 2:
328  return PARM_FLOAT;
329  case 3:
330  return PARM_INTEGER;
331  case 4:
332  return PARM_INTEGER;
333  case 5:
334  return PARM_STRING;
335  case 6:
336  return PARM_INTEGER;
337  case 7:
338  return PARM_STRING;
339 
340  }
341  return PARM_UNSUPPORTED;
342  }
343 
344  // Boiler plate to load individual types.
345  static void loadData(UT_IStream &is, int64 &v)
346  { is.bread(&v, 1); }
347  static void loadData(UT_IStream &is, bool &v)
348  { int64 iv; is.bread(&iv, 1); v = iv; }
349  static void loadData(UT_IStream &is, fpreal64 &v)
350  { is.bread<fpreal64>(&v, 1); }
351  static void loadData(UT_IStream &is, UT_Vector2D &v)
352  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
353  static void loadData(UT_IStream &is, UT_Vector3D &v)
354  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
355  is.bread<fpreal64>(&v.z(), 1); }
356  static void loadData(UT_IStream &is, UT_Vector4D &v)
357  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
358  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
359  static void loadData(UT_IStream &is, UT_Matrix2D &v)
360  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
361  static void loadData(UT_IStream &is, UT_Matrix3D &v)
362  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
363  static void loadData(UT_IStream &is, UT_Matrix4D &v)
364  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
365  static void loadData(UT_IStream &is, UT_Vector2I &v)
366  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
367  static void loadData(UT_IStream &is, UT_Vector3I &v)
368  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
369  is.bread<int64>(&v.z(), 1); }
370  static void loadData(UT_IStream &is, UT_Vector4I &v)
371  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
372  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
374  { is.bread(v); }
376  { UT_StringHolder rampdata;
377  loadData(is, rampdata);
378  if (rampdata.isstring())
379  {
380  v.reset(new UT_Ramp());
381  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
382  v->load(istr);
383  }
384  else v.reset();
385  }
388  loadData(is, data);
389  if (data.isstring())
390  {
391  // Find the data type.
392  const char *colon = UT_StringWrap(data).findChar(':');
393  if (colon)
394  {
395  int typelen = colon - data.buffer();
397  type.strncpy(data.buffer(), typelen);
398  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
399 
400  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
401  }
402  }
403  else v.reset();
404  }
405 
406  static void saveData(std::ostream &os, int64 v)
407  { UTwrite(os, &v); }
408  static void saveData(std::ostream &os, bool v)
409  { int64 iv = v; UTwrite(os, &iv); }
410  static void saveData(std::ostream &os, fpreal64 v)
411  { UTwrite<fpreal64>(os, &v); }
412  static void saveData(std::ostream &os, UT_Vector2D v)
413  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
414  static void saveData(std::ostream &os, UT_Vector3D v)
415  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
416  UTwrite<fpreal64>(os, &v.z()); }
417  static void saveData(std::ostream &os, UT_Vector4D v)
418  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
419  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
420  static void saveData(std::ostream &os, UT_Matrix2D v)
422  static void saveData(std::ostream &os, UT_Matrix3D v)
424  static void saveData(std::ostream &os, UT_Matrix4D v)
426  static void saveData(std::ostream &os, UT_StringHolder s)
427  { UT_StringWrap(s).saveBinary(os); }
428  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
430  UT_OStringStream ostr;
431  if (s) s->save(ostr);
432  result = ostr.str();
433  saveData(os, result);
434  }
435  static void saveData(std::ostream &os, PRM_DataItemHandle s)
437  UT_OStringStream ostr;
438  if (s)
439  {
440  ostr << s->getDataTypeToken();
441  ostr << ":";
442  s->saveBinary(ostr);
443  }
444  result = ostr.str();
445  saveData(os, result);
446  }
447 
448 
449  void save(std::ostream &os) const
450  {
451  int32 v = version();
452  UTwrite(os, &v);
453  saveData(os, myGroup);
454  saveData(os, myReduction);
455  saveData(os, myPercentile);
456  saveData(os, myScaleby);
457  saveData(os, myResult);
458  saveData(os, myResultattrib);
459  saveData(os, myCreateVarMap);
460  saveData(os, myResultlvar);
461 
462  }
463 
464  bool load(UT_IStream &is)
465  {
466  int32 v;
467  is.bread(&v, 1);
468  if (version() != v)
469  {
470  // Fail incompatible versions
471  return false;
472  }
473  loadData(is, myGroup);
474  loadData(is, myReduction);
475  loadData(is, myPercentile);
476  loadData(is, myScaleby);
477  loadData(is, myResult);
478  loadData(is, myResultattrib);
479  loadData(is, myCreateVarMap);
480  loadData(is, myResultlvar);
481 
482  return true;
483  }
484 
485  const UT_StringHolder & getGroup() const { return myGroup; }
486  void setGroup(const UT_StringHolder & val) { myGroup = val; }
488  {
489  SOP_Node *thissop = cookparms.getNode();
490  if (!thissop) return getGroup();
492  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
493  return result;
494  }
495  Reduction getReduction() const { return Reduction(myReduction); }
496  void setReduction(Reduction val) { myReduction = int64(val); }
498  {
499  SOP_Node *thissop = cookparms.getNode();
500  if (!thissop) return getReduction();
501  int64 result;
502  OP_Utils::evalOpParm(result, thissop, "reduction", cookparms.getCookTime(), 0);
503  return Reduction(result);
504  }
505  fpreal64 getPercentile() const { return myPercentile; }
506  void setPercentile(fpreal64 val) { myPercentile = val; }
508  {
509  SOP_Node *thissop = cookparms.getNode();
510  if (!thissop) return getPercentile();
512  OP_Utils::evalOpParm(result, thissop, "percentile", cookparms.getCookTime(), 0);
513  return result;
514  }
515  Scaleby getScaleby() const { return Scaleby(myScaleby); }
516  void setScaleby(Scaleby val) { myScaleby = int64(val); }
517  Scaleby opScaleby(const SOP_NodeVerb::CookParms &cookparms) const
518  {
519  SOP_Node *thissop = cookparms.getNode();
520  if (!thissop) return getScaleby();
521  int64 result;
522  OP_Utils::evalOpParm(result, thissop, "scaleby", cookparms.getCookTime(), 0);
523  return Scaleby(result);
524  }
525  Result getResult() const { return Result(myResult); }
526  void setResult(Result val) { myResult = int64(val); }
527  Result opResult(const SOP_NodeVerb::CookParms &cookparms) const
528  {
529  SOP_Node *thissop = cookparms.getNode();
530  if (!thissop) return getResult();
531  int64 result;
532  OP_Utils::evalOpParm(result, thissop, "result", cookparms.getCookTime(), 0);
533  return Result(result);
534  }
535  const UT_StringHolder & getResultattrib() const { return myResultattrib; }
536  void setResultattrib(const UT_StringHolder & val) { myResultattrib = val; }
538  {
539  SOP_Node *thissop = cookparms.getNode();
540  if (!thissop) return getResultattrib();
542  OP_Utils::evalOpParm(result, thissop, "resultattrib", cookparms.getCookTime(), 0);
543  return result;
544  }
545  bool getCreateVarMap() const { return myCreateVarMap; }
546  void setCreateVarMap(bool val) { myCreateVarMap = val; }
547  bool opCreateVarMap(const SOP_NodeVerb::CookParms &cookparms) const
548  {
549  SOP_Node *thissop = cookparms.getNode();
550  if (!thissop) return getCreateVarMap();
551  bool result;
552  OP_Utils::evalOpParm(result, thissop, "createvarmap", cookparms.getCookTime(), 0);
553  return result;
554  }
555  const UT_StringHolder & getResultlvar() const { return myResultlvar; }
556  void setResultlvar(const UT_StringHolder & val) { myResultlvar = val; }
558  {
559  SOP_Node *thissop = cookparms.getNode();
560  if (!thissop) return getResultlvar();
562  OP_Utils::evalOpParm(result, thissop, "resultlvar", cookparms.getCookTime(), 0);
563  return result;
564  }
565 
566 private:
567  UT_StringHolder myGroup;
568  int64 myReduction;
569  fpreal64 myPercentile;
570  int64 myScaleby;
571  int64 myResult;
572  UT_StringHolder myResultattrib;
573  bool myCreateVarMap;
574  UT_StringHolder myResultlvar;
575 
576 };
static void loadData(UT_IStream &is, UT_StringHolder &v)
bool operator==(const SOP_VolumeReduceParms &src) const
static void saveData(std::ostream &os, UT_Vector2D v)
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:347
static void loadData(UT_IStream &is, UT_Vector3I &v)
const char * getNestParmName(TempIndex fieldnum) const override
T clampMaxValue(fpreal maxvalue, const T &src) const
Definition: OP_NodeParms.h:315
const UT_StringHolder & getGroup() const
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
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
fpreal getTime() const
Definition: OP_Context.h:62
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
void setReduction(Reduction val)
const UT_StringHolder & getResultattrib() const
UT_StringHolder opResultattrib(const SOP_NodeVerb::CookParms &cookparms) const
const OP_Context & context() const
Definition: OP_NodeParms.h:97
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector3.h:667
int64 exint
Definition: SYS_Types.h:125
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void saveData(std::ostream &os, bool v)
SYS_FORCE_INLINE const char * buffer() const
GLdouble s
Definition: glad.h:3009
const UT_StringHolder & getResultlvar() const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
An output stream object that owns its own string buffer storage.
void copyFrom(const OP_NodeParms *src) override
**But if you need a result
Definition: thread.h:613
static void saveData(std::ostream &os, UT_StringHolder s)
T clampMinValue(fpreal minvalue, const T &src) const
Definition: OP_NodeParms.h:308
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.
bool opCreateVarMap(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
bool load(UT_IStream &is)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector4.h:491
bool operator!=(const SOP_VolumeReduceParms &src) const
double fpreal64
Definition: SYS_Types.h:201
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector2.h:423
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Matrix3D v)
exint length() const
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:36
UT_StringHolder opResultlvar(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
constexpr SYS_FORCE_INLINE T & z() noexcept
Definition: UT_Vector4.h:495
fpreal64 opPercentile(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
const OP_GraphProxy * graph() const
Definition: OP_NodeParms.h:94
static void saveData(std::ostream &os, int64 v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
void save(std::ostream &os) const
static void loadData(UT_IStream &is, UT_Matrix4D &v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
Reduction getReduction() const
long long int64
Definition: SYS_Types.h:116
ParmType getNestParmType(TempIndex fieldnum) const override
Reduction opReduction(const SOP_NodeVerb::CookParms &cookparms) const
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
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:296
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
GT_API const UT_StringHolder version
static void saveData(std::ostream &os, UT_Vector4D v)
Scaleby opScaleby(const SOP_NodeVerb::CookParms &cookparms) const
void setPercentile(fpreal64 val)
static void saveData(std::ostream &os, UT_Vector3D v)
bool isParmColorRamp(exint idx) const override
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
void coerceValue(T &result, const S &src) const
Definition: OP_NodeParms.h:301
static void loadData(UT_IStream &is, int64 &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
fpreal64 fpreal
Definition: SYS_Types.h:277
static void saveData(std::ostream &os, PRM_DataItemHandle s)
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
exint getNestNumParms(TempIndex idx) const override
constexpr SYS_FORCE_INLINE T & w() noexcept
Definition: UT_Vector4.h:497
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
GLuint GLfloat * val
Definition: glcorearb.h:1608
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:361
static void loadData(UT_IStream &is, UT_Matrix3D &v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void setResultlvar(const UT_StringHolder &val)
const char * findChar(int c) const
Definition: UT_String.h:1385
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
Definition: core.h:1131
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
fpreal64 getPercentile() const
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, fpreal64 v)
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
GLboolean r
Definition: glcorearb.h:1222
static void loadData(UT_IStream &is, UT_Vector2D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector3.h:665
type
Definition: core.h:1059
static void saveData(std::ostream &os, UT_Matrix2D v)
void loadFromOpSubclass(const LoadParms &loadparms) override
void setResultattrib(const UT_StringHolder &val)
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
static void loadData(UT_IStream &is, fpreal64 &v)
constexpr SYS_FORCE_INLINE T & y() noexcept
Definition: UT_Vector2.h:425
SYS_FORCE_INLINE bool isstring() const
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void loadData(UT_IStream &is, bool &v)
OP_NodeParms & operator=(const OP_NodeParms &)=default
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
GLenum src
Definition: glcorearb.h:1793
constexpr SYS_FORCE_INLINE T & x() noexcept
Definition: UT_Vector3.h:663
Result opResult(const SOP_NodeVerb::CookParms &cookparms) const