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