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 <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_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 
40  getToken(Reduction enum_value)
41  {
42  using namespace UT::Literal;
43  switch (enum_value) {
44  case Reduction::MAX: return "max"_sh;
45  case Reduction::MIN: return "min"_sh;
46  case Reduction::MAXABS: return "maxabs"_sh;
47  case Reduction::MINABS: return "minabs"_sh;
48  case Reduction::AVERAGE: return "average"_sh;
49  case Reduction::MEDIAN: return "median"_sh;
50  case Reduction::SUM: return "sum"_sh;
51  case Reduction::SUMABS: return "sumabs"_sh;
52  case Reduction::SUMSQUARE: return "sumsquare"_sh;
53  case Reduction::RMS: return "rms"_sh;
54  default: UT_ASSERT(false); return ""_sh;
55  }
56  }
57 
58  enum class Scaleby
59  {
60  NONE = 0,
61  LENGTH,
62  AREA,
63  VOLUME
64  };
65 
67  getToken(Scaleby enum_value)
68  {
69  using namespace UT::Literal;
70  switch (enum_value) {
71  case Scaleby::NONE: return "none"_sh;
72  case Scaleby::LENGTH: return "length"_sh;
73  case Scaleby::AREA: return "area"_sh;
74  case Scaleby::VOLUME: return "volume"_sh;
75  default: UT_ASSERT(false); return ""_sh;
76  }
77  }
78 
79  enum class Result
80  {
81  VOLUME = 0,
82  VERTEX,
83  POINT,
84  PRIM,
85  DETAIL
86  };
87 
89  getToken(Result enum_value)
90  {
91  using namespace UT::Literal;
92  switch (enum_value) {
93  case Result::VOLUME: return "volume"_sh;
94  case Result::VERTEX: return "vertex"_sh;
95  case Result::POINT: return "point"_sh;
96  case Result::PRIM: return "prim"_sh;
97  case Result::DETAIL: return "detail"_sh;
98  default: UT_ASSERT(false); return ""_sh;
99  }
100  }
101 
102 }
103 
104 
106 {
107 public:
108  static int version() { return 1; }
109 
111  {
112  myGroup = ""_UTsh;
113  myReduction = 0;
114  myPercentile = 50;
115  myScaleby = 0;
116  myResult = 0;
117  myResultattrib = "density"_UTsh;
118  myCreateVarMap = false;
119  myResultlvar = ""_UTsh;
120 
121  }
122 
123  explicit SOP_VolumeReduceParms(const SOP_VolumeReduceParms &) = default;
125  SOP_VolumeReduceParms(SOP_VolumeReduceParms &&) noexcept = default;
126  SOP_VolumeReduceParms &operator=(SOP_VolumeReduceParms &&) noexcept = default;
127 
128  ~SOP_VolumeReduceParms() override {}
129 
131  {
132  if (myGroup != src.myGroup) return false;
133  if (myReduction != src.myReduction) return false;
134  if (myPercentile != src.myPercentile) return false;
135  if (myScaleby != src.myScaleby) return false;
136  if (myResult != src.myResult) return false;
137  if (myResultattrib != src.myResultattrib) return false;
138  if (myCreateVarMap != src.myCreateVarMap) return false;
139  if (myResultlvar != src.myResultlvar) return false;
140 
141 
142  if (baseGetSignature() != src.baseGetSignature()) return false;
143 
144  return true;
145  }
147  {
148  return !operator==(src);
149  }
153 
154 
155 
156  void buildFromOp(const OP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
157  {
158  myGroup = ""_UTsh;
159  if (true)
160  graph->evalOpParm(myGroup, nodeidx, "group", time, graph->isDirect()?nullptr:depnode);
161  myReduction = 0;
162  if (true)
163  graph->evalOpParm(myReduction, nodeidx, "reduction", time, graph->isDirect()?nullptr:depnode);
164  myPercentile = 50;
165  if (true && ( (true&&!(((int64(getReduction())!=5)))) ) )
166  graph->evalOpParm(myPercentile, nodeidx, "percentile", time, graph->isDirect()?nullptr:depnode);
167  myScaleby = 0;
168  if (true)
169  graph->evalOpParm(myScaleby, nodeidx, "scaleby", time, graph->isDirect()?nullptr:depnode);
170  myResult = 0;
171  if (true)
172  graph->evalOpParm(myResult, nodeidx, "result", time, graph->isDirect()?nullptr:depnode);
173  myResultattrib = "density"_UTsh;
174  if (true && ( (true&&!(((int64(getResult())==0)))) ) )
175  graph->evalOpParm(myResultattrib, nodeidx, "resultattrib", time, graph->isDirect()?nullptr:depnode);
176  myCreateVarMap = false;
177  if (true)
178  graph->evalOpParm(myCreateVarMap, nodeidx, "createvarmap", time, graph->isDirect()?nullptr:depnode);
179  myResultlvar = ""_UTsh;
180  if (true && ( (true&&!(((getCreateVarMap()==0))||((int64(getResult())==0)))) ) )
181  graph->evalOpParm(myResultlvar, nodeidx, "resultlvar", time, graph->isDirect()?nullptr:depnode);
182 
183  }
184 
185 
186  void loadFromOpSubclass(const LoadParms &loadparms) override
187  {
188  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
189  }
190 
191 
192  void copyFrom(const OP_NodeParms *src) override
193  {
194  *this = *((const SOP_VolumeReduceParms *)src);
195  }
196 
197  template <typename T>
198  void
199  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
200  {
201  if (idx.size() < 1)
202  return;
203  UT_ASSERT(idx.size() == instance.size()+1);
204  if (idx.size() != instance.size()+1)
205  return;
206  switch (idx[0])
207  {
208  case 0:
209  coerceValue(value, myGroup);
210  break;
211  case 1:
212  coerceValue(value, myReduction);
213  break;
214  case 2:
215  coerceValue(value, myPercentile);
216  break;
217  case 3:
218  coerceValue(value, myScaleby);
219  break;
220  case 4:
221  coerceValue(value, myResult);
222  break;
223  case 5:
224  coerceValue(value, myResultattrib);
225  break;
226  case 6:
227  coerceValue(value, myCreateVarMap);
228  break;
229  case 7:
230  coerceValue(value, myResultlvar);
231  break;
232 
233  }
234  }
235 
236  bool isParmColorRamp(exint idx) const override
237  {
238  switch (idx)
239  {
240 
241  }
242  return false;
243  }
244 
245  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
246  { doGetParmValue(idx, instance, value); }
247  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
248  { doGetParmValue(idx, instance, value); }
249  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
250  { doGetParmValue(idx, instance, value); }
251  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
252  { doGetParmValue(idx, instance, value); }
253  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
254  { doGetParmValue(idx, instance, value); }
255  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
256  { doGetParmValue(idx, instance, value); }
257  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
258  { doGetParmValue(idx, instance, value); }
259  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
260  { doGetParmValue(idx, instance, value); }
261  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
262  { doGetParmValue(idx, instance, value); }
263  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
264  { doGetParmValue(idx, instance, value); }
265  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
266  { doGetParmValue(idx, instance, value); }
267 
268  template <typename T>
269  void
270  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
271  {
272  if (idx.size() < 1)
273  return;
274  UT_ASSERT(idx.size() == instance.size()+1);
275  if (idx.size() != instance.size()+1)
276  return;
277  switch (idx[0])
278  {
279  case 0:
280  coerceValue(myGroup, ( ( value ) ));
281  break;
282  case 1:
283  coerceValue(myReduction, clampMinValue(0, clampMaxValue(9, value ) ));
284  break;
285  case 2:
286  coerceValue(myPercentile, clampMinValue(0, clampMaxValue(100, value ) ));
287  break;
288  case 3:
289  coerceValue(myScaleby, clampMinValue(0, clampMaxValue(3, value ) ));
290  break;
291  case 4:
292  coerceValue(myResult, clampMinValue(0, clampMaxValue(4, value ) ));
293  break;
294  case 5:
295  coerceValue(myResultattrib, ( ( value ) ));
296  break;
297  case 6:
298  coerceValue(myCreateVarMap, ( ( value ) ));
299  break;
300  case 7:
301  coerceValue(myResultlvar, ( ( value ) ));
302  break;
303 
304  }
305  }
306 
307  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
308  { doSetParmValue(idx, instance, value); }
309  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
310  { doSetParmValue(idx, instance, value); }
311  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
312  { doSetParmValue(idx, instance, value); }
313  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
314  { doSetParmValue(idx, instance, value); }
315  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
316  { doSetParmValue(idx, instance, value); }
317  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
318  { doSetParmValue(idx, instance, value); }
319  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
320  { doSetParmValue(idx, instance, value); }
321  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
322  { doSetParmValue(idx, instance, value); }
323  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
324  { doSetParmValue(idx, instance, value); }
325  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
326  { doSetParmValue(idx, instance, value); }
327  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
328  { doSetParmValue(idx, instance, value); }
329 
330  exint getNestNumParms(TempIndex idx) const override
331  {
332  if (idx.size() == 0)
333  return 8;
334  switch (idx[0])
335  {
336 
337  }
338  // Invalid
339  return 0;
340  }
341 
342  const char *getNestParmName(TempIndex fieldnum) const override
343  {
344  if (fieldnum.size() < 1)
345  return 0;
346  switch (fieldnum[0])
347  {
348  case 0:
349  return "group";
350  case 1:
351  return "reduction";
352  case 2:
353  return "percentile";
354  case 3:
355  return "scaleby";
356  case 4:
357  return "result";
358  case 5:
359  return "resultattrib";
360  case 6:
361  return "createvarmap";
362  case 7:
363  return "resultlvar";
364 
365  }
366  return 0;
367  }
368 
369  ParmType getNestParmType(TempIndex fieldnum) const override
370  {
371  if (fieldnum.size() < 1)
372  return PARM_UNSUPPORTED;
373  switch (fieldnum[0])
374  {
375  case 0:
376  return PARM_STRING;
377  case 1:
378  return PARM_INTEGER;
379  case 2:
380  return PARM_FLOAT;
381  case 3:
382  return PARM_INTEGER;
383  case 4:
384  return PARM_INTEGER;
385  case 5:
386  return PARM_STRING;
387  case 6:
388  return PARM_INTEGER;
389  case 7:
390  return PARM_STRING;
391 
392  }
393  return PARM_UNSUPPORTED;
394  }
395 
396  // Boiler plate to load individual types.
397  static void loadData(UT_IStream &is, int64 &v)
398  { is.bread(&v, 1); }
399  static void loadData(UT_IStream &is, bool &v)
400  { int64 iv; is.bread(&iv, 1); v = iv; }
401  static void loadData(UT_IStream &is, fpreal64 &v)
402  { is.bread<fpreal64>(&v, 1); }
403  static void loadData(UT_IStream &is, UT_Vector2D &v)
404  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
405  static void loadData(UT_IStream &is, UT_Vector3D &v)
406  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
407  is.bread<fpreal64>(&v.z(), 1); }
408  static void loadData(UT_IStream &is, UT_Vector4D &v)
409  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
410  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
411  static void loadData(UT_IStream &is, UT_Matrix2D &v)
412  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
413  static void loadData(UT_IStream &is, UT_Matrix3D &v)
414  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
415  static void loadData(UT_IStream &is, UT_Matrix4D &v)
416  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
417  static void loadData(UT_IStream &is, UT_Vector2I &v)
418  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
419  static void loadData(UT_IStream &is, UT_Vector3I &v)
420  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
421  is.bread<int64>(&v.z(), 1); }
422  static void loadData(UT_IStream &is, UT_Vector4I &v)
423  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
424  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
426  { is.bread(v); }
428  { UT_StringHolder rampdata;
429  loadData(is, rampdata);
430  if (rampdata.isstring())
431  {
432  v.reset(new UT_Ramp());
433  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
434  v->load(istr);
435  }
436  else v.reset();
437  }
440  loadData(is, data);
441  if (data.isstring())
442  {
443  // Find the data type.
444  const char *colon = UT_StringWrap(data).findChar(':');
445  if (colon)
446  {
447  int typelen = colon - data.buffer();
449  type.strncpy(data.buffer(), typelen);
450  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
451 
452  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
453  }
454  }
455  else v.reset();
456  }
457 
458  static void saveData(std::ostream &os, int64 v)
459  { UTwrite(os, &v); }
460  static void saveData(std::ostream &os, bool v)
461  { int64 iv = v; UTwrite(os, &iv); }
462  static void saveData(std::ostream &os, fpreal64 v)
463  { UTwrite<fpreal64>(os, &v); }
464  static void saveData(std::ostream &os, UT_Vector2D v)
465  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
466  static void saveData(std::ostream &os, UT_Vector3D v)
467  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
468  UTwrite<fpreal64>(os, &v.z()); }
469  static void saveData(std::ostream &os, UT_Vector4D v)
470  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
471  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
472  static void saveData(std::ostream &os, UT_Matrix2D v)
474  static void saveData(std::ostream &os, UT_Matrix3D v)
476  static void saveData(std::ostream &os, UT_Matrix4D v)
478  static void saveData(std::ostream &os, UT_StringHolder s)
479  { UT_StringWrap(s).saveBinary(os); }
480  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
482  UT_OStringStream ostr;
483  if (s) s->save(ostr);
484  result = ostr.str();
485  saveData(os, result);
486  }
487  static void saveData(std::ostream &os, PRM_DataItemHandle s)
489  UT_OStringStream ostr;
490  if (s)
491  {
492  ostr << s->getDataTypeToken();
493  ostr << ":";
494  s->saveBinary(ostr);
495  }
496  result = ostr.str();
497  saveData(os, result);
498  }
499 
500 
501  void save(std::ostream &os) const
502  {
503  int32 v = version();
504  UTwrite(os, &v);
505  saveData(os, myGroup);
506  saveData(os, myReduction);
507  saveData(os, myPercentile);
508  saveData(os, myScaleby);
509  saveData(os, myResult);
510  saveData(os, myResultattrib);
511  saveData(os, myCreateVarMap);
512  saveData(os, myResultlvar);
513 
514  }
515 
516  bool load(UT_IStream &is)
517  {
518  int32 v;
519  is.bread(&v, 1);
520  if (version() != v)
521  {
522  // Fail incompatible versions
523  return false;
524  }
525  loadData(is, myGroup);
526  loadData(is, myReduction);
527  loadData(is, myPercentile);
528  loadData(is, myScaleby);
529  loadData(is, myResult);
530  loadData(is, myResultattrib);
531  loadData(is, myCreateVarMap);
532  loadData(is, myResultlvar);
533 
534  return true;
535  }
536 
537  const UT_StringHolder & getGroup() const { return myGroup; }
538  void setGroup(const UT_StringHolder & val) { myGroup = val; }
540  {
541  SOP_Node *thissop = cookparms.getNode();
542  if (!thissop) return getGroup();
544  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
545  return result;
546  }
547  Reduction getReduction() const { return Reduction(myReduction); }
548  void setReduction(Reduction val) { myReduction = int64(val); }
550  {
551  SOP_Node *thissop = cookparms.getNode();
552  if (!thissop) return getReduction();
553  int64 result;
554  OP_Utils::evalOpParm(result, thissop, "reduction", cookparms.getCookTime(), 0);
555  return Reduction(result);
556  }
557  fpreal64 getPercentile() const { return myPercentile; }
558  void setPercentile(fpreal64 val) { myPercentile = val; }
560  {
561  SOP_Node *thissop = cookparms.getNode();
562  if (!thissop) return getPercentile();
564  OP_Utils::evalOpParm(result, thissop, "percentile", cookparms.getCookTime(), 0);
565  return result;
566  }
567  Scaleby getScaleby() const { return Scaleby(myScaleby); }
568  void setScaleby(Scaleby val) { myScaleby = int64(val); }
569  Scaleby opScaleby(const SOP_NodeVerb::CookParms &cookparms) const
570  {
571  SOP_Node *thissop = cookparms.getNode();
572  if (!thissop) return getScaleby();
573  int64 result;
574  OP_Utils::evalOpParm(result, thissop, "scaleby", cookparms.getCookTime(), 0);
575  return Scaleby(result);
576  }
577  Result getResult() const { return Result(myResult); }
578  void setResult(Result val) { myResult = int64(val); }
579  Result opResult(const SOP_NodeVerb::CookParms &cookparms) const
580  {
581  SOP_Node *thissop = cookparms.getNode();
582  if (!thissop) return getResult();
583  int64 result;
584  OP_Utils::evalOpParm(result, thissop, "result", cookparms.getCookTime(), 0);
585  return Result(result);
586  }
587  const UT_StringHolder & getResultattrib() const { return myResultattrib; }
588  void setResultattrib(const UT_StringHolder & val) { myResultattrib = val; }
590  {
591  SOP_Node *thissop = cookparms.getNode();
592  if (!thissop) return getResultattrib();
594  OP_Utils::evalOpParm(result, thissop, "resultattrib", cookparms.getCookTime(), 0);
595  return result;
596  }
597  bool getCreateVarMap() const { return myCreateVarMap; }
598  void setCreateVarMap(bool val) { myCreateVarMap = val; }
599  bool opCreateVarMap(const SOP_NodeVerb::CookParms &cookparms) const
600  {
601  SOP_Node *thissop = cookparms.getNode();
602  if (!thissop) return getCreateVarMap();
603  bool result;
604  OP_Utils::evalOpParm(result, thissop, "createvarmap", cookparms.getCookTime(), 0);
605  return result;
606  }
607  const UT_StringHolder & getResultlvar() const { return myResultlvar; }
608  void setResultlvar(const UT_StringHolder & val) { myResultlvar = val; }
610  {
611  SOP_Node *thissop = cookparms.getNode();
612  if (!thissop) return getResultlvar();
614  OP_Utils::evalOpParm(result, thissop, "resultlvar", cookparms.getCookTime(), 0);
615  return result;
616  }
617 
618 private:
619  UT_StringHolder myGroup;
620  int64 myReduction;
621  fpreal64 myPercentile;
622  int64 myScaleby;
623  int64 myResult;
624  UT_StringHolder myResultattrib;
625  bool myCreateVarMap;
626  UT_StringHolder myResultlvar;
627 
628 };
type
Definition: core.h:556
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
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:63
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLsizei const GLfloat * value
Definition: glcorearb.h:824
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:622
static void saveData(std::ostream &os, UT_StringHolder s)
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
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: APEX_Include.h:55
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
SYS_FORCE_INLINE UT_StringHolder getToken(Reduction enum_value)
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
#define SYS_FORCE_INLINE
Definition: SYS_Inline.h:45
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:303
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)
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:278
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
LeafData & operator=(const LeafData &)=delete
Utility class for containing a color ramp.
Definition: UT_Ramp.h:96
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
virtual UT_StringHolder baseGetSignature() const
Definition: OP_NodeParms.h:294
#define SOP_API
Definition: SOP_API.h:10
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:372
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:1401
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156
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
static void saveData(std::ostream &os, UT_Matrix2D v)
virtual bool isDirect() const =0
Direct proxies mirror actual nodes:
void loadFromOpSubclass(const LoadParms &loadparms) override
void setResultattrib(const UT_StringHolder &val)
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)
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