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_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_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 = ""_sh;
64  myReduction = 0;
65  myPercentile = 50;
66  myScaleby = 0;
67  myResult = 0;
68  myResultattrib = "density"_sh;
69  myResultlvar = ""_sh;
70 
71  }
72 
73  explicit SOP_VolumeReduceParms(const SOP_VolumeReduceParms &) = default;
74 
75  ~SOP_VolumeReduceParms() override {}
76 
78  {
79  if (myGroup != src.myGroup) return false;
80  if (myReduction != src.myReduction) return false;
81  if (myPercentile != src.myPercentile) return false;
82  if (myScaleby != src.myScaleby) return false;
83  if (myResult != src.myResult) return false;
84  if (myResultattrib != src.myResultattrib) return false;
85  if (myResultlvar != src.myResultlvar) return false;
86 
87  return true;
88  }
90  {
91  return !operator==(src);
92  }
96 
97 
98 
99  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
100  {
101  myGroup = ""_sh;
102  if (true)
103  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
104  myReduction = 0;
105  if (true)
106  graph->evalOpParm(myReduction, nodeidx, "reduction", time, 0);
107  myPercentile = 50;
108  if (true && ( (!(((int64(getReduction())!=5)))) ) )
109  graph->evalOpParm(myPercentile, nodeidx, "percentile", time, 0);
110  myScaleby = 0;
111  if (true)
112  graph->evalOpParm(myScaleby, nodeidx, "scaleby", time, 0);
113  myResult = 0;
114  if (true)
115  graph->evalOpParm(myResult, nodeidx, "result", time, 0);
116  myResultattrib = "density"_sh;
117  if (true && ( (!(((int64(getResult())==0)))) ) )
118  graph->evalOpParm(myResultattrib, nodeidx, "resultattrib", time, 0);
119  myResultlvar = ""_sh;
120  if (true && ( (!(((int64(getResult())==0)))) ) )
121  graph->evalOpParm(myResultlvar, nodeidx, "resultlvar", time, 0);
122 
123  }
124 
125 
126  void loadFromOpSubclass(const LoadParms &loadparms) override
127  {
128  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
129  }
130 
131 
132  void copyFrom(const SOP_NodeParms *src) override
133  {
134  *this = *((const SOP_VolumeReduceParms *)src);
135  }
136 
137  template <typename T>
138  void
139  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
140  {
141  if (idx.size() < 1)
142  return;
143  UT_ASSERT(idx.size() == instance.size()+1);
144  if (idx.size() != instance.size()+1)
145  return;
146  switch (idx[0])
147  {
148  case 0:
149  coerceValue(value, myGroup);
150  break;
151  case 1:
152  coerceValue(value, myReduction);
153  break;
154  case 2:
155  coerceValue(value, myPercentile);
156  break;
157  case 3:
158  coerceValue(value, myScaleby);
159  break;
160  case 4:
161  coerceValue(value, myResult);
162  break;
163  case 5:
164  coerceValue(value, myResultattrib);
165  break;
166  case 6:
167  coerceValue(value, myResultlvar);
168  break;
169 
170  }
171  }
172 
173  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
174  { doGetParmValue(idx, instance, value); }
175  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
176  { doGetParmValue(idx, instance, value); }
177  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
178  { doGetParmValue(idx, instance, value); }
179  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
180  { doGetParmValue(idx, instance, value); }
181  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
182  { doGetParmValue(idx, instance, value); }
183  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
184  { doGetParmValue(idx, instance, value); }
185  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
186  { doGetParmValue(idx, instance, value); }
187  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
188  { doGetParmValue(idx, instance, value); }
189  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
190  { doGetParmValue(idx, instance, value); }
191  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
192  { doGetParmValue(idx, instance, value); }
193  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
194  { doGetParmValue(idx, instance, value); }
195 
196  template <typename T>
197  void
198  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
199  {
200  if (idx.size() < 1)
201  return;
202  UT_ASSERT(idx.size() == instance.size()+1);
203  if (idx.size() != instance.size()+1)
204  return;
205  switch (idx[0])
206  {
207  case 0:
208  coerceValue(myGroup, value);
209  break;
210  case 1:
211  coerceValue(myReduction, value);
212  break;
213  case 2:
214  coerceValue(myPercentile, value);
215  break;
216  case 3:
217  coerceValue(myScaleby, value);
218  break;
219  case 4:
220  coerceValue(myResult, value);
221  break;
222  case 5:
223  coerceValue(myResultattrib, value);
224  break;
225  case 6:
226  coerceValue(myResultlvar, value);
227  break;
228 
229  }
230  }
231 
232  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
233  { doSetParmValue(idx, instance, value); }
234  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
235  { doSetParmValue(idx, instance, value); }
236  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
237  { doSetParmValue(idx, instance, value); }
238  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
239  { doSetParmValue(idx, instance, value); }
240  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
241  { doSetParmValue(idx, instance, value); }
242  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
243  { doSetParmValue(idx, instance, value); }
244  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
245  { doSetParmValue(idx, instance, value); }
246  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
247  { doSetParmValue(idx, instance, value); }
248  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
249  { doSetParmValue(idx, instance, value); }
250  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
251  { doSetParmValue(idx, instance, value); }
252  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
253  { doSetParmValue(idx, instance, value); }
254 
255  exint getNestNumParms(TempIndex idx) const override
256  {
257  if (idx.size() == 0)
258  return 7;
259  switch (idx[0])
260  {
261 
262  }
263  // Invalid
264  return 0;
265  }
266 
267  const char *getNestParmName(TempIndex fieldnum) const override
268  {
269  if (fieldnum.size() < 1)
270  return 0;
271  switch (fieldnum[0])
272  {
273  case 0:
274  return "group";
275  case 1:
276  return "reduction";
277  case 2:
278  return "percentile";
279  case 3:
280  return "scaleby";
281  case 4:
282  return "result";
283  case 5:
284  return "resultattrib";
285  case 6:
286  return "resultlvar";
287 
288  }
289  return 0;
290  }
291 
292  ParmType getNestParmType(TempIndex fieldnum) const override
293  {
294  if (fieldnum.size() < 1)
295  return PARM_UNSUPPORTED;
296  switch (fieldnum[0])
297  {
298  case 0:
299  return PARM_STRING;
300  case 1:
301  return PARM_INTEGER;
302  case 2:
303  return PARM_FLOAT;
304  case 3:
305  return PARM_INTEGER;
306  case 4:
307  return PARM_INTEGER;
308  case 5:
309  return PARM_STRING;
310  case 6:
311  return PARM_STRING;
312 
313  }
314  return PARM_UNSUPPORTED;
315  }
316 
317  // Boiler plate to load individual types.
318  static void loadData(UT_IStream &is, int64 &v)
319  { is.bread(&v, 1); }
320  static void loadData(UT_IStream &is, bool &v)
321  { int64 iv; is.bread(&iv, 1); v = iv; }
322  static void loadData(UT_IStream &is, fpreal64 &v)
323  { is.bread<fpreal64>(&v, 1); }
324  static void loadData(UT_IStream &is, UT_Vector2D &v)
325  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
326  static void loadData(UT_IStream &is, UT_Vector3D &v)
327  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
328  is.bread<fpreal64>(&v.z(), 1); }
329  static void loadData(UT_IStream &is, UT_Vector4D &v)
330  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
331  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
332  static void loadData(UT_IStream &is, UT_Matrix2D &v)
333  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
334  static void loadData(UT_IStream &is, UT_Matrix3D &v)
335  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
336  static void loadData(UT_IStream &is, UT_Matrix4D &v)
337  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
338  static void loadData(UT_IStream &is, UT_Vector2I &v)
339  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
340  static void loadData(UT_IStream &is, UT_Vector3I &v)
341  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
342  is.bread<int64>(&v.z(), 1); }
343  static void loadData(UT_IStream &is, UT_Vector4I &v)
344  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
345  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
347  { is.bread(v); }
349  { UT_StringHolder rampdata;
350  loadData(is, rampdata);
351  if (rampdata.isstring())
352  {
353  v.reset(new UT_Ramp());
354  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
355  v->load(istr);
356  }
357  else v.reset();
358  }
361  loadData(is, data);
362  if (data.isstring())
363  {
364  // Find the data type.
365  const char *colon = UT_StringWrap(data).findChar(':');
366  if (colon)
367  {
368  int typelen = colon - data.buffer();
370  type.strncpy(data.buffer(), typelen);
371  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
372 
373  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
374  }
375  }
376  else v.reset();
377  }
378 
379  static void saveData(std::ostream &os, int64 v)
380  { UTwrite(os, &v); }
381  static void saveData(std::ostream &os, bool v)
382  { int64 iv = v; UTwrite(os, &iv); }
383  static void saveData(std::ostream &os, fpreal64 v)
384  { UTwrite<fpreal64>(os, &v); }
385  static void saveData(std::ostream &os, UT_Vector2D v)
386  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
387  static void saveData(std::ostream &os, UT_Vector3D v)
388  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
389  UTwrite<fpreal64>(os, &v.z()); }
390  static void saveData(std::ostream &os, UT_Vector4D v)
391  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
392  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
393  static void saveData(std::ostream &os, UT_Matrix2D v)
395  static void saveData(std::ostream &os, UT_Matrix3D v)
397  static void saveData(std::ostream &os, UT_Matrix4D v)
399  static void saveData(std::ostream &os, UT_StringHolder s)
400  { UT_StringWrap(s).saveBinary(os); }
401  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
403  UT_OStringStream ostr;
404  if (s) s->save(ostr);
405  result = ostr.str();
406  saveData(os, result);
407  }
408  static void saveData(std::ostream &os, PRM_DataItemHandle s)
410  UT_OStringStream ostr;
411  if (s)
412  {
413  ostr << s->getDataTypeToken();
414  ostr << ":";
415  s->saveBinary(ostr);
416  }
417  result = ostr.str();
418  saveData(os, result);
419  }
420 
421 
422  void save(std::ostream &os) const
423  {
424  int32 v = version();
425  UTwrite(os, &v);
426  saveData(os, myGroup);
427  saveData(os, myReduction);
428  saveData(os, myPercentile);
429  saveData(os, myScaleby);
430  saveData(os, myResult);
431  saveData(os, myResultattrib);
432  saveData(os, myResultlvar);
433 
434  }
435 
436  bool load(UT_IStream &is)
437  {
438  int32 v;
439  is.bread(&v, 1);
440  if (version() != v)
441  {
442  // Fail incompatible versions
443  return false;
444  }
445  loadData(is, myGroup);
446  loadData(is, myReduction);
447  loadData(is, myPercentile);
448  loadData(is, myScaleby);
449  loadData(is, myResult);
450  loadData(is, myResultattrib);
451  loadData(is, myResultlvar);
452 
453  return true;
454  }
455 
456  const UT_StringHolder & getGroup() const { return myGroup; }
457  void setGroup(const UT_StringHolder & val) { myGroup = val; }
459  {
460  SOP_Node *thissop = cookparms.getNode();
461  if (!thissop) return getGroup();
463  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
464  return result;
465  }
466  Reduction getReduction() const { return Reduction(myReduction); }
467  void setReduction(Reduction val) { myReduction = int64(val); }
469  {
470  SOP_Node *thissop = cookparms.getNode();
471  if (!thissop) return getReduction();
472  int64 result;
473  OP_Utils::evalOpParm(result, thissop, "reduction", cookparms.getCookTime(), 0);
474  return Reduction(result);
475  }
476  fpreal64 getPercentile() const { return myPercentile; }
477  void setPercentile(fpreal64 val) { myPercentile = val; }
479  {
480  SOP_Node *thissop = cookparms.getNode();
481  if (!thissop) return getPercentile();
483  OP_Utils::evalOpParm(result, thissop, "percentile", cookparms.getCookTime(), 0);
484  return result;
485  }
486  Scaleby getScaleby() const { return Scaleby(myScaleby); }
487  void setScaleby(Scaleby val) { myScaleby = int64(val); }
488  Scaleby opScaleby(const SOP_NodeVerb::CookParms &cookparms) const
489  {
490  SOP_Node *thissop = cookparms.getNode();
491  if (!thissop) return getScaleby();
492  int64 result;
493  OP_Utils::evalOpParm(result, thissop, "scaleby", cookparms.getCookTime(), 0);
494  return Scaleby(result);
495  }
496  Result getResult() const { return Result(myResult); }
497  void setResult(Result val) { myResult = int64(val); }
498  Result opResult(const SOP_NodeVerb::CookParms &cookparms) const
499  {
500  SOP_Node *thissop = cookparms.getNode();
501  if (!thissop) return getResult();
502  int64 result;
503  OP_Utils::evalOpParm(result, thissop, "result", cookparms.getCookTime(), 0);
504  return Result(result);
505  }
506  const UT_StringHolder & getResultattrib() const { return myResultattrib; }
507  void setResultattrib(const UT_StringHolder & val) { myResultattrib = val; }
509  {
510  SOP_Node *thissop = cookparms.getNode();
511  if (!thissop) return getResultattrib();
513  OP_Utils::evalOpParm(result, thissop, "resultattrib", cookparms.getCookTime(), 0);
514  return result;
515  }
516  const UT_StringHolder & getResultlvar() const { return myResultlvar; }
517  void setResultlvar(const UT_StringHolder & val) { myResultlvar = val; }
519  {
520  SOP_Node *thissop = cookparms.getNode();
521  if (!thissop) return getResultlvar();
523  OP_Utils::evalOpParm(result, thissop, "resultlvar", cookparms.getCookTime(), 0);
524  return result;
525  }
526 
527 private:
528  UT_StringHolder myGroup;
529  int64 myReduction;
530  fpreal64 myPercentile;
531  int64 myScaleby;
532  int64 myResult;
533  UT_StringHolder myResultattrib;
534  UT_StringHolder myResultlvar;
535 
536 };
GLdouble s
Definition: glew.h:1390
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:114
GLenum src
Definition: glew.h:2410
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:640
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:60
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
GLuint const GLfloat * val
Definition: glew.h:2794
void setReduction(Reduction val)
const UT_StringHolder & getResultattrib() const
UT_StringHolder opResultattrib(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
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:113
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.
const GLdouble * v
Definition: glew.h:1391
static void saveData(std::ostream &os, UT_StringHolder s)
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
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
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:513
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:28
UT_StringHolder opResultlvar(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
GLint GLenum GLsizei GLint GLsizei const void * data
Definition: glew.h:1379
fpreal64 opPercentile(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, int64 v)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:515
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
const GLfloat * c
Definition: glew.h:16296
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:294
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:121
Scaleby opScaleby(const SOP_NodeVerb::CookParms &cookparms) const
void setPercentile(fpreal64 val)
static void saveData(std::ostream &os, UT_Vector3D v)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
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
GLdouble GLdouble GLdouble r
Definition: glew.h:1406
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
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_Matrix3D &v)
GLuint64EXT * result
Definition: glew.h:14007
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:1367
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
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
static void saveData(std::ostream &os, UT_Matrix2D v)
void loadFromOpSubclass(const LoadParms &loadparms) override
GLsizei const GLfloat * value
Definition: glew.h:1849
void setResultattrib(const UT_StringHolder &val)
const OP_Context & context() const
Definition: SOP_NodeVerb.h:119
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)
type
Definition: core.h:528
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
Result opResult(const SOP_NodeVerb::CookParms &cookparms) const